@bikefinder/sdk 0.29.0 → 0.31.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
@@ -30454,6 +30454,115 @@ export declare const tracker: z.ZodObject<{
30454
30454
  createdAt: z.ZodISODateTime;
30455
30455
  updatedAt: z.ZodISODateTime;
30456
30456
  }, z.core.$strip>;
30457
+ export declare const customerTrackerDetails: z.ZodObject<{
30458
+ id: z.ZodString;
30459
+ firmware: z.ZodNullable<z.ZodObject<{
30460
+ lte: z.ZodNullable<z.ZodString>;
30461
+ bluetooth: z.ZodNullable<z.ZodString>;
30462
+ battery: z.ZodNullable<z.ZodString>;
30463
+ modem: z.ZodNullable<z.ZodString>;
30464
+ mtk: z.ZodNullable<z.ZodString>;
30465
+ ti: z.ZodNullable<z.ZodString>;
30466
+ buildNumber: z.ZodNullable<z.ZodInt>;
30467
+ }, z.core.$strip>>;
30468
+ subscription: z.ZodDiscriminatedUnion<[
30469
+ z.ZodObject<{
30470
+ id: z.ZodString;
30471
+ activity: z.ZodEnum<{
30472
+ unknown: "unknown";
30473
+ active: "active";
30474
+ inactive: "inactive";
30475
+ }>;
30476
+ isDemo: z.ZodBoolean;
30477
+ status: z.ZodNullable<z.ZodString>;
30478
+ country: z.ZodNullable<z.ZodString>;
30479
+ endsAt: z.ZodNullable<z.ZodISODateTime>;
30480
+ state: z.ZodLiteral<"available">;
30481
+ }, z.core.$strip>,
30482
+ z.ZodObject<{
30483
+ state: z.ZodLiteral<"unavailable">;
30484
+ reason: z.ZodEnum<{
30485
+ invalid: "invalid";
30486
+ not_observed: "not_observed";
30487
+ not_assigned: "not_assigned";
30488
+ }>;
30489
+ }, z.core.$strip>
30490
+ ], "state">;
30491
+ createdAt: z.ZodISODateTime;
30492
+ revision: z.ZodString;
30493
+ battery: z.ZodDiscriminatedUnion<[
30494
+ z.ZodObject<{
30495
+ level: z.ZodNullable<z.ZodNumber>;
30496
+ isCharging: z.ZodNullable<z.ZodBoolean>;
30497
+ levelUpdatedAt: z.ZodNullable<z.ZodISODateTime>;
30498
+ chargingObservedAt: z.ZodNullable<z.ZodISODateTime>;
30499
+ observation: z.ZodNullable<z.ZodObject<{
30500
+ observedAt: z.ZodNullable<z.ZodISODateTime>;
30501
+ receivedAt: z.ZodNullable<z.ZodISODateTime>;
30502
+ }, z.core.$strip>>;
30503
+ source: z.ZodNullable<z.ZodString>;
30504
+ state: z.ZodLiteral<"available">;
30505
+ }, z.core.$strip>,
30506
+ z.ZodObject<{
30507
+ state: z.ZodLiteral<"unavailable">;
30508
+ reason: z.ZodEnum<{
30509
+ invalid: "invalid";
30510
+ not_observed: "not_observed";
30511
+ not_assigned: "not_assigned";
30512
+ }>;
30513
+ }, z.core.$strip>
30514
+ ], "state">;
30515
+ identity: z.ZodNullable<z.ZodObject<{
30516
+ serialNumber: z.ZodNullable<z.ZodString>;
30517
+ }, z.core.$strip>>;
30518
+ generation: z.ZodNullable<z.ZodInt>;
30519
+ bike: z.ZodObject<{
30520
+ revision: z.ZodString;
30521
+ name: z.ZodNullable<z.ZodString>;
30522
+ brand: z.ZodNullable<z.ZodString>;
30523
+ type: z.ZodNullable<z.ZodString>;
30524
+ model: z.ZodNullable<z.ZodString>;
30525
+ frameNumber: z.ZodNullable<z.ZodString>;
30526
+ url: z.ZodNullable<z.ZodString>;
30527
+ marketPrice: z.ZodNullable<z.ZodString>;
30528
+ marketPriceCurrency: z.ZodNullable<z.ZodString>;
30529
+ }, z.core.$strip>;
30530
+ location: z.ZodDiscriminatedUnion<[
30531
+ z.ZodObject<{
30532
+ latitude: z.ZodNumber;
30533
+ longitude: z.ZodNumber;
30534
+ accuracy: z.ZodNullable<z.ZodNumber>;
30535
+ source: z.ZodNullable<z.ZodString>;
30536
+ observedAt: z.ZodNullable<z.ZodISODateTime>;
30537
+ state: z.ZodLiteral<"available">;
30538
+ }, z.core.$strip>,
30539
+ z.ZodObject<{
30540
+ state: z.ZodLiteral<"unavailable">;
30541
+ reason: z.ZodEnum<{
30542
+ invalid: "invalid";
30543
+ not_observed: "not_observed";
30544
+ not_assigned: "not_assigned";
30545
+ }>;
30546
+ }, z.core.$strip>
30547
+ ], "state">;
30548
+ readIssues: z.ZodArray<z.ZodObject<{
30549
+ path: z.ZodString;
30550
+ code: z.ZodLiteral<"invalid_stored_value">;
30551
+ }, z.core.$strip>>;
30552
+ updatedAt: z.ZodISODateTime;
30553
+ preferences: z.ZodObject<{
30554
+ movementAlerts: z.ZodBoolean;
30555
+ }, z.core.$strip>;
30556
+ capabilities: z.ZodObject<{
30557
+ firmwareUpdates: z.ZodBoolean;
30558
+ factoryResetReports: z.ZodBoolean;
30559
+ }, z.core.$strip>;
30560
+ membership: z.ZodObject<{
30561
+ accountId: z.ZodString;
30562
+ activeMemberCount: z.ZodInt;
30563
+ }, z.core.$strip>;
30564
+ }, z.core.$strip>;
30565
+ export type CustomerTrackerDetails = z.infer<typeof customerTrackerDetails>;
30457
30566
  export type Tracker = z.infer<typeof tracker>;
30458
30567
  export type TrackerSummary = z.infer<typeof trackerSummary>;
30459
30568
  export type TrackerPage = z.infer<typeof trackerPage>;
@@ -53147,6 +53256,2077 @@ declare const trackerContract: {
53147
53256
  }, unknown>>;
53148
53257
  };
53149
53258
  }>, Record<never, never>>;
53259
+ getDetails: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
53260
+ deviceId: z.ZodString;
53261
+ }, z.core.$strict>, z.ZodObject<{
53262
+ id: z.ZodString;
53263
+ firmware: z.ZodNullable<z.ZodObject<{
53264
+ lte: z.ZodNullable<z.ZodString>;
53265
+ bluetooth: z.ZodNullable<z.ZodString>;
53266
+ battery: z.ZodNullable<z.ZodString>;
53267
+ modem: z.ZodNullable<z.ZodString>;
53268
+ mtk: z.ZodNullable<z.ZodString>;
53269
+ ti: z.ZodNullable<z.ZodString>;
53270
+ buildNumber: z.ZodNullable<z.ZodInt>;
53271
+ }, z.core.$strip>>;
53272
+ subscription: z.ZodDiscriminatedUnion<[
53273
+ z.ZodObject<{
53274
+ id: z.ZodString;
53275
+ activity: z.ZodEnum<{
53276
+ unknown: "unknown";
53277
+ active: "active";
53278
+ inactive: "inactive";
53279
+ }>;
53280
+ isDemo: z.ZodBoolean;
53281
+ status: z.ZodNullable<z.ZodString>;
53282
+ country: z.ZodNullable<z.ZodString>;
53283
+ endsAt: z.ZodNullable<z.ZodISODateTime>;
53284
+ state: z.ZodLiteral<"available">;
53285
+ }, z.core.$strip>,
53286
+ z.ZodObject<{
53287
+ state: z.ZodLiteral<"unavailable">;
53288
+ reason: z.ZodEnum<{
53289
+ invalid: "invalid";
53290
+ not_observed: "not_observed";
53291
+ not_assigned: "not_assigned";
53292
+ }>;
53293
+ }, z.core.$strip>
53294
+ ], "state">;
53295
+ createdAt: z.ZodISODateTime;
53296
+ revision: z.ZodString;
53297
+ battery: z.ZodDiscriminatedUnion<[
53298
+ z.ZodObject<{
53299
+ level: z.ZodNullable<z.ZodNumber>;
53300
+ isCharging: z.ZodNullable<z.ZodBoolean>;
53301
+ levelUpdatedAt: z.ZodNullable<z.ZodISODateTime>;
53302
+ chargingObservedAt: z.ZodNullable<z.ZodISODateTime>;
53303
+ observation: z.ZodNullable<z.ZodObject<{
53304
+ observedAt: z.ZodNullable<z.ZodISODateTime>;
53305
+ receivedAt: z.ZodNullable<z.ZodISODateTime>;
53306
+ }, z.core.$strip>>;
53307
+ source: z.ZodNullable<z.ZodString>;
53308
+ state: z.ZodLiteral<"available">;
53309
+ }, z.core.$strip>,
53310
+ z.ZodObject<{
53311
+ state: z.ZodLiteral<"unavailable">;
53312
+ reason: z.ZodEnum<{
53313
+ invalid: "invalid";
53314
+ not_observed: "not_observed";
53315
+ not_assigned: "not_assigned";
53316
+ }>;
53317
+ }, z.core.$strip>
53318
+ ], "state">;
53319
+ identity: z.ZodNullable<z.ZodObject<{
53320
+ serialNumber: z.ZodNullable<z.ZodString>;
53321
+ }, z.core.$strip>>;
53322
+ generation: z.ZodNullable<z.ZodInt>;
53323
+ bike: z.ZodObject<{
53324
+ revision: z.ZodString;
53325
+ name: z.ZodNullable<z.ZodString>;
53326
+ brand: z.ZodNullable<z.ZodString>;
53327
+ type: z.ZodNullable<z.ZodString>;
53328
+ model: z.ZodNullable<z.ZodString>;
53329
+ frameNumber: z.ZodNullable<z.ZodString>;
53330
+ url: z.ZodNullable<z.ZodString>;
53331
+ marketPrice: z.ZodNullable<z.ZodString>;
53332
+ marketPriceCurrency: z.ZodNullable<z.ZodString>;
53333
+ }, z.core.$strip>;
53334
+ location: z.ZodDiscriminatedUnion<[
53335
+ z.ZodObject<{
53336
+ latitude: z.ZodNumber;
53337
+ longitude: z.ZodNumber;
53338
+ accuracy: z.ZodNullable<z.ZodNumber>;
53339
+ source: z.ZodNullable<z.ZodString>;
53340
+ observedAt: z.ZodNullable<z.ZodISODateTime>;
53341
+ state: z.ZodLiteral<"available">;
53342
+ }, z.core.$strip>,
53343
+ z.ZodObject<{
53344
+ state: z.ZodLiteral<"unavailable">;
53345
+ reason: z.ZodEnum<{
53346
+ invalid: "invalid";
53347
+ not_observed: "not_observed";
53348
+ not_assigned: "not_assigned";
53349
+ }>;
53350
+ }, z.core.$strip>
53351
+ ], "state">;
53352
+ readIssues: z.ZodArray<z.ZodObject<{
53353
+ path: z.ZodString;
53354
+ code: z.ZodLiteral<"invalid_stored_value">;
53355
+ }, z.core.$strip>>;
53356
+ updatedAt: z.ZodISODateTime;
53357
+ preferences: z.ZodObject<{
53358
+ movementAlerts: z.ZodBoolean;
53359
+ }, z.core.$strip>;
53360
+ capabilities: z.ZodObject<{
53361
+ firmwareUpdates: z.ZodBoolean;
53362
+ factoryResetReports: z.ZodBoolean;
53363
+ }, z.core.$strip>;
53364
+ membership: z.ZodObject<{
53365
+ accountId: z.ZodString;
53366
+ activeMemberCount: z.ZodInt;
53367
+ }, z.core.$strip>;
53368
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
53369
+ readonly invalid: {
53370
+ readonly status: 400;
53371
+ readonly data: z.ZodType<{
53372
+ traceId: string;
53373
+ recovery: {
53374
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
53375
+ } | {
53376
+ action: "read_operation";
53377
+ operation: {
53378
+ kind: "command";
53379
+ serialNumber: string;
53380
+ idempotencyKey: string;
53381
+ } | {
53382
+ kind: "firmware";
53383
+ serialNumber: string;
53384
+ updateId: string;
53385
+ } | {
53386
+ kind: "bluetooth_firmware";
53387
+ deviceId: string;
53388
+ updateId: string;
53389
+ } | {
53390
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
53391
+ deviceId: string;
53392
+ requestId: string;
53393
+ } | {
53394
+ kind: "support";
53395
+ requestId: string;
53396
+ };
53397
+ };
53398
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
53399
+ currentRevision?: string | undefined;
53400
+ retryAfterSeconds?: number | undefined;
53401
+ }, unknown, z.core.$ZodTypeInternals<{
53402
+ traceId: string;
53403
+ recovery: {
53404
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
53405
+ } | {
53406
+ action: "read_operation";
53407
+ operation: {
53408
+ kind: "command";
53409
+ serialNumber: string;
53410
+ idempotencyKey: string;
53411
+ } | {
53412
+ kind: "firmware";
53413
+ serialNumber: string;
53414
+ updateId: string;
53415
+ } | {
53416
+ kind: "bluetooth_firmware";
53417
+ deviceId: string;
53418
+ updateId: string;
53419
+ } | {
53420
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
53421
+ deviceId: string;
53422
+ requestId: string;
53423
+ } | {
53424
+ kind: "support";
53425
+ requestId: string;
53426
+ };
53427
+ };
53428
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
53429
+ currentRevision?: string | undefined;
53430
+ retryAfterSeconds?: number | undefined;
53431
+ }, unknown>>;
53432
+ };
53433
+ readonly unauthenticated: {
53434
+ readonly status: 401;
53435
+ readonly data: z.ZodType<{
53436
+ traceId: string;
53437
+ recovery: {
53438
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
53439
+ } | {
53440
+ action: "read_operation";
53441
+ operation: {
53442
+ kind: "command";
53443
+ serialNumber: string;
53444
+ idempotencyKey: string;
53445
+ } | {
53446
+ kind: "firmware";
53447
+ serialNumber: string;
53448
+ updateId: string;
53449
+ } | {
53450
+ kind: "bluetooth_firmware";
53451
+ deviceId: string;
53452
+ updateId: string;
53453
+ } | {
53454
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
53455
+ deviceId: string;
53456
+ requestId: string;
53457
+ } | {
53458
+ kind: "support";
53459
+ requestId: string;
53460
+ };
53461
+ };
53462
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
53463
+ currentRevision?: string | undefined;
53464
+ retryAfterSeconds?: number | undefined;
53465
+ }, unknown, z.core.$ZodTypeInternals<{
53466
+ traceId: string;
53467
+ recovery: {
53468
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
53469
+ } | {
53470
+ action: "read_operation";
53471
+ operation: {
53472
+ kind: "command";
53473
+ serialNumber: string;
53474
+ idempotencyKey: string;
53475
+ } | {
53476
+ kind: "firmware";
53477
+ serialNumber: string;
53478
+ updateId: string;
53479
+ } | {
53480
+ kind: "bluetooth_firmware";
53481
+ deviceId: string;
53482
+ updateId: string;
53483
+ } | {
53484
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
53485
+ deviceId: string;
53486
+ requestId: string;
53487
+ } | {
53488
+ kind: "support";
53489
+ requestId: string;
53490
+ };
53491
+ };
53492
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
53493
+ currentRevision?: string | undefined;
53494
+ retryAfterSeconds?: number | undefined;
53495
+ }, unknown>>;
53496
+ };
53497
+ readonly forbidden: {
53498
+ readonly status: 403;
53499
+ readonly data: z.ZodType<{
53500
+ traceId: string;
53501
+ recovery: {
53502
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
53503
+ } | {
53504
+ action: "read_operation";
53505
+ operation: {
53506
+ kind: "command";
53507
+ serialNumber: string;
53508
+ idempotencyKey: string;
53509
+ } | {
53510
+ kind: "firmware";
53511
+ serialNumber: string;
53512
+ updateId: string;
53513
+ } | {
53514
+ kind: "bluetooth_firmware";
53515
+ deviceId: string;
53516
+ updateId: string;
53517
+ } | {
53518
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
53519
+ deviceId: string;
53520
+ requestId: string;
53521
+ } | {
53522
+ kind: "support";
53523
+ requestId: string;
53524
+ };
53525
+ };
53526
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
53527
+ currentRevision?: string | undefined;
53528
+ retryAfterSeconds?: number | undefined;
53529
+ }, unknown, z.core.$ZodTypeInternals<{
53530
+ traceId: string;
53531
+ recovery: {
53532
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
53533
+ } | {
53534
+ action: "read_operation";
53535
+ operation: {
53536
+ kind: "command";
53537
+ serialNumber: string;
53538
+ idempotencyKey: string;
53539
+ } | {
53540
+ kind: "firmware";
53541
+ serialNumber: string;
53542
+ updateId: string;
53543
+ } | {
53544
+ kind: "bluetooth_firmware";
53545
+ deviceId: string;
53546
+ updateId: string;
53547
+ } | {
53548
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
53549
+ deviceId: string;
53550
+ requestId: string;
53551
+ } | {
53552
+ kind: "support";
53553
+ requestId: string;
53554
+ };
53555
+ };
53556
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
53557
+ currentRevision?: string | undefined;
53558
+ retryAfterSeconds?: number | undefined;
53559
+ }, unknown>>;
53560
+ };
53561
+ readonly not_found: {
53562
+ readonly status: 404;
53563
+ readonly data: z.ZodType<{
53564
+ traceId: string;
53565
+ recovery: {
53566
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
53567
+ } | {
53568
+ action: "read_operation";
53569
+ operation: {
53570
+ kind: "command";
53571
+ serialNumber: string;
53572
+ idempotencyKey: string;
53573
+ } | {
53574
+ kind: "firmware";
53575
+ serialNumber: string;
53576
+ updateId: string;
53577
+ } | {
53578
+ kind: "bluetooth_firmware";
53579
+ deviceId: string;
53580
+ updateId: string;
53581
+ } | {
53582
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
53583
+ deviceId: string;
53584
+ requestId: string;
53585
+ } | {
53586
+ kind: "support";
53587
+ requestId: string;
53588
+ };
53589
+ };
53590
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
53591
+ currentRevision?: string | undefined;
53592
+ retryAfterSeconds?: number | undefined;
53593
+ }, unknown, z.core.$ZodTypeInternals<{
53594
+ traceId: string;
53595
+ recovery: {
53596
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
53597
+ } | {
53598
+ action: "read_operation";
53599
+ operation: {
53600
+ kind: "command";
53601
+ serialNumber: string;
53602
+ idempotencyKey: string;
53603
+ } | {
53604
+ kind: "firmware";
53605
+ serialNumber: string;
53606
+ updateId: string;
53607
+ } | {
53608
+ kind: "bluetooth_firmware";
53609
+ deviceId: string;
53610
+ updateId: string;
53611
+ } | {
53612
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
53613
+ deviceId: string;
53614
+ requestId: string;
53615
+ } | {
53616
+ kind: "support";
53617
+ requestId: string;
53618
+ };
53619
+ };
53620
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
53621
+ currentRevision?: string | undefined;
53622
+ retryAfterSeconds?: number | undefined;
53623
+ }, unknown>>;
53624
+ };
53625
+ readonly conflict: {
53626
+ readonly status: 409;
53627
+ readonly data: z.ZodType<{
53628
+ traceId: string;
53629
+ recovery: {
53630
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
53631
+ } | {
53632
+ action: "read_operation";
53633
+ operation: {
53634
+ kind: "command";
53635
+ serialNumber: string;
53636
+ idempotencyKey: string;
53637
+ } | {
53638
+ kind: "firmware";
53639
+ serialNumber: string;
53640
+ updateId: string;
53641
+ } | {
53642
+ kind: "bluetooth_firmware";
53643
+ deviceId: string;
53644
+ updateId: string;
53645
+ } | {
53646
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
53647
+ deviceId: string;
53648
+ requestId: string;
53649
+ } | {
53650
+ kind: "support";
53651
+ requestId: string;
53652
+ };
53653
+ };
53654
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
53655
+ currentRevision?: string | undefined;
53656
+ retryAfterSeconds?: number | undefined;
53657
+ }, unknown, z.core.$ZodTypeInternals<{
53658
+ traceId: string;
53659
+ recovery: {
53660
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
53661
+ } | {
53662
+ action: "read_operation";
53663
+ operation: {
53664
+ kind: "command";
53665
+ serialNumber: string;
53666
+ idempotencyKey: string;
53667
+ } | {
53668
+ kind: "firmware";
53669
+ serialNumber: string;
53670
+ updateId: string;
53671
+ } | {
53672
+ kind: "bluetooth_firmware";
53673
+ deviceId: string;
53674
+ updateId: string;
53675
+ } | {
53676
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
53677
+ deviceId: string;
53678
+ requestId: string;
53679
+ } | {
53680
+ kind: "support";
53681
+ requestId: string;
53682
+ };
53683
+ };
53684
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
53685
+ currentRevision?: string | undefined;
53686
+ retryAfterSeconds?: number | undefined;
53687
+ }, unknown>>;
53688
+ };
53689
+ readonly rate_limited: {
53690
+ readonly status: 429;
53691
+ readonly data: z.ZodType<{
53692
+ traceId: string;
53693
+ recovery: {
53694
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
53695
+ } | {
53696
+ action: "read_operation";
53697
+ operation: {
53698
+ kind: "command";
53699
+ serialNumber: string;
53700
+ idempotencyKey: string;
53701
+ } | {
53702
+ kind: "firmware";
53703
+ serialNumber: string;
53704
+ updateId: string;
53705
+ } | {
53706
+ kind: "bluetooth_firmware";
53707
+ deviceId: string;
53708
+ updateId: string;
53709
+ } | {
53710
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
53711
+ deviceId: string;
53712
+ requestId: string;
53713
+ } | {
53714
+ kind: "support";
53715
+ requestId: string;
53716
+ };
53717
+ };
53718
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
53719
+ currentRevision?: string | undefined;
53720
+ retryAfterSeconds?: number | undefined;
53721
+ }, unknown, z.core.$ZodTypeInternals<{
53722
+ traceId: string;
53723
+ recovery: {
53724
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
53725
+ } | {
53726
+ action: "read_operation";
53727
+ operation: {
53728
+ kind: "command";
53729
+ serialNumber: string;
53730
+ idempotencyKey: string;
53731
+ } | {
53732
+ kind: "firmware";
53733
+ serialNumber: string;
53734
+ updateId: string;
53735
+ } | {
53736
+ kind: "bluetooth_firmware";
53737
+ deviceId: string;
53738
+ updateId: string;
53739
+ } | {
53740
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
53741
+ deviceId: string;
53742
+ requestId: string;
53743
+ } | {
53744
+ kind: "support";
53745
+ requestId: string;
53746
+ };
53747
+ };
53748
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
53749
+ currentRevision?: string | undefined;
53750
+ retryAfterSeconds?: number | undefined;
53751
+ }, unknown>>;
53752
+ };
53753
+ readonly stored_data_invalid: {
53754
+ readonly status: 503;
53755
+ readonly data: z.ZodType<{
53756
+ traceId: string;
53757
+ recovery: {
53758
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
53759
+ } | {
53760
+ action: "read_operation";
53761
+ operation: {
53762
+ kind: "command";
53763
+ serialNumber: string;
53764
+ idempotencyKey: string;
53765
+ } | {
53766
+ kind: "firmware";
53767
+ serialNumber: string;
53768
+ updateId: string;
53769
+ } | {
53770
+ kind: "bluetooth_firmware";
53771
+ deviceId: string;
53772
+ updateId: string;
53773
+ } | {
53774
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
53775
+ deviceId: string;
53776
+ requestId: string;
53777
+ } | {
53778
+ kind: "support";
53779
+ requestId: string;
53780
+ };
53781
+ };
53782
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
53783
+ currentRevision?: string | undefined;
53784
+ retryAfterSeconds?: number | undefined;
53785
+ }, unknown, z.core.$ZodTypeInternals<{
53786
+ traceId: string;
53787
+ recovery: {
53788
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
53789
+ } | {
53790
+ action: "read_operation";
53791
+ operation: {
53792
+ kind: "command";
53793
+ serialNumber: string;
53794
+ idempotencyKey: string;
53795
+ } | {
53796
+ kind: "firmware";
53797
+ serialNumber: string;
53798
+ updateId: string;
53799
+ } | {
53800
+ kind: "bluetooth_firmware";
53801
+ deviceId: string;
53802
+ updateId: string;
53803
+ } | {
53804
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
53805
+ deviceId: string;
53806
+ requestId: string;
53807
+ } | {
53808
+ kind: "support";
53809
+ requestId: string;
53810
+ };
53811
+ };
53812
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
53813
+ currentRevision?: string | undefined;
53814
+ retryAfterSeconds?: number | undefined;
53815
+ }, unknown>>;
53816
+ };
53817
+ readonly service_unavailable: {
53818
+ readonly status: 503;
53819
+ readonly data: z.ZodType<{
53820
+ traceId: string;
53821
+ recovery: {
53822
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
53823
+ } | {
53824
+ action: "read_operation";
53825
+ operation: {
53826
+ kind: "command";
53827
+ serialNumber: string;
53828
+ idempotencyKey: string;
53829
+ } | {
53830
+ kind: "firmware";
53831
+ serialNumber: string;
53832
+ updateId: string;
53833
+ } | {
53834
+ kind: "bluetooth_firmware";
53835
+ deviceId: string;
53836
+ updateId: string;
53837
+ } | {
53838
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
53839
+ deviceId: string;
53840
+ requestId: string;
53841
+ } | {
53842
+ kind: "support";
53843
+ requestId: string;
53844
+ };
53845
+ };
53846
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
53847
+ currentRevision?: string | undefined;
53848
+ retryAfterSeconds?: number | undefined;
53849
+ }, unknown, z.core.$ZodTypeInternals<{
53850
+ traceId: string;
53851
+ recovery: {
53852
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
53853
+ } | {
53854
+ action: "read_operation";
53855
+ operation: {
53856
+ kind: "command";
53857
+ serialNumber: string;
53858
+ idempotencyKey: string;
53859
+ } | {
53860
+ kind: "firmware";
53861
+ serialNumber: string;
53862
+ updateId: string;
53863
+ } | {
53864
+ kind: "bluetooth_firmware";
53865
+ deviceId: string;
53866
+ updateId: string;
53867
+ } | {
53868
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
53869
+ deviceId: string;
53870
+ requestId: string;
53871
+ } | {
53872
+ kind: "support";
53873
+ requestId: string;
53874
+ };
53875
+ };
53876
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
53877
+ currentRevision?: string | undefined;
53878
+ retryAfterSeconds?: number | undefined;
53879
+ }, unknown>>;
53880
+ };
53881
+ readonly read_unavailable: {
53882
+ readonly status: 503;
53883
+ readonly data: z.ZodType<{
53884
+ traceId: string;
53885
+ recovery: {
53886
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
53887
+ } | {
53888
+ action: "read_operation";
53889
+ operation: {
53890
+ kind: "command";
53891
+ serialNumber: string;
53892
+ idempotencyKey: string;
53893
+ } | {
53894
+ kind: "firmware";
53895
+ serialNumber: string;
53896
+ updateId: string;
53897
+ } | {
53898
+ kind: "bluetooth_firmware";
53899
+ deviceId: string;
53900
+ updateId: string;
53901
+ } | {
53902
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
53903
+ deviceId: string;
53904
+ requestId: string;
53905
+ } | {
53906
+ kind: "support";
53907
+ requestId: string;
53908
+ };
53909
+ };
53910
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
53911
+ currentRevision?: string | undefined;
53912
+ retryAfterSeconds?: number | undefined;
53913
+ }, unknown, z.core.$ZodTypeInternals<{
53914
+ traceId: string;
53915
+ recovery: {
53916
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
53917
+ } | {
53918
+ action: "read_operation";
53919
+ operation: {
53920
+ kind: "command";
53921
+ serialNumber: string;
53922
+ idempotencyKey: string;
53923
+ } | {
53924
+ kind: "firmware";
53925
+ serialNumber: string;
53926
+ updateId: string;
53927
+ } | {
53928
+ kind: "bluetooth_firmware";
53929
+ deviceId: string;
53930
+ updateId: string;
53931
+ } | {
53932
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
53933
+ deviceId: string;
53934
+ requestId: string;
53935
+ } | {
53936
+ kind: "support";
53937
+ requestId: string;
53938
+ };
53939
+ };
53940
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
53941
+ currentRevision?: string | undefined;
53942
+ retryAfterSeconds?: number | undefined;
53943
+ }, unknown>>;
53944
+ };
53945
+ readonly stream_unavailable: {
53946
+ readonly status: 503;
53947
+ readonly data: z.ZodType<{
53948
+ traceId: string;
53949
+ recovery: {
53950
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
53951
+ } | {
53952
+ action: "read_operation";
53953
+ operation: {
53954
+ kind: "command";
53955
+ serialNumber: string;
53956
+ idempotencyKey: string;
53957
+ } | {
53958
+ kind: "firmware";
53959
+ serialNumber: string;
53960
+ updateId: string;
53961
+ } | {
53962
+ kind: "bluetooth_firmware";
53963
+ deviceId: string;
53964
+ updateId: string;
53965
+ } | {
53966
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
53967
+ deviceId: string;
53968
+ requestId: string;
53969
+ } | {
53970
+ kind: "support";
53971
+ requestId: string;
53972
+ };
53973
+ };
53974
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
53975
+ currentRevision?: string | undefined;
53976
+ retryAfterSeconds?: number | undefined;
53977
+ }, unknown, z.core.$ZodTypeInternals<{
53978
+ traceId: string;
53979
+ recovery: {
53980
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
53981
+ } | {
53982
+ action: "read_operation";
53983
+ operation: {
53984
+ kind: "command";
53985
+ serialNumber: string;
53986
+ idempotencyKey: string;
53987
+ } | {
53988
+ kind: "firmware";
53989
+ serialNumber: string;
53990
+ updateId: string;
53991
+ } | {
53992
+ kind: "bluetooth_firmware";
53993
+ deviceId: string;
53994
+ updateId: string;
53995
+ } | {
53996
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
53997
+ deviceId: string;
53998
+ requestId: string;
53999
+ } | {
54000
+ kind: "support";
54001
+ requestId: string;
54002
+ };
54003
+ };
54004
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54005
+ currentRevision?: string | undefined;
54006
+ retryAfterSeconds?: number | undefined;
54007
+ }, unknown>>;
54008
+ };
54009
+ readonly payload_too_large: {
54010
+ readonly status: 413;
54011
+ readonly data: z.ZodType<{
54012
+ traceId: string;
54013
+ recovery: {
54014
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54015
+ } | {
54016
+ action: "read_operation";
54017
+ operation: {
54018
+ kind: "command";
54019
+ serialNumber: string;
54020
+ idempotencyKey: string;
54021
+ } | {
54022
+ kind: "firmware";
54023
+ serialNumber: string;
54024
+ updateId: string;
54025
+ } | {
54026
+ kind: "bluetooth_firmware";
54027
+ deviceId: string;
54028
+ updateId: string;
54029
+ } | {
54030
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54031
+ deviceId: string;
54032
+ requestId: string;
54033
+ } | {
54034
+ kind: "support";
54035
+ requestId: string;
54036
+ };
54037
+ };
54038
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54039
+ currentRevision?: string | undefined;
54040
+ retryAfterSeconds?: number | undefined;
54041
+ }, unknown, z.core.$ZodTypeInternals<{
54042
+ traceId: string;
54043
+ recovery: {
54044
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54045
+ } | {
54046
+ action: "read_operation";
54047
+ operation: {
54048
+ kind: "command";
54049
+ serialNumber: string;
54050
+ idempotencyKey: string;
54051
+ } | {
54052
+ kind: "firmware";
54053
+ serialNumber: string;
54054
+ updateId: string;
54055
+ } | {
54056
+ kind: "bluetooth_firmware";
54057
+ deviceId: string;
54058
+ updateId: string;
54059
+ } | {
54060
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54061
+ deviceId: string;
54062
+ requestId: string;
54063
+ } | {
54064
+ kind: "support";
54065
+ requestId: string;
54066
+ };
54067
+ };
54068
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54069
+ currentRevision?: string | undefined;
54070
+ retryAfterSeconds?: number | undefined;
54071
+ }, unknown>>;
54072
+ };
54073
+ readonly request_timeout: {
54074
+ readonly status: 503;
54075
+ readonly data: z.ZodType<{
54076
+ traceId: string;
54077
+ recovery: {
54078
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54079
+ } | {
54080
+ action: "read_operation";
54081
+ operation: {
54082
+ kind: "command";
54083
+ serialNumber: string;
54084
+ idempotencyKey: string;
54085
+ } | {
54086
+ kind: "firmware";
54087
+ serialNumber: string;
54088
+ updateId: string;
54089
+ } | {
54090
+ kind: "bluetooth_firmware";
54091
+ deviceId: string;
54092
+ updateId: string;
54093
+ } | {
54094
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54095
+ deviceId: string;
54096
+ requestId: string;
54097
+ } | {
54098
+ kind: "support";
54099
+ requestId: string;
54100
+ };
54101
+ };
54102
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54103
+ currentRevision?: string | undefined;
54104
+ retryAfterSeconds?: number | undefined;
54105
+ }, unknown, z.core.$ZodTypeInternals<{
54106
+ traceId: string;
54107
+ recovery: {
54108
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54109
+ } | {
54110
+ action: "read_operation";
54111
+ operation: {
54112
+ kind: "command";
54113
+ serialNumber: string;
54114
+ idempotencyKey: string;
54115
+ } | {
54116
+ kind: "firmware";
54117
+ serialNumber: string;
54118
+ updateId: string;
54119
+ } | {
54120
+ kind: "bluetooth_firmware";
54121
+ deviceId: string;
54122
+ updateId: string;
54123
+ } | {
54124
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54125
+ deviceId: string;
54126
+ requestId: string;
54127
+ } | {
54128
+ kind: "support";
54129
+ requestId: string;
54130
+ };
54131
+ };
54132
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54133
+ currentRevision?: string | undefined;
54134
+ retryAfterSeconds?: number | undefined;
54135
+ }, unknown>>;
54136
+ };
54137
+ readonly operation_unconfirmed: {
54138
+ readonly status: 503;
54139
+ readonly data: z.ZodType<{
54140
+ traceId: string;
54141
+ recovery: {
54142
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54143
+ } | {
54144
+ action: "read_operation";
54145
+ operation: {
54146
+ kind: "command";
54147
+ serialNumber: string;
54148
+ idempotencyKey: string;
54149
+ } | {
54150
+ kind: "firmware";
54151
+ serialNumber: string;
54152
+ updateId: string;
54153
+ } | {
54154
+ kind: "bluetooth_firmware";
54155
+ deviceId: string;
54156
+ updateId: string;
54157
+ } | {
54158
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54159
+ deviceId: string;
54160
+ requestId: string;
54161
+ } | {
54162
+ kind: "support";
54163
+ requestId: string;
54164
+ };
54165
+ };
54166
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54167
+ currentRevision?: string | undefined;
54168
+ retryAfterSeconds?: number | undefined;
54169
+ }, unknown, z.core.$ZodTypeInternals<{
54170
+ traceId: string;
54171
+ recovery: {
54172
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54173
+ } | {
54174
+ action: "read_operation";
54175
+ operation: {
54176
+ kind: "command";
54177
+ serialNumber: string;
54178
+ idempotencyKey: string;
54179
+ } | {
54180
+ kind: "firmware";
54181
+ serialNumber: string;
54182
+ updateId: string;
54183
+ } | {
54184
+ kind: "bluetooth_firmware";
54185
+ deviceId: string;
54186
+ updateId: string;
54187
+ } | {
54188
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54189
+ deviceId: string;
54190
+ requestId: string;
54191
+ } | {
54192
+ kind: "support";
54193
+ requestId: string;
54194
+ };
54195
+ };
54196
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54197
+ currentRevision?: string | undefined;
54198
+ retryAfterSeconds?: number | undefined;
54199
+ }, unknown>>;
54200
+ };
54201
+ readonly directory_unavailable: {
54202
+ readonly status: 503;
54203
+ readonly data: z.ZodType<{
54204
+ traceId: string;
54205
+ recovery: {
54206
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54207
+ } | {
54208
+ action: "read_operation";
54209
+ operation: {
54210
+ kind: "command";
54211
+ serialNumber: string;
54212
+ idempotencyKey: string;
54213
+ } | {
54214
+ kind: "firmware";
54215
+ serialNumber: string;
54216
+ updateId: string;
54217
+ } | {
54218
+ kind: "bluetooth_firmware";
54219
+ deviceId: string;
54220
+ updateId: string;
54221
+ } | {
54222
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54223
+ deviceId: string;
54224
+ requestId: string;
54225
+ } | {
54226
+ kind: "support";
54227
+ requestId: string;
54228
+ };
54229
+ };
54230
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54231
+ currentRevision?: string | undefined;
54232
+ retryAfterSeconds?: number | undefined;
54233
+ }, unknown, z.core.$ZodTypeInternals<{
54234
+ traceId: string;
54235
+ recovery: {
54236
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54237
+ } | {
54238
+ action: "read_operation";
54239
+ operation: {
54240
+ kind: "command";
54241
+ serialNumber: string;
54242
+ idempotencyKey: string;
54243
+ } | {
54244
+ kind: "firmware";
54245
+ serialNumber: string;
54246
+ updateId: string;
54247
+ } | {
54248
+ kind: "bluetooth_firmware";
54249
+ deviceId: string;
54250
+ updateId: string;
54251
+ } | {
54252
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54253
+ deviceId: string;
54254
+ requestId: string;
54255
+ } | {
54256
+ kind: "support";
54257
+ requestId: string;
54258
+ };
54259
+ };
54260
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54261
+ currentRevision?: string | undefined;
54262
+ retryAfterSeconds?: number | undefined;
54263
+ }, unknown>>;
54264
+ };
54265
+ }>, Record<never, never>>;
54266
+ watchDetails: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
54267
+ deviceId: z.ZodString;
54268
+ }, z.core.$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
54269
+ id: string;
54270
+ firmware: {
54271
+ lte: string | null;
54272
+ bluetooth: string | null;
54273
+ battery: string | null;
54274
+ modem: string | null;
54275
+ mtk: string | null;
54276
+ ti: string | null;
54277
+ buildNumber: number | null;
54278
+ } | null;
54279
+ subscription: {
54280
+ state: "unavailable";
54281
+ reason: "invalid" | "not_observed" | "not_assigned";
54282
+ } | {
54283
+ id: string;
54284
+ activity: "unknown" | "active" | "inactive";
54285
+ isDemo: boolean;
54286
+ status: string | null;
54287
+ country: string | null;
54288
+ endsAt: string | null;
54289
+ state: "available";
54290
+ };
54291
+ createdAt: string;
54292
+ revision: string;
54293
+ battery: {
54294
+ state: "unavailable";
54295
+ reason: "invalid" | "not_observed" | "not_assigned";
54296
+ } | {
54297
+ level: number | null;
54298
+ isCharging: boolean | null;
54299
+ levelUpdatedAt: string | null;
54300
+ chargingObservedAt: string | null;
54301
+ observation: {
54302
+ observedAt: string | null;
54303
+ receivedAt: string | null;
54304
+ } | null;
54305
+ source: string | null;
54306
+ state: "available";
54307
+ };
54308
+ identity: {
54309
+ serialNumber: string | null;
54310
+ } | null;
54311
+ generation: number | null;
54312
+ bike: {
54313
+ revision: string;
54314
+ name: string | null;
54315
+ brand: string | null;
54316
+ type: string | null;
54317
+ model: string | null;
54318
+ frameNumber: string | null;
54319
+ url: string | null;
54320
+ marketPrice: string | null;
54321
+ marketPriceCurrency: string | null;
54322
+ };
54323
+ location: {
54324
+ state: "unavailable";
54325
+ reason: "invalid" | "not_observed" | "not_assigned";
54326
+ } | {
54327
+ latitude: number;
54328
+ longitude: number;
54329
+ accuracy: number | null;
54330
+ source: string | null;
54331
+ observedAt: string | null;
54332
+ state: "available";
54333
+ };
54334
+ readIssues: {
54335
+ path: string;
54336
+ code: "invalid_stored_value";
54337
+ }[];
54338
+ updatedAt: string;
54339
+ preferences: {
54340
+ movementAlerts: boolean;
54341
+ };
54342
+ capabilities: {
54343
+ firmwareUpdates: boolean;
54344
+ factoryResetReports: boolean;
54345
+ };
54346
+ membership: {
54347
+ accountId: string;
54348
+ activeMemberCount: number;
54349
+ };
54350
+ }, unknown, void>, import("@orpc/shared").AsyncIteratorClass<{
54351
+ id: string;
54352
+ firmware: {
54353
+ lte: string | null;
54354
+ bluetooth: string | null;
54355
+ battery: string | null;
54356
+ modem: string | null;
54357
+ mtk: string | null;
54358
+ ti: string | null;
54359
+ buildNumber: number | null;
54360
+ } | null;
54361
+ subscription: {
54362
+ state: "unavailable";
54363
+ reason: "invalid" | "not_observed" | "not_assigned";
54364
+ } | {
54365
+ id: string;
54366
+ activity: "unknown" | "active" | "inactive";
54367
+ isDemo: boolean;
54368
+ status: string | null;
54369
+ country: string | null;
54370
+ endsAt: string | null;
54371
+ state: "available";
54372
+ };
54373
+ createdAt: string;
54374
+ revision: string;
54375
+ battery: {
54376
+ state: "unavailable";
54377
+ reason: "invalid" | "not_observed" | "not_assigned";
54378
+ } | {
54379
+ level: number | null;
54380
+ isCharging: boolean | null;
54381
+ levelUpdatedAt: string | null;
54382
+ chargingObservedAt: string | null;
54383
+ observation: {
54384
+ observedAt: string | null;
54385
+ receivedAt: string | null;
54386
+ } | null;
54387
+ source: string | null;
54388
+ state: "available";
54389
+ };
54390
+ identity: {
54391
+ serialNumber: string | null;
54392
+ } | null;
54393
+ generation: number | null;
54394
+ bike: {
54395
+ revision: string;
54396
+ name: string | null;
54397
+ brand: string | null;
54398
+ type: string | null;
54399
+ model: string | null;
54400
+ frameNumber: string | null;
54401
+ url: string | null;
54402
+ marketPrice: string | null;
54403
+ marketPriceCurrency: string | null;
54404
+ };
54405
+ location: {
54406
+ state: "unavailable";
54407
+ reason: "invalid" | "not_observed" | "not_assigned";
54408
+ } | {
54409
+ latitude: number;
54410
+ longitude: number;
54411
+ accuracy: number | null;
54412
+ source: string | null;
54413
+ observedAt: string | null;
54414
+ state: "available";
54415
+ };
54416
+ readIssues: {
54417
+ path: string;
54418
+ code: "invalid_stored_value";
54419
+ }[];
54420
+ updatedAt: string;
54421
+ preferences: {
54422
+ movementAlerts: boolean;
54423
+ };
54424
+ capabilities: {
54425
+ firmwareUpdates: boolean;
54426
+ factoryResetReports: boolean;
54427
+ };
54428
+ membership: {
54429
+ accountId: string;
54430
+ activeMemberCount: number;
54431
+ };
54432
+ }, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
54433
+ readonly invalid: {
54434
+ readonly status: 400;
54435
+ readonly data: z.ZodType<{
54436
+ traceId: string;
54437
+ recovery: {
54438
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54439
+ } | {
54440
+ action: "read_operation";
54441
+ operation: {
54442
+ kind: "command";
54443
+ serialNumber: string;
54444
+ idempotencyKey: string;
54445
+ } | {
54446
+ kind: "firmware";
54447
+ serialNumber: string;
54448
+ updateId: string;
54449
+ } | {
54450
+ kind: "bluetooth_firmware";
54451
+ deviceId: string;
54452
+ updateId: string;
54453
+ } | {
54454
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54455
+ deviceId: string;
54456
+ requestId: string;
54457
+ } | {
54458
+ kind: "support";
54459
+ requestId: string;
54460
+ };
54461
+ };
54462
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54463
+ currentRevision?: string | undefined;
54464
+ retryAfterSeconds?: number | undefined;
54465
+ }, unknown, z.core.$ZodTypeInternals<{
54466
+ traceId: string;
54467
+ recovery: {
54468
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54469
+ } | {
54470
+ action: "read_operation";
54471
+ operation: {
54472
+ kind: "command";
54473
+ serialNumber: string;
54474
+ idempotencyKey: string;
54475
+ } | {
54476
+ kind: "firmware";
54477
+ serialNumber: string;
54478
+ updateId: string;
54479
+ } | {
54480
+ kind: "bluetooth_firmware";
54481
+ deviceId: string;
54482
+ updateId: string;
54483
+ } | {
54484
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54485
+ deviceId: string;
54486
+ requestId: string;
54487
+ } | {
54488
+ kind: "support";
54489
+ requestId: string;
54490
+ };
54491
+ };
54492
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54493
+ currentRevision?: string | undefined;
54494
+ retryAfterSeconds?: number | undefined;
54495
+ }, unknown>>;
54496
+ };
54497
+ readonly unauthenticated: {
54498
+ readonly status: 401;
54499
+ readonly data: z.ZodType<{
54500
+ traceId: string;
54501
+ recovery: {
54502
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54503
+ } | {
54504
+ action: "read_operation";
54505
+ operation: {
54506
+ kind: "command";
54507
+ serialNumber: string;
54508
+ idempotencyKey: string;
54509
+ } | {
54510
+ kind: "firmware";
54511
+ serialNumber: string;
54512
+ updateId: string;
54513
+ } | {
54514
+ kind: "bluetooth_firmware";
54515
+ deviceId: string;
54516
+ updateId: string;
54517
+ } | {
54518
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54519
+ deviceId: string;
54520
+ requestId: string;
54521
+ } | {
54522
+ kind: "support";
54523
+ requestId: string;
54524
+ };
54525
+ };
54526
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54527
+ currentRevision?: string | undefined;
54528
+ retryAfterSeconds?: number | undefined;
54529
+ }, unknown, z.core.$ZodTypeInternals<{
54530
+ traceId: string;
54531
+ recovery: {
54532
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54533
+ } | {
54534
+ action: "read_operation";
54535
+ operation: {
54536
+ kind: "command";
54537
+ serialNumber: string;
54538
+ idempotencyKey: string;
54539
+ } | {
54540
+ kind: "firmware";
54541
+ serialNumber: string;
54542
+ updateId: string;
54543
+ } | {
54544
+ kind: "bluetooth_firmware";
54545
+ deviceId: string;
54546
+ updateId: string;
54547
+ } | {
54548
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54549
+ deviceId: string;
54550
+ requestId: string;
54551
+ } | {
54552
+ kind: "support";
54553
+ requestId: string;
54554
+ };
54555
+ };
54556
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54557
+ currentRevision?: string | undefined;
54558
+ retryAfterSeconds?: number | undefined;
54559
+ }, unknown>>;
54560
+ };
54561
+ readonly forbidden: {
54562
+ readonly status: 403;
54563
+ readonly data: z.ZodType<{
54564
+ traceId: string;
54565
+ recovery: {
54566
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54567
+ } | {
54568
+ action: "read_operation";
54569
+ operation: {
54570
+ kind: "command";
54571
+ serialNumber: string;
54572
+ idempotencyKey: string;
54573
+ } | {
54574
+ kind: "firmware";
54575
+ serialNumber: string;
54576
+ updateId: string;
54577
+ } | {
54578
+ kind: "bluetooth_firmware";
54579
+ deviceId: string;
54580
+ updateId: string;
54581
+ } | {
54582
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54583
+ deviceId: string;
54584
+ requestId: string;
54585
+ } | {
54586
+ kind: "support";
54587
+ requestId: string;
54588
+ };
54589
+ };
54590
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54591
+ currentRevision?: string | undefined;
54592
+ retryAfterSeconds?: number | undefined;
54593
+ }, unknown, z.core.$ZodTypeInternals<{
54594
+ traceId: string;
54595
+ recovery: {
54596
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54597
+ } | {
54598
+ action: "read_operation";
54599
+ operation: {
54600
+ kind: "command";
54601
+ serialNumber: string;
54602
+ idempotencyKey: string;
54603
+ } | {
54604
+ kind: "firmware";
54605
+ serialNumber: string;
54606
+ updateId: string;
54607
+ } | {
54608
+ kind: "bluetooth_firmware";
54609
+ deviceId: string;
54610
+ updateId: string;
54611
+ } | {
54612
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54613
+ deviceId: string;
54614
+ requestId: string;
54615
+ } | {
54616
+ kind: "support";
54617
+ requestId: string;
54618
+ };
54619
+ };
54620
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54621
+ currentRevision?: string | undefined;
54622
+ retryAfterSeconds?: number | undefined;
54623
+ }, unknown>>;
54624
+ };
54625
+ readonly not_found: {
54626
+ readonly status: 404;
54627
+ readonly data: z.ZodType<{
54628
+ traceId: string;
54629
+ recovery: {
54630
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54631
+ } | {
54632
+ action: "read_operation";
54633
+ operation: {
54634
+ kind: "command";
54635
+ serialNumber: string;
54636
+ idempotencyKey: string;
54637
+ } | {
54638
+ kind: "firmware";
54639
+ serialNumber: string;
54640
+ updateId: string;
54641
+ } | {
54642
+ kind: "bluetooth_firmware";
54643
+ deviceId: string;
54644
+ updateId: string;
54645
+ } | {
54646
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54647
+ deviceId: string;
54648
+ requestId: string;
54649
+ } | {
54650
+ kind: "support";
54651
+ requestId: string;
54652
+ };
54653
+ };
54654
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54655
+ currentRevision?: string | undefined;
54656
+ retryAfterSeconds?: number | undefined;
54657
+ }, unknown, z.core.$ZodTypeInternals<{
54658
+ traceId: string;
54659
+ recovery: {
54660
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54661
+ } | {
54662
+ action: "read_operation";
54663
+ operation: {
54664
+ kind: "command";
54665
+ serialNumber: string;
54666
+ idempotencyKey: string;
54667
+ } | {
54668
+ kind: "firmware";
54669
+ serialNumber: string;
54670
+ updateId: string;
54671
+ } | {
54672
+ kind: "bluetooth_firmware";
54673
+ deviceId: string;
54674
+ updateId: string;
54675
+ } | {
54676
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54677
+ deviceId: string;
54678
+ requestId: string;
54679
+ } | {
54680
+ kind: "support";
54681
+ requestId: string;
54682
+ };
54683
+ };
54684
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54685
+ currentRevision?: string | undefined;
54686
+ retryAfterSeconds?: number | undefined;
54687
+ }, unknown>>;
54688
+ };
54689
+ readonly conflict: {
54690
+ readonly status: 409;
54691
+ readonly data: z.ZodType<{
54692
+ traceId: string;
54693
+ recovery: {
54694
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54695
+ } | {
54696
+ action: "read_operation";
54697
+ operation: {
54698
+ kind: "command";
54699
+ serialNumber: string;
54700
+ idempotencyKey: string;
54701
+ } | {
54702
+ kind: "firmware";
54703
+ serialNumber: string;
54704
+ updateId: string;
54705
+ } | {
54706
+ kind: "bluetooth_firmware";
54707
+ deviceId: string;
54708
+ updateId: string;
54709
+ } | {
54710
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54711
+ deviceId: string;
54712
+ requestId: string;
54713
+ } | {
54714
+ kind: "support";
54715
+ requestId: string;
54716
+ };
54717
+ };
54718
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54719
+ currentRevision?: string | undefined;
54720
+ retryAfterSeconds?: number | undefined;
54721
+ }, unknown, z.core.$ZodTypeInternals<{
54722
+ traceId: string;
54723
+ recovery: {
54724
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54725
+ } | {
54726
+ action: "read_operation";
54727
+ operation: {
54728
+ kind: "command";
54729
+ serialNumber: string;
54730
+ idempotencyKey: string;
54731
+ } | {
54732
+ kind: "firmware";
54733
+ serialNumber: string;
54734
+ updateId: string;
54735
+ } | {
54736
+ kind: "bluetooth_firmware";
54737
+ deviceId: string;
54738
+ updateId: string;
54739
+ } | {
54740
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54741
+ deviceId: string;
54742
+ requestId: string;
54743
+ } | {
54744
+ kind: "support";
54745
+ requestId: string;
54746
+ };
54747
+ };
54748
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54749
+ currentRevision?: string | undefined;
54750
+ retryAfterSeconds?: number | undefined;
54751
+ }, unknown>>;
54752
+ };
54753
+ readonly rate_limited: {
54754
+ readonly status: 429;
54755
+ readonly data: z.ZodType<{
54756
+ traceId: string;
54757
+ recovery: {
54758
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54759
+ } | {
54760
+ action: "read_operation";
54761
+ operation: {
54762
+ kind: "command";
54763
+ serialNumber: string;
54764
+ idempotencyKey: string;
54765
+ } | {
54766
+ kind: "firmware";
54767
+ serialNumber: string;
54768
+ updateId: string;
54769
+ } | {
54770
+ kind: "bluetooth_firmware";
54771
+ deviceId: string;
54772
+ updateId: string;
54773
+ } | {
54774
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54775
+ deviceId: string;
54776
+ requestId: string;
54777
+ } | {
54778
+ kind: "support";
54779
+ requestId: string;
54780
+ };
54781
+ };
54782
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54783
+ currentRevision?: string | undefined;
54784
+ retryAfterSeconds?: number | undefined;
54785
+ }, unknown, z.core.$ZodTypeInternals<{
54786
+ traceId: string;
54787
+ recovery: {
54788
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54789
+ } | {
54790
+ action: "read_operation";
54791
+ operation: {
54792
+ kind: "command";
54793
+ serialNumber: string;
54794
+ idempotencyKey: string;
54795
+ } | {
54796
+ kind: "firmware";
54797
+ serialNumber: string;
54798
+ updateId: string;
54799
+ } | {
54800
+ kind: "bluetooth_firmware";
54801
+ deviceId: string;
54802
+ updateId: string;
54803
+ } | {
54804
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54805
+ deviceId: string;
54806
+ requestId: string;
54807
+ } | {
54808
+ kind: "support";
54809
+ requestId: string;
54810
+ };
54811
+ };
54812
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54813
+ currentRevision?: string | undefined;
54814
+ retryAfterSeconds?: number | undefined;
54815
+ }, unknown>>;
54816
+ };
54817
+ readonly stored_data_invalid: {
54818
+ readonly status: 503;
54819
+ readonly data: z.ZodType<{
54820
+ traceId: string;
54821
+ recovery: {
54822
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54823
+ } | {
54824
+ action: "read_operation";
54825
+ operation: {
54826
+ kind: "command";
54827
+ serialNumber: string;
54828
+ idempotencyKey: string;
54829
+ } | {
54830
+ kind: "firmware";
54831
+ serialNumber: string;
54832
+ updateId: string;
54833
+ } | {
54834
+ kind: "bluetooth_firmware";
54835
+ deviceId: string;
54836
+ updateId: string;
54837
+ } | {
54838
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54839
+ deviceId: string;
54840
+ requestId: string;
54841
+ } | {
54842
+ kind: "support";
54843
+ requestId: string;
54844
+ };
54845
+ };
54846
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54847
+ currentRevision?: string | undefined;
54848
+ retryAfterSeconds?: number | undefined;
54849
+ }, unknown, z.core.$ZodTypeInternals<{
54850
+ traceId: string;
54851
+ recovery: {
54852
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54853
+ } | {
54854
+ action: "read_operation";
54855
+ operation: {
54856
+ kind: "command";
54857
+ serialNumber: string;
54858
+ idempotencyKey: string;
54859
+ } | {
54860
+ kind: "firmware";
54861
+ serialNumber: string;
54862
+ updateId: string;
54863
+ } | {
54864
+ kind: "bluetooth_firmware";
54865
+ deviceId: string;
54866
+ updateId: string;
54867
+ } | {
54868
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54869
+ deviceId: string;
54870
+ requestId: string;
54871
+ } | {
54872
+ kind: "support";
54873
+ requestId: string;
54874
+ };
54875
+ };
54876
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54877
+ currentRevision?: string | undefined;
54878
+ retryAfterSeconds?: number | undefined;
54879
+ }, unknown>>;
54880
+ };
54881
+ readonly service_unavailable: {
54882
+ readonly status: 503;
54883
+ readonly data: z.ZodType<{
54884
+ traceId: string;
54885
+ recovery: {
54886
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54887
+ } | {
54888
+ action: "read_operation";
54889
+ operation: {
54890
+ kind: "command";
54891
+ serialNumber: string;
54892
+ idempotencyKey: string;
54893
+ } | {
54894
+ kind: "firmware";
54895
+ serialNumber: string;
54896
+ updateId: string;
54897
+ } | {
54898
+ kind: "bluetooth_firmware";
54899
+ deviceId: string;
54900
+ updateId: string;
54901
+ } | {
54902
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54903
+ deviceId: string;
54904
+ requestId: string;
54905
+ } | {
54906
+ kind: "support";
54907
+ requestId: string;
54908
+ };
54909
+ };
54910
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54911
+ currentRevision?: string | undefined;
54912
+ retryAfterSeconds?: number | undefined;
54913
+ }, unknown, z.core.$ZodTypeInternals<{
54914
+ traceId: string;
54915
+ recovery: {
54916
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54917
+ } | {
54918
+ action: "read_operation";
54919
+ operation: {
54920
+ kind: "command";
54921
+ serialNumber: string;
54922
+ idempotencyKey: string;
54923
+ } | {
54924
+ kind: "firmware";
54925
+ serialNumber: string;
54926
+ updateId: string;
54927
+ } | {
54928
+ kind: "bluetooth_firmware";
54929
+ deviceId: string;
54930
+ updateId: string;
54931
+ } | {
54932
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54933
+ deviceId: string;
54934
+ requestId: string;
54935
+ } | {
54936
+ kind: "support";
54937
+ requestId: string;
54938
+ };
54939
+ };
54940
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54941
+ currentRevision?: string | undefined;
54942
+ retryAfterSeconds?: number | undefined;
54943
+ }, unknown>>;
54944
+ };
54945
+ readonly read_unavailable: {
54946
+ readonly status: 503;
54947
+ readonly data: z.ZodType<{
54948
+ traceId: string;
54949
+ recovery: {
54950
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54951
+ } | {
54952
+ action: "read_operation";
54953
+ operation: {
54954
+ kind: "command";
54955
+ serialNumber: string;
54956
+ idempotencyKey: string;
54957
+ } | {
54958
+ kind: "firmware";
54959
+ serialNumber: string;
54960
+ updateId: string;
54961
+ } | {
54962
+ kind: "bluetooth_firmware";
54963
+ deviceId: string;
54964
+ updateId: string;
54965
+ } | {
54966
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54967
+ deviceId: string;
54968
+ requestId: string;
54969
+ } | {
54970
+ kind: "support";
54971
+ requestId: string;
54972
+ };
54973
+ };
54974
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54975
+ currentRevision?: string | undefined;
54976
+ retryAfterSeconds?: number | undefined;
54977
+ }, unknown, z.core.$ZodTypeInternals<{
54978
+ traceId: string;
54979
+ recovery: {
54980
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54981
+ } | {
54982
+ action: "read_operation";
54983
+ operation: {
54984
+ kind: "command";
54985
+ serialNumber: string;
54986
+ idempotencyKey: string;
54987
+ } | {
54988
+ kind: "firmware";
54989
+ serialNumber: string;
54990
+ updateId: string;
54991
+ } | {
54992
+ kind: "bluetooth_firmware";
54993
+ deviceId: string;
54994
+ updateId: string;
54995
+ } | {
54996
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54997
+ deviceId: string;
54998
+ requestId: string;
54999
+ } | {
55000
+ kind: "support";
55001
+ requestId: string;
55002
+ };
55003
+ };
55004
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55005
+ currentRevision?: string | undefined;
55006
+ retryAfterSeconds?: number | undefined;
55007
+ }, unknown>>;
55008
+ };
55009
+ readonly stream_unavailable: {
55010
+ readonly status: 503;
55011
+ readonly data: z.ZodType<{
55012
+ traceId: string;
55013
+ recovery: {
55014
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55015
+ } | {
55016
+ action: "read_operation";
55017
+ operation: {
55018
+ kind: "command";
55019
+ serialNumber: string;
55020
+ idempotencyKey: string;
55021
+ } | {
55022
+ kind: "firmware";
55023
+ serialNumber: string;
55024
+ updateId: string;
55025
+ } | {
55026
+ kind: "bluetooth_firmware";
55027
+ deviceId: string;
55028
+ updateId: string;
55029
+ } | {
55030
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55031
+ deviceId: string;
55032
+ requestId: string;
55033
+ } | {
55034
+ kind: "support";
55035
+ requestId: string;
55036
+ };
55037
+ };
55038
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55039
+ currentRevision?: string | undefined;
55040
+ retryAfterSeconds?: number | undefined;
55041
+ }, unknown, z.core.$ZodTypeInternals<{
55042
+ traceId: string;
55043
+ recovery: {
55044
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55045
+ } | {
55046
+ action: "read_operation";
55047
+ operation: {
55048
+ kind: "command";
55049
+ serialNumber: string;
55050
+ idempotencyKey: string;
55051
+ } | {
55052
+ kind: "firmware";
55053
+ serialNumber: string;
55054
+ updateId: string;
55055
+ } | {
55056
+ kind: "bluetooth_firmware";
55057
+ deviceId: string;
55058
+ updateId: string;
55059
+ } | {
55060
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55061
+ deviceId: string;
55062
+ requestId: string;
55063
+ } | {
55064
+ kind: "support";
55065
+ requestId: string;
55066
+ };
55067
+ };
55068
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55069
+ currentRevision?: string | undefined;
55070
+ retryAfterSeconds?: number | undefined;
55071
+ }, unknown>>;
55072
+ };
55073
+ readonly payload_too_large: {
55074
+ readonly status: 413;
55075
+ readonly data: z.ZodType<{
55076
+ traceId: string;
55077
+ recovery: {
55078
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55079
+ } | {
55080
+ action: "read_operation";
55081
+ operation: {
55082
+ kind: "command";
55083
+ serialNumber: string;
55084
+ idempotencyKey: string;
55085
+ } | {
55086
+ kind: "firmware";
55087
+ serialNumber: string;
55088
+ updateId: string;
55089
+ } | {
55090
+ kind: "bluetooth_firmware";
55091
+ deviceId: string;
55092
+ updateId: string;
55093
+ } | {
55094
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55095
+ deviceId: string;
55096
+ requestId: string;
55097
+ } | {
55098
+ kind: "support";
55099
+ requestId: string;
55100
+ };
55101
+ };
55102
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55103
+ currentRevision?: string | undefined;
55104
+ retryAfterSeconds?: number | undefined;
55105
+ }, unknown, z.core.$ZodTypeInternals<{
55106
+ traceId: string;
55107
+ recovery: {
55108
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55109
+ } | {
55110
+ action: "read_operation";
55111
+ operation: {
55112
+ kind: "command";
55113
+ serialNumber: string;
55114
+ idempotencyKey: string;
55115
+ } | {
55116
+ kind: "firmware";
55117
+ serialNumber: string;
55118
+ updateId: string;
55119
+ } | {
55120
+ kind: "bluetooth_firmware";
55121
+ deviceId: string;
55122
+ updateId: string;
55123
+ } | {
55124
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55125
+ deviceId: string;
55126
+ requestId: string;
55127
+ } | {
55128
+ kind: "support";
55129
+ requestId: string;
55130
+ };
55131
+ };
55132
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55133
+ currentRevision?: string | undefined;
55134
+ retryAfterSeconds?: number | undefined;
55135
+ }, unknown>>;
55136
+ };
55137
+ readonly request_timeout: {
55138
+ readonly status: 503;
55139
+ readonly data: z.ZodType<{
55140
+ traceId: string;
55141
+ recovery: {
55142
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55143
+ } | {
55144
+ action: "read_operation";
55145
+ operation: {
55146
+ kind: "command";
55147
+ serialNumber: string;
55148
+ idempotencyKey: string;
55149
+ } | {
55150
+ kind: "firmware";
55151
+ serialNumber: string;
55152
+ updateId: string;
55153
+ } | {
55154
+ kind: "bluetooth_firmware";
55155
+ deviceId: string;
55156
+ updateId: string;
55157
+ } | {
55158
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55159
+ deviceId: string;
55160
+ requestId: string;
55161
+ } | {
55162
+ kind: "support";
55163
+ requestId: string;
55164
+ };
55165
+ };
55166
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55167
+ currentRevision?: string | undefined;
55168
+ retryAfterSeconds?: number | undefined;
55169
+ }, unknown, z.core.$ZodTypeInternals<{
55170
+ traceId: string;
55171
+ recovery: {
55172
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55173
+ } | {
55174
+ action: "read_operation";
55175
+ operation: {
55176
+ kind: "command";
55177
+ serialNumber: string;
55178
+ idempotencyKey: string;
55179
+ } | {
55180
+ kind: "firmware";
55181
+ serialNumber: string;
55182
+ updateId: string;
55183
+ } | {
55184
+ kind: "bluetooth_firmware";
55185
+ deviceId: string;
55186
+ updateId: string;
55187
+ } | {
55188
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55189
+ deviceId: string;
55190
+ requestId: string;
55191
+ } | {
55192
+ kind: "support";
55193
+ requestId: string;
55194
+ };
55195
+ };
55196
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55197
+ currentRevision?: string | undefined;
55198
+ retryAfterSeconds?: number | undefined;
55199
+ }, unknown>>;
55200
+ };
55201
+ readonly operation_unconfirmed: {
55202
+ readonly status: 503;
55203
+ readonly data: z.ZodType<{
55204
+ traceId: string;
55205
+ recovery: {
55206
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55207
+ } | {
55208
+ action: "read_operation";
55209
+ operation: {
55210
+ kind: "command";
55211
+ serialNumber: string;
55212
+ idempotencyKey: string;
55213
+ } | {
55214
+ kind: "firmware";
55215
+ serialNumber: string;
55216
+ updateId: string;
55217
+ } | {
55218
+ kind: "bluetooth_firmware";
55219
+ deviceId: string;
55220
+ updateId: string;
55221
+ } | {
55222
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55223
+ deviceId: string;
55224
+ requestId: string;
55225
+ } | {
55226
+ kind: "support";
55227
+ requestId: string;
55228
+ };
55229
+ };
55230
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55231
+ currentRevision?: string | undefined;
55232
+ retryAfterSeconds?: number | undefined;
55233
+ }, unknown, z.core.$ZodTypeInternals<{
55234
+ traceId: string;
55235
+ recovery: {
55236
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55237
+ } | {
55238
+ action: "read_operation";
55239
+ operation: {
55240
+ kind: "command";
55241
+ serialNumber: string;
55242
+ idempotencyKey: string;
55243
+ } | {
55244
+ kind: "firmware";
55245
+ serialNumber: string;
55246
+ updateId: string;
55247
+ } | {
55248
+ kind: "bluetooth_firmware";
55249
+ deviceId: string;
55250
+ updateId: string;
55251
+ } | {
55252
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55253
+ deviceId: string;
55254
+ requestId: string;
55255
+ } | {
55256
+ kind: "support";
55257
+ requestId: string;
55258
+ };
55259
+ };
55260
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55261
+ currentRevision?: string | undefined;
55262
+ retryAfterSeconds?: number | undefined;
55263
+ }, unknown>>;
55264
+ };
55265
+ readonly directory_unavailable: {
55266
+ readonly status: 503;
55267
+ readonly data: z.ZodType<{
55268
+ traceId: string;
55269
+ recovery: {
55270
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55271
+ } | {
55272
+ action: "read_operation";
55273
+ operation: {
55274
+ kind: "command";
55275
+ serialNumber: string;
55276
+ idempotencyKey: string;
55277
+ } | {
55278
+ kind: "firmware";
55279
+ serialNumber: string;
55280
+ updateId: string;
55281
+ } | {
55282
+ kind: "bluetooth_firmware";
55283
+ deviceId: string;
55284
+ updateId: string;
55285
+ } | {
55286
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55287
+ deviceId: string;
55288
+ requestId: string;
55289
+ } | {
55290
+ kind: "support";
55291
+ requestId: string;
55292
+ };
55293
+ };
55294
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55295
+ currentRevision?: string | undefined;
55296
+ retryAfterSeconds?: number | undefined;
55297
+ }, unknown, z.core.$ZodTypeInternals<{
55298
+ traceId: string;
55299
+ recovery: {
55300
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55301
+ } | {
55302
+ action: "read_operation";
55303
+ operation: {
55304
+ kind: "command";
55305
+ serialNumber: string;
55306
+ idempotencyKey: string;
55307
+ } | {
55308
+ kind: "firmware";
55309
+ serialNumber: string;
55310
+ updateId: string;
55311
+ } | {
55312
+ kind: "bluetooth_firmware";
55313
+ deviceId: string;
55314
+ updateId: string;
55315
+ } | {
55316
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55317
+ deviceId: string;
55318
+ requestId: string;
55319
+ } | {
55320
+ kind: "support";
55321
+ requestId: string;
55322
+ };
55323
+ };
55324
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55325
+ currentRevision?: string | undefined;
55326
+ retryAfterSeconds?: number | undefined;
55327
+ }, unknown>>;
55328
+ };
55329
+ }>, Record<never, never>>;
53150
55330
  get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
53151
55331
  deviceId: z.ZodString;
53152
55332
  }, z.core.$strict>, z.ZodObject<{