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