@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/index.d.ts CHANGED
@@ -30224,6 +30224,115 @@ declare const tracker: z.ZodObject<{
30224
30224
  createdAt: z.ZodISODateTime;
30225
30225
  updatedAt: z.ZodISODateTime;
30226
30226
  }, z.core.$strip>;
30227
+ declare const customerTrackerDetails: z.ZodObject<{
30228
+ id: z.ZodString;
30229
+ firmware: z.ZodNullable<z.ZodObject<{
30230
+ lte: z.ZodNullable<z.ZodString>;
30231
+ bluetooth: z.ZodNullable<z.ZodString>;
30232
+ battery: z.ZodNullable<z.ZodString>;
30233
+ modem: z.ZodNullable<z.ZodString>;
30234
+ mtk: z.ZodNullable<z.ZodString>;
30235
+ ti: z.ZodNullable<z.ZodString>;
30236
+ buildNumber: z.ZodNullable<z.ZodInt>;
30237
+ }, z.core.$strip>>;
30238
+ subscription: z.ZodDiscriminatedUnion<[
30239
+ z.ZodObject<{
30240
+ id: z.ZodString;
30241
+ activity: z.ZodEnum<{
30242
+ unknown: "unknown";
30243
+ active: "active";
30244
+ inactive: "inactive";
30245
+ }>;
30246
+ isDemo: z.ZodBoolean;
30247
+ status: z.ZodNullable<z.ZodString>;
30248
+ country: z.ZodNullable<z.ZodString>;
30249
+ endsAt: z.ZodNullable<z.ZodISODateTime>;
30250
+ state: z.ZodLiteral<"available">;
30251
+ }, z.core.$strip>,
30252
+ z.ZodObject<{
30253
+ state: z.ZodLiteral<"unavailable">;
30254
+ reason: z.ZodEnum<{
30255
+ invalid: "invalid";
30256
+ not_observed: "not_observed";
30257
+ not_assigned: "not_assigned";
30258
+ }>;
30259
+ }, z.core.$strip>
30260
+ ], "state">;
30261
+ createdAt: z.ZodISODateTime;
30262
+ revision: z.ZodString;
30263
+ battery: z.ZodDiscriminatedUnion<[
30264
+ z.ZodObject<{
30265
+ level: z.ZodNullable<z.ZodNumber>;
30266
+ isCharging: z.ZodNullable<z.ZodBoolean>;
30267
+ levelUpdatedAt: z.ZodNullable<z.ZodISODateTime>;
30268
+ chargingObservedAt: z.ZodNullable<z.ZodISODateTime>;
30269
+ observation: z.ZodNullable<z.ZodObject<{
30270
+ observedAt: z.ZodNullable<z.ZodISODateTime>;
30271
+ receivedAt: z.ZodNullable<z.ZodISODateTime>;
30272
+ }, z.core.$strip>>;
30273
+ source: z.ZodNullable<z.ZodString>;
30274
+ state: z.ZodLiteral<"available">;
30275
+ }, z.core.$strip>,
30276
+ z.ZodObject<{
30277
+ state: z.ZodLiteral<"unavailable">;
30278
+ reason: z.ZodEnum<{
30279
+ invalid: "invalid";
30280
+ not_observed: "not_observed";
30281
+ not_assigned: "not_assigned";
30282
+ }>;
30283
+ }, z.core.$strip>
30284
+ ], "state">;
30285
+ identity: z.ZodNullable<z.ZodObject<{
30286
+ serialNumber: z.ZodNullable<z.ZodString>;
30287
+ }, z.core.$strip>>;
30288
+ generation: z.ZodNullable<z.ZodInt>;
30289
+ bike: z.ZodObject<{
30290
+ revision: z.ZodString;
30291
+ name: z.ZodNullable<z.ZodString>;
30292
+ brand: z.ZodNullable<z.ZodString>;
30293
+ type: z.ZodNullable<z.ZodString>;
30294
+ model: z.ZodNullable<z.ZodString>;
30295
+ frameNumber: z.ZodNullable<z.ZodString>;
30296
+ url: z.ZodNullable<z.ZodString>;
30297
+ marketPrice: z.ZodNullable<z.ZodString>;
30298
+ marketPriceCurrency: z.ZodNullable<z.ZodString>;
30299
+ }, z.core.$strip>;
30300
+ location: z.ZodDiscriminatedUnion<[
30301
+ z.ZodObject<{
30302
+ latitude: z.ZodNumber;
30303
+ longitude: z.ZodNumber;
30304
+ accuracy: z.ZodNullable<z.ZodNumber>;
30305
+ source: z.ZodNullable<z.ZodString>;
30306
+ observedAt: z.ZodNullable<z.ZodISODateTime>;
30307
+ state: z.ZodLiteral<"available">;
30308
+ }, z.core.$strip>,
30309
+ z.ZodObject<{
30310
+ state: z.ZodLiteral<"unavailable">;
30311
+ reason: z.ZodEnum<{
30312
+ invalid: "invalid";
30313
+ not_observed: "not_observed";
30314
+ not_assigned: "not_assigned";
30315
+ }>;
30316
+ }, z.core.$strip>
30317
+ ], "state">;
30318
+ readIssues: z.ZodArray<z.ZodObject<{
30319
+ path: z.ZodString;
30320
+ code: z.ZodLiteral<"invalid_stored_value">;
30321
+ }, z.core.$strip>>;
30322
+ updatedAt: z.ZodISODateTime;
30323
+ preferences: z.ZodObject<{
30324
+ movementAlerts: z.ZodBoolean;
30325
+ }, z.core.$strip>;
30326
+ capabilities: z.ZodObject<{
30327
+ firmwareUpdates: z.ZodBoolean;
30328
+ factoryResetReports: z.ZodBoolean;
30329
+ }, z.core.$strip>;
30330
+ membership: z.ZodObject<{
30331
+ accountId: z.ZodString;
30332
+ activeMemberCount: z.ZodInt;
30333
+ }, z.core.$strip>;
30334
+ }, z.core.$strip>;
30335
+ export type CustomerTrackerDetails = z.infer<typeof customerTrackerDetails>;
30227
30336
  export type Tracker = z.infer<typeof tracker>;
30228
30337
  export type TrackerSummary = z.infer<typeof trackerSummary>;
30229
30338
  export type TrackerPage = z.infer<typeof trackerPage>;
@@ -30252,7 +30361,17 @@ export declare const bikeChanges: z.ZodObject<{
30252
30361
  }, z.core.$strict>;
30253
30362
  export declare const bikeEditInput: z.ZodObject<{
30254
30363
  deviceId: z.ZodString;
30255
- expectedRevision: z.ZodString;
30364
+ trackerCreatedAt: z.ZodISODateTime;
30365
+ expected: z.ZodObject<{
30366
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30367
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30368
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30369
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30370
+ frameNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30371
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30372
+ marketPrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30373
+ marketPriceCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30374
+ }, z.core.$strict>;
30256
30375
  changes: z.ZodObject<{
30257
30376
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30258
30377
  brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -30296,7 +30415,17 @@ export declare const trackerChangeContract: {
30296
30415
  bike: {
30297
30416
  edit: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
30298
30417
  deviceId: z.ZodString;
30299
- expectedRevision: z.ZodString;
30418
+ trackerCreatedAt: z.ZodISODateTime;
30419
+ expected: z.ZodObject<{
30420
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30421
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30422
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30423
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30424
+ frameNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30425
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30426
+ marketPrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30427
+ marketPriceCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30428
+ }, z.core.$strict>;
30300
30429
  changes: z.ZodObject<{
30301
30430
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30302
30431
  brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -30317,7 +30446,17 @@ export declare const trackerChangeContract: {
30317
30446
  USD: "USD";
30318
30447
  }>>>;
30319
30448
  }, z.core.$strict>;
30320
- }, z.core.$strict>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
30449
+ }, z.core.$strict>, z.ZodObject<{
30450
+ revision: z.ZodString;
30451
+ name: z.ZodNullable<z.ZodString>;
30452
+ brand: z.ZodNullable<z.ZodString>;
30453
+ type: z.ZodNullable<z.ZodString>;
30454
+ model: z.ZodNullable<z.ZodString>;
30455
+ frameNumber: z.ZodNullable<z.ZodString>;
30456
+ url: z.ZodNullable<z.ZodString>;
30457
+ marketPrice: z.ZodNullable<z.ZodString>;
30458
+ marketPriceCurrency: z.ZodNullable<z.ZodString>;
30459
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
30321
30460
  readonly invalid: {
30322
30461
  readonly status: 400;
30323
30462
  readonly data: z.ZodType<{
@@ -52887,19 +53026,10 @@ declare const trackerContract: {
52887
53026
  }, unknown>>;
52888
53027
  };
52889
53028
  }>, Record<never, never>>;
52890
- get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
53029
+ getDetails: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
52891
53030
  deviceId: z.ZodString;
52892
53031
  }, z.core.$strict>, z.ZodObject<{
52893
- identity: z.ZodNullable<z.ZodObject<{
52894
- serialNumber: z.ZodNullable<z.ZodString>;
52895
- }, z.core.$strip>>;
52896
- preferences: z.ZodObject<{
52897
- movementAlerts: z.ZodBoolean;
52898
- }, z.core.$strip>;
52899
- capabilities: z.ZodObject<{
52900
- firmwareUpdates: z.ZodBoolean;
52901
- factoryResetReports: z.ZodBoolean;
52902
- }, z.core.$strip>;
53032
+ id: z.ZodString;
52903
53033
  firmware: z.ZodNullable<z.ZodObject<{
52904
53034
  lte: z.ZodNullable<z.ZodString>;
52905
53035
  bluetooth: z.ZodNullable<z.ZodString>;
@@ -52909,24 +53039,31 @@ declare const trackerContract: {
52909
53039
  ti: z.ZodNullable<z.ZodString>;
52910
53040
  buildNumber: z.ZodNullable<z.ZodInt>;
52911
53041
  }, z.core.$strip>>;
52912
- members: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
52913
- active: z.ZodNullable<z.ZodBoolean>;
52914
- displayName: z.ZodNullable<z.ZodString>;
52915
- listOrder: z.ZodNullable<z.ZodInt>;
52916
- joinedAt: z.ZodNullable<z.ZodISODateTime>;
52917
- }, z.core.$strip>>>;
52918
- generation: z.ZodNullable<z.ZodInt>;
52919
- bike: z.ZodObject<{
52920
- revision: z.ZodString;
52921
- name: z.ZodNullable<z.ZodString>;
52922
- brand: z.ZodNullable<z.ZodString>;
52923
- type: z.ZodNullable<z.ZodString>;
52924
- model: z.ZodNullable<z.ZodString>;
52925
- frameNumber: z.ZodNullable<z.ZodString>;
52926
- url: z.ZodNullable<z.ZodString>;
52927
- marketPrice: z.ZodNullable<z.ZodString>;
52928
- marketPriceCurrency: z.ZodNullable<z.ZodString>;
52929
- }, z.core.$strip>;
53042
+ subscription: z.ZodDiscriminatedUnion<[
53043
+ z.ZodObject<{
53044
+ id: z.ZodString;
53045
+ activity: z.ZodEnum<{
53046
+ unknown: "unknown";
53047
+ active: "active";
53048
+ inactive: "inactive";
53049
+ }>;
53050
+ isDemo: z.ZodBoolean;
53051
+ status: z.ZodNullable<z.ZodString>;
53052
+ country: z.ZodNullable<z.ZodString>;
53053
+ endsAt: z.ZodNullable<z.ZodISODateTime>;
53054
+ state: z.ZodLiteral<"available">;
53055
+ }, z.core.$strip>,
53056
+ z.ZodObject<{
53057
+ state: z.ZodLiteral<"unavailable">;
53058
+ reason: z.ZodEnum<{
53059
+ invalid: "invalid";
53060
+ not_observed: "not_observed";
53061
+ not_assigned: "not_assigned";
53062
+ }>;
53063
+ }, z.core.$strip>
53064
+ ], "state">;
53065
+ createdAt: z.ZodISODateTime;
53066
+ revision: z.ZodString;
52930
53067
  battery: z.ZodDiscriminatedUnion<[
52931
53068
  z.ZodObject<{
52932
53069
  level: z.ZodNullable<z.ZodNumber>;
@@ -52949,6 +53086,21 @@ declare const trackerContract: {
52949
53086
  }>;
52950
53087
  }, z.core.$strip>
52951
53088
  ], "state">;
53089
+ identity: z.ZodNullable<z.ZodObject<{
53090
+ serialNumber: z.ZodNullable<z.ZodString>;
53091
+ }, z.core.$strip>>;
53092
+ generation: z.ZodNullable<z.ZodInt>;
53093
+ bike: z.ZodObject<{
53094
+ revision: z.ZodString;
53095
+ name: z.ZodNullable<z.ZodString>;
53096
+ brand: z.ZodNullable<z.ZodString>;
53097
+ type: z.ZodNullable<z.ZodString>;
53098
+ model: z.ZodNullable<z.ZodString>;
53099
+ frameNumber: z.ZodNullable<z.ZodString>;
53100
+ url: z.ZodNullable<z.ZodString>;
53101
+ marketPrice: z.ZodNullable<z.ZodString>;
53102
+ marketPriceCurrency: z.ZodNullable<z.ZodString>;
53103
+ }, z.core.$strip>;
52952
53104
  location: z.ZodDiscriminatedUnion<[
52953
53105
  z.ZodObject<{
52954
53106
  latitude: z.ZodNumber;
@@ -52967,37 +53119,22 @@ declare const trackerContract: {
52967
53119
  }>;
52968
53120
  }, z.core.$strip>
52969
53121
  ], "state">;
52970
- subscription: z.ZodDiscriminatedUnion<[
52971
- z.ZodObject<{
52972
- id: z.ZodString;
52973
- activity: z.ZodEnum<{
52974
- unknown: "unknown";
52975
- active: "active";
52976
- inactive: "inactive";
52977
- }>;
52978
- isDemo: z.ZodBoolean;
52979
- status: z.ZodNullable<z.ZodString>;
52980
- country: z.ZodNullable<z.ZodString>;
52981
- endsAt: z.ZodNullable<z.ZodISODateTime>;
52982
- state: z.ZodLiteral<"available">;
52983
- }, z.core.$strip>,
52984
- z.ZodObject<{
52985
- state: z.ZodLiteral<"unavailable">;
52986
- reason: z.ZodEnum<{
52987
- invalid: "invalid";
52988
- not_observed: "not_observed";
52989
- not_assigned: "not_assigned";
52990
- }>;
52991
- }, z.core.$strip>
52992
- ], "state">;
52993
53122
  readIssues: z.ZodArray<z.ZodObject<{
52994
53123
  path: z.ZodString;
52995
53124
  code: z.ZodLiteral<"invalid_stored_value">;
52996
53125
  }, z.core.$strip>>;
52997
- id: z.ZodString;
52998
- revision: z.ZodString;
52999
- createdAt: z.ZodISODateTime;
53000
53126
  updatedAt: z.ZodISODateTime;
53127
+ preferences: z.ZodObject<{
53128
+ movementAlerts: z.ZodBoolean;
53129
+ }, z.core.$strip>;
53130
+ capabilities: z.ZodObject<{
53131
+ firmwareUpdates: z.ZodBoolean;
53132
+ factoryResetReports: z.ZodBoolean;
53133
+ }, z.core.$strip>;
53134
+ membership: z.ZodObject<{
53135
+ accountId: z.ZodString;
53136
+ activeMemberCount: z.ZodInt;
53137
+ }, z.core.$strip>;
53001
53138
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
53002
53139
  readonly invalid: {
53003
53140
  readonly status: 400;
@@ -53896,19 +54033,10 @@ declare const trackerContract: {
53896
54033
  }, unknown>>;
53897
54034
  };
53898
54035
  }>, Record<never, never>>;
53899
- watch: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
54036
+ watchDetails: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
53900
54037
  deviceId: z.ZodString;
53901
54038
  }, z.core.$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
53902
- identity: {
53903
- serialNumber: string | null;
53904
- } | null;
53905
- preferences: {
53906
- movementAlerts: boolean;
53907
- };
53908
- capabilities: {
53909
- firmwareUpdates: boolean;
53910
- factoryResetReports: boolean;
53911
- };
54039
+ id: string;
53912
54040
  firmware: {
53913
54041
  lte: string | null;
53914
54042
  bluetooth: string | null;
@@ -53918,17 +54046,2099 @@ declare const trackerContract: {
53918
54046
  ti: string | null;
53919
54047
  buildNumber: number | null;
53920
54048
  } | null;
53921
- members: Record<string, {
53922
- active: boolean | null;
53923
- displayName: string | null;
53924
- listOrder: number | null;
53925
- joinedAt: string | null;
53926
- }> | null;
53927
- generation: number | null;
53928
- bike: {
53929
- revision: string;
53930
- name: string | null;
53931
- brand: string | null;
54049
+ subscription: {
54050
+ state: "unavailable";
54051
+ reason: "invalid" | "not_observed" | "not_assigned";
54052
+ } | {
54053
+ id: string;
54054
+ activity: "unknown" | "active" | "inactive";
54055
+ isDemo: boolean;
54056
+ status: string | null;
54057
+ country: string | null;
54058
+ endsAt: string | null;
54059
+ state: "available";
54060
+ };
54061
+ createdAt: string;
54062
+ revision: string;
54063
+ battery: {
54064
+ state: "unavailable";
54065
+ reason: "invalid" | "not_observed" | "not_assigned";
54066
+ } | {
54067
+ level: number | null;
54068
+ isCharging: boolean | null;
54069
+ levelUpdatedAt: string | null;
54070
+ chargingObservedAt: string | null;
54071
+ observation: {
54072
+ observedAt: string | null;
54073
+ receivedAt: string | null;
54074
+ } | null;
54075
+ source: string | null;
54076
+ state: "available";
54077
+ };
54078
+ identity: {
54079
+ serialNumber: string | null;
54080
+ } | null;
54081
+ generation: number | null;
54082
+ bike: {
54083
+ revision: string;
54084
+ name: string | null;
54085
+ brand: string | null;
54086
+ type: string | null;
54087
+ model: string | null;
54088
+ frameNumber: string | null;
54089
+ url: string | null;
54090
+ marketPrice: string | null;
54091
+ marketPriceCurrency: string | null;
54092
+ };
54093
+ location: {
54094
+ state: "unavailable";
54095
+ reason: "invalid" | "not_observed" | "not_assigned";
54096
+ } | {
54097
+ latitude: number;
54098
+ longitude: number;
54099
+ accuracy: number | null;
54100
+ source: string | null;
54101
+ observedAt: string | null;
54102
+ state: "available";
54103
+ };
54104
+ readIssues: {
54105
+ path: string;
54106
+ code: "invalid_stored_value";
54107
+ }[];
54108
+ updatedAt: string;
54109
+ preferences: {
54110
+ movementAlerts: boolean;
54111
+ };
54112
+ capabilities: {
54113
+ firmwareUpdates: boolean;
54114
+ factoryResetReports: boolean;
54115
+ };
54116
+ membership: {
54117
+ accountId: string;
54118
+ activeMemberCount: number;
54119
+ };
54120
+ }, unknown, void>, import("@orpc/shared").AsyncIteratorClass<{
54121
+ id: string;
54122
+ firmware: {
54123
+ lte: string | null;
54124
+ bluetooth: string | null;
54125
+ battery: string | null;
54126
+ modem: string | null;
54127
+ mtk: string | null;
54128
+ ti: string | null;
54129
+ buildNumber: number | null;
54130
+ } | null;
54131
+ subscription: {
54132
+ state: "unavailable";
54133
+ reason: "invalid" | "not_observed" | "not_assigned";
54134
+ } | {
54135
+ id: string;
54136
+ activity: "unknown" | "active" | "inactive";
54137
+ isDemo: boolean;
54138
+ status: string | null;
54139
+ country: string | null;
54140
+ endsAt: string | null;
54141
+ state: "available";
54142
+ };
54143
+ createdAt: string;
54144
+ revision: string;
54145
+ battery: {
54146
+ state: "unavailable";
54147
+ reason: "invalid" | "not_observed" | "not_assigned";
54148
+ } | {
54149
+ level: number | null;
54150
+ isCharging: boolean | null;
54151
+ levelUpdatedAt: string | null;
54152
+ chargingObservedAt: string | null;
54153
+ observation: {
54154
+ observedAt: string | null;
54155
+ receivedAt: string | null;
54156
+ } | null;
54157
+ source: string | null;
54158
+ state: "available";
54159
+ };
54160
+ identity: {
54161
+ serialNumber: string | null;
54162
+ } | null;
54163
+ generation: number | null;
54164
+ bike: {
54165
+ revision: string;
54166
+ name: string | null;
54167
+ brand: string | null;
54168
+ type: string | null;
54169
+ model: string | null;
54170
+ frameNumber: string | null;
54171
+ url: string | null;
54172
+ marketPrice: string | null;
54173
+ marketPriceCurrency: string | null;
54174
+ };
54175
+ location: {
54176
+ state: "unavailable";
54177
+ reason: "invalid" | "not_observed" | "not_assigned";
54178
+ } | {
54179
+ latitude: number;
54180
+ longitude: number;
54181
+ accuracy: number | null;
54182
+ source: string | null;
54183
+ observedAt: string | null;
54184
+ state: "available";
54185
+ };
54186
+ readIssues: {
54187
+ path: string;
54188
+ code: "invalid_stored_value";
54189
+ }[];
54190
+ updatedAt: string;
54191
+ preferences: {
54192
+ movementAlerts: boolean;
54193
+ };
54194
+ capabilities: {
54195
+ firmwareUpdates: boolean;
54196
+ factoryResetReports: boolean;
54197
+ };
54198
+ membership: {
54199
+ accountId: string;
54200
+ activeMemberCount: number;
54201
+ };
54202
+ }, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
54203
+ readonly invalid: {
54204
+ readonly status: 400;
54205
+ readonly data: z.ZodType<{
54206
+ traceId: string;
54207
+ recovery: {
54208
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54209
+ } | {
54210
+ action: "read_operation";
54211
+ operation: {
54212
+ kind: "command";
54213
+ serialNumber: string;
54214
+ idempotencyKey: string;
54215
+ } | {
54216
+ kind: "firmware";
54217
+ serialNumber: string;
54218
+ updateId: string;
54219
+ } | {
54220
+ kind: "bluetooth_firmware";
54221
+ deviceId: string;
54222
+ updateId: string;
54223
+ } | {
54224
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54225
+ deviceId: string;
54226
+ requestId: string;
54227
+ } | {
54228
+ kind: "support";
54229
+ requestId: string;
54230
+ };
54231
+ };
54232
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54233
+ currentRevision?: string | undefined;
54234
+ retryAfterSeconds?: number | undefined;
54235
+ }, unknown, z.core.$ZodTypeInternals<{
54236
+ traceId: string;
54237
+ recovery: {
54238
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54239
+ } | {
54240
+ action: "read_operation";
54241
+ operation: {
54242
+ kind: "command";
54243
+ serialNumber: string;
54244
+ idempotencyKey: string;
54245
+ } | {
54246
+ kind: "firmware";
54247
+ serialNumber: string;
54248
+ updateId: string;
54249
+ } | {
54250
+ kind: "bluetooth_firmware";
54251
+ deviceId: string;
54252
+ updateId: string;
54253
+ } | {
54254
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54255
+ deviceId: string;
54256
+ requestId: string;
54257
+ } | {
54258
+ kind: "support";
54259
+ requestId: string;
54260
+ };
54261
+ };
54262
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54263
+ currentRevision?: string | undefined;
54264
+ retryAfterSeconds?: number | undefined;
54265
+ }, unknown>>;
54266
+ };
54267
+ readonly unauthenticated: {
54268
+ readonly status: 401;
54269
+ readonly data: z.ZodType<{
54270
+ traceId: string;
54271
+ recovery: {
54272
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54273
+ } | {
54274
+ action: "read_operation";
54275
+ operation: {
54276
+ kind: "command";
54277
+ serialNumber: string;
54278
+ idempotencyKey: string;
54279
+ } | {
54280
+ kind: "firmware";
54281
+ serialNumber: string;
54282
+ updateId: string;
54283
+ } | {
54284
+ kind: "bluetooth_firmware";
54285
+ deviceId: string;
54286
+ updateId: string;
54287
+ } | {
54288
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54289
+ deviceId: string;
54290
+ requestId: string;
54291
+ } | {
54292
+ kind: "support";
54293
+ requestId: string;
54294
+ };
54295
+ };
54296
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54297
+ currentRevision?: string | undefined;
54298
+ retryAfterSeconds?: number | undefined;
54299
+ }, unknown, z.core.$ZodTypeInternals<{
54300
+ traceId: string;
54301
+ recovery: {
54302
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54303
+ } | {
54304
+ action: "read_operation";
54305
+ operation: {
54306
+ kind: "command";
54307
+ serialNumber: string;
54308
+ idempotencyKey: string;
54309
+ } | {
54310
+ kind: "firmware";
54311
+ serialNumber: string;
54312
+ updateId: string;
54313
+ } | {
54314
+ kind: "bluetooth_firmware";
54315
+ deviceId: string;
54316
+ updateId: string;
54317
+ } | {
54318
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54319
+ deviceId: string;
54320
+ requestId: string;
54321
+ } | {
54322
+ kind: "support";
54323
+ requestId: string;
54324
+ };
54325
+ };
54326
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54327
+ currentRevision?: string | undefined;
54328
+ retryAfterSeconds?: number | undefined;
54329
+ }, unknown>>;
54330
+ };
54331
+ readonly forbidden: {
54332
+ readonly status: 403;
54333
+ readonly data: z.ZodType<{
54334
+ traceId: string;
54335
+ recovery: {
54336
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54337
+ } | {
54338
+ action: "read_operation";
54339
+ operation: {
54340
+ kind: "command";
54341
+ serialNumber: string;
54342
+ idempotencyKey: string;
54343
+ } | {
54344
+ kind: "firmware";
54345
+ serialNumber: string;
54346
+ updateId: string;
54347
+ } | {
54348
+ kind: "bluetooth_firmware";
54349
+ deviceId: string;
54350
+ updateId: string;
54351
+ } | {
54352
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54353
+ deviceId: string;
54354
+ requestId: string;
54355
+ } | {
54356
+ kind: "support";
54357
+ requestId: string;
54358
+ };
54359
+ };
54360
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54361
+ currentRevision?: string | undefined;
54362
+ retryAfterSeconds?: number | undefined;
54363
+ }, unknown, z.core.$ZodTypeInternals<{
54364
+ traceId: string;
54365
+ recovery: {
54366
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54367
+ } | {
54368
+ action: "read_operation";
54369
+ operation: {
54370
+ kind: "command";
54371
+ serialNumber: string;
54372
+ idempotencyKey: string;
54373
+ } | {
54374
+ kind: "firmware";
54375
+ serialNumber: string;
54376
+ updateId: string;
54377
+ } | {
54378
+ kind: "bluetooth_firmware";
54379
+ deviceId: string;
54380
+ updateId: string;
54381
+ } | {
54382
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54383
+ deviceId: string;
54384
+ requestId: string;
54385
+ } | {
54386
+ kind: "support";
54387
+ requestId: string;
54388
+ };
54389
+ };
54390
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54391
+ currentRevision?: string | undefined;
54392
+ retryAfterSeconds?: number | undefined;
54393
+ }, unknown>>;
54394
+ };
54395
+ readonly not_found: {
54396
+ readonly status: 404;
54397
+ readonly data: z.ZodType<{
54398
+ traceId: string;
54399
+ recovery: {
54400
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54401
+ } | {
54402
+ action: "read_operation";
54403
+ operation: {
54404
+ kind: "command";
54405
+ serialNumber: string;
54406
+ idempotencyKey: string;
54407
+ } | {
54408
+ kind: "firmware";
54409
+ serialNumber: string;
54410
+ updateId: string;
54411
+ } | {
54412
+ kind: "bluetooth_firmware";
54413
+ deviceId: string;
54414
+ updateId: string;
54415
+ } | {
54416
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54417
+ deviceId: string;
54418
+ requestId: string;
54419
+ } | {
54420
+ kind: "support";
54421
+ requestId: string;
54422
+ };
54423
+ };
54424
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54425
+ currentRevision?: string | undefined;
54426
+ retryAfterSeconds?: number | undefined;
54427
+ }, unknown, z.core.$ZodTypeInternals<{
54428
+ traceId: string;
54429
+ recovery: {
54430
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54431
+ } | {
54432
+ action: "read_operation";
54433
+ operation: {
54434
+ kind: "command";
54435
+ serialNumber: string;
54436
+ idempotencyKey: string;
54437
+ } | {
54438
+ kind: "firmware";
54439
+ serialNumber: string;
54440
+ updateId: string;
54441
+ } | {
54442
+ kind: "bluetooth_firmware";
54443
+ deviceId: string;
54444
+ updateId: string;
54445
+ } | {
54446
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54447
+ deviceId: string;
54448
+ requestId: string;
54449
+ } | {
54450
+ kind: "support";
54451
+ requestId: string;
54452
+ };
54453
+ };
54454
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54455
+ currentRevision?: string | undefined;
54456
+ retryAfterSeconds?: number | undefined;
54457
+ }, unknown>>;
54458
+ };
54459
+ readonly conflict: {
54460
+ readonly status: 409;
54461
+ readonly data: z.ZodType<{
54462
+ traceId: string;
54463
+ recovery: {
54464
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54465
+ } | {
54466
+ action: "read_operation";
54467
+ operation: {
54468
+ kind: "command";
54469
+ serialNumber: string;
54470
+ idempotencyKey: string;
54471
+ } | {
54472
+ kind: "firmware";
54473
+ serialNumber: string;
54474
+ updateId: string;
54475
+ } | {
54476
+ kind: "bluetooth_firmware";
54477
+ deviceId: string;
54478
+ updateId: string;
54479
+ } | {
54480
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54481
+ deviceId: string;
54482
+ requestId: string;
54483
+ } | {
54484
+ kind: "support";
54485
+ requestId: string;
54486
+ };
54487
+ };
54488
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54489
+ currentRevision?: string | undefined;
54490
+ retryAfterSeconds?: number | undefined;
54491
+ }, unknown, z.core.$ZodTypeInternals<{
54492
+ traceId: string;
54493
+ recovery: {
54494
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54495
+ } | {
54496
+ action: "read_operation";
54497
+ operation: {
54498
+ kind: "command";
54499
+ serialNumber: string;
54500
+ idempotencyKey: string;
54501
+ } | {
54502
+ kind: "firmware";
54503
+ serialNumber: string;
54504
+ updateId: string;
54505
+ } | {
54506
+ kind: "bluetooth_firmware";
54507
+ deviceId: string;
54508
+ updateId: string;
54509
+ } | {
54510
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54511
+ deviceId: string;
54512
+ requestId: string;
54513
+ } | {
54514
+ kind: "support";
54515
+ requestId: string;
54516
+ };
54517
+ };
54518
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54519
+ currentRevision?: string | undefined;
54520
+ retryAfterSeconds?: number | undefined;
54521
+ }, unknown>>;
54522
+ };
54523
+ readonly rate_limited: {
54524
+ readonly status: 429;
54525
+ readonly data: z.ZodType<{
54526
+ traceId: string;
54527
+ recovery: {
54528
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54529
+ } | {
54530
+ action: "read_operation";
54531
+ operation: {
54532
+ kind: "command";
54533
+ serialNumber: string;
54534
+ idempotencyKey: string;
54535
+ } | {
54536
+ kind: "firmware";
54537
+ serialNumber: string;
54538
+ updateId: string;
54539
+ } | {
54540
+ kind: "bluetooth_firmware";
54541
+ deviceId: string;
54542
+ updateId: string;
54543
+ } | {
54544
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54545
+ deviceId: string;
54546
+ requestId: string;
54547
+ } | {
54548
+ kind: "support";
54549
+ requestId: string;
54550
+ };
54551
+ };
54552
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54553
+ currentRevision?: string | undefined;
54554
+ retryAfterSeconds?: number | undefined;
54555
+ }, unknown, z.core.$ZodTypeInternals<{
54556
+ traceId: string;
54557
+ recovery: {
54558
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54559
+ } | {
54560
+ action: "read_operation";
54561
+ operation: {
54562
+ kind: "command";
54563
+ serialNumber: string;
54564
+ idempotencyKey: string;
54565
+ } | {
54566
+ kind: "firmware";
54567
+ serialNumber: string;
54568
+ updateId: string;
54569
+ } | {
54570
+ kind: "bluetooth_firmware";
54571
+ deviceId: string;
54572
+ updateId: string;
54573
+ } | {
54574
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54575
+ deviceId: string;
54576
+ requestId: string;
54577
+ } | {
54578
+ kind: "support";
54579
+ requestId: string;
54580
+ };
54581
+ };
54582
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54583
+ currentRevision?: string | undefined;
54584
+ retryAfterSeconds?: number | undefined;
54585
+ }, unknown>>;
54586
+ };
54587
+ readonly stored_data_invalid: {
54588
+ readonly status: 503;
54589
+ readonly data: z.ZodType<{
54590
+ traceId: string;
54591
+ recovery: {
54592
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54593
+ } | {
54594
+ action: "read_operation";
54595
+ operation: {
54596
+ kind: "command";
54597
+ serialNumber: string;
54598
+ idempotencyKey: string;
54599
+ } | {
54600
+ kind: "firmware";
54601
+ serialNumber: string;
54602
+ updateId: string;
54603
+ } | {
54604
+ kind: "bluetooth_firmware";
54605
+ deviceId: string;
54606
+ updateId: string;
54607
+ } | {
54608
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54609
+ deviceId: string;
54610
+ requestId: string;
54611
+ } | {
54612
+ kind: "support";
54613
+ requestId: string;
54614
+ };
54615
+ };
54616
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54617
+ currentRevision?: string | undefined;
54618
+ retryAfterSeconds?: number | undefined;
54619
+ }, unknown, z.core.$ZodTypeInternals<{
54620
+ traceId: string;
54621
+ recovery: {
54622
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54623
+ } | {
54624
+ action: "read_operation";
54625
+ operation: {
54626
+ kind: "command";
54627
+ serialNumber: string;
54628
+ idempotencyKey: string;
54629
+ } | {
54630
+ kind: "firmware";
54631
+ serialNumber: string;
54632
+ updateId: string;
54633
+ } | {
54634
+ kind: "bluetooth_firmware";
54635
+ deviceId: string;
54636
+ updateId: string;
54637
+ } | {
54638
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54639
+ deviceId: string;
54640
+ requestId: string;
54641
+ } | {
54642
+ kind: "support";
54643
+ requestId: string;
54644
+ };
54645
+ };
54646
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54647
+ currentRevision?: string | undefined;
54648
+ retryAfterSeconds?: number | undefined;
54649
+ }, unknown>>;
54650
+ };
54651
+ readonly service_unavailable: {
54652
+ readonly status: 503;
54653
+ readonly data: z.ZodType<{
54654
+ traceId: string;
54655
+ recovery: {
54656
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54657
+ } | {
54658
+ action: "read_operation";
54659
+ operation: {
54660
+ kind: "command";
54661
+ serialNumber: string;
54662
+ idempotencyKey: string;
54663
+ } | {
54664
+ kind: "firmware";
54665
+ serialNumber: string;
54666
+ updateId: string;
54667
+ } | {
54668
+ kind: "bluetooth_firmware";
54669
+ deviceId: string;
54670
+ updateId: string;
54671
+ } | {
54672
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54673
+ deviceId: string;
54674
+ requestId: string;
54675
+ } | {
54676
+ kind: "support";
54677
+ requestId: string;
54678
+ };
54679
+ };
54680
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54681
+ currentRevision?: string | undefined;
54682
+ retryAfterSeconds?: number | undefined;
54683
+ }, unknown, z.core.$ZodTypeInternals<{
54684
+ traceId: string;
54685
+ recovery: {
54686
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54687
+ } | {
54688
+ action: "read_operation";
54689
+ operation: {
54690
+ kind: "command";
54691
+ serialNumber: string;
54692
+ idempotencyKey: string;
54693
+ } | {
54694
+ kind: "firmware";
54695
+ serialNumber: string;
54696
+ updateId: string;
54697
+ } | {
54698
+ kind: "bluetooth_firmware";
54699
+ deviceId: string;
54700
+ updateId: string;
54701
+ } | {
54702
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54703
+ deviceId: string;
54704
+ requestId: string;
54705
+ } | {
54706
+ kind: "support";
54707
+ requestId: string;
54708
+ };
54709
+ };
54710
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54711
+ currentRevision?: string | undefined;
54712
+ retryAfterSeconds?: number | undefined;
54713
+ }, unknown>>;
54714
+ };
54715
+ readonly read_unavailable: {
54716
+ readonly status: 503;
54717
+ readonly data: z.ZodType<{
54718
+ traceId: string;
54719
+ recovery: {
54720
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54721
+ } | {
54722
+ action: "read_operation";
54723
+ operation: {
54724
+ kind: "command";
54725
+ serialNumber: string;
54726
+ idempotencyKey: string;
54727
+ } | {
54728
+ kind: "firmware";
54729
+ serialNumber: string;
54730
+ updateId: string;
54731
+ } | {
54732
+ kind: "bluetooth_firmware";
54733
+ deviceId: string;
54734
+ updateId: string;
54735
+ } | {
54736
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54737
+ deviceId: string;
54738
+ requestId: string;
54739
+ } | {
54740
+ kind: "support";
54741
+ requestId: string;
54742
+ };
54743
+ };
54744
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54745
+ currentRevision?: string | undefined;
54746
+ retryAfterSeconds?: number | undefined;
54747
+ }, unknown, z.core.$ZodTypeInternals<{
54748
+ traceId: string;
54749
+ recovery: {
54750
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54751
+ } | {
54752
+ action: "read_operation";
54753
+ operation: {
54754
+ kind: "command";
54755
+ serialNumber: string;
54756
+ idempotencyKey: string;
54757
+ } | {
54758
+ kind: "firmware";
54759
+ serialNumber: string;
54760
+ updateId: string;
54761
+ } | {
54762
+ kind: "bluetooth_firmware";
54763
+ deviceId: string;
54764
+ updateId: string;
54765
+ } | {
54766
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54767
+ deviceId: string;
54768
+ requestId: string;
54769
+ } | {
54770
+ kind: "support";
54771
+ requestId: string;
54772
+ };
54773
+ };
54774
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54775
+ currentRevision?: string | undefined;
54776
+ retryAfterSeconds?: number | undefined;
54777
+ }, unknown>>;
54778
+ };
54779
+ readonly stream_unavailable: {
54780
+ readonly status: 503;
54781
+ readonly data: z.ZodType<{
54782
+ traceId: string;
54783
+ recovery: {
54784
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54785
+ } | {
54786
+ action: "read_operation";
54787
+ operation: {
54788
+ kind: "command";
54789
+ serialNumber: string;
54790
+ idempotencyKey: string;
54791
+ } | {
54792
+ kind: "firmware";
54793
+ serialNumber: string;
54794
+ updateId: string;
54795
+ } | {
54796
+ kind: "bluetooth_firmware";
54797
+ deviceId: string;
54798
+ updateId: string;
54799
+ } | {
54800
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54801
+ deviceId: string;
54802
+ requestId: string;
54803
+ } | {
54804
+ kind: "support";
54805
+ requestId: string;
54806
+ };
54807
+ };
54808
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54809
+ currentRevision?: string | undefined;
54810
+ retryAfterSeconds?: number | undefined;
54811
+ }, unknown, z.core.$ZodTypeInternals<{
54812
+ traceId: string;
54813
+ recovery: {
54814
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54815
+ } | {
54816
+ action: "read_operation";
54817
+ operation: {
54818
+ kind: "command";
54819
+ serialNumber: string;
54820
+ idempotencyKey: string;
54821
+ } | {
54822
+ kind: "firmware";
54823
+ serialNumber: string;
54824
+ updateId: string;
54825
+ } | {
54826
+ kind: "bluetooth_firmware";
54827
+ deviceId: string;
54828
+ updateId: string;
54829
+ } | {
54830
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54831
+ deviceId: string;
54832
+ requestId: string;
54833
+ } | {
54834
+ kind: "support";
54835
+ requestId: string;
54836
+ };
54837
+ };
54838
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54839
+ currentRevision?: string | undefined;
54840
+ retryAfterSeconds?: number | undefined;
54841
+ }, unknown>>;
54842
+ };
54843
+ readonly payload_too_large: {
54844
+ readonly status: 413;
54845
+ readonly data: z.ZodType<{
54846
+ traceId: string;
54847
+ recovery: {
54848
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54849
+ } | {
54850
+ action: "read_operation";
54851
+ operation: {
54852
+ kind: "command";
54853
+ serialNumber: string;
54854
+ idempotencyKey: string;
54855
+ } | {
54856
+ kind: "firmware";
54857
+ serialNumber: string;
54858
+ updateId: string;
54859
+ } | {
54860
+ kind: "bluetooth_firmware";
54861
+ deviceId: string;
54862
+ updateId: string;
54863
+ } | {
54864
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54865
+ deviceId: string;
54866
+ requestId: string;
54867
+ } | {
54868
+ kind: "support";
54869
+ requestId: string;
54870
+ };
54871
+ };
54872
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54873
+ currentRevision?: string | undefined;
54874
+ retryAfterSeconds?: number | undefined;
54875
+ }, unknown, z.core.$ZodTypeInternals<{
54876
+ traceId: string;
54877
+ recovery: {
54878
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54879
+ } | {
54880
+ action: "read_operation";
54881
+ operation: {
54882
+ kind: "command";
54883
+ serialNumber: string;
54884
+ idempotencyKey: string;
54885
+ } | {
54886
+ kind: "firmware";
54887
+ serialNumber: string;
54888
+ updateId: string;
54889
+ } | {
54890
+ kind: "bluetooth_firmware";
54891
+ deviceId: string;
54892
+ updateId: string;
54893
+ } | {
54894
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54895
+ deviceId: string;
54896
+ requestId: string;
54897
+ } | {
54898
+ kind: "support";
54899
+ requestId: string;
54900
+ };
54901
+ };
54902
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54903
+ currentRevision?: string | undefined;
54904
+ retryAfterSeconds?: number | undefined;
54905
+ }, unknown>>;
54906
+ };
54907
+ readonly request_timeout: {
54908
+ readonly status: 503;
54909
+ readonly data: z.ZodType<{
54910
+ traceId: string;
54911
+ recovery: {
54912
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54913
+ } | {
54914
+ action: "read_operation";
54915
+ operation: {
54916
+ kind: "command";
54917
+ serialNumber: string;
54918
+ idempotencyKey: string;
54919
+ } | {
54920
+ kind: "firmware";
54921
+ serialNumber: string;
54922
+ updateId: string;
54923
+ } | {
54924
+ kind: "bluetooth_firmware";
54925
+ deviceId: string;
54926
+ updateId: string;
54927
+ } | {
54928
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54929
+ deviceId: string;
54930
+ requestId: string;
54931
+ } | {
54932
+ kind: "support";
54933
+ requestId: string;
54934
+ };
54935
+ };
54936
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54937
+ currentRevision?: string | undefined;
54938
+ retryAfterSeconds?: number | undefined;
54939
+ }, unknown, z.core.$ZodTypeInternals<{
54940
+ traceId: string;
54941
+ recovery: {
54942
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54943
+ } | {
54944
+ action: "read_operation";
54945
+ operation: {
54946
+ kind: "command";
54947
+ serialNumber: string;
54948
+ idempotencyKey: string;
54949
+ } | {
54950
+ kind: "firmware";
54951
+ serialNumber: string;
54952
+ updateId: string;
54953
+ } | {
54954
+ kind: "bluetooth_firmware";
54955
+ deviceId: string;
54956
+ updateId: string;
54957
+ } | {
54958
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54959
+ deviceId: string;
54960
+ requestId: string;
54961
+ } | {
54962
+ kind: "support";
54963
+ requestId: string;
54964
+ };
54965
+ };
54966
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
54967
+ currentRevision?: string | undefined;
54968
+ retryAfterSeconds?: number | undefined;
54969
+ }, unknown>>;
54970
+ };
54971
+ readonly operation_unconfirmed: {
54972
+ readonly status: 503;
54973
+ readonly data: z.ZodType<{
54974
+ traceId: string;
54975
+ recovery: {
54976
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
54977
+ } | {
54978
+ action: "read_operation";
54979
+ operation: {
54980
+ kind: "command";
54981
+ serialNumber: string;
54982
+ idempotencyKey: string;
54983
+ } | {
54984
+ kind: "firmware";
54985
+ serialNumber: string;
54986
+ updateId: string;
54987
+ } | {
54988
+ kind: "bluetooth_firmware";
54989
+ deviceId: string;
54990
+ updateId: string;
54991
+ } | {
54992
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
54993
+ deviceId: string;
54994
+ requestId: string;
54995
+ } | {
54996
+ kind: "support";
54997
+ requestId: string;
54998
+ };
54999
+ };
55000
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55001
+ currentRevision?: string | undefined;
55002
+ retryAfterSeconds?: number | undefined;
55003
+ }, unknown, z.core.$ZodTypeInternals<{
55004
+ traceId: string;
55005
+ recovery: {
55006
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55007
+ } | {
55008
+ action: "read_operation";
55009
+ operation: {
55010
+ kind: "command";
55011
+ serialNumber: string;
55012
+ idempotencyKey: string;
55013
+ } | {
55014
+ kind: "firmware";
55015
+ serialNumber: string;
55016
+ updateId: string;
55017
+ } | {
55018
+ kind: "bluetooth_firmware";
55019
+ deviceId: string;
55020
+ updateId: string;
55021
+ } | {
55022
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55023
+ deviceId: string;
55024
+ requestId: string;
55025
+ } | {
55026
+ kind: "support";
55027
+ requestId: string;
55028
+ };
55029
+ };
55030
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55031
+ currentRevision?: string | undefined;
55032
+ retryAfterSeconds?: number | undefined;
55033
+ }, unknown>>;
55034
+ };
55035
+ readonly directory_unavailable: {
55036
+ readonly status: 503;
55037
+ readonly data: z.ZodType<{
55038
+ traceId: string;
55039
+ recovery: {
55040
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55041
+ } | {
55042
+ action: "read_operation";
55043
+ operation: {
55044
+ kind: "command";
55045
+ serialNumber: string;
55046
+ idempotencyKey: string;
55047
+ } | {
55048
+ kind: "firmware";
55049
+ serialNumber: string;
55050
+ updateId: string;
55051
+ } | {
55052
+ kind: "bluetooth_firmware";
55053
+ deviceId: string;
55054
+ updateId: string;
55055
+ } | {
55056
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55057
+ deviceId: string;
55058
+ requestId: string;
55059
+ } | {
55060
+ kind: "support";
55061
+ requestId: string;
55062
+ };
55063
+ };
55064
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55065
+ currentRevision?: string | undefined;
55066
+ retryAfterSeconds?: number | undefined;
55067
+ }, unknown, z.core.$ZodTypeInternals<{
55068
+ traceId: string;
55069
+ recovery: {
55070
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55071
+ } | {
55072
+ action: "read_operation";
55073
+ operation: {
55074
+ kind: "command";
55075
+ serialNumber: string;
55076
+ idempotencyKey: string;
55077
+ } | {
55078
+ kind: "firmware";
55079
+ serialNumber: string;
55080
+ updateId: string;
55081
+ } | {
55082
+ kind: "bluetooth_firmware";
55083
+ deviceId: string;
55084
+ updateId: string;
55085
+ } | {
55086
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55087
+ deviceId: string;
55088
+ requestId: string;
55089
+ } | {
55090
+ kind: "support";
55091
+ requestId: string;
55092
+ };
55093
+ };
55094
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55095
+ currentRevision?: string | undefined;
55096
+ retryAfterSeconds?: number | undefined;
55097
+ }, unknown>>;
55098
+ };
55099
+ }>, Record<never, never>>;
55100
+ get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
55101
+ deviceId: z.ZodString;
55102
+ }, z.core.$strict>, z.ZodObject<{
55103
+ identity: z.ZodNullable<z.ZodObject<{
55104
+ serialNumber: z.ZodNullable<z.ZodString>;
55105
+ }, z.core.$strip>>;
55106
+ preferences: z.ZodObject<{
55107
+ movementAlerts: z.ZodBoolean;
55108
+ }, z.core.$strip>;
55109
+ capabilities: z.ZodObject<{
55110
+ firmwareUpdates: z.ZodBoolean;
55111
+ factoryResetReports: z.ZodBoolean;
55112
+ }, z.core.$strip>;
55113
+ firmware: z.ZodNullable<z.ZodObject<{
55114
+ lte: z.ZodNullable<z.ZodString>;
55115
+ bluetooth: z.ZodNullable<z.ZodString>;
55116
+ battery: z.ZodNullable<z.ZodString>;
55117
+ modem: z.ZodNullable<z.ZodString>;
55118
+ mtk: z.ZodNullable<z.ZodString>;
55119
+ ti: z.ZodNullable<z.ZodString>;
55120
+ buildNumber: z.ZodNullable<z.ZodInt>;
55121
+ }, z.core.$strip>>;
55122
+ members: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
55123
+ active: z.ZodNullable<z.ZodBoolean>;
55124
+ displayName: z.ZodNullable<z.ZodString>;
55125
+ listOrder: z.ZodNullable<z.ZodInt>;
55126
+ joinedAt: z.ZodNullable<z.ZodISODateTime>;
55127
+ }, z.core.$strip>>>;
55128
+ generation: z.ZodNullable<z.ZodInt>;
55129
+ bike: z.ZodObject<{
55130
+ revision: z.ZodString;
55131
+ name: z.ZodNullable<z.ZodString>;
55132
+ brand: z.ZodNullable<z.ZodString>;
55133
+ type: z.ZodNullable<z.ZodString>;
55134
+ model: z.ZodNullable<z.ZodString>;
55135
+ frameNumber: z.ZodNullable<z.ZodString>;
55136
+ url: z.ZodNullable<z.ZodString>;
55137
+ marketPrice: z.ZodNullable<z.ZodString>;
55138
+ marketPriceCurrency: z.ZodNullable<z.ZodString>;
55139
+ }, z.core.$strip>;
55140
+ battery: z.ZodDiscriminatedUnion<[
55141
+ z.ZodObject<{
55142
+ level: z.ZodNullable<z.ZodNumber>;
55143
+ isCharging: z.ZodNullable<z.ZodBoolean>;
55144
+ levelUpdatedAt: z.ZodNullable<z.ZodISODateTime>;
55145
+ chargingObservedAt: z.ZodNullable<z.ZodISODateTime>;
55146
+ observation: z.ZodNullable<z.ZodObject<{
55147
+ observedAt: z.ZodNullable<z.ZodISODateTime>;
55148
+ receivedAt: z.ZodNullable<z.ZodISODateTime>;
55149
+ }, z.core.$strip>>;
55150
+ source: z.ZodNullable<z.ZodString>;
55151
+ state: z.ZodLiteral<"available">;
55152
+ }, z.core.$strip>,
55153
+ z.ZodObject<{
55154
+ state: z.ZodLiteral<"unavailable">;
55155
+ reason: z.ZodEnum<{
55156
+ invalid: "invalid";
55157
+ not_observed: "not_observed";
55158
+ not_assigned: "not_assigned";
55159
+ }>;
55160
+ }, z.core.$strip>
55161
+ ], "state">;
55162
+ location: z.ZodDiscriminatedUnion<[
55163
+ z.ZodObject<{
55164
+ latitude: z.ZodNumber;
55165
+ longitude: z.ZodNumber;
55166
+ accuracy: z.ZodNullable<z.ZodNumber>;
55167
+ source: z.ZodNullable<z.ZodString>;
55168
+ observedAt: z.ZodNullable<z.ZodISODateTime>;
55169
+ state: z.ZodLiteral<"available">;
55170
+ }, z.core.$strip>,
55171
+ z.ZodObject<{
55172
+ state: z.ZodLiteral<"unavailable">;
55173
+ reason: z.ZodEnum<{
55174
+ invalid: "invalid";
55175
+ not_observed: "not_observed";
55176
+ not_assigned: "not_assigned";
55177
+ }>;
55178
+ }, z.core.$strip>
55179
+ ], "state">;
55180
+ subscription: z.ZodDiscriminatedUnion<[
55181
+ z.ZodObject<{
55182
+ id: z.ZodString;
55183
+ activity: z.ZodEnum<{
55184
+ unknown: "unknown";
55185
+ active: "active";
55186
+ inactive: "inactive";
55187
+ }>;
55188
+ isDemo: z.ZodBoolean;
55189
+ status: z.ZodNullable<z.ZodString>;
55190
+ country: z.ZodNullable<z.ZodString>;
55191
+ endsAt: z.ZodNullable<z.ZodISODateTime>;
55192
+ state: z.ZodLiteral<"available">;
55193
+ }, z.core.$strip>,
55194
+ z.ZodObject<{
55195
+ state: z.ZodLiteral<"unavailable">;
55196
+ reason: z.ZodEnum<{
55197
+ invalid: "invalid";
55198
+ not_observed: "not_observed";
55199
+ not_assigned: "not_assigned";
55200
+ }>;
55201
+ }, z.core.$strip>
55202
+ ], "state">;
55203
+ readIssues: z.ZodArray<z.ZodObject<{
55204
+ path: z.ZodString;
55205
+ code: z.ZodLiteral<"invalid_stored_value">;
55206
+ }, z.core.$strip>>;
55207
+ id: z.ZodString;
55208
+ revision: z.ZodString;
55209
+ createdAt: z.ZodISODateTime;
55210
+ updatedAt: z.ZodISODateTime;
55211
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
55212
+ readonly invalid: {
55213
+ readonly status: 400;
55214
+ readonly data: z.ZodType<{
55215
+ traceId: string;
55216
+ recovery: {
55217
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55218
+ } | {
55219
+ action: "read_operation";
55220
+ operation: {
55221
+ kind: "command";
55222
+ serialNumber: string;
55223
+ idempotencyKey: string;
55224
+ } | {
55225
+ kind: "firmware";
55226
+ serialNumber: string;
55227
+ updateId: string;
55228
+ } | {
55229
+ kind: "bluetooth_firmware";
55230
+ deviceId: string;
55231
+ updateId: string;
55232
+ } | {
55233
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55234
+ deviceId: string;
55235
+ requestId: string;
55236
+ } | {
55237
+ kind: "support";
55238
+ requestId: string;
55239
+ };
55240
+ };
55241
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55242
+ currentRevision?: string | undefined;
55243
+ retryAfterSeconds?: number | undefined;
55244
+ }, unknown, z.core.$ZodTypeInternals<{
55245
+ traceId: string;
55246
+ recovery: {
55247
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55248
+ } | {
55249
+ action: "read_operation";
55250
+ operation: {
55251
+ kind: "command";
55252
+ serialNumber: string;
55253
+ idempotencyKey: string;
55254
+ } | {
55255
+ kind: "firmware";
55256
+ serialNumber: string;
55257
+ updateId: string;
55258
+ } | {
55259
+ kind: "bluetooth_firmware";
55260
+ deviceId: string;
55261
+ updateId: string;
55262
+ } | {
55263
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55264
+ deviceId: string;
55265
+ requestId: string;
55266
+ } | {
55267
+ kind: "support";
55268
+ requestId: string;
55269
+ };
55270
+ };
55271
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55272
+ currentRevision?: string | undefined;
55273
+ retryAfterSeconds?: number | undefined;
55274
+ }, unknown>>;
55275
+ };
55276
+ readonly unauthenticated: {
55277
+ readonly status: 401;
55278
+ readonly data: z.ZodType<{
55279
+ traceId: string;
55280
+ recovery: {
55281
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55282
+ } | {
55283
+ action: "read_operation";
55284
+ operation: {
55285
+ kind: "command";
55286
+ serialNumber: string;
55287
+ idempotencyKey: string;
55288
+ } | {
55289
+ kind: "firmware";
55290
+ serialNumber: string;
55291
+ updateId: string;
55292
+ } | {
55293
+ kind: "bluetooth_firmware";
55294
+ deviceId: string;
55295
+ updateId: string;
55296
+ } | {
55297
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55298
+ deviceId: string;
55299
+ requestId: string;
55300
+ } | {
55301
+ kind: "support";
55302
+ requestId: string;
55303
+ };
55304
+ };
55305
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55306
+ currentRevision?: string | undefined;
55307
+ retryAfterSeconds?: number | undefined;
55308
+ }, unknown, z.core.$ZodTypeInternals<{
55309
+ traceId: string;
55310
+ recovery: {
55311
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55312
+ } | {
55313
+ action: "read_operation";
55314
+ operation: {
55315
+ kind: "command";
55316
+ serialNumber: string;
55317
+ idempotencyKey: string;
55318
+ } | {
55319
+ kind: "firmware";
55320
+ serialNumber: string;
55321
+ updateId: string;
55322
+ } | {
55323
+ kind: "bluetooth_firmware";
55324
+ deviceId: string;
55325
+ updateId: string;
55326
+ } | {
55327
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55328
+ deviceId: string;
55329
+ requestId: string;
55330
+ } | {
55331
+ kind: "support";
55332
+ requestId: string;
55333
+ };
55334
+ };
55335
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55336
+ currentRevision?: string | undefined;
55337
+ retryAfterSeconds?: number | undefined;
55338
+ }, unknown>>;
55339
+ };
55340
+ readonly forbidden: {
55341
+ readonly status: 403;
55342
+ readonly data: z.ZodType<{
55343
+ traceId: string;
55344
+ recovery: {
55345
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55346
+ } | {
55347
+ action: "read_operation";
55348
+ operation: {
55349
+ kind: "command";
55350
+ serialNumber: string;
55351
+ idempotencyKey: string;
55352
+ } | {
55353
+ kind: "firmware";
55354
+ serialNumber: string;
55355
+ updateId: string;
55356
+ } | {
55357
+ kind: "bluetooth_firmware";
55358
+ deviceId: string;
55359
+ updateId: string;
55360
+ } | {
55361
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55362
+ deviceId: string;
55363
+ requestId: string;
55364
+ } | {
55365
+ kind: "support";
55366
+ requestId: string;
55367
+ };
55368
+ };
55369
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55370
+ currentRevision?: string | undefined;
55371
+ retryAfterSeconds?: number | undefined;
55372
+ }, unknown, z.core.$ZodTypeInternals<{
55373
+ traceId: string;
55374
+ recovery: {
55375
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55376
+ } | {
55377
+ action: "read_operation";
55378
+ operation: {
55379
+ kind: "command";
55380
+ serialNumber: string;
55381
+ idempotencyKey: string;
55382
+ } | {
55383
+ kind: "firmware";
55384
+ serialNumber: string;
55385
+ updateId: string;
55386
+ } | {
55387
+ kind: "bluetooth_firmware";
55388
+ deviceId: string;
55389
+ updateId: string;
55390
+ } | {
55391
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55392
+ deviceId: string;
55393
+ requestId: string;
55394
+ } | {
55395
+ kind: "support";
55396
+ requestId: string;
55397
+ };
55398
+ };
55399
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55400
+ currentRevision?: string | undefined;
55401
+ retryAfterSeconds?: number | undefined;
55402
+ }, unknown>>;
55403
+ };
55404
+ readonly not_found: {
55405
+ readonly status: 404;
55406
+ readonly data: z.ZodType<{
55407
+ traceId: string;
55408
+ recovery: {
55409
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55410
+ } | {
55411
+ action: "read_operation";
55412
+ operation: {
55413
+ kind: "command";
55414
+ serialNumber: string;
55415
+ idempotencyKey: string;
55416
+ } | {
55417
+ kind: "firmware";
55418
+ serialNumber: string;
55419
+ updateId: string;
55420
+ } | {
55421
+ kind: "bluetooth_firmware";
55422
+ deviceId: string;
55423
+ updateId: string;
55424
+ } | {
55425
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55426
+ deviceId: string;
55427
+ requestId: string;
55428
+ } | {
55429
+ kind: "support";
55430
+ requestId: string;
55431
+ };
55432
+ };
55433
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55434
+ currentRevision?: string | undefined;
55435
+ retryAfterSeconds?: number | undefined;
55436
+ }, unknown, z.core.$ZodTypeInternals<{
55437
+ traceId: string;
55438
+ recovery: {
55439
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55440
+ } | {
55441
+ action: "read_operation";
55442
+ operation: {
55443
+ kind: "command";
55444
+ serialNumber: string;
55445
+ idempotencyKey: string;
55446
+ } | {
55447
+ kind: "firmware";
55448
+ serialNumber: string;
55449
+ updateId: string;
55450
+ } | {
55451
+ kind: "bluetooth_firmware";
55452
+ deviceId: string;
55453
+ updateId: string;
55454
+ } | {
55455
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55456
+ deviceId: string;
55457
+ requestId: string;
55458
+ } | {
55459
+ kind: "support";
55460
+ requestId: string;
55461
+ };
55462
+ };
55463
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55464
+ currentRevision?: string | undefined;
55465
+ retryAfterSeconds?: number | undefined;
55466
+ }, unknown>>;
55467
+ };
55468
+ readonly conflict: {
55469
+ readonly status: 409;
55470
+ readonly data: z.ZodType<{
55471
+ traceId: string;
55472
+ recovery: {
55473
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55474
+ } | {
55475
+ action: "read_operation";
55476
+ operation: {
55477
+ kind: "command";
55478
+ serialNumber: string;
55479
+ idempotencyKey: string;
55480
+ } | {
55481
+ kind: "firmware";
55482
+ serialNumber: string;
55483
+ updateId: string;
55484
+ } | {
55485
+ kind: "bluetooth_firmware";
55486
+ deviceId: string;
55487
+ updateId: string;
55488
+ } | {
55489
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55490
+ deviceId: string;
55491
+ requestId: string;
55492
+ } | {
55493
+ kind: "support";
55494
+ requestId: string;
55495
+ };
55496
+ };
55497
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55498
+ currentRevision?: string | undefined;
55499
+ retryAfterSeconds?: number | undefined;
55500
+ }, unknown, z.core.$ZodTypeInternals<{
55501
+ traceId: string;
55502
+ recovery: {
55503
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55504
+ } | {
55505
+ action: "read_operation";
55506
+ operation: {
55507
+ kind: "command";
55508
+ serialNumber: string;
55509
+ idempotencyKey: string;
55510
+ } | {
55511
+ kind: "firmware";
55512
+ serialNumber: string;
55513
+ updateId: string;
55514
+ } | {
55515
+ kind: "bluetooth_firmware";
55516
+ deviceId: string;
55517
+ updateId: string;
55518
+ } | {
55519
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55520
+ deviceId: string;
55521
+ requestId: string;
55522
+ } | {
55523
+ kind: "support";
55524
+ requestId: string;
55525
+ };
55526
+ };
55527
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55528
+ currentRevision?: string | undefined;
55529
+ retryAfterSeconds?: number | undefined;
55530
+ }, unknown>>;
55531
+ };
55532
+ readonly rate_limited: {
55533
+ readonly status: 429;
55534
+ readonly data: z.ZodType<{
55535
+ traceId: string;
55536
+ recovery: {
55537
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55538
+ } | {
55539
+ action: "read_operation";
55540
+ operation: {
55541
+ kind: "command";
55542
+ serialNumber: string;
55543
+ idempotencyKey: string;
55544
+ } | {
55545
+ kind: "firmware";
55546
+ serialNumber: string;
55547
+ updateId: string;
55548
+ } | {
55549
+ kind: "bluetooth_firmware";
55550
+ deviceId: string;
55551
+ updateId: string;
55552
+ } | {
55553
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55554
+ deviceId: string;
55555
+ requestId: string;
55556
+ } | {
55557
+ kind: "support";
55558
+ requestId: string;
55559
+ };
55560
+ };
55561
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55562
+ currentRevision?: string | undefined;
55563
+ retryAfterSeconds?: number | undefined;
55564
+ }, unknown, z.core.$ZodTypeInternals<{
55565
+ traceId: string;
55566
+ recovery: {
55567
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55568
+ } | {
55569
+ action: "read_operation";
55570
+ operation: {
55571
+ kind: "command";
55572
+ serialNumber: string;
55573
+ idempotencyKey: string;
55574
+ } | {
55575
+ kind: "firmware";
55576
+ serialNumber: string;
55577
+ updateId: string;
55578
+ } | {
55579
+ kind: "bluetooth_firmware";
55580
+ deviceId: string;
55581
+ updateId: string;
55582
+ } | {
55583
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55584
+ deviceId: string;
55585
+ requestId: string;
55586
+ } | {
55587
+ kind: "support";
55588
+ requestId: string;
55589
+ };
55590
+ };
55591
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55592
+ currentRevision?: string | undefined;
55593
+ retryAfterSeconds?: number | undefined;
55594
+ }, unknown>>;
55595
+ };
55596
+ readonly stored_data_invalid: {
55597
+ readonly status: 503;
55598
+ readonly data: z.ZodType<{
55599
+ traceId: string;
55600
+ recovery: {
55601
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55602
+ } | {
55603
+ action: "read_operation";
55604
+ operation: {
55605
+ kind: "command";
55606
+ serialNumber: string;
55607
+ idempotencyKey: string;
55608
+ } | {
55609
+ kind: "firmware";
55610
+ serialNumber: string;
55611
+ updateId: string;
55612
+ } | {
55613
+ kind: "bluetooth_firmware";
55614
+ deviceId: string;
55615
+ updateId: string;
55616
+ } | {
55617
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55618
+ deviceId: string;
55619
+ requestId: string;
55620
+ } | {
55621
+ kind: "support";
55622
+ requestId: string;
55623
+ };
55624
+ };
55625
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55626
+ currentRevision?: string | undefined;
55627
+ retryAfterSeconds?: number | undefined;
55628
+ }, unknown, z.core.$ZodTypeInternals<{
55629
+ traceId: string;
55630
+ recovery: {
55631
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55632
+ } | {
55633
+ action: "read_operation";
55634
+ operation: {
55635
+ kind: "command";
55636
+ serialNumber: string;
55637
+ idempotencyKey: string;
55638
+ } | {
55639
+ kind: "firmware";
55640
+ serialNumber: string;
55641
+ updateId: string;
55642
+ } | {
55643
+ kind: "bluetooth_firmware";
55644
+ deviceId: string;
55645
+ updateId: string;
55646
+ } | {
55647
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55648
+ deviceId: string;
55649
+ requestId: string;
55650
+ } | {
55651
+ kind: "support";
55652
+ requestId: string;
55653
+ };
55654
+ };
55655
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55656
+ currentRevision?: string | undefined;
55657
+ retryAfterSeconds?: number | undefined;
55658
+ }, unknown>>;
55659
+ };
55660
+ readonly service_unavailable: {
55661
+ readonly status: 503;
55662
+ readonly data: z.ZodType<{
55663
+ traceId: string;
55664
+ recovery: {
55665
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55666
+ } | {
55667
+ action: "read_operation";
55668
+ operation: {
55669
+ kind: "command";
55670
+ serialNumber: string;
55671
+ idempotencyKey: string;
55672
+ } | {
55673
+ kind: "firmware";
55674
+ serialNumber: string;
55675
+ updateId: string;
55676
+ } | {
55677
+ kind: "bluetooth_firmware";
55678
+ deviceId: string;
55679
+ updateId: string;
55680
+ } | {
55681
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55682
+ deviceId: string;
55683
+ requestId: string;
55684
+ } | {
55685
+ kind: "support";
55686
+ requestId: string;
55687
+ };
55688
+ };
55689
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55690
+ currentRevision?: string | undefined;
55691
+ retryAfterSeconds?: number | undefined;
55692
+ }, unknown, z.core.$ZodTypeInternals<{
55693
+ traceId: string;
55694
+ recovery: {
55695
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55696
+ } | {
55697
+ action: "read_operation";
55698
+ operation: {
55699
+ kind: "command";
55700
+ serialNumber: string;
55701
+ idempotencyKey: string;
55702
+ } | {
55703
+ kind: "firmware";
55704
+ serialNumber: string;
55705
+ updateId: string;
55706
+ } | {
55707
+ kind: "bluetooth_firmware";
55708
+ deviceId: string;
55709
+ updateId: string;
55710
+ } | {
55711
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55712
+ deviceId: string;
55713
+ requestId: string;
55714
+ } | {
55715
+ kind: "support";
55716
+ requestId: string;
55717
+ };
55718
+ };
55719
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55720
+ currentRevision?: string | undefined;
55721
+ retryAfterSeconds?: number | undefined;
55722
+ }, unknown>>;
55723
+ };
55724
+ readonly read_unavailable: {
55725
+ readonly status: 503;
55726
+ readonly data: z.ZodType<{
55727
+ traceId: string;
55728
+ recovery: {
55729
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55730
+ } | {
55731
+ action: "read_operation";
55732
+ operation: {
55733
+ kind: "command";
55734
+ serialNumber: string;
55735
+ idempotencyKey: string;
55736
+ } | {
55737
+ kind: "firmware";
55738
+ serialNumber: string;
55739
+ updateId: string;
55740
+ } | {
55741
+ kind: "bluetooth_firmware";
55742
+ deviceId: string;
55743
+ updateId: string;
55744
+ } | {
55745
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55746
+ deviceId: string;
55747
+ requestId: string;
55748
+ } | {
55749
+ kind: "support";
55750
+ requestId: string;
55751
+ };
55752
+ };
55753
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55754
+ currentRevision?: string | undefined;
55755
+ retryAfterSeconds?: number | undefined;
55756
+ }, unknown, z.core.$ZodTypeInternals<{
55757
+ traceId: string;
55758
+ recovery: {
55759
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55760
+ } | {
55761
+ action: "read_operation";
55762
+ operation: {
55763
+ kind: "command";
55764
+ serialNumber: string;
55765
+ idempotencyKey: string;
55766
+ } | {
55767
+ kind: "firmware";
55768
+ serialNumber: string;
55769
+ updateId: string;
55770
+ } | {
55771
+ kind: "bluetooth_firmware";
55772
+ deviceId: string;
55773
+ updateId: string;
55774
+ } | {
55775
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55776
+ deviceId: string;
55777
+ requestId: string;
55778
+ } | {
55779
+ kind: "support";
55780
+ requestId: string;
55781
+ };
55782
+ };
55783
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55784
+ currentRevision?: string | undefined;
55785
+ retryAfterSeconds?: number | undefined;
55786
+ }, unknown>>;
55787
+ };
55788
+ readonly stream_unavailable: {
55789
+ readonly status: 503;
55790
+ readonly data: z.ZodType<{
55791
+ traceId: string;
55792
+ recovery: {
55793
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55794
+ } | {
55795
+ action: "read_operation";
55796
+ operation: {
55797
+ kind: "command";
55798
+ serialNumber: string;
55799
+ idempotencyKey: string;
55800
+ } | {
55801
+ kind: "firmware";
55802
+ serialNumber: string;
55803
+ updateId: string;
55804
+ } | {
55805
+ kind: "bluetooth_firmware";
55806
+ deviceId: string;
55807
+ updateId: string;
55808
+ } | {
55809
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55810
+ deviceId: string;
55811
+ requestId: string;
55812
+ } | {
55813
+ kind: "support";
55814
+ requestId: string;
55815
+ };
55816
+ };
55817
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55818
+ currentRevision?: string | undefined;
55819
+ retryAfterSeconds?: number | undefined;
55820
+ }, unknown, z.core.$ZodTypeInternals<{
55821
+ traceId: string;
55822
+ recovery: {
55823
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55824
+ } | {
55825
+ action: "read_operation";
55826
+ operation: {
55827
+ kind: "command";
55828
+ serialNumber: string;
55829
+ idempotencyKey: string;
55830
+ } | {
55831
+ kind: "firmware";
55832
+ serialNumber: string;
55833
+ updateId: string;
55834
+ } | {
55835
+ kind: "bluetooth_firmware";
55836
+ deviceId: string;
55837
+ updateId: string;
55838
+ } | {
55839
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55840
+ deviceId: string;
55841
+ requestId: string;
55842
+ } | {
55843
+ kind: "support";
55844
+ requestId: string;
55845
+ };
55846
+ };
55847
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55848
+ currentRevision?: string | undefined;
55849
+ retryAfterSeconds?: number | undefined;
55850
+ }, unknown>>;
55851
+ };
55852
+ readonly payload_too_large: {
55853
+ readonly status: 413;
55854
+ readonly data: z.ZodType<{
55855
+ traceId: string;
55856
+ recovery: {
55857
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55858
+ } | {
55859
+ action: "read_operation";
55860
+ operation: {
55861
+ kind: "command";
55862
+ serialNumber: string;
55863
+ idempotencyKey: string;
55864
+ } | {
55865
+ kind: "firmware";
55866
+ serialNumber: string;
55867
+ updateId: string;
55868
+ } | {
55869
+ kind: "bluetooth_firmware";
55870
+ deviceId: string;
55871
+ updateId: string;
55872
+ } | {
55873
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55874
+ deviceId: string;
55875
+ requestId: string;
55876
+ } | {
55877
+ kind: "support";
55878
+ requestId: string;
55879
+ };
55880
+ };
55881
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55882
+ currentRevision?: string | undefined;
55883
+ retryAfterSeconds?: number | undefined;
55884
+ }, unknown, z.core.$ZodTypeInternals<{
55885
+ traceId: string;
55886
+ recovery: {
55887
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55888
+ } | {
55889
+ action: "read_operation";
55890
+ operation: {
55891
+ kind: "command";
55892
+ serialNumber: string;
55893
+ idempotencyKey: string;
55894
+ } | {
55895
+ kind: "firmware";
55896
+ serialNumber: string;
55897
+ updateId: string;
55898
+ } | {
55899
+ kind: "bluetooth_firmware";
55900
+ deviceId: string;
55901
+ updateId: string;
55902
+ } | {
55903
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55904
+ deviceId: string;
55905
+ requestId: string;
55906
+ } | {
55907
+ kind: "support";
55908
+ requestId: string;
55909
+ };
55910
+ };
55911
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55912
+ currentRevision?: string | undefined;
55913
+ retryAfterSeconds?: number | undefined;
55914
+ }, unknown>>;
55915
+ };
55916
+ readonly request_timeout: {
55917
+ readonly status: 503;
55918
+ readonly data: z.ZodType<{
55919
+ traceId: string;
55920
+ recovery: {
55921
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55922
+ } | {
55923
+ action: "read_operation";
55924
+ operation: {
55925
+ kind: "command";
55926
+ serialNumber: string;
55927
+ idempotencyKey: string;
55928
+ } | {
55929
+ kind: "firmware";
55930
+ serialNumber: string;
55931
+ updateId: string;
55932
+ } | {
55933
+ kind: "bluetooth_firmware";
55934
+ deviceId: string;
55935
+ updateId: string;
55936
+ } | {
55937
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55938
+ deviceId: string;
55939
+ requestId: string;
55940
+ } | {
55941
+ kind: "support";
55942
+ requestId: string;
55943
+ };
55944
+ };
55945
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55946
+ currentRevision?: string | undefined;
55947
+ retryAfterSeconds?: number | undefined;
55948
+ }, unknown, z.core.$ZodTypeInternals<{
55949
+ traceId: string;
55950
+ recovery: {
55951
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55952
+ } | {
55953
+ action: "read_operation";
55954
+ operation: {
55955
+ kind: "command";
55956
+ serialNumber: string;
55957
+ idempotencyKey: string;
55958
+ } | {
55959
+ kind: "firmware";
55960
+ serialNumber: string;
55961
+ updateId: string;
55962
+ } | {
55963
+ kind: "bluetooth_firmware";
55964
+ deviceId: string;
55965
+ updateId: string;
55966
+ } | {
55967
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
55968
+ deviceId: string;
55969
+ requestId: string;
55970
+ } | {
55971
+ kind: "support";
55972
+ requestId: string;
55973
+ };
55974
+ };
55975
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
55976
+ currentRevision?: string | undefined;
55977
+ retryAfterSeconds?: number | undefined;
55978
+ }, unknown>>;
55979
+ };
55980
+ readonly operation_unconfirmed: {
55981
+ readonly status: 503;
55982
+ readonly data: z.ZodType<{
55983
+ traceId: string;
55984
+ recovery: {
55985
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
55986
+ } | {
55987
+ action: "read_operation";
55988
+ operation: {
55989
+ kind: "command";
55990
+ serialNumber: string;
55991
+ idempotencyKey: string;
55992
+ } | {
55993
+ kind: "firmware";
55994
+ serialNumber: string;
55995
+ updateId: string;
55996
+ } | {
55997
+ kind: "bluetooth_firmware";
55998
+ deviceId: string;
55999
+ updateId: string;
56000
+ } | {
56001
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
56002
+ deviceId: string;
56003
+ requestId: string;
56004
+ } | {
56005
+ kind: "support";
56006
+ requestId: string;
56007
+ };
56008
+ };
56009
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
56010
+ currentRevision?: string | undefined;
56011
+ retryAfterSeconds?: number | undefined;
56012
+ }, unknown, z.core.$ZodTypeInternals<{
56013
+ traceId: string;
56014
+ recovery: {
56015
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
56016
+ } | {
56017
+ action: "read_operation";
56018
+ operation: {
56019
+ kind: "command";
56020
+ serialNumber: string;
56021
+ idempotencyKey: string;
56022
+ } | {
56023
+ kind: "firmware";
56024
+ serialNumber: string;
56025
+ updateId: string;
56026
+ } | {
56027
+ kind: "bluetooth_firmware";
56028
+ deviceId: string;
56029
+ updateId: string;
56030
+ } | {
56031
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
56032
+ deviceId: string;
56033
+ requestId: string;
56034
+ } | {
56035
+ kind: "support";
56036
+ requestId: string;
56037
+ };
56038
+ };
56039
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
56040
+ currentRevision?: string | undefined;
56041
+ retryAfterSeconds?: number | undefined;
56042
+ }, unknown>>;
56043
+ };
56044
+ readonly directory_unavailable: {
56045
+ readonly status: 503;
56046
+ readonly data: z.ZodType<{
56047
+ traceId: string;
56048
+ recovery: {
56049
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
56050
+ } | {
56051
+ action: "read_operation";
56052
+ operation: {
56053
+ kind: "command";
56054
+ serialNumber: string;
56055
+ idempotencyKey: string;
56056
+ } | {
56057
+ kind: "firmware";
56058
+ serialNumber: string;
56059
+ updateId: string;
56060
+ } | {
56061
+ kind: "bluetooth_firmware";
56062
+ deviceId: string;
56063
+ updateId: string;
56064
+ } | {
56065
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
56066
+ deviceId: string;
56067
+ requestId: string;
56068
+ } | {
56069
+ kind: "support";
56070
+ requestId: string;
56071
+ };
56072
+ };
56073
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
56074
+ currentRevision?: string | undefined;
56075
+ retryAfterSeconds?: number | undefined;
56076
+ }, unknown, z.core.$ZodTypeInternals<{
56077
+ traceId: string;
56078
+ recovery: {
56079
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
56080
+ } | {
56081
+ action: "read_operation";
56082
+ operation: {
56083
+ kind: "command";
56084
+ serialNumber: string;
56085
+ idempotencyKey: string;
56086
+ } | {
56087
+ kind: "firmware";
56088
+ serialNumber: string;
56089
+ updateId: string;
56090
+ } | {
56091
+ kind: "bluetooth_firmware";
56092
+ deviceId: string;
56093
+ updateId: string;
56094
+ } | {
56095
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
56096
+ deviceId: string;
56097
+ requestId: string;
56098
+ } | {
56099
+ kind: "support";
56100
+ requestId: string;
56101
+ };
56102
+ };
56103
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
56104
+ currentRevision?: string | undefined;
56105
+ retryAfterSeconds?: number | undefined;
56106
+ }, unknown>>;
56107
+ };
56108
+ }>, Record<never, never>>;
56109
+ watch: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
56110
+ deviceId: z.ZodString;
56111
+ }, z.core.$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
56112
+ identity: {
56113
+ serialNumber: string | null;
56114
+ } | null;
56115
+ preferences: {
56116
+ movementAlerts: boolean;
56117
+ };
56118
+ capabilities: {
56119
+ firmwareUpdates: boolean;
56120
+ factoryResetReports: boolean;
56121
+ };
56122
+ firmware: {
56123
+ lte: string | null;
56124
+ bluetooth: string | null;
56125
+ battery: string | null;
56126
+ modem: string | null;
56127
+ mtk: string | null;
56128
+ ti: string | null;
56129
+ buildNumber: number | null;
56130
+ } | null;
56131
+ members: Record<string, {
56132
+ active: boolean | null;
56133
+ displayName: string | null;
56134
+ listOrder: number | null;
56135
+ joinedAt: string | null;
56136
+ }> | null;
56137
+ generation: number | null;
56138
+ bike: {
56139
+ revision: string;
56140
+ name: string | null;
56141
+ brand: string | null;
53932
56142
  type: string | null;
53933
56143
  model: string | null;
53934
56144
  frameNumber: string | null;
@@ -54967,7 +57177,17 @@ declare const trackerContract: {
54967
57177
  bike: {
54968
57178
  edit: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
54969
57179
  deviceId: z.ZodString;
54970
- expectedRevision: z.ZodString;
57180
+ trackerCreatedAt: z.ZodISODateTime;
57181
+ expected: z.ZodObject<{
57182
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57183
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57184
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57185
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57186
+ frameNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57187
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57188
+ marketPrice: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57189
+ marketPriceCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57190
+ }, z.core.$strict>;
54971
57191
  changes: z.ZodObject<{
54972
57192
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54973
57193
  brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -54988,7 +57208,17 @@ declare const trackerContract: {
54988
57208
  USD: "USD";
54989
57209
  }>>>;
54990
57210
  }, z.core.$strict>;
54991
- }, z.core.$strict>, z.ZodVoid, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
57211
+ }, z.core.$strict>, z.ZodObject<{
57212
+ revision: z.ZodString;
57213
+ name: z.ZodNullable<z.ZodString>;
57214
+ brand: z.ZodNullable<z.ZodString>;
57215
+ type: z.ZodNullable<z.ZodString>;
57216
+ model: z.ZodNullable<z.ZodString>;
57217
+ frameNumber: z.ZodNullable<z.ZodString>;
57218
+ url: z.ZodNullable<z.ZodString>;
57219
+ marketPrice: z.ZodNullable<z.ZodString>;
57220
+ marketPriceCurrency: z.ZodNullable<z.ZodString>;
57221
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
54992
57222
  readonly invalid: {
54993
57223
  readonly status: 400;
54994
57224
  readonly data: z.ZodType<{