@bikefinder/sdk 0.36.0 → 0.38.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
@@ -5851,6 +5851,1961 @@ declare const accountContract: {
5851
5851
  }, unknown>>;
5852
5852
  };
5853
5853
  }>, Record<never, never>>;
5854
+ changes: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodVoid, import("@orpc/contract").Schema<AsyncIteratorObject<"account.changed", unknown, void>, import("@orpc/shared").AsyncIteratorClass<"account.changed", unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
5855
+ readonly directory_unavailable: {
5856
+ readonly status: 503;
5857
+ readonly data: z.ZodType<{
5858
+ traceId: string;
5859
+ recovery: {
5860
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
5861
+ } | {
5862
+ action: "read_operation";
5863
+ operation: {
5864
+ kind: "command";
5865
+ serialNumber: string;
5866
+ idempotencyKey: string;
5867
+ } | {
5868
+ kind: "firmware";
5869
+ serialNumber: string;
5870
+ updateId: string;
5871
+ } | {
5872
+ kind: "bluetooth_firmware";
5873
+ deviceId: string;
5874
+ updateId: string;
5875
+ } | {
5876
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
5877
+ deviceId: string;
5878
+ requestId: string;
5879
+ } | {
5880
+ kind: "support";
5881
+ requestId: string;
5882
+ };
5883
+ };
5884
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
5885
+ currentRevision?: string | undefined;
5886
+ retryAfterSeconds?: number | undefined;
5887
+ }, unknown, z.core.$ZodTypeInternals<{
5888
+ traceId: string;
5889
+ recovery: {
5890
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
5891
+ } | {
5892
+ action: "read_operation";
5893
+ operation: {
5894
+ kind: "command";
5895
+ serialNumber: string;
5896
+ idempotencyKey: string;
5897
+ } | {
5898
+ kind: "firmware";
5899
+ serialNumber: string;
5900
+ updateId: string;
5901
+ } | {
5902
+ kind: "bluetooth_firmware";
5903
+ deviceId: string;
5904
+ updateId: string;
5905
+ } | {
5906
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
5907
+ deviceId: string;
5908
+ requestId: string;
5909
+ } | {
5910
+ kind: "support";
5911
+ requestId: string;
5912
+ };
5913
+ };
5914
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
5915
+ currentRevision?: string | undefined;
5916
+ retryAfterSeconds?: number | undefined;
5917
+ }, unknown>>;
5918
+ };
5919
+ readonly directory_response_invalid: {
5920
+ readonly status: 503;
5921
+ readonly data: z.ZodType<{
5922
+ traceId: string;
5923
+ recovery: {
5924
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
5925
+ } | {
5926
+ action: "read_operation";
5927
+ operation: {
5928
+ kind: "command";
5929
+ serialNumber: string;
5930
+ idempotencyKey: string;
5931
+ } | {
5932
+ kind: "firmware";
5933
+ serialNumber: string;
5934
+ updateId: string;
5935
+ } | {
5936
+ kind: "bluetooth_firmware";
5937
+ deviceId: string;
5938
+ updateId: string;
5939
+ } | {
5940
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
5941
+ deviceId: string;
5942
+ requestId: string;
5943
+ } | {
5944
+ kind: "support";
5945
+ requestId: string;
5946
+ };
5947
+ };
5948
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
5949
+ currentRevision?: string | undefined;
5950
+ retryAfterSeconds?: number | undefined;
5951
+ }, unknown, z.core.$ZodTypeInternals<{
5952
+ traceId: string;
5953
+ recovery: {
5954
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
5955
+ } | {
5956
+ action: "read_operation";
5957
+ operation: {
5958
+ kind: "command";
5959
+ serialNumber: string;
5960
+ idempotencyKey: string;
5961
+ } | {
5962
+ kind: "firmware";
5963
+ serialNumber: string;
5964
+ updateId: string;
5965
+ } | {
5966
+ kind: "bluetooth_firmware";
5967
+ deviceId: string;
5968
+ updateId: string;
5969
+ } | {
5970
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
5971
+ deviceId: string;
5972
+ requestId: string;
5973
+ } | {
5974
+ kind: "support";
5975
+ requestId: string;
5976
+ };
5977
+ };
5978
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
5979
+ currentRevision?: string | undefined;
5980
+ retryAfterSeconds?: number | undefined;
5981
+ }, unknown>>;
5982
+ };
5983
+ readonly invalid: {
5984
+ readonly status: 400;
5985
+ readonly data: z.ZodType<{
5986
+ traceId: string;
5987
+ recovery: {
5988
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
5989
+ } | {
5990
+ action: "read_operation";
5991
+ operation: {
5992
+ kind: "command";
5993
+ serialNumber: string;
5994
+ idempotencyKey: string;
5995
+ } | {
5996
+ kind: "firmware";
5997
+ serialNumber: string;
5998
+ updateId: string;
5999
+ } | {
6000
+ kind: "bluetooth_firmware";
6001
+ deviceId: string;
6002
+ updateId: string;
6003
+ } | {
6004
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6005
+ deviceId: string;
6006
+ requestId: string;
6007
+ } | {
6008
+ kind: "support";
6009
+ requestId: string;
6010
+ };
6011
+ };
6012
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6013
+ currentRevision?: string | undefined;
6014
+ retryAfterSeconds?: number | undefined;
6015
+ }, unknown, z.core.$ZodTypeInternals<{
6016
+ traceId: string;
6017
+ recovery: {
6018
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6019
+ } | {
6020
+ action: "read_operation";
6021
+ operation: {
6022
+ kind: "command";
6023
+ serialNumber: string;
6024
+ idempotencyKey: string;
6025
+ } | {
6026
+ kind: "firmware";
6027
+ serialNumber: string;
6028
+ updateId: string;
6029
+ } | {
6030
+ kind: "bluetooth_firmware";
6031
+ deviceId: string;
6032
+ updateId: string;
6033
+ } | {
6034
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6035
+ deviceId: string;
6036
+ requestId: string;
6037
+ } | {
6038
+ kind: "support";
6039
+ requestId: string;
6040
+ };
6041
+ };
6042
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6043
+ currentRevision?: string | undefined;
6044
+ retryAfterSeconds?: number | undefined;
6045
+ }, unknown>>;
6046
+ };
6047
+ readonly unauthenticated: {
6048
+ readonly status: 401;
6049
+ readonly data: z.ZodType<{
6050
+ traceId: string;
6051
+ recovery: {
6052
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6053
+ } | {
6054
+ action: "read_operation";
6055
+ operation: {
6056
+ kind: "command";
6057
+ serialNumber: string;
6058
+ idempotencyKey: string;
6059
+ } | {
6060
+ kind: "firmware";
6061
+ serialNumber: string;
6062
+ updateId: string;
6063
+ } | {
6064
+ kind: "bluetooth_firmware";
6065
+ deviceId: string;
6066
+ updateId: string;
6067
+ } | {
6068
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6069
+ deviceId: string;
6070
+ requestId: string;
6071
+ } | {
6072
+ kind: "support";
6073
+ requestId: string;
6074
+ };
6075
+ };
6076
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6077
+ currentRevision?: string | undefined;
6078
+ retryAfterSeconds?: number | undefined;
6079
+ }, unknown, z.core.$ZodTypeInternals<{
6080
+ traceId: string;
6081
+ recovery: {
6082
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6083
+ } | {
6084
+ action: "read_operation";
6085
+ operation: {
6086
+ kind: "command";
6087
+ serialNumber: string;
6088
+ idempotencyKey: string;
6089
+ } | {
6090
+ kind: "firmware";
6091
+ serialNumber: string;
6092
+ updateId: string;
6093
+ } | {
6094
+ kind: "bluetooth_firmware";
6095
+ deviceId: string;
6096
+ updateId: string;
6097
+ } | {
6098
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6099
+ deviceId: string;
6100
+ requestId: string;
6101
+ } | {
6102
+ kind: "support";
6103
+ requestId: string;
6104
+ };
6105
+ };
6106
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6107
+ currentRevision?: string | undefined;
6108
+ retryAfterSeconds?: number | undefined;
6109
+ }, unknown>>;
6110
+ };
6111
+ readonly forbidden: {
6112
+ readonly status: 403;
6113
+ readonly data: z.ZodType<{
6114
+ traceId: string;
6115
+ recovery: {
6116
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6117
+ } | {
6118
+ action: "read_operation";
6119
+ operation: {
6120
+ kind: "command";
6121
+ serialNumber: string;
6122
+ idempotencyKey: string;
6123
+ } | {
6124
+ kind: "firmware";
6125
+ serialNumber: string;
6126
+ updateId: string;
6127
+ } | {
6128
+ kind: "bluetooth_firmware";
6129
+ deviceId: string;
6130
+ updateId: string;
6131
+ } | {
6132
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6133
+ deviceId: string;
6134
+ requestId: string;
6135
+ } | {
6136
+ kind: "support";
6137
+ requestId: string;
6138
+ };
6139
+ };
6140
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6141
+ currentRevision?: string | undefined;
6142
+ retryAfterSeconds?: number | undefined;
6143
+ }, unknown, z.core.$ZodTypeInternals<{
6144
+ traceId: string;
6145
+ recovery: {
6146
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6147
+ } | {
6148
+ action: "read_operation";
6149
+ operation: {
6150
+ kind: "command";
6151
+ serialNumber: string;
6152
+ idempotencyKey: string;
6153
+ } | {
6154
+ kind: "firmware";
6155
+ serialNumber: string;
6156
+ updateId: string;
6157
+ } | {
6158
+ kind: "bluetooth_firmware";
6159
+ deviceId: string;
6160
+ updateId: string;
6161
+ } | {
6162
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6163
+ deviceId: string;
6164
+ requestId: string;
6165
+ } | {
6166
+ kind: "support";
6167
+ requestId: string;
6168
+ };
6169
+ };
6170
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6171
+ currentRevision?: string | undefined;
6172
+ retryAfterSeconds?: number | undefined;
6173
+ }, unknown>>;
6174
+ };
6175
+ readonly not_found: {
6176
+ readonly status: 404;
6177
+ readonly data: z.ZodType<{
6178
+ traceId: string;
6179
+ recovery: {
6180
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6181
+ } | {
6182
+ action: "read_operation";
6183
+ operation: {
6184
+ kind: "command";
6185
+ serialNumber: string;
6186
+ idempotencyKey: string;
6187
+ } | {
6188
+ kind: "firmware";
6189
+ serialNumber: string;
6190
+ updateId: string;
6191
+ } | {
6192
+ kind: "bluetooth_firmware";
6193
+ deviceId: string;
6194
+ updateId: string;
6195
+ } | {
6196
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6197
+ deviceId: string;
6198
+ requestId: string;
6199
+ } | {
6200
+ kind: "support";
6201
+ requestId: string;
6202
+ };
6203
+ };
6204
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6205
+ currentRevision?: string | undefined;
6206
+ retryAfterSeconds?: number | undefined;
6207
+ }, unknown, z.core.$ZodTypeInternals<{
6208
+ traceId: string;
6209
+ recovery: {
6210
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6211
+ } | {
6212
+ action: "read_operation";
6213
+ operation: {
6214
+ kind: "command";
6215
+ serialNumber: string;
6216
+ idempotencyKey: string;
6217
+ } | {
6218
+ kind: "firmware";
6219
+ serialNumber: string;
6220
+ updateId: string;
6221
+ } | {
6222
+ kind: "bluetooth_firmware";
6223
+ deviceId: string;
6224
+ updateId: string;
6225
+ } | {
6226
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6227
+ deviceId: string;
6228
+ requestId: string;
6229
+ } | {
6230
+ kind: "support";
6231
+ requestId: string;
6232
+ };
6233
+ };
6234
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6235
+ currentRevision?: string | undefined;
6236
+ retryAfterSeconds?: number | undefined;
6237
+ }, unknown>>;
6238
+ };
6239
+ readonly conflict: {
6240
+ readonly status: 409;
6241
+ readonly data: z.ZodType<{
6242
+ traceId: string;
6243
+ recovery: {
6244
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6245
+ } | {
6246
+ action: "read_operation";
6247
+ operation: {
6248
+ kind: "command";
6249
+ serialNumber: string;
6250
+ idempotencyKey: string;
6251
+ } | {
6252
+ kind: "firmware";
6253
+ serialNumber: string;
6254
+ updateId: string;
6255
+ } | {
6256
+ kind: "bluetooth_firmware";
6257
+ deviceId: string;
6258
+ updateId: string;
6259
+ } | {
6260
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6261
+ deviceId: string;
6262
+ requestId: string;
6263
+ } | {
6264
+ kind: "support";
6265
+ requestId: string;
6266
+ };
6267
+ };
6268
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6269
+ currentRevision?: string | undefined;
6270
+ retryAfterSeconds?: number | undefined;
6271
+ }, unknown, z.core.$ZodTypeInternals<{
6272
+ traceId: string;
6273
+ recovery: {
6274
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6275
+ } | {
6276
+ action: "read_operation";
6277
+ operation: {
6278
+ kind: "command";
6279
+ serialNumber: string;
6280
+ idempotencyKey: string;
6281
+ } | {
6282
+ kind: "firmware";
6283
+ serialNumber: string;
6284
+ updateId: string;
6285
+ } | {
6286
+ kind: "bluetooth_firmware";
6287
+ deviceId: string;
6288
+ updateId: string;
6289
+ } | {
6290
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6291
+ deviceId: string;
6292
+ requestId: string;
6293
+ } | {
6294
+ kind: "support";
6295
+ requestId: string;
6296
+ };
6297
+ };
6298
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6299
+ currentRevision?: string | undefined;
6300
+ retryAfterSeconds?: number | undefined;
6301
+ }, unknown>>;
6302
+ };
6303
+ readonly rate_limited: {
6304
+ readonly status: 429;
6305
+ readonly data: z.ZodType<{
6306
+ traceId: string;
6307
+ recovery: {
6308
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6309
+ } | {
6310
+ action: "read_operation";
6311
+ operation: {
6312
+ kind: "command";
6313
+ serialNumber: string;
6314
+ idempotencyKey: string;
6315
+ } | {
6316
+ kind: "firmware";
6317
+ serialNumber: string;
6318
+ updateId: string;
6319
+ } | {
6320
+ kind: "bluetooth_firmware";
6321
+ deviceId: string;
6322
+ updateId: string;
6323
+ } | {
6324
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6325
+ deviceId: string;
6326
+ requestId: string;
6327
+ } | {
6328
+ kind: "support";
6329
+ requestId: string;
6330
+ };
6331
+ };
6332
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6333
+ currentRevision?: string | undefined;
6334
+ retryAfterSeconds?: number | undefined;
6335
+ }, unknown, z.core.$ZodTypeInternals<{
6336
+ traceId: string;
6337
+ recovery: {
6338
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6339
+ } | {
6340
+ action: "read_operation";
6341
+ operation: {
6342
+ kind: "command";
6343
+ serialNumber: string;
6344
+ idempotencyKey: string;
6345
+ } | {
6346
+ kind: "firmware";
6347
+ serialNumber: string;
6348
+ updateId: string;
6349
+ } | {
6350
+ kind: "bluetooth_firmware";
6351
+ deviceId: string;
6352
+ updateId: string;
6353
+ } | {
6354
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6355
+ deviceId: string;
6356
+ requestId: string;
6357
+ } | {
6358
+ kind: "support";
6359
+ requestId: string;
6360
+ };
6361
+ };
6362
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6363
+ currentRevision?: string | undefined;
6364
+ retryAfterSeconds?: number | undefined;
6365
+ }, unknown>>;
6366
+ };
6367
+ readonly stored_data_invalid: {
6368
+ readonly status: 503;
6369
+ readonly data: z.ZodType<{
6370
+ traceId: string;
6371
+ recovery: {
6372
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6373
+ } | {
6374
+ action: "read_operation";
6375
+ operation: {
6376
+ kind: "command";
6377
+ serialNumber: string;
6378
+ idempotencyKey: string;
6379
+ } | {
6380
+ kind: "firmware";
6381
+ serialNumber: string;
6382
+ updateId: string;
6383
+ } | {
6384
+ kind: "bluetooth_firmware";
6385
+ deviceId: string;
6386
+ updateId: string;
6387
+ } | {
6388
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6389
+ deviceId: string;
6390
+ requestId: string;
6391
+ } | {
6392
+ kind: "support";
6393
+ requestId: string;
6394
+ };
6395
+ };
6396
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6397
+ currentRevision?: string | undefined;
6398
+ retryAfterSeconds?: number | undefined;
6399
+ }, unknown, z.core.$ZodTypeInternals<{
6400
+ traceId: string;
6401
+ recovery: {
6402
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6403
+ } | {
6404
+ action: "read_operation";
6405
+ operation: {
6406
+ kind: "command";
6407
+ serialNumber: string;
6408
+ idempotencyKey: string;
6409
+ } | {
6410
+ kind: "firmware";
6411
+ serialNumber: string;
6412
+ updateId: string;
6413
+ } | {
6414
+ kind: "bluetooth_firmware";
6415
+ deviceId: string;
6416
+ updateId: string;
6417
+ } | {
6418
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6419
+ deviceId: string;
6420
+ requestId: string;
6421
+ } | {
6422
+ kind: "support";
6423
+ requestId: string;
6424
+ };
6425
+ };
6426
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6427
+ currentRevision?: string | undefined;
6428
+ retryAfterSeconds?: number | undefined;
6429
+ }, unknown>>;
6430
+ };
6431
+ readonly service_unavailable: {
6432
+ readonly status: 503;
6433
+ readonly data: z.ZodType<{
6434
+ traceId: string;
6435
+ recovery: {
6436
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6437
+ } | {
6438
+ action: "read_operation";
6439
+ operation: {
6440
+ kind: "command";
6441
+ serialNumber: string;
6442
+ idempotencyKey: string;
6443
+ } | {
6444
+ kind: "firmware";
6445
+ serialNumber: string;
6446
+ updateId: string;
6447
+ } | {
6448
+ kind: "bluetooth_firmware";
6449
+ deviceId: string;
6450
+ updateId: string;
6451
+ } | {
6452
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6453
+ deviceId: string;
6454
+ requestId: string;
6455
+ } | {
6456
+ kind: "support";
6457
+ requestId: string;
6458
+ };
6459
+ };
6460
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6461
+ currentRevision?: string | undefined;
6462
+ retryAfterSeconds?: number | undefined;
6463
+ }, unknown, z.core.$ZodTypeInternals<{
6464
+ traceId: string;
6465
+ recovery: {
6466
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6467
+ } | {
6468
+ action: "read_operation";
6469
+ operation: {
6470
+ kind: "command";
6471
+ serialNumber: string;
6472
+ idempotencyKey: string;
6473
+ } | {
6474
+ kind: "firmware";
6475
+ serialNumber: string;
6476
+ updateId: string;
6477
+ } | {
6478
+ kind: "bluetooth_firmware";
6479
+ deviceId: string;
6480
+ updateId: string;
6481
+ } | {
6482
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6483
+ deviceId: string;
6484
+ requestId: string;
6485
+ } | {
6486
+ kind: "support";
6487
+ requestId: string;
6488
+ };
6489
+ };
6490
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6491
+ currentRevision?: string | undefined;
6492
+ retryAfterSeconds?: number | undefined;
6493
+ }, unknown>>;
6494
+ };
6495
+ readonly read_unavailable: {
6496
+ readonly status: 503;
6497
+ readonly data: z.ZodType<{
6498
+ traceId: string;
6499
+ recovery: {
6500
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6501
+ } | {
6502
+ action: "read_operation";
6503
+ operation: {
6504
+ kind: "command";
6505
+ serialNumber: string;
6506
+ idempotencyKey: string;
6507
+ } | {
6508
+ kind: "firmware";
6509
+ serialNumber: string;
6510
+ updateId: string;
6511
+ } | {
6512
+ kind: "bluetooth_firmware";
6513
+ deviceId: string;
6514
+ updateId: string;
6515
+ } | {
6516
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6517
+ deviceId: string;
6518
+ requestId: string;
6519
+ } | {
6520
+ kind: "support";
6521
+ requestId: string;
6522
+ };
6523
+ };
6524
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6525
+ currentRevision?: string | undefined;
6526
+ retryAfterSeconds?: number | undefined;
6527
+ }, unknown, z.core.$ZodTypeInternals<{
6528
+ traceId: string;
6529
+ recovery: {
6530
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6531
+ } | {
6532
+ action: "read_operation";
6533
+ operation: {
6534
+ kind: "command";
6535
+ serialNumber: string;
6536
+ idempotencyKey: string;
6537
+ } | {
6538
+ kind: "firmware";
6539
+ serialNumber: string;
6540
+ updateId: string;
6541
+ } | {
6542
+ kind: "bluetooth_firmware";
6543
+ deviceId: string;
6544
+ updateId: string;
6545
+ } | {
6546
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6547
+ deviceId: string;
6548
+ requestId: string;
6549
+ } | {
6550
+ kind: "support";
6551
+ requestId: string;
6552
+ };
6553
+ };
6554
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6555
+ currentRevision?: string | undefined;
6556
+ retryAfterSeconds?: number | undefined;
6557
+ }, unknown>>;
6558
+ };
6559
+ readonly stream_unavailable: {
6560
+ readonly status: 503;
6561
+ readonly data: z.ZodType<{
6562
+ traceId: string;
6563
+ recovery: {
6564
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6565
+ } | {
6566
+ action: "read_operation";
6567
+ operation: {
6568
+ kind: "command";
6569
+ serialNumber: string;
6570
+ idempotencyKey: string;
6571
+ } | {
6572
+ kind: "firmware";
6573
+ serialNumber: string;
6574
+ updateId: string;
6575
+ } | {
6576
+ kind: "bluetooth_firmware";
6577
+ deviceId: string;
6578
+ updateId: string;
6579
+ } | {
6580
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6581
+ deviceId: string;
6582
+ requestId: string;
6583
+ } | {
6584
+ kind: "support";
6585
+ requestId: string;
6586
+ };
6587
+ };
6588
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6589
+ currentRevision?: string | undefined;
6590
+ retryAfterSeconds?: number | undefined;
6591
+ }, unknown, z.core.$ZodTypeInternals<{
6592
+ traceId: string;
6593
+ recovery: {
6594
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6595
+ } | {
6596
+ action: "read_operation";
6597
+ operation: {
6598
+ kind: "command";
6599
+ serialNumber: string;
6600
+ idempotencyKey: string;
6601
+ } | {
6602
+ kind: "firmware";
6603
+ serialNumber: string;
6604
+ updateId: string;
6605
+ } | {
6606
+ kind: "bluetooth_firmware";
6607
+ deviceId: string;
6608
+ updateId: string;
6609
+ } | {
6610
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6611
+ deviceId: string;
6612
+ requestId: string;
6613
+ } | {
6614
+ kind: "support";
6615
+ requestId: string;
6616
+ };
6617
+ };
6618
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6619
+ currentRevision?: string | undefined;
6620
+ retryAfterSeconds?: number | undefined;
6621
+ }, unknown>>;
6622
+ };
6623
+ readonly payload_too_large: {
6624
+ readonly status: 413;
6625
+ readonly data: z.ZodType<{
6626
+ traceId: string;
6627
+ recovery: {
6628
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6629
+ } | {
6630
+ action: "read_operation";
6631
+ operation: {
6632
+ kind: "command";
6633
+ serialNumber: string;
6634
+ idempotencyKey: string;
6635
+ } | {
6636
+ kind: "firmware";
6637
+ serialNumber: string;
6638
+ updateId: string;
6639
+ } | {
6640
+ kind: "bluetooth_firmware";
6641
+ deviceId: string;
6642
+ updateId: string;
6643
+ } | {
6644
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6645
+ deviceId: string;
6646
+ requestId: string;
6647
+ } | {
6648
+ kind: "support";
6649
+ requestId: string;
6650
+ };
6651
+ };
6652
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6653
+ currentRevision?: string | undefined;
6654
+ retryAfterSeconds?: number | undefined;
6655
+ }, unknown, z.core.$ZodTypeInternals<{
6656
+ traceId: string;
6657
+ recovery: {
6658
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6659
+ } | {
6660
+ action: "read_operation";
6661
+ operation: {
6662
+ kind: "command";
6663
+ serialNumber: string;
6664
+ idempotencyKey: string;
6665
+ } | {
6666
+ kind: "firmware";
6667
+ serialNumber: string;
6668
+ updateId: string;
6669
+ } | {
6670
+ kind: "bluetooth_firmware";
6671
+ deviceId: string;
6672
+ updateId: string;
6673
+ } | {
6674
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6675
+ deviceId: string;
6676
+ requestId: string;
6677
+ } | {
6678
+ kind: "support";
6679
+ requestId: string;
6680
+ };
6681
+ };
6682
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6683
+ currentRevision?: string | undefined;
6684
+ retryAfterSeconds?: number | undefined;
6685
+ }, unknown>>;
6686
+ };
6687
+ readonly request_timeout: {
6688
+ readonly status: 503;
6689
+ readonly data: z.ZodType<{
6690
+ traceId: string;
6691
+ recovery: {
6692
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6693
+ } | {
6694
+ action: "read_operation";
6695
+ operation: {
6696
+ kind: "command";
6697
+ serialNumber: string;
6698
+ idempotencyKey: string;
6699
+ } | {
6700
+ kind: "firmware";
6701
+ serialNumber: string;
6702
+ updateId: string;
6703
+ } | {
6704
+ kind: "bluetooth_firmware";
6705
+ deviceId: string;
6706
+ updateId: string;
6707
+ } | {
6708
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6709
+ deviceId: string;
6710
+ requestId: string;
6711
+ } | {
6712
+ kind: "support";
6713
+ requestId: string;
6714
+ };
6715
+ };
6716
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6717
+ currentRevision?: string | undefined;
6718
+ retryAfterSeconds?: number | undefined;
6719
+ }, unknown, z.core.$ZodTypeInternals<{
6720
+ traceId: string;
6721
+ recovery: {
6722
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6723
+ } | {
6724
+ action: "read_operation";
6725
+ operation: {
6726
+ kind: "command";
6727
+ serialNumber: string;
6728
+ idempotencyKey: string;
6729
+ } | {
6730
+ kind: "firmware";
6731
+ serialNumber: string;
6732
+ updateId: string;
6733
+ } | {
6734
+ kind: "bluetooth_firmware";
6735
+ deviceId: string;
6736
+ updateId: string;
6737
+ } | {
6738
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6739
+ deviceId: string;
6740
+ requestId: string;
6741
+ } | {
6742
+ kind: "support";
6743
+ requestId: string;
6744
+ };
6745
+ };
6746
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6747
+ currentRevision?: string | undefined;
6748
+ retryAfterSeconds?: number | undefined;
6749
+ }, unknown>>;
6750
+ };
6751
+ readonly operation_unconfirmed: {
6752
+ readonly status: 503;
6753
+ readonly data: z.ZodType<{
6754
+ traceId: string;
6755
+ recovery: {
6756
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6757
+ } | {
6758
+ action: "read_operation";
6759
+ operation: {
6760
+ kind: "command";
6761
+ serialNumber: string;
6762
+ idempotencyKey: string;
6763
+ } | {
6764
+ kind: "firmware";
6765
+ serialNumber: string;
6766
+ updateId: string;
6767
+ } | {
6768
+ kind: "bluetooth_firmware";
6769
+ deviceId: string;
6770
+ updateId: string;
6771
+ } | {
6772
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6773
+ deviceId: string;
6774
+ requestId: string;
6775
+ } | {
6776
+ kind: "support";
6777
+ requestId: string;
6778
+ };
6779
+ };
6780
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6781
+ currentRevision?: string | undefined;
6782
+ retryAfterSeconds?: number | undefined;
6783
+ }, unknown, z.core.$ZodTypeInternals<{
6784
+ traceId: string;
6785
+ recovery: {
6786
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6787
+ } | {
6788
+ action: "read_operation";
6789
+ operation: {
6790
+ kind: "command";
6791
+ serialNumber: string;
6792
+ idempotencyKey: string;
6793
+ } | {
6794
+ kind: "firmware";
6795
+ serialNumber: string;
6796
+ updateId: string;
6797
+ } | {
6798
+ kind: "bluetooth_firmware";
6799
+ deviceId: string;
6800
+ updateId: string;
6801
+ } | {
6802
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6803
+ deviceId: string;
6804
+ requestId: string;
6805
+ } | {
6806
+ kind: "support";
6807
+ requestId: string;
6808
+ };
6809
+ };
6810
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6811
+ currentRevision?: string | undefined;
6812
+ retryAfterSeconds?: number | undefined;
6813
+ }, unknown>>;
6814
+ };
6815
+ }>, Record<never, never>>;
6816
+ watchSnapshot: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodVoid, z.ZodObject<{
6817
+ account: z.ZodObject<{
6818
+ name: z.ZodNullable<z.ZodString>;
6819
+ email: z.ZodNullable<z.ZodString>;
6820
+ picture: z.ZodNullable<z.ZodString>;
6821
+ registeredAt: z.ZodNullable<z.ZodISODateTime>;
6822
+ preferences: z.ZodObject<{
6823
+ alarm: z.ZodBoolean;
6824
+ timeSensitive: z.ZodBoolean;
6825
+ notifications: z.ZodBoolean;
6826
+ language: z.ZodNullable<z.ZodString>;
6827
+ unit: z.ZodEnum<{
6828
+ metric: "metric";
6829
+ imperial: "imperial";
6830
+ }>;
6831
+ mapStyle: z.ZodEnum<{
6832
+ minimal: "minimal";
6833
+ satellite: "satellite";
6834
+ }>;
6835
+ }, z.core.$strip>;
6836
+ readIssues: z.ZodArray<z.ZodObject<{
6837
+ path: z.ZodString;
6838
+ code: z.ZodLiteral<"invalid_stored_value">;
6839
+ }, z.core.$strip>>;
6840
+ id: z.ZodString;
6841
+ revision: z.ZodString;
6842
+ createdAt: z.ZodISODateTime;
6843
+ updatedAt: z.ZodISODateTime;
6844
+ }, z.core.$strip>;
6845
+ lifetime: z.ZodString;
6846
+ credentialExpiresAt: z.ZodInt;
6847
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
6848
+ readonly directory_unavailable: {
6849
+ readonly status: 503;
6850
+ readonly data: z.ZodType<{
6851
+ traceId: string;
6852
+ recovery: {
6853
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6854
+ } | {
6855
+ action: "read_operation";
6856
+ operation: {
6857
+ kind: "command";
6858
+ serialNumber: string;
6859
+ idempotencyKey: string;
6860
+ } | {
6861
+ kind: "firmware";
6862
+ serialNumber: string;
6863
+ updateId: string;
6864
+ } | {
6865
+ kind: "bluetooth_firmware";
6866
+ deviceId: string;
6867
+ updateId: string;
6868
+ } | {
6869
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6870
+ deviceId: string;
6871
+ requestId: string;
6872
+ } | {
6873
+ kind: "support";
6874
+ requestId: string;
6875
+ };
6876
+ };
6877
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6878
+ currentRevision?: string | undefined;
6879
+ retryAfterSeconds?: number | undefined;
6880
+ }, unknown, z.core.$ZodTypeInternals<{
6881
+ traceId: string;
6882
+ recovery: {
6883
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6884
+ } | {
6885
+ action: "read_operation";
6886
+ operation: {
6887
+ kind: "command";
6888
+ serialNumber: string;
6889
+ idempotencyKey: string;
6890
+ } | {
6891
+ kind: "firmware";
6892
+ serialNumber: string;
6893
+ updateId: string;
6894
+ } | {
6895
+ kind: "bluetooth_firmware";
6896
+ deviceId: string;
6897
+ updateId: string;
6898
+ } | {
6899
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6900
+ deviceId: string;
6901
+ requestId: string;
6902
+ } | {
6903
+ kind: "support";
6904
+ requestId: string;
6905
+ };
6906
+ };
6907
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6908
+ currentRevision?: string | undefined;
6909
+ retryAfterSeconds?: number | undefined;
6910
+ }, unknown>>;
6911
+ };
6912
+ readonly directory_response_invalid: {
6913
+ readonly status: 503;
6914
+ readonly data: z.ZodType<{
6915
+ traceId: string;
6916
+ recovery: {
6917
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6918
+ } | {
6919
+ action: "read_operation";
6920
+ operation: {
6921
+ kind: "command";
6922
+ serialNumber: string;
6923
+ idempotencyKey: string;
6924
+ } | {
6925
+ kind: "firmware";
6926
+ serialNumber: string;
6927
+ updateId: string;
6928
+ } | {
6929
+ kind: "bluetooth_firmware";
6930
+ deviceId: string;
6931
+ updateId: string;
6932
+ } | {
6933
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6934
+ deviceId: string;
6935
+ requestId: string;
6936
+ } | {
6937
+ kind: "support";
6938
+ requestId: string;
6939
+ };
6940
+ };
6941
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6942
+ currentRevision?: string | undefined;
6943
+ retryAfterSeconds?: number | undefined;
6944
+ }, unknown, z.core.$ZodTypeInternals<{
6945
+ traceId: string;
6946
+ recovery: {
6947
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6948
+ } | {
6949
+ action: "read_operation";
6950
+ operation: {
6951
+ kind: "command";
6952
+ serialNumber: string;
6953
+ idempotencyKey: string;
6954
+ } | {
6955
+ kind: "firmware";
6956
+ serialNumber: string;
6957
+ updateId: string;
6958
+ } | {
6959
+ kind: "bluetooth_firmware";
6960
+ deviceId: string;
6961
+ updateId: string;
6962
+ } | {
6963
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6964
+ deviceId: string;
6965
+ requestId: string;
6966
+ } | {
6967
+ kind: "support";
6968
+ requestId: string;
6969
+ };
6970
+ };
6971
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
6972
+ currentRevision?: string | undefined;
6973
+ retryAfterSeconds?: number | undefined;
6974
+ }, unknown>>;
6975
+ };
6976
+ readonly invalid: {
6977
+ readonly status: 400;
6978
+ readonly data: z.ZodType<{
6979
+ traceId: string;
6980
+ recovery: {
6981
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
6982
+ } | {
6983
+ action: "read_operation";
6984
+ operation: {
6985
+ kind: "command";
6986
+ serialNumber: string;
6987
+ idempotencyKey: string;
6988
+ } | {
6989
+ kind: "firmware";
6990
+ serialNumber: string;
6991
+ updateId: string;
6992
+ } | {
6993
+ kind: "bluetooth_firmware";
6994
+ deviceId: string;
6995
+ updateId: string;
6996
+ } | {
6997
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
6998
+ deviceId: string;
6999
+ requestId: string;
7000
+ } | {
7001
+ kind: "support";
7002
+ requestId: string;
7003
+ };
7004
+ };
7005
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
7006
+ currentRevision?: string | undefined;
7007
+ retryAfterSeconds?: number | undefined;
7008
+ }, unknown, z.core.$ZodTypeInternals<{
7009
+ traceId: string;
7010
+ recovery: {
7011
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
7012
+ } | {
7013
+ action: "read_operation";
7014
+ operation: {
7015
+ kind: "command";
7016
+ serialNumber: string;
7017
+ idempotencyKey: string;
7018
+ } | {
7019
+ kind: "firmware";
7020
+ serialNumber: string;
7021
+ updateId: string;
7022
+ } | {
7023
+ kind: "bluetooth_firmware";
7024
+ deviceId: string;
7025
+ updateId: string;
7026
+ } | {
7027
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
7028
+ deviceId: string;
7029
+ requestId: string;
7030
+ } | {
7031
+ kind: "support";
7032
+ requestId: string;
7033
+ };
7034
+ };
7035
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
7036
+ currentRevision?: string | undefined;
7037
+ retryAfterSeconds?: number | undefined;
7038
+ }, unknown>>;
7039
+ };
7040
+ readonly unauthenticated: {
7041
+ readonly status: 401;
7042
+ readonly data: z.ZodType<{
7043
+ traceId: string;
7044
+ recovery: {
7045
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
7046
+ } | {
7047
+ action: "read_operation";
7048
+ operation: {
7049
+ kind: "command";
7050
+ serialNumber: string;
7051
+ idempotencyKey: string;
7052
+ } | {
7053
+ kind: "firmware";
7054
+ serialNumber: string;
7055
+ updateId: string;
7056
+ } | {
7057
+ kind: "bluetooth_firmware";
7058
+ deviceId: string;
7059
+ updateId: string;
7060
+ } | {
7061
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
7062
+ deviceId: string;
7063
+ requestId: string;
7064
+ } | {
7065
+ kind: "support";
7066
+ requestId: string;
7067
+ };
7068
+ };
7069
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
7070
+ currentRevision?: string | undefined;
7071
+ retryAfterSeconds?: number | undefined;
7072
+ }, unknown, z.core.$ZodTypeInternals<{
7073
+ traceId: string;
7074
+ recovery: {
7075
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
7076
+ } | {
7077
+ action: "read_operation";
7078
+ operation: {
7079
+ kind: "command";
7080
+ serialNumber: string;
7081
+ idempotencyKey: string;
7082
+ } | {
7083
+ kind: "firmware";
7084
+ serialNumber: string;
7085
+ updateId: string;
7086
+ } | {
7087
+ kind: "bluetooth_firmware";
7088
+ deviceId: string;
7089
+ updateId: string;
7090
+ } | {
7091
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
7092
+ deviceId: string;
7093
+ requestId: string;
7094
+ } | {
7095
+ kind: "support";
7096
+ requestId: string;
7097
+ };
7098
+ };
7099
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
7100
+ currentRevision?: string | undefined;
7101
+ retryAfterSeconds?: number | undefined;
7102
+ }, unknown>>;
7103
+ };
7104
+ readonly forbidden: {
7105
+ readonly status: 403;
7106
+ readonly data: z.ZodType<{
7107
+ traceId: string;
7108
+ recovery: {
7109
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
7110
+ } | {
7111
+ action: "read_operation";
7112
+ operation: {
7113
+ kind: "command";
7114
+ serialNumber: string;
7115
+ idempotencyKey: string;
7116
+ } | {
7117
+ kind: "firmware";
7118
+ serialNumber: string;
7119
+ updateId: string;
7120
+ } | {
7121
+ kind: "bluetooth_firmware";
7122
+ deviceId: string;
7123
+ updateId: string;
7124
+ } | {
7125
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
7126
+ deviceId: string;
7127
+ requestId: string;
7128
+ } | {
7129
+ kind: "support";
7130
+ requestId: string;
7131
+ };
7132
+ };
7133
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
7134
+ currentRevision?: string | undefined;
7135
+ retryAfterSeconds?: number | undefined;
7136
+ }, unknown, z.core.$ZodTypeInternals<{
7137
+ traceId: string;
7138
+ recovery: {
7139
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
7140
+ } | {
7141
+ action: "read_operation";
7142
+ operation: {
7143
+ kind: "command";
7144
+ serialNumber: string;
7145
+ idempotencyKey: string;
7146
+ } | {
7147
+ kind: "firmware";
7148
+ serialNumber: string;
7149
+ updateId: string;
7150
+ } | {
7151
+ kind: "bluetooth_firmware";
7152
+ deviceId: string;
7153
+ updateId: string;
7154
+ } | {
7155
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
7156
+ deviceId: string;
7157
+ requestId: string;
7158
+ } | {
7159
+ kind: "support";
7160
+ requestId: string;
7161
+ };
7162
+ };
7163
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
7164
+ currentRevision?: string | undefined;
7165
+ retryAfterSeconds?: number | undefined;
7166
+ }, unknown>>;
7167
+ };
7168
+ readonly not_found: {
7169
+ readonly status: 404;
7170
+ readonly data: z.ZodType<{
7171
+ traceId: string;
7172
+ recovery: {
7173
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
7174
+ } | {
7175
+ action: "read_operation";
7176
+ operation: {
7177
+ kind: "command";
7178
+ serialNumber: string;
7179
+ idempotencyKey: string;
7180
+ } | {
7181
+ kind: "firmware";
7182
+ serialNumber: string;
7183
+ updateId: string;
7184
+ } | {
7185
+ kind: "bluetooth_firmware";
7186
+ deviceId: string;
7187
+ updateId: string;
7188
+ } | {
7189
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
7190
+ deviceId: string;
7191
+ requestId: string;
7192
+ } | {
7193
+ kind: "support";
7194
+ requestId: string;
7195
+ };
7196
+ };
7197
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
7198
+ currentRevision?: string | undefined;
7199
+ retryAfterSeconds?: number | undefined;
7200
+ }, unknown, z.core.$ZodTypeInternals<{
7201
+ traceId: string;
7202
+ recovery: {
7203
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
7204
+ } | {
7205
+ action: "read_operation";
7206
+ operation: {
7207
+ kind: "command";
7208
+ serialNumber: string;
7209
+ idempotencyKey: string;
7210
+ } | {
7211
+ kind: "firmware";
7212
+ serialNumber: string;
7213
+ updateId: string;
7214
+ } | {
7215
+ kind: "bluetooth_firmware";
7216
+ deviceId: string;
7217
+ updateId: string;
7218
+ } | {
7219
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
7220
+ deviceId: string;
7221
+ requestId: string;
7222
+ } | {
7223
+ kind: "support";
7224
+ requestId: string;
7225
+ };
7226
+ };
7227
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
7228
+ currentRevision?: string | undefined;
7229
+ retryAfterSeconds?: number | undefined;
7230
+ }, unknown>>;
7231
+ };
7232
+ readonly conflict: {
7233
+ readonly status: 409;
7234
+ readonly data: z.ZodType<{
7235
+ traceId: string;
7236
+ recovery: {
7237
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
7238
+ } | {
7239
+ action: "read_operation";
7240
+ operation: {
7241
+ kind: "command";
7242
+ serialNumber: string;
7243
+ idempotencyKey: string;
7244
+ } | {
7245
+ kind: "firmware";
7246
+ serialNumber: string;
7247
+ updateId: string;
7248
+ } | {
7249
+ kind: "bluetooth_firmware";
7250
+ deviceId: string;
7251
+ updateId: string;
7252
+ } | {
7253
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
7254
+ deviceId: string;
7255
+ requestId: string;
7256
+ } | {
7257
+ kind: "support";
7258
+ requestId: string;
7259
+ };
7260
+ };
7261
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
7262
+ currentRevision?: string | undefined;
7263
+ retryAfterSeconds?: number | undefined;
7264
+ }, unknown, z.core.$ZodTypeInternals<{
7265
+ traceId: string;
7266
+ recovery: {
7267
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
7268
+ } | {
7269
+ action: "read_operation";
7270
+ operation: {
7271
+ kind: "command";
7272
+ serialNumber: string;
7273
+ idempotencyKey: string;
7274
+ } | {
7275
+ kind: "firmware";
7276
+ serialNumber: string;
7277
+ updateId: string;
7278
+ } | {
7279
+ kind: "bluetooth_firmware";
7280
+ deviceId: string;
7281
+ updateId: string;
7282
+ } | {
7283
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
7284
+ deviceId: string;
7285
+ requestId: string;
7286
+ } | {
7287
+ kind: "support";
7288
+ requestId: string;
7289
+ };
7290
+ };
7291
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
7292
+ currentRevision?: string | undefined;
7293
+ retryAfterSeconds?: number | undefined;
7294
+ }, unknown>>;
7295
+ };
7296
+ readonly rate_limited: {
7297
+ readonly status: 429;
7298
+ readonly data: z.ZodType<{
7299
+ traceId: string;
7300
+ recovery: {
7301
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
7302
+ } | {
7303
+ action: "read_operation";
7304
+ operation: {
7305
+ kind: "command";
7306
+ serialNumber: string;
7307
+ idempotencyKey: string;
7308
+ } | {
7309
+ kind: "firmware";
7310
+ serialNumber: string;
7311
+ updateId: string;
7312
+ } | {
7313
+ kind: "bluetooth_firmware";
7314
+ deviceId: string;
7315
+ updateId: string;
7316
+ } | {
7317
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
7318
+ deviceId: string;
7319
+ requestId: string;
7320
+ } | {
7321
+ kind: "support";
7322
+ requestId: string;
7323
+ };
7324
+ };
7325
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
7326
+ currentRevision?: string | undefined;
7327
+ retryAfterSeconds?: number | undefined;
7328
+ }, unknown, z.core.$ZodTypeInternals<{
7329
+ traceId: string;
7330
+ recovery: {
7331
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
7332
+ } | {
7333
+ action: "read_operation";
7334
+ operation: {
7335
+ kind: "command";
7336
+ serialNumber: string;
7337
+ idempotencyKey: string;
7338
+ } | {
7339
+ kind: "firmware";
7340
+ serialNumber: string;
7341
+ updateId: string;
7342
+ } | {
7343
+ kind: "bluetooth_firmware";
7344
+ deviceId: string;
7345
+ updateId: string;
7346
+ } | {
7347
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
7348
+ deviceId: string;
7349
+ requestId: string;
7350
+ } | {
7351
+ kind: "support";
7352
+ requestId: string;
7353
+ };
7354
+ };
7355
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
7356
+ currentRevision?: string | undefined;
7357
+ retryAfterSeconds?: number | undefined;
7358
+ }, unknown>>;
7359
+ };
7360
+ readonly stored_data_invalid: {
7361
+ readonly status: 503;
7362
+ readonly data: z.ZodType<{
7363
+ traceId: string;
7364
+ recovery: {
7365
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
7366
+ } | {
7367
+ action: "read_operation";
7368
+ operation: {
7369
+ kind: "command";
7370
+ serialNumber: string;
7371
+ idempotencyKey: string;
7372
+ } | {
7373
+ kind: "firmware";
7374
+ serialNumber: string;
7375
+ updateId: string;
7376
+ } | {
7377
+ kind: "bluetooth_firmware";
7378
+ deviceId: string;
7379
+ updateId: string;
7380
+ } | {
7381
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
7382
+ deviceId: string;
7383
+ requestId: string;
7384
+ } | {
7385
+ kind: "support";
7386
+ requestId: string;
7387
+ };
7388
+ };
7389
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
7390
+ currentRevision?: string | undefined;
7391
+ retryAfterSeconds?: number | undefined;
7392
+ }, unknown, z.core.$ZodTypeInternals<{
7393
+ traceId: string;
7394
+ recovery: {
7395
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
7396
+ } | {
7397
+ action: "read_operation";
7398
+ operation: {
7399
+ kind: "command";
7400
+ serialNumber: string;
7401
+ idempotencyKey: string;
7402
+ } | {
7403
+ kind: "firmware";
7404
+ serialNumber: string;
7405
+ updateId: string;
7406
+ } | {
7407
+ kind: "bluetooth_firmware";
7408
+ deviceId: string;
7409
+ updateId: string;
7410
+ } | {
7411
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
7412
+ deviceId: string;
7413
+ requestId: string;
7414
+ } | {
7415
+ kind: "support";
7416
+ requestId: string;
7417
+ };
7418
+ };
7419
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
7420
+ currentRevision?: string | undefined;
7421
+ retryAfterSeconds?: number | undefined;
7422
+ }, unknown>>;
7423
+ };
7424
+ readonly service_unavailable: {
7425
+ readonly status: 503;
7426
+ readonly data: z.ZodType<{
7427
+ traceId: string;
7428
+ recovery: {
7429
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
7430
+ } | {
7431
+ action: "read_operation";
7432
+ operation: {
7433
+ kind: "command";
7434
+ serialNumber: string;
7435
+ idempotencyKey: string;
7436
+ } | {
7437
+ kind: "firmware";
7438
+ serialNumber: string;
7439
+ updateId: string;
7440
+ } | {
7441
+ kind: "bluetooth_firmware";
7442
+ deviceId: string;
7443
+ updateId: string;
7444
+ } | {
7445
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
7446
+ deviceId: string;
7447
+ requestId: string;
7448
+ } | {
7449
+ kind: "support";
7450
+ requestId: string;
7451
+ };
7452
+ };
7453
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
7454
+ currentRevision?: string | undefined;
7455
+ retryAfterSeconds?: number | undefined;
7456
+ }, unknown, z.core.$ZodTypeInternals<{
7457
+ traceId: string;
7458
+ recovery: {
7459
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
7460
+ } | {
7461
+ action: "read_operation";
7462
+ operation: {
7463
+ kind: "command";
7464
+ serialNumber: string;
7465
+ idempotencyKey: string;
7466
+ } | {
7467
+ kind: "firmware";
7468
+ serialNumber: string;
7469
+ updateId: string;
7470
+ } | {
7471
+ kind: "bluetooth_firmware";
7472
+ deviceId: string;
7473
+ updateId: string;
7474
+ } | {
7475
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
7476
+ deviceId: string;
7477
+ requestId: string;
7478
+ } | {
7479
+ kind: "support";
7480
+ requestId: string;
7481
+ };
7482
+ };
7483
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
7484
+ currentRevision?: string | undefined;
7485
+ retryAfterSeconds?: number | undefined;
7486
+ }, unknown>>;
7487
+ };
7488
+ readonly read_unavailable: {
7489
+ readonly status: 503;
7490
+ readonly data: z.ZodType<{
7491
+ traceId: string;
7492
+ recovery: {
7493
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
7494
+ } | {
7495
+ action: "read_operation";
7496
+ operation: {
7497
+ kind: "command";
7498
+ serialNumber: string;
7499
+ idempotencyKey: string;
7500
+ } | {
7501
+ kind: "firmware";
7502
+ serialNumber: string;
7503
+ updateId: string;
7504
+ } | {
7505
+ kind: "bluetooth_firmware";
7506
+ deviceId: string;
7507
+ updateId: string;
7508
+ } | {
7509
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
7510
+ deviceId: string;
7511
+ requestId: string;
7512
+ } | {
7513
+ kind: "support";
7514
+ requestId: string;
7515
+ };
7516
+ };
7517
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
7518
+ currentRevision?: string | undefined;
7519
+ retryAfterSeconds?: number | undefined;
7520
+ }, unknown, z.core.$ZodTypeInternals<{
7521
+ traceId: string;
7522
+ recovery: {
7523
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
7524
+ } | {
7525
+ action: "read_operation";
7526
+ operation: {
7527
+ kind: "command";
7528
+ serialNumber: string;
7529
+ idempotencyKey: string;
7530
+ } | {
7531
+ kind: "firmware";
7532
+ serialNumber: string;
7533
+ updateId: string;
7534
+ } | {
7535
+ kind: "bluetooth_firmware";
7536
+ deviceId: string;
7537
+ updateId: string;
7538
+ } | {
7539
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
7540
+ deviceId: string;
7541
+ requestId: string;
7542
+ } | {
7543
+ kind: "support";
7544
+ requestId: string;
7545
+ };
7546
+ };
7547
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
7548
+ currentRevision?: string | undefined;
7549
+ retryAfterSeconds?: number | undefined;
7550
+ }, unknown>>;
7551
+ };
7552
+ readonly stream_unavailable: {
7553
+ readonly status: 503;
7554
+ readonly data: z.ZodType<{
7555
+ traceId: string;
7556
+ recovery: {
7557
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
7558
+ } | {
7559
+ action: "read_operation";
7560
+ operation: {
7561
+ kind: "command";
7562
+ serialNumber: string;
7563
+ idempotencyKey: string;
7564
+ } | {
7565
+ kind: "firmware";
7566
+ serialNumber: string;
7567
+ updateId: string;
7568
+ } | {
7569
+ kind: "bluetooth_firmware";
7570
+ deviceId: string;
7571
+ updateId: string;
7572
+ } | {
7573
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
7574
+ deviceId: string;
7575
+ requestId: string;
7576
+ } | {
7577
+ kind: "support";
7578
+ requestId: string;
7579
+ };
7580
+ };
7581
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
7582
+ currentRevision?: string | undefined;
7583
+ retryAfterSeconds?: number | undefined;
7584
+ }, unknown, z.core.$ZodTypeInternals<{
7585
+ traceId: string;
7586
+ recovery: {
7587
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
7588
+ } | {
7589
+ action: "read_operation";
7590
+ operation: {
7591
+ kind: "command";
7592
+ serialNumber: string;
7593
+ idempotencyKey: string;
7594
+ } | {
7595
+ kind: "firmware";
7596
+ serialNumber: string;
7597
+ updateId: string;
7598
+ } | {
7599
+ kind: "bluetooth_firmware";
7600
+ deviceId: string;
7601
+ updateId: string;
7602
+ } | {
7603
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
7604
+ deviceId: string;
7605
+ requestId: string;
7606
+ } | {
7607
+ kind: "support";
7608
+ requestId: string;
7609
+ };
7610
+ };
7611
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
7612
+ currentRevision?: string | undefined;
7613
+ retryAfterSeconds?: number | undefined;
7614
+ }, unknown>>;
7615
+ };
7616
+ readonly payload_too_large: {
7617
+ readonly status: 413;
7618
+ readonly data: z.ZodType<{
7619
+ traceId: string;
7620
+ recovery: {
7621
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
7622
+ } | {
7623
+ action: "read_operation";
7624
+ operation: {
7625
+ kind: "command";
7626
+ serialNumber: string;
7627
+ idempotencyKey: string;
7628
+ } | {
7629
+ kind: "firmware";
7630
+ serialNumber: string;
7631
+ updateId: string;
7632
+ } | {
7633
+ kind: "bluetooth_firmware";
7634
+ deviceId: string;
7635
+ updateId: string;
7636
+ } | {
7637
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
7638
+ deviceId: string;
7639
+ requestId: string;
7640
+ } | {
7641
+ kind: "support";
7642
+ requestId: string;
7643
+ };
7644
+ };
7645
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
7646
+ currentRevision?: string | undefined;
7647
+ retryAfterSeconds?: number | undefined;
7648
+ }, unknown, z.core.$ZodTypeInternals<{
7649
+ traceId: string;
7650
+ recovery: {
7651
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
7652
+ } | {
7653
+ action: "read_operation";
7654
+ operation: {
7655
+ kind: "command";
7656
+ serialNumber: string;
7657
+ idempotencyKey: string;
7658
+ } | {
7659
+ kind: "firmware";
7660
+ serialNumber: string;
7661
+ updateId: string;
7662
+ } | {
7663
+ kind: "bluetooth_firmware";
7664
+ deviceId: string;
7665
+ updateId: string;
7666
+ } | {
7667
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
7668
+ deviceId: string;
7669
+ requestId: string;
7670
+ } | {
7671
+ kind: "support";
7672
+ requestId: string;
7673
+ };
7674
+ };
7675
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
7676
+ currentRevision?: string | undefined;
7677
+ retryAfterSeconds?: number | undefined;
7678
+ }, unknown>>;
7679
+ };
7680
+ readonly request_timeout: {
7681
+ readonly status: 503;
7682
+ readonly data: z.ZodType<{
7683
+ traceId: string;
7684
+ recovery: {
7685
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
7686
+ } | {
7687
+ action: "read_operation";
7688
+ operation: {
7689
+ kind: "command";
7690
+ serialNumber: string;
7691
+ idempotencyKey: string;
7692
+ } | {
7693
+ kind: "firmware";
7694
+ serialNumber: string;
7695
+ updateId: string;
7696
+ } | {
7697
+ kind: "bluetooth_firmware";
7698
+ deviceId: string;
7699
+ updateId: string;
7700
+ } | {
7701
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
7702
+ deviceId: string;
7703
+ requestId: string;
7704
+ } | {
7705
+ kind: "support";
7706
+ requestId: string;
7707
+ };
7708
+ };
7709
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
7710
+ currentRevision?: string | undefined;
7711
+ retryAfterSeconds?: number | undefined;
7712
+ }, unknown, z.core.$ZodTypeInternals<{
7713
+ traceId: string;
7714
+ recovery: {
7715
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
7716
+ } | {
7717
+ action: "read_operation";
7718
+ operation: {
7719
+ kind: "command";
7720
+ serialNumber: string;
7721
+ idempotencyKey: string;
7722
+ } | {
7723
+ kind: "firmware";
7724
+ serialNumber: string;
7725
+ updateId: string;
7726
+ } | {
7727
+ kind: "bluetooth_firmware";
7728
+ deviceId: string;
7729
+ updateId: string;
7730
+ } | {
7731
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
7732
+ deviceId: string;
7733
+ requestId: string;
7734
+ } | {
7735
+ kind: "support";
7736
+ requestId: string;
7737
+ };
7738
+ };
7739
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
7740
+ currentRevision?: string | undefined;
7741
+ retryAfterSeconds?: number | undefined;
7742
+ }, unknown>>;
7743
+ };
7744
+ readonly operation_unconfirmed: {
7745
+ readonly status: 503;
7746
+ readonly data: z.ZodType<{
7747
+ traceId: string;
7748
+ recovery: {
7749
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
7750
+ } | {
7751
+ action: "read_operation";
7752
+ operation: {
7753
+ kind: "command";
7754
+ serialNumber: string;
7755
+ idempotencyKey: string;
7756
+ } | {
7757
+ kind: "firmware";
7758
+ serialNumber: string;
7759
+ updateId: string;
7760
+ } | {
7761
+ kind: "bluetooth_firmware";
7762
+ deviceId: string;
7763
+ updateId: string;
7764
+ } | {
7765
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
7766
+ deviceId: string;
7767
+ requestId: string;
7768
+ } | {
7769
+ kind: "support";
7770
+ requestId: string;
7771
+ };
7772
+ };
7773
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
7774
+ currentRevision?: string | undefined;
7775
+ retryAfterSeconds?: number | undefined;
7776
+ }, unknown, z.core.$ZodTypeInternals<{
7777
+ traceId: string;
7778
+ recovery: {
7779
+ action: "none" | "correct_input" | "sign_in" | "refresh" | "retry_read" | "retry_same_request" | "verify_outcome";
7780
+ } | {
7781
+ action: "read_operation";
7782
+ operation: {
7783
+ kind: "command";
7784
+ serialNumber: string;
7785
+ idempotencyKey: string;
7786
+ } | {
7787
+ kind: "firmware";
7788
+ serialNumber: string;
7789
+ updateId: string;
7790
+ } | {
7791
+ kind: "bluetooth_firmware";
7792
+ deviceId: string;
7793
+ updateId: string;
7794
+ } | {
7795
+ kind: "invitation" | "photo_upload" | "legacy_firmware";
7796
+ deviceId: string;
7797
+ requestId: string;
7798
+ } | {
7799
+ kind: "support";
7800
+ requestId: string;
7801
+ };
7802
+ };
7803
+ reason?: "revision_changed" | "selection_changed" | "subscription_capacity_exhausted" | "subscription_unavailable" | "tracker_restricted" | "idempotency_conflict" | "already_claimed" | "membership_limit" | "identity_changed" | undefined;
7804
+ currentRevision?: string | undefined;
7805
+ retryAfterSeconds?: number | undefined;
7806
+ }, unknown>>;
7807
+ };
7808
+ }>, Record<never, never>>;
5854
7809
  initialize: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodVoid, z.ZodVoid, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
5855
7810
  readonly directory_unavailable: {
5856
7811
  readonly status: 503;
@@ -30890,6 +32845,7 @@ export declare const trackerMember: z.ZodObject<{
30890
32845
  joinedAt: z.ZodNullable<z.ZodISODateTime>;
30891
32846
  }, z.core.$strip>;
30892
32847
  export declare const trackerSummaryFields: {
32848
+ lastSeenAt: z.ZodNullable<z.ZodISODateTime>;
30893
32849
  generation: z.ZodNullable<z.ZodInt>;
30894
32850
  bike: z.ZodObject<{
30895
32851
  revision: z.ZodString;
@@ -30990,6 +32946,7 @@ export declare const trackerFields: {
30990
32946
  listOrder: z.ZodNullable<z.ZodInt>;
30991
32947
  joinedAt: z.ZodNullable<z.ZodISODateTime>;
30992
32948
  }, z.core.$strip>>>;
32949
+ lastSeenAt: z.ZodNullable<z.ZodISODateTime>;
30993
32950
  generation: z.ZodNullable<z.ZodInt>;
30994
32951
  bike: z.ZodObject<{
30995
32952
  revision: z.ZodString;
@@ -31078,6 +33035,7 @@ export declare const trackerSummary: z.ZodObject<{
31078
33035
  identity: z.ZodNullable<z.ZodObject<{
31079
33036
  serialNumber: z.ZodNullable<z.ZodString>;
31080
33037
  }, z.core.$strip>>;
33038
+ lastSeenAt: z.ZodNullable<z.ZodISODateTime>;
31081
33039
  generation: z.ZodNullable<z.ZodInt>;
31082
33040
  bike: z.ZodObject<{
31083
33041
  revision: z.ZodString;
@@ -31167,6 +33125,7 @@ export declare const trackerPage: z.ZodObject<{
31167
33125
  identity: z.ZodNullable<z.ZodObject<{
31168
33126
  serialNumber: z.ZodNullable<z.ZodString>;
31169
33127
  }, z.core.$strip>>;
33128
+ lastSeenAt: z.ZodNullable<z.ZodISODateTime>;
31170
33129
  generation: z.ZodNullable<z.ZodInt>;
31171
33130
  bike: z.ZodObject<{
31172
33131
  revision: z.ZodString;
@@ -31279,6 +33238,7 @@ export declare const tracker: z.ZodObject<{
31279
33238
  listOrder: z.ZodNullable<z.ZodInt>;
31280
33239
  joinedAt: z.ZodNullable<z.ZodISODateTime>;
31281
33240
  }, z.core.$strip>>>;
33241
+ lastSeenAt: z.ZodNullable<z.ZodISODateTime>;
31282
33242
  generation: z.ZodNullable<z.ZodInt>;
31283
33243
  bike: z.ZodObject<{
31284
33244
  revision: z.ZodString;
@@ -31424,6 +33384,7 @@ export declare const customerTrackerDetails: z.ZodObject<{
31424
33384
  identity: z.ZodNullable<z.ZodObject<{
31425
33385
  serialNumber: z.ZodNullable<z.ZodString>;
31426
33386
  }, z.core.$strip>>;
33387
+ lastSeenAt: z.ZodNullable<z.ZodISODateTime>;
31427
33388
  generation: z.ZodNullable<z.ZodInt>;
31428
33389
  bike: z.ZodObject<{
31429
33390
  revision: z.ZodString;
@@ -56835,6 +58796,7 @@ declare const trackerContract: {
56835
58796
  identity: z.ZodNullable<z.ZodObject<{
56836
58797
  serialNumber: z.ZodNullable<z.ZodString>;
56837
58798
  }, z.core.$strip>>;
58799
+ lastSeenAt: z.ZodNullable<z.ZodISODateTime>;
56838
58800
  generation: z.ZodNullable<z.ZodInt>;
56839
58801
  bike: z.ZodObject<{
56840
58802
  revision: z.ZodString;
@@ -57826,6 +59788,7 @@ declare const trackerContract: {
57826
59788
  identity: {
57827
59789
  serialNumber: string | null;
57828
59790
  } | null;
59791
+ lastSeenAt: string | null;
57829
59792
  generation: number | null;
57830
59793
  bike: {
57831
59794
  revision: string;
@@ -57891,6 +59854,7 @@ declare const trackerContract: {
57891
59854
  identity: {
57892
59855
  serialNumber: string | null;
57893
59856
  } | null;
59857
+ lastSeenAt: string | null;
57894
59858
  generation: number | null;
57895
59859
  bike: {
57896
59860
  revision: string;
@@ -58912,6 +60876,7 @@ declare const trackerContract: {
58912
60876
  identity: z.ZodNullable<z.ZodObject<{
58913
60877
  serialNumber: z.ZodNullable<z.ZodString>;
58914
60878
  }, z.core.$strip>>;
60879
+ lastSeenAt: z.ZodNullable<z.ZodISODateTime>;
58915
60880
  generation: z.ZodNullable<z.ZodInt>;
58916
60881
  bike: z.ZodObject<{
58917
60882
  revision: z.ZodString;
@@ -59901,6 +61866,7 @@ declare const trackerContract: {
59901
61866
  identity: {
59902
61867
  serialNumber: string | null;
59903
61868
  } | null;
61869
+ lastSeenAt: string | null;
59904
61870
  generation: number | null;
59905
61871
  bike: {
59906
61872
  revision: string;
@@ -59983,6 +61949,7 @@ declare const trackerContract: {
59983
61949
  identity: {
59984
61950
  serialNumber: string | null;
59985
61951
  } | null;
61952
+ lastSeenAt: string | null;
59986
61953
  generation: number | null;
59987
61954
  bike: {
59988
61955
  revision: string;
@@ -60948,6 +62915,7 @@ declare const trackerContract: {
60948
62915
  listOrder: z.ZodNullable<z.ZodInt>;
60949
62916
  joinedAt: z.ZodNullable<z.ZodISODateTime>;
60950
62917
  }, z.core.$strip>>>;
62918
+ lastSeenAt: z.ZodNullable<z.ZodISODateTime>;
60951
62919
  generation: z.ZodNullable<z.ZodInt>;
60952
62920
  bike: z.ZodObject<{
60953
62921
  revision: z.ZodString;
@@ -61957,6 +63925,7 @@ declare const trackerContract: {
61957
63925
  listOrder: number | null;
61958
63926
  joinedAt: string | null;
61959
63927
  }> | null;
63928
+ lastSeenAt: string | null;
61960
63929
  generation: number | null;
61961
63930
  bike: {
61962
63931
  revision: string;
@@ -62041,6 +64010,7 @@ declare const trackerContract: {
62041
64010
  listOrder: number | null;
62042
64011
  joinedAt: string | null;
62043
64012
  }> | null;
64013
+ lastSeenAt: string | null;
62044
64014
  generation: number | null;
62045
64015
  bike: {
62046
64016
  revision: string;