@bikefinder/sdk 0.28.0 → 0.30.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;
@@ -30453,6 +30454,115 @@ export declare const tracker: z.ZodObject<{
30453
30454
  createdAt: z.ZodISODateTime;
30454
30455
  updatedAt: z.ZodISODateTime;
30455
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>;
30456
30566
  export type Tracker = z.infer<typeof tracker>;
30457
30567
  export type TrackerSummary = z.infer<typeof trackerSummary>;
30458
30568
  export type TrackerPage = z.infer<typeof trackerPage>;
@@ -30481,7 +30591,17 @@ export declare const bikeChanges: z.ZodObject<{
30481
30591
  }, z.core.$strict>;
30482
30592
  export declare const bikeEditInput: z.ZodObject<{
30483
30593
  deviceId: z.ZodString;
30484
- expectedRevision: z.ZodString;
30594
+ trackerCreatedAt: z.ZodISODateTime;
30595
+ expected: z.ZodObject<{
30596
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30597
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30598
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30599
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30600
+ frameNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30601
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30602
+ marketPrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30603
+ marketPriceCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30604
+ }, z.core.$strict>;
30485
30605
  changes: z.ZodObject<{
30486
30606
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30487
30607
  brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -30525,7 +30645,17 @@ export declare const trackerChangeContract: {
30525
30645
  bike: {
30526
30646
  edit: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
30527
30647
  deviceId: z.ZodString;
30528
- expectedRevision: z.ZodString;
30648
+ trackerCreatedAt: z.ZodISODateTime;
30649
+ expected: z.ZodObject<{
30650
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30651
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30652
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30653
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30654
+ frameNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30655
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30656
+ marketPrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30657
+ marketPriceCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30658
+ }, z.core.$strict>;
30529
30659
  changes: z.ZodObject<{
30530
30660
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30531
30661
  brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -30546,7 +30676,17 @@ export declare const trackerChangeContract: {
30546
30676
  USD: "USD";
30547
30677
  }>>>;
30548
30678
  }, z.core.$strict>;
30549
- }, z.core.$strict>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
30679
+ }, z.core.$strict>, z.ZodObject<{
30680
+ revision: z.ZodString;
30681
+ name: z.ZodNullable<z.ZodString>;
30682
+ brand: z.ZodNullable<z.ZodString>;
30683
+ type: z.ZodNullable<z.ZodString>;
30684
+ model: z.ZodNullable<z.ZodString>;
30685
+ frameNumber: z.ZodNullable<z.ZodString>;
30686
+ url: z.ZodNullable<z.ZodString>;
30687
+ marketPrice: z.ZodNullable<z.ZodString>;
30688
+ marketPriceCurrency: z.ZodNullable<z.ZodString>;
30689
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
30550
30690
  readonly invalid: {
30551
30691
  readonly status: 400;
30552
30692
  readonly data: z.ZodType<{
@@ -53116,19 +53256,10 @@ declare const trackerContract: {
53116
53256
  }, unknown>>;
53117
53257
  };
53118
53258
  }>, Record<never, never>>;
53119
- get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
53259
+ getDetails: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
53120
53260
  deviceId: z.ZodString;
53121
53261
  }, z.core.$strict>, z.ZodObject<{
53122
- identity: z.ZodNullable<z.ZodObject<{
53123
- serialNumber: z.ZodNullable<z.ZodString>;
53124
- }, z.core.$strip>>;
53125
- preferences: z.ZodObject<{
53126
- movementAlerts: z.ZodBoolean;
53127
- }, z.core.$strip>;
53128
- capabilities: z.ZodObject<{
53129
- firmwareUpdates: z.ZodBoolean;
53130
- factoryResetReports: z.ZodBoolean;
53131
- }, z.core.$strip>;
53262
+ id: z.ZodString;
53132
53263
  firmware: z.ZodNullable<z.ZodObject<{
53133
53264
  lte: z.ZodNullable<z.ZodString>;
53134
53265
  bluetooth: z.ZodNullable<z.ZodString>;
@@ -53138,24 +53269,31 @@ declare const trackerContract: {
53138
53269
  ti: z.ZodNullable<z.ZodString>;
53139
53270
  buildNumber: z.ZodNullable<z.ZodInt>;
53140
53271
  }, z.core.$strip>>;
53141
- members: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
53142
- active: z.ZodNullable<z.ZodBoolean>;
53143
- displayName: z.ZodNullable<z.ZodString>;
53144
- listOrder: z.ZodNullable<z.ZodInt>;
53145
- joinedAt: z.ZodNullable<z.ZodISODateTime>;
53146
- }, z.core.$strip>>>;
53147
- generation: z.ZodNullable<z.ZodInt>;
53148
- bike: z.ZodObject<{
53149
- revision: z.ZodString;
53150
- name: z.ZodNullable<z.ZodString>;
53151
- brand: z.ZodNullable<z.ZodString>;
53152
- type: z.ZodNullable<z.ZodString>;
53153
- model: z.ZodNullable<z.ZodString>;
53154
- frameNumber: z.ZodNullable<z.ZodString>;
53155
- url: z.ZodNullable<z.ZodString>;
53156
- marketPrice: z.ZodNullable<z.ZodString>;
53157
- marketPriceCurrency: z.ZodNullable<z.ZodString>;
53158
- }, 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;
53159
53297
  battery: z.ZodDiscriminatedUnion<[
53160
53298
  z.ZodObject<{
53161
53299
  level: z.ZodNullable<z.ZodNumber>;
@@ -53178,6 +53316,21 @@ declare const trackerContract: {
53178
53316
  }>;
53179
53317
  }, z.core.$strip>
53180
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>;
53181
53334
  location: z.ZodDiscriminatedUnion<[
53182
53335
  z.ZodObject<{
53183
53336
  latitude: z.ZodNumber;
@@ -53196,37 +53349,22 @@ declare const trackerContract: {
53196
53349
  }>;
53197
53350
  }, z.core.$strip>
53198
53351
  ], "state">;
53199
- subscription: z.ZodDiscriminatedUnion<[
53200
- z.ZodObject<{
53201
- id: z.ZodString;
53202
- activity: z.ZodEnum<{
53203
- unknown: "unknown";
53204
- active: "active";
53205
- inactive: "inactive";
53206
- }>;
53207
- isDemo: z.ZodBoolean;
53208
- status: z.ZodNullable<z.ZodString>;
53209
- country: z.ZodNullable<z.ZodString>;
53210
- endsAt: z.ZodNullable<z.ZodISODateTime>;
53211
- state: z.ZodLiteral<"available">;
53212
- }, z.core.$strip>,
53213
- z.ZodObject<{
53214
- state: z.ZodLiteral<"unavailable">;
53215
- reason: z.ZodEnum<{
53216
- invalid: "invalid";
53217
- not_observed: "not_observed";
53218
- not_assigned: "not_assigned";
53219
- }>;
53220
- }, z.core.$strip>
53221
- ], "state">;
53222
53352
  readIssues: z.ZodArray<z.ZodObject<{
53223
53353
  path: z.ZodString;
53224
53354
  code: z.ZodLiteral<"invalid_stored_value">;
53225
53355
  }, z.core.$strip>>;
53226
- id: z.ZodString;
53227
- revision: z.ZodString;
53228
- createdAt: z.ZodISODateTime;
53229
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>;
53230
53368
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
53231
53369
  readonly invalid: {
53232
53370
  readonly status: 400;
@@ -54125,19 +54263,10 @@ declare const trackerContract: {
54125
54263
  }, unknown>>;
54126
54264
  };
54127
54265
  }>, Record<never, never>>;
54128
- watch: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
54266
+ watchDetails: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
54129
54267
  deviceId: z.ZodString;
54130
54268
  }, z.core.$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
54131
- identity: {
54132
- serialNumber: string | null;
54133
- } | null;
54134
- preferences: {
54135
- movementAlerts: boolean;
54136
- };
54137
- capabilities: {
54138
- firmwareUpdates: boolean;
54139
- factoryResetReports: boolean;
54140
- };
54269
+ id: string;
54141
54270
  firmware: {
54142
54271
  lte: string | null;
54143
54272
  bluetooth: string | null;
@@ -54147,17 +54276,2099 @@ declare const trackerContract: {
54147
54276
  ti: string | null;
54148
54277
  buildNumber: number | null;
54149
54278
  } | null;
54150
- members: Record<string, {
54151
- active: boolean | null;
54152
- displayName: string | null;
54153
- listOrder: number | null;
54154
- joinedAt: string | null;
54155
- }> | null;
54156
- generation: number | null;
54157
- bike: {
54158
- revision: string;
54159
- name: string | null;
54160
- brand: string | 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>>;
55330
+ get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
55331
+ deviceId: z.ZodString;
55332
+ }, z.core.$strict>, z.ZodObject<{
55333
+ identity: z.ZodNullable<z.ZodObject<{
55334
+ serialNumber: z.ZodNullable<z.ZodString>;
55335
+ }, z.core.$strip>>;
55336
+ preferences: z.ZodObject<{
55337
+ movementAlerts: z.ZodBoolean;
55338
+ }, z.core.$strip>;
55339
+ capabilities: z.ZodObject<{
55340
+ firmwareUpdates: z.ZodBoolean;
55341
+ factoryResetReports: z.ZodBoolean;
55342
+ }, z.core.$strip>;
55343
+ firmware: z.ZodNullable<z.ZodObject<{
55344
+ lte: z.ZodNullable<z.ZodString>;
55345
+ bluetooth: z.ZodNullable<z.ZodString>;
55346
+ battery: z.ZodNullable<z.ZodString>;
55347
+ modem: z.ZodNullable<z.ZodString>;
55348
+ mtk: z.ZodNullable<z.ZodString>;
55349
+ ti: z.ZodNullable<z.ZodString>;
55350
+ buildNumber: z.ZodNullable<z.ZodInt>;
55351
+ }, z.core.$strip>>;
55352
+ members: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
55353
+ active: z.ZodNullable<z.ZodBoolean>;
55354
+ displayName: z.ZodNullable<z.ZodString>;
55355
+ listOrder: z.ZodNullable<z.ZodInt>;
55356
+ joinedAt: z.ZodNullable<z.ZodISODateTime>;
55357
+ }, z.core.$strip>>>;
55358
+ generation: z.ZodNullable<z.ZodInt>;
55359
+ bike: z.ZodObject<{
55360
+ revision: z.ZodString;
55361
+ name: z.ZodNullable<z.ZodString>;
55362
+ brand: z.ZodNullable<z.ZodString>;
55363
+ type: z.ZodNullable<z.ZodString>;
55364
+ model: z.ZodNullable<z.ZodString>;
55365
+ frameNumber: z.ZodNullable<z.ZodString>;
55366
+ url: z.ZodNullable<z.ZodString>;
55367
+ marketPrice: z.ZodNullable<z.ZodString>;
55368
+ marketPriceCurrency: z.ZodNullable<z.ZodString>;
55369
+ }, z.core.$strip>;
55370
+ battery: z.ZodDiscriminatedUnion<[
55371
+ z.ZodObject<{
55372
+ level: z.ZodNullable<z.ZodNumber>;
55373
+ isCharging: z.ZodNullable<z.ZodBoolean>;
55374
+ levelUpdatedAt: z.ZodNullable<z.ZodISODateTime>;
55375
+ chargingObservedAt: z.ZodNullable<z.ZodISODateTime>;
55376
+ observation: z.ZodNullable<z.ZodObject<{
55377
+ observedAt: z.ZodNullable<z.ZodISODateTime>;
55378
+ receivedAt: z.ZodNullable<z.ZodISODateTime>;
55379
+ }, z.core.$strip>>;
55380
+ source: z.ZodNullable<z.ZodString>;
55381
+ state: z.ZodLiteral<"available">;
55382
+ }, z.core.$strip>,
55383
+ z.ZodObject<{
55384
+ state: z.ZodLiteral<"unavailable">;
55385
+ reason: z.ZodEnum<{
55386
+ invalid: "invalid";
55387
+ not_observed: "not_observed";
55388
+ not_assigned: "not_assigned";
55389
+ }>;
55390
+ }, z.core.$strip>
55391
+ ], "state">;
55392
+ location: z.ZodDiscriminatedUnion<[
55393
+ z.ZodObject<{
55394
+ latitude: z.ZodNumber;
55395
+ longitude: z.ZodNumber;
55396
+ accuracy: z.ZodNullable<z.ZodNumber>;
55397
+ source: z.ZodNullable<z.ZodString>;
55398
+ observedAt: z.ZodNullable<z.ZodISODateTime>;
55399
+ state: z.ZodLiteral<"available">;
55400
+ }, z.core.$strip>,
55401
+ z.ZodObject<{
55402
+ state: z.ZodLiteral<"unavailable">;
55403
+ reason: z.ZodEnum<{
55404
+ invalid: "invalid";
55405
+ not_observed: "not_observed";
55406
+ not_assigned: "not_assigned";
55407
+ }>;
55408
+ }, z.core.$strip>
55409
+ ], "state">;
55410
+ subscription: z.ZodDiscriminatedUnion<[
55411
+ z.ZodObject<{
55412
+ id: z.ZodString;
55413
+ activity: z.ZodEnum<{
55414
+ unknown: "unknown";
55415
+ active: "active";
55416
+ inactive: "inactive";
55417
+ }>;
55418
+ isDemo: z.ZodBoolean;
55419
+ status: z.ZodNullable<z.ZodString>;
55420
+ country: z.ZodNullable<z.ZodString>;
55421
+ endsAt: z.ZodNullable<z.ZodISODateTime>;
55422
+ state: z.ZodLiteral<"available">;
55423
+ }, z.core.$strip>,
55424
+ z.ZodObject<{
55425
+ state: z.ZodLiteral<"unavailable">;
55426
+ reason: z.ZodEnum<{
55427
+ invalid: "invalid";
55428
+ not_observed: "not_observed";
55429
+ not_assigned: "not_assigned";
55430
+ }>;
55431
+ }, z.core.$strip>
55432
+ ], "state">;
55433
+ readIssues: z.ZodArray<z.ZodObject<{
55434
+ path: z.ZodString;
55435
+ code: z.ZodLiteral<"invalid_stored_value">;
55436
+ }, z.core.$strip>>;
55437
+ id: z.ZodString;
55438
+ revision: z.ZodString;
55439
+ createdAt: z.ZodISODateTime;
55440
+ updatedAt: z.ZodISODateTime;
55441
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
55442
+ readonly invalid: {
55443
+ readonly status: 400;
55444
+ readonly data: z.ZodType<{
55445
+ traceId: string;
55446
+ recovery: {
55447
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55448
+ } | {
55449
+ action: "read_operation";
55450
+ operation: {
55451
+ kind: "command";
55452
+ serialNumber: string;
55453
+ idempotencyKey: string;
55454
+ } | {
55455
+ kind: "firmware";
55456
+ serialNumber: string;
55457
+ updateId: string;
55458
+ } | {
55459
+ kind: "bluetooth_firmware";
55460
+ deviceId: string;
55461
+ updateId: string;
55462
+ } | {
55463
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55464
+ deviceId: string;
55465
+ requestId: string;
55466
+ } | {
55467
+ kind: "support";
55468
+ requestId: string;
55469
+ };
55470
+ };
55471
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55472
+ currentRevision?: string | undefined;
55473
+ retryAfterSeconds?: number | undefined;
55474
+ }, unknown, z.core.$ZodTypeInternals<{
55475
+ traceId: string;
55476
+ recovery: {
55477
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55478
+ } | {
55479
+ action: "read_operation";
55480
+ operation: {
55481
+ kind: "command";
55482
+ serialNumber: string;
55483
+ idempotencyKey: string;
55484
+ } | {
55485
+ kind: "firmware";
55486
+ serialNumber: string;
55487
+ updateId: string;
55488
+ } | {
55489
+ kind: "bluetooth_firmware";
55490
+ deviceId: string;
55491
+ updateId: string;
55492
+ } | {
55493
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55494
+ deviceId: string;
55495
+ requestId: string;
55496
+ } | {
55497
+ kind: "support";
55498
+ requestId: string;
55499
+ };
55500
+ };
55501
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55502
+ currentRevision?: string | undefined;
55503
+ retryAfterSeconds?: number | undefined;
55504
+ }, unknown>>;
55505
+ };
55506
+ readonly unauthenticated: {
55507
+ readonly status: 401;
55508
+ readonly data: z.ZodType<{
55509
+ traceId: string;
55510
+ recovery: {
55511
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55512
+ } | {
55513
+ action: "read_operation";
55514
+ operation: {
55515
+ kind: "command";
55516
+ serialNumber: string;
55517
+ idempotencyKey: string;
55518
+ } | {
55519
+ kind: "firmware";
55520
+ serialNumber: string;
55521
+ updateId: string;
55522
+ } | {
55523
+ kind: "bluetooth_firmware";
55524
+ deviceId: string;
55525
+ updateId: string;
55526
+ } | {
55527
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55528
+ deviceId: string;
55529
+ requestId: string;
55530
+ } | {
55531
+ kind: "support";
55532
+ requestId: string;
55533
+ };
55534
+ };
55535
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55536
+ currentRevision?: string | undefined;
55537
+ retryAfterSeconds?: number | undefined;
55538
+ }, unknown, z.core.$ZodTypeInternals<{
55539
+ traceId: string;
55540
+ recovery: {
55541
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55542
+ } | {
55543
+ action: "read_operation";
55544
+ operation: {
55545
+ kind: "command";
55546
+ serialNumber: string;
55547
+ idempotencyKey: string;
55548
+ } | {
55549
+ kind: "firmware";
55550
+ serialNumber: string;
55551
+ updateId: string;
55552
+ } | {
55553
+ kind: "bluetooth_firmware";
55554
+ deviceId: string;
55555
+ updateId: string;
55556
+ } | {
55557
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55558
+ deviceId: string;
55559
+ requestId: string;
55560
+ } | {
55561
+ kind: "support";
55562
+ requestId: string;
55563
+ };
55564
+ };
55565
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55566
+ currentRevision?: string | undefined;
55567
+ retryAfterSeconds?: number | undefined;
55568
+ }, unknown>>;
55569
+ };
55570
+ readonly forbidden: {
55571
+ readonly status: 403;
55572
+ readonly data: z.ZodType<{
55573
+ traceId: string;
55574
+ recovery: {
55575
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55576
+ } | {
55577
+ action: "read_operation";
55578
+ operation: {
55579
+ kind: "command";
55580
+ serialNumber: string;
55581
+ idempotencyKey: string;
55582
+ } | {
55583
+ kind: "firmware";
55584
+ serialNumber: string;
55585
+ updateId: string;
55586
+ } | {
55587
+ kind: "bluetooth_firmware";
55588
+ deviceId: string;
55589
+ updateId: string;
55590
+ } | {
55591
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55592
+ deviceId: string;
55593
+ requestId: string;
55594
+ } | {
55595
+ kind: "support";
55596
+ requestId: string;
55597
+ };
55598
+ };
55599
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55600
+ currentRevision?: string | undefined;
55601
+ retryAfterSeconds?: number | undefined;
55602
+ }, unknown, z.core.$ZodTypeInternals<{
55603
+ traceId: string;
55604
+ recovery: {
55605
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55606
+ } | {
55607
+ action: "read_operation";
55608
+ operation: {
55609
+ kind: "command";
55610
+ serialNumber: string;
55611
+ idempotencyKey: string;
55612
+ } | {
55613
+ kind: "firmware";
55614
+ serialNumber: string;
55615
+ updateId: string;
55616
+ } | {
55617
+ kind: "bluetooth_firmware";
55618
+ deviceId: string;
55619
+ updateId: string;
55620
+ } | {
55621
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55622
+ deviceId: string;
55623
+ requestId: string;
55624
+ } | {
55625
+ kind: "support";
55626
+ requestId: string;
55627
+ };
55628
+ };
55629
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55630
+ currentRevision?: string | undefined;
55631
+ retryAfterSeconds?: number | undefined;
55632
+ }, unknown>>;
55633
+ };
55634
+ readonly not_found: {
55635
+ readonly status: 404;
55636
+ readonly data: z.ZodType<{
55637
+ traceId: string;
55638
+ recovery: {
55639
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55640
+ } | {
55641
+ action: "read_operation";
55642
+ operation: {
55643
+ kind: "command";
55644
+ serialNumber: string;
55645
+ idempotencyKey: string;
55646
+ } | {
55647
+ kind: "firmware";
55648
+ serialNumber: string;
55649
+ updateId: string;
55650
+ } | {
55651
+ kind: "bluetooth_firmware";
55652
+ deviceId: string;
55653
+ updateId: string;
55654
+ } | {
55655
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55656
+ deviceId: string;
55657
+ requestId: string;
55658
+ } | {
55659
+ kind: "support";
55660
+ requestId: string;
55661
+ };
55662
+ };
55663
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55664
+ currentRevision?: string | undefined;
55665
+ retryAfterSeconds?: number | undefined;
55666
+ }, unknown, z.core.$ZodTypeInternals<{
55667
+ traceId: string;
55668
+ recovery: {
55669
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55670
+ } | {
55671
+ action: "read_operation";
55672
+ operation: {
55673
+ kind: "command";
55674
+ serialNumber: string;
55675
+ idempotencyKey: string;
55676
+ } | {
55677
+ kind: "firmware";
55678
+ serialNumber: string;
55679
+ updateId: string;
55680
+ } | {
55681
+ kind: "bluetooth_firmware";
55682
+ deviceId: string;
55683
+ updateId: string;
55684
+ } | {
55685
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55686
+ deviceId: string;
55687
+ requestId: string;
55688
+ } | {
55689
+ kind: "support";
55690
+ requestId: string;
55691
+ };
55692
+ };
55693
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55694
+ currentRevision?: string | undefined;
55695
+ retryAfterSeconds?: number | undefined;
55696
+ }, unknown>>;
55697
+ };
55698
+ readonly conflict: {
55699
+ readonly status: 409;
55700
+ readonly data: z.ZodType<{
55701
+ traceId: string;
55702
+ recovery: {
55703
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55704
+ } | {
55705
+ action: "read_operation";
55706
+ operation: {
55707
+ kind: "command";
55708
+ serialNumber: string;
55709
+ idempotencyKey: string;
55710
+ } | {
55711
+ kind: "firmware";
55712
+ serialNumber: string;
55713
+ updateId: string;
55714
+ } | {
55715
+ kind: "bluetooth_firmware";
55716
+ deviceId: string;
55717
+ updateId: string;
55718
+ } | {
55719
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55720
+ deviceId: string;
55721
+ requestId: string;
55722
+ } | {
55723
+ kind: "support";
55724
+ requestId: string;
55725
+ };
55726
+ };
55727
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55728
+ currentRevision?: string | undefined;
55729
+ retryAfterSeconds?: number | undefined;
55730
+ }, unknown, z.core.$ZodTypeInternals<{
55731
+ traceId: string;
55732
+ recovery: {
55733
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55734
+ } | {
55735
+ action: "read_operation";
55736
+ operation: {
55737
+ kind: "command";
55738
+ serialNumber: string;
55739
+ idempotencyKey: string;
55740
+ } | {
55741
+ kind: "firmware";
55742
+ serialNumber: string;
55743
+ updateId: string;
55744
+ } | {
55745
+ kind: "bluetooth_firmware";
55746
+ deviceId: string;
55747
+ updateId: string;
55748
+ } | {
55749
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55750
+ deviceId: string;
55751
+ requestId: string;
55752
+ } | {
55753
+ kind: "support";
55754
+ requestId: string;
55755
+ };
55756
+ };
55757
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55758
+ currentRevision?: string | undefined;
55759
+ retryAfterSeconds?: number | undefined;
55760
+ }, unknown>>;
55761
+ };
55762
+ readonly rate_limited: {
55763
+ readonly status: 429;
55764
+ readonly data: z.ZodType<{
55765
+ traceId: string;
55766
+ recovery: {
55767
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55768
+ } | {
55769
+ action: "read_operation";
55770
+ operation: {
55771
+ kind: "command";
55772
+ serialNumber: string;
55773
+ idempotencyKey: string;
55774
+ } | {
55775
+ kind: "firmware";
55776
+ serialNumber: string;
55777
+ updateId: string;
55778
+ } | {
55779
+ kind: "bluetooth_firmware";
55780
+ deviceId: string;
55781
+ updateId: string;
55782
+ } | {
55783
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55784
+ deviceId: string;
55785
+ requestId: string;
55786
+ } | {
55787
+ kind: "support";
55788
+ requestId: string;
55789
+ };
55790
+ };
55791
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55792
+ currentRevision?: string | undefined;
55793
+ retryAfterSeconds?: number | undefined;
55794
+ }, unknown, z.core.$ZodTypeInternals<{
55795
+ traceId: string;
55796
+ recovery: {
55797
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55798
+ } | {
55799
+ action: "read_operation";
55800
+ operation: {
55801
+ kind: "command";
55802
+ serialNumber: string;
55803
+ idempotencyKey: string;
55804
+ } | {
55805
+ kind: "firmware";
55806
+ serialNumber: string;
55807
+ updateId: string;
55808
+ } | {
55809
+ kind: "bluetooth_firmware";
55810
+ deviceId: string;
55811
+ updateId: string;
55812
+ } | {
55813
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55814
+ deviceId: string;
55815
+ requestId: string;
55816
+ } | {
55817
+ kind: "support";
55818
+ requestId: string;
55819
+ };
55820
+ };
55821
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55822
+ currentRevision?: string | undefined;
55823
+ retryAfterSeconds?: number | undefined;
55824
+ }, unknown>>;
55825
+ };
55826
+ readonly stored_data_invalid: {
55827
+ readonly status: 503;
55828
+ readonly data: z.ZodType<{
55829
+ traceId: string;
55830
+ recovery: {
55831
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55832
+ } | {
55833
+ action: "read_operation";
55834
+ operation: {
55835
+ kind: "command";
55836
+ serialNumber: string;
55837
+ idempotencyKey: string;
55838
+ } | {
55839
+ kind: "firmware";
55840
+ serialNumber: string;
55841
+ updateId: string;
55842
+ } | {
55843
+ kind: "bluetooth_firmware";
55844
+ deviceId: string;
55845
+ updateId: string;
55846
+ } | {
55847
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55848
+ deviceId: string;
55849
+ requestId: string;
55850
+ } | {
55851
+ kind: "support";
55852
+ requestId: string;
55853
+ };
55854
+ };
55855
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55856
+ currentRevision?: string | undefined;
55857
+ retryAfterSeconds?: number | undefined;
55858
+ }, unknown, z.core.$ZodTypeInternals<{
55859
+ traceId: string;
55860
+ recovery: {
55861
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55862
+ } | {
55863
+ action: "read_operation";
55864
+ operation: {
55865
+ kind: "command";
55866
+ serialNumber: string;
55867
+ idempotencyKey: string;
55868
+ } | {
55869
+ kind: "firmware";
55870
+ serialNumber: string;
55871
+ updateId: string;
55872
+ } | {
55873
+ kind: "bluetooth_firmware";
55874
+ deviceId: string;
55875
+ updateId: string;
55876
+ } | {
55877
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55878
+ deviceId: string;
55879
+ requestId: string;
55880
+ } | {
55881
+ kind: "support";
55882
+ requestId: string;
55883
+ };
55884
+ };
55885
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55886
+ currentRevision?: string | undefined;
55887
+ retryAfterSeconds?: number | undefined;
55888
+ }, unknown>>;
55889
+ };
55890
+ readonly service_unavailable: {
55891
+ readonly status: 503;
55892
+ readonly data: z.ZodType<{
55893
+ traceId: string;
55894
+ recovery: {
55895
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55896
+ } | {
55897
+ action: "read_operation";
55898
+ operation: {
55899
+ kind: "command";
55900
+ serialNumber: string;
55901
+ idempotencyKey: string;
55902
+ } | {
55903
+ kind: "firmware";
55904
+ serialNumber: string;
55905
+ updateId: string;
55906
+ } | {
55907
+ kind: "bluetooth_firmware";
55908
+ deviceId: string;
55909
+ updateId: string;
55910
+ } | {
55911
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55912
+ deviceId: string;
55913
+ requestId: string;
55914
+ } | {
55915
+ kind: "support";
55916
+ requestId: string;
55917
+ };
55918
+ };
55919
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55920
+ currentRevision?: string | undefined;
55921
+ retryAfterSeconds?: number | undefined;
55922
+ }, unknown, z.core.$ZodTypeInternals<{
55923
+ traceId: string;
55924
+ recovery: {
55925
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55926
+ } | {
55927
+ action: "read_operation";
55928
+ operation: {
55929
+ kind: "command";
55930
+ serialNumber: string;
55931
+ idempotencyKey: string;
55932
+ } | {
55933
+ kind: "firmware";
55934
+ serialNumber: string;
55935
+ updateId: string;
55936
+ } | {
55937
+ kind: "bluetooth_firmware";
55938
+ deviceId: string;
55939
+ updateId: string;
55940
+ } | {
55941
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55942
+ deviceId: string;
55943
+ requestId: string;
55944
+ } | {
55945
+ kind: "support";
55946
+ requestId: string;
55947
+ };
55948
+ };
55949
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55950
+ currentRevision?: string | undefined;
55951
+ retryAfterSeconds?: number | undefined;
55952
+ }, unknown>>;
55953
+ };
55954
+ readonly read_unavailable: {
55955
+ readonly status: 503;
55956
+ readonly data: z.ZodType<{
55957
+ traceId: string;
55958
+ recovery: {
55959
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55960
+ } | {
55961
+ action: "read_operation";
55962
+ operation: {
55963
+ kind: "command";
55964
+ serialNumber: string;
55965
+ idempotencyKey: string;
55966
+ } | {
55967
+ kind: "firmware";
55968
+ serialNumber: string;
55969
+ updateId: string;
55970
+ } | {
55971
+ kind: "bluetooth_firmware";
55972
+ deviceId: string;
55973
+ updateId: string;
55974
+ } | {
55975
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55976
+ deviceId: string;
55977
+ requestId: string;
55978
+ } | {
55979
+ kind: "support";
55980
+ requestId: string;
55981
+ };
55982
+ };
55983
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55984
+ currentRevision?: string | undefined;
55985
+ retryAfterSeconds?: number | undefined;
55986
+ }, unknown, z.core.$ZodTypeInternals<{
55987
+ traceId: string;
55988
+ recovery: {
55989
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55990
+ } | {
55991
+ action: "read_operation";
55992
+ operation: {
55993
+ kind: "command";
55994
+ serialNumber: string;
55995
+ idempotencyKey: string;
55996
+ } | {
55997
+ kind: "firmware";
55998
+ serialNumber: string;
55999
+ updateId: string;
56000
+ } | {
56001
+ kind: "bluetooth_firmware";
56002
+ deviceId: string;
56003
+ updateId: string;
56004
+ } | {
56005
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
56006
+ deviceId: string;
56007
+ requestId: string;
56008
+ } | {
56009
+ kind: "support";
56010
+ requestId: string;
56011
+ };
56012
+ };
56013
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
56014
+ currentRevision?: string | undefined;
56015
+ retryAfterSeconds?: number | undefined;
56016
+ }, unknown>>;
56017
+ };
56018
+ readonly stream_unavailable: {
56019
+ readonly status: 503;
56020
+ readonly data: z.ZodType<{
56021
+ traceId: string;
56022
+ recovery: {
56023
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
56024
+ } | {
56025
+ action: "read_operation";
56026
+ operation: {
56027
+ kind: "command";
56028
+ serialNumber: string;
56029
+ idempotencyKey: string;
56030
+ } | {
56031
+ kind: "firmware";
56032
+ serialNumber: string;
56033
+ updateId: string;
56034
+ } | {
56035
+ kind: "bluetooth_firmware";
56036
+ deviceId: string;
56037
+ updateId: string;
56038
+ } | {
56039
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
56040
+ deviceId: string;
56041
+ requestId: string;
56042
+ } | {
56043
+ kind: "support";
56044
+ requestId: string;
56045
+ };
56046
+ };
56047
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
56048
+ currentRevision?: string | undefined;
56049
+ retryAfterSeconds?: number | undefined;
56050
+ }, unknown, z.core.$ZodTypeInternals<{
56051
+ traceId: string;
56052
+ recovery: {
56053
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
56054
+ } | {
56055
+ action: "read_operation";
56056
+ operation: {
56057
+ kind: "command";
56058
+ serialNumber: string;
56059
+ idempotencyKey: string;
56060
+ } | {
56061
+ kind: "firmware";
56062
+ serialNumber: string;
56063
+ updateId: string;
56064
+ } | {
56065
+ kind: "bluetooth_firmware";
56066
+ deviceId: string;
56067
+ updateId: string;
56068
+ } | {
56069
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
56070
+ deviceId: string;
56071
+ requestId: string;
56072
+ } | {
56073
+ kind: "support";
56074
+ requestId: string;
56075
+ };
56076
+ };
56077
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
56078
+ currentRevision?: string | undefined;
56079
+ retryAfterSeconds?: number | undefined;
56080
+ }, unknown>>;
56081
+ };
56082
+ readonly payload_too_large: {
56083
+ readonly status: 413;
56084
+ readonly data: z.ZodType<{
56085
+ traceId: string;
56086
+ recovery: {
56087
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
56088
+ } | {
56089
+ action: "read_operation";
56090
+ operation: {
56091
+ kind: "command";
56092
+ serialNumber: string;
56093
+ idempotencyKey: string;
56094
+ } | {
56095
+ kind: "firmware";
56096
+ serialNumber: string;
56097
+ updateId: string;
56098
+ } | {
56099
+ kind: "bluetooth_firmware";
56100
+ deviceId: string;
56101
+ updateId: string;
56102
+ } | {
56103
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
56104
+ deviceId: string;
56105
+ requestId: string;
56106
+ } | {
56107
+ kind: "support";
56108
+ requestId: string;
56109
+ };
56110
+ };
56111
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
56112
+ currentRevision?: string | undefined;
56113
+ retryAfterSeconds?: number | undefined;
56114
+ }, unknown, z.core.$ZodTypeInternals<{
56115
+ traceId: string;
56116
+ recovery: {
56117
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
56118
+ } | {
56119
+ action: "read_operation";
56120
+ operation: {
56121
+ kind: "command";
56122
+ serialNumber: string;
56123
+ idempotencyKey: string;
56124
+ } | {
56125
+ kind: "firmware";
56126
+ serialNumber: string;
56127
+ updateId: string;
56128
+ } | {
56129
+ kind: "bluetooth_firmware";
56130
+ deviceId: string;
56131
+ updateId: string;
56132
+ } | {
56133
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
56134
+ deviceId: string;
56135
+ requestId: string;
56136
+ } | {
56137
+ kind: "support";
56138
+ requestId: string;
56139
+ };
56140
+ };
56141
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
56142
+ currentRevision?: string | undefined;
56143
+ retryAfterSeconds?: number | undefined;
56144
+ }, unknown>>;
56145
+ };
56146
+ readonly request_timeout: {
56147
+ readonly status: 503;
56148
+ readonly data: z.ZodType<{
56149
+ traceId: string;
56150
+ recovery: {
56151
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
56152
+ } | {
56153
+ action: "read_operation";
56154
+ operation: {
56155
+ kind: "command";
56156
+ serialNumber: string;
56157
+ idempotencyKey: string;
56158
+ } | {
56159
+ kind: "firmware";
56160
+ serialNumber: string;
56161
+ updateId: string;
56162
+ } | {
56163
+ kind: "bluetooth_firmware";
56164
+ deviceId: string;
56165
+ updateId: string;
56166
+ } | {
56167
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
56168
+ deviceId: string;
56169
+ requestId: string;
56170
+ } | {
56171
+ kind: "support";
56172
+ requestId: string;
56173
+ };
56174
+ };
56175
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
56176
+ currentRevision?: string | undefined;
56177
+ retryAfterSeconds?: number | undefined;
56178
+ }, unknown, z.core.$ZodTypeInternals<{
56179
+ traceId: string;
56180
+ recovery: {
56181
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
56182
+ } | {
56183
+ action: "read_operation";
56184
+ operation: {
56185
+ kind: "command";
56186
+ serialNumber: string;
56187
+ idempotencyKey: string;
56188
+ } | {
56189
+ kind: "firmware";
56190
+ serialNumber: string;
56191
+ updateId: string;
56192
+ } | {
56193
+ kind: "bluetooth_firmware";
56194
+ deviceId: string;
56195
+ updateId: string;
56196
+ } | {
56197
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
56198
+ deviceId: string;
56199
+ requestId: string;
56200
+ } | {
56201
+ kind: "support";
56202
+ requestId: string;
56203
+ };
56204
+ };
56205
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
56206
+ currentRevision?: string | undefined;
56207
+ retryAfterSeconds?: number | undefined;
56208
+ }, unknown>>;
56209
+ };
56210
+ readonly operation_unconfirmed: {
56211
+ readonly status: 503;
56212
+ readonly data: z.ZodType<{
56213
+ traceId: string;
56214
+ recovery: {
56215
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
56216
+ } | {
56217
+ action: "read_operation";
56218
+ operation: {
56219
+ kind: "command";
56220
+ serialNumber: string;
56221
+ idempotencyKey: string;
56222
+ } | {
56223
+ kind: "firmware";
56224
+ serialNumber: string;
56225
+ updateId: string;
56226
+ } | {
56227
+ kind: "bluetooth_firmware";
56228
+ deviceId: string;
56229
+ updateId: string;
56230
+ } | {
56231
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
56232
+ deviceId: string;
56233
+ requestId: string;
56234
+ } | {
56235
+ kind: "support";
56236
+ requestId: string;
56237
+ };
56238
+ };
56239
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
56240
+ currentRevision?: string | undefined;
56241
+ retryAfterSeconds?: number | undefined;
56242
+ }, unknown, z.core.$ZodTypeInternals<{
56243
+ traceId: string;
56244
+ recovery: {
56245
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
56246
+ } | {
56247
+ action: "read_operation";
56248
+ operation: {
56249
+ kind: "command";
56250
+ serialNumber: string;
56251
+ idempotencyKey: string;
56252
+ } | {
56253
+ kind: "firmware";
56254
+ serialNumber: string;
56255
+ updateId: string;
56256
+ } | {
56257
+ kind: "bluetooth_firmware";
56258
+ deviceId: string;
56259
+ updateId: string;
56260
+ } | {
56261
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
56262
+ deviceId: string;
56263
+ requestId: string;
56264
+ } | {
56265
+ kind: "support";
56266
+ requestId: string;
56267
+ };
56268
+ };
56269
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
56270
+ currentRevision?: string | undefined;
56271
+ retryAfterSeconds?: number | undefined;
56272
+ }, unknown>>;
56273
+ };
56274
+ readonly directory_unavailable: {
56275
+ readonly status: 503;
56276
+ readonly data: z.ZodType<{
56277
+ traceId: string;
56278
+ recovery: {
56279
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
56280
+ } | {
56281
+ action: "read_operation";
56282
+ operation: {
56283
+ kind: "command";
56284
+ serialNumber: string;
56285
+ idempotencyKey: string;
56286
+ } | {
56287
+ kind: "firmware";
56288
+ serialNumber: string;
56289
+ updateId: string;
56290
+ } | {
56291
+ kind: "bluetooth_firmware";
56292
+ deviceId: string;
56293
+ updateId: string;
56294
+ } | {
56295
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
56296
+ deviceId: string;
56297
+ requestId: string;
56298
+ } | {
56299
+ kind: "support";
56300
+ requestId: string;
56301
+ };
56302
+ };
56303
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
56304
+ currentRevision?: string | undefined;
56305
+ retryAfterSeconds?: number | undefined;
56306
+ }, unknown, z.core.$ZodTypeInternals<{
56307
+ traceId: string;
56308
+ recovery: {
56309
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
56310
+ } | {
56311
+ action: "read_operation";
56312
+ operation: {
56313
+ kind: "command";
56314
+ serialNumber: string;
56315
+ idempotencyKey: string;
56316
+ } | {
56317
+ kind: "firmware";
56318
+ serialNumber: string;
56319
+ updateId: string;
56320
+ } | {
56321
+ kind: "bluetooth_firmware";
56322
+ deviceId: string;
56323
+ updateId: string;
56324
+ } | {
56325
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
56326
+ deviceId: string;
56327
+ requestId: string;
56328
+ } | {
56329
+ kind: "support";
56330
+ requestId: string;
56331
+ };
56332
+ };
56333
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
56334
+ currentRevision?: string | undefined;
56335
+ retryAfterSeconds?: number | undefined;
56336
+ }, unknown>>;
56337
+ };
56338
+ }>, Record<never, never>>;
56339
+ watch: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
56340
+ deviceId: z.ZodString;
56341
+ }, z.core.$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
56342
+ identity: {
56343
+ serialNumber: string | null;
56344
+ } | null;
56345
+ preferences: {
56346
+ movementAlerts: boolean;
56347
+ };
56348
+ capabilities: {
56349
+ firmwareUpdates: boolean;
56350
+ factoryResetReports: boolean;
56351
+ };
56352
+ firmware: {
56353
+ lte: string | null;
56354
+ bluetooth: string | null;
56355
+ battery: string | null;
56356
+ modem: string | null;
56357
+ mtk: string | null;
56358
+ ti: string | null;
56359
+ buildNumber: number | null;
56360
+ } | null;
56361
+ members: Record<string, {
56362
+ active: boolean | null;
56363
+ displayName: string | null;
56364
+ listOrder: number | null;
56365
+ joinedAt: string | null;
56366
+ }> | null;
56367
+ generation: number | null;
56368
+ bike: {
56369
+ revision: string;
56370
+ name: string | null;
56371
+ brand: string | null;
54161
56372
  type: string | null;
54162
56373
  model: string | null;
54163
56374
  frameNumber: string | null;
@@ -55196,7 +57407,17 @@ declare const trackerContract: {
55196
57407
  bike: {
55197
57408
  edit: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
55198
57409
  deviceId: z.ZodString;
55199
- expectedRevision: z.ZodString;
57410
+ trackerCreatedAt: z.ZodISODateTime;
57411
+ expected: z.ZodObject<{
57412
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57413
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57414
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57415
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57416
+ frameNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57417
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57418
+ marketPrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57419
+ marketPriceCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57420
+ }, z.core.$strict>;
55200
57421
  changes: z.ZodObject<{
55201
57422
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55202
57423
  brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -55217,7 +57438,17 @@ declare const trackerContract: {
55217
57438
  USD: "USD";
55218
57439
  }>>>;
55219
57440
  }, z.core.$strict>;
55220
- }, z.core.$strict>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
57441
+ }, z.core.$strict>, z.ZodObject<{
57442
+ revision: z.ZodString;
57443
+ name: z.ZodNullable<z.ZodString>;
57444
+ brand: z.ZodNullable<z.ZodString>;
57445
+ type: z.ZodNullable<z.ZodString>;
57446
+ model: z.ZodNullable<z.ZodString>;
57447
+ frameNumber: z.ZodNullable<z.ZodString>;
57448
+ url: z.ZodNullable<z.ZodString>;
57449
+ marketPrice: z.ZodNullable<z.ZodString>;
57450
+ marketPriceCurrency: z.ZodNullable<z.ZodString>;
57451
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
55221
57452
  readonly invalid: {
55222
57453
  readonly status: 400;
55223
57454
  readonly data: z.ZodType<{