@seamapi/types 1.331.0 → 1.332.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/connect.cjs CHANGED
@@ -820,9 +820,6 @@ var common_device_error = zod.z.object({
820
820
  is_device_error: zod.z.literal(true)
821
821
  });
822
822
  var error_code_description = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
823
- var common_device_warning = zod.z.object({
824
- message: zod.z.string()
825
- });
826
823
  var device_offline = common_device_error.extend({
827
824
  error_code: zod.z.literal("device_offline").describe(error_code_description)
828
825
  }).describe("Device is offline");
@@ -877,9 +874,72 @@ var device_error = zod.z.union([
877
874
  auxiliary_heat_running,
878
875
  subscription_required
879
876
  ]).describe("Error associated with the `device`.");
880
- var device_warning = common_device_warning.extend({
881
- warning_code: zod.z.string()
877
+ var warning_code_description2 = "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.";
878
+ var common_device_warning = zod.z.object({
879
+ message: zod.z.string()
882
880
  });
881
+ var partial_backup_access_code_pool = common_device_warning.extend({
882
+ warning_code: zod.z.literal("partial_backup_access_code_pool").describe(warning_code_description2)
883
+ }).describe("Backup access code unhealthy.");
884
+ var many_active_backup_codes = common_device_warning.extend({
885
+ warning_code: zod.z.literal("many_active_backup_codes").describe(warning_code_description2)
886
+ }).describe("Too many backup codes.");
887
+ var salto_unknown_device_type = common_device_warning.extend({
888
+ warning_code: zod.z.literal("salto_unknown_device_type").describe(warning_code_description2)
889
+ }).describe("A Salto Lock displaying an unknown device type.");
890
+ var salto_office_mode = common_device_warning.extend({
891
+ warning_code: zod.z.literal("salto_office_mode").describe(warning_code_description2)
892
+ }).describe("Lock is in Office Mode. Access Codes will not unlock doors.");
893
+ var salto_privacy_mode = common_device_warning.extend({
894
+ warning_code: zod.z.literal("salto_privacy_mode").describe(warning_code_description2)
895
+ }).describe("Lock is in Privacy Mode. Access Codes will not unlock doors.");
896
+ var wyze_device_missing_gateway = common_device_warning.extend({
897
+ warning_code: zod.z.literal("wyze_device_missing_gateway").describe(warning_code_description2)
898
+ }).describe("Wyze Lock is not connected to a gateway.");
899
+ var functional_offline_device = common_device_warning.extend({
900
+ warning_code: zod.z.literal("functional_offline_device").describe(warning_code_description2)
901
+ }).describe("Device is offline, but has some functionality available.");
902
+ var third_party_integration_detected = common_device_warning.extend({
903
+ warning_code: zod.z.literal("third_party_integration_detected").describe(warning_code_description2)
904
+ }).describe("Third-party integration detected.");
905
+ var nest_thermostat_in_manual_eco_mode = common_device_warning.extend({
906
+ warning_code: zod.z.literal("nest_thermostat_in_manual_eco_mode").describe(warning_code_description2)
907
+ }).describe("Nest thermostat in manual eco mode.");
908
+ var ttlock_lock_gateway_unlocking_not_enabled = common_device_warning.extend({
909
+ warning_code: zod.z.literal("ttlock_lock_gateway_unlocking_not_enabled").describe(warning_code_description2)
910
+ }).describe("Remote Unlock feature not enabled in settings.");
911
+ var ttlock_weak_gateway_signal = common_device_warning.extend({
912
+ warning_code: zod.z.literal("ttlock_weak_gateway_signal").describe(warning_code_description2)
913
+ }).describe("Gateway signal is weak.");
914
+ var temperature_threshold_exceeded = common_device_warning.extend({
915
+ warning_code: zod.z.literal("temperature_threshold_exceeded").describe(warning_code_description2)
916
+ }).describe("Temperature threshold exceeded.");
917
+ var device_communication_degraded = common_device_warning.extend({
918
+ warning_code: zod.z.literal("device_communication_degraded").describe(warning_code_description2)
919
+ }).describe("Device appears to be unresponsive.");
920
+ var scheduled_maintenance_window = common_device_warning.extend({
921
+ warning_code: zod.z.literal("scheduled_maintenance_window").describe(warning_code_description2)
922
+ }).describe("Scheduled maintenance window detected.");
923
+ var device_has_flaky_connection = common_device_warning.extend({
924
+ warning_code: zod.z.literal("device_has_flaky_connection").describe(warning_code_description2)
925
+ }).describe("Device has flaky connection.");
926
+ var device_warning = zod.z.union([
927
+ partial_backup_access_code_pool,
928
+ many_active_backup_codes,
929
+ salto_unknown_device_type,
930
+ wyze_device_missing_gateway,
931
+ functional_offline_device,
932
+ third_party_integration_detected,
933
+ nest_thermostat_in_manual_eco_mode,
934
+ ttlock_lock_gateway_unlocking_not_enabled,
935
+ ttlock_weak_gateway_signal,
936
+ temperature_threshold_exceeded,
937
+ device_communication_degraded,
938
+ scheduled_maintenance_window,
939
+ device_has_flaky_connection,
940
+ salto_office_mode,
941
+ salto_privacy_mode
942
+ ]);
883
943
  var common_device_properties = zod.z.object({
884
944
  online: zod.z.boolean().describe("Indicates whether the device is online."),
885
945
  name: zod.z.string().describe(`
@@ -1254,9 +1314,9 @@ var common_acs_access_group_warning = zod.z.object({
1254
1314
  "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it."
1255
1315
  )
1256
1316
  });
1257
- var warning_code_description2 = "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.";
1317
+ var warning_code_description3 = "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.";
1258
1318
  var unknown_issue_with_acs_access_group = common_acs_access_group_warning.extend({
1259
- warning_code: zod.z.literal("unknown_issue_with_acs_access_group").describe(warning_code_description2)
1319
+ warning_code: zod.z.literal("unknown_issue_with_acs_access_group").describe(warning_code_description3)
1260
1320
  }).describe(
1261
1321
  "An unknown issue occurred while syncing the state of this access group with the provider. This issue may affect the proper functioning of this access group."
1262
1322
  );
@@ -1381,30 +1441,30 @@ var common_acs_credential_warning = zod.z.object({
1381
1441
  "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it."
1382
1442
  )
1383
1443
  });
1384
- var warning_code_description3 = "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.";
1444
+ var warning_code_description4 = "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.";
1385
1445
  var waiting_to_be_issued = common_acs_credential_warning.extend({
1386
- warning_code: zod.z.literal("waiting_to_be_issued").describe(warning_code_description3)
1446
+ warning_code: zod.z.literal("waiting_to_be_issued").describe(warning_code_description4)
1387
1447
  }).describe("Indicates that the credential is waiting to be issued.");
1388
1448
  var schedule_externally_modified = common_acs_credential_warning.extend({
1389
- warning_code: zod.z.literal("schedule_externally_modified").describe(warning_code_description3)
1449
+ warning_code: zod.z.literal("schedule_externally_modified").describe(warning_code_description4)
1390
1450
  }).describe(
1391
1451
  "Indicates that the schedule of one of the credential's children was modified externally."
1392
1452
  );
1393
1453
  var schedule_modified = common_acs_credential_warning.extend({
1394
- warning_code: zod.z.literal("schedule_modified").describe(warning_code_description3)
1454
+ warning_code: zod.z.literal("schedule_modified").describe(warning_code_description4)
1395
1455
  }).describe(
1396
1456
  "Indicates that the schedule of this credential was modified to avoid creating a credential with a start date in the past."
1397
1457
  );
1398
1458
  var being_deleted = common_acs_credential_warning.extend({
1399
- warning_code: zod.z.literal("being_deleted").describe(warning_code_description3)
1459
+ warning_code: zod.z.literal("being_deleted").describe(warning_code_description4)
1400
1460
  }).describe("Indicates that this credential is being deleted.");
1401
1461
  var unknown_issue_with_acs_credential = common_acs_credential_warning.extend({
1402
- warning_code: zod.z.literal("unknown_issue_with_acs_credential").describe(warning_code_description3)
1462
+ warning_code: zod.z.literal("unknown_issue_with_acs_credential").describe(warning_code_description4)
1403
1463
  }).describe(
1404
1464
  "An unknown issue occurred while syncing the state of this credential with the provider. This issue may affect the proper functioning of this credential."
1405
1465
  );
1406
1466
  var needs_to_be_reissued = common_acs_credential_warning.extend({
1407
- warning_code: zod.z.literal("needs_to_be_reissued").describe(warning_code_description3)
1467
+ warning_code: zod.z.literal("needs_to_be_reissued").describe(warning_code_description4)
1408
1468
  }).describe(
1409
1469
  "Access permissions for this [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) have changed. [Reissue](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners/creating-and-encoding-card-based-credentials) (re-encode) this credential. This issue may affect the proper functioning of the credential."
1410
1470
  );
@@ -9184,12 +9244,203 @@ var openapi_default = {
9184
9244
  warnings: {
9185
9245
  description: 'Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.',
9186
9246
  items: {
9187
- properties: {
9188
- message: { type: "string" },
9189
- warning_code: { type: "string" }
9190
- },
9191
- required: ["message", "warning_code"],
9192
- type: "object"
9247
+ oneOf: [
9248
+ {
9249
+ description: "Backup access code unhealthy.",
9250
+ properties: {
9251
+ message: { type: "string" },
9252
+ warning_code: {
9253
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
9254
+ enum: ["partial_backup_access_code_pool"],
9255
+ type: "string"
9256
+ }
9257
+ },
9258
+ required: ["message", "warning_code"],
9259
+ type: "object"
9260
+ },
9261
+ {
9262
+ description: "Too many backup codes.",
9263
+ properties: {
9264
+ message: { type: "string" },
9265
+ warning_code: {
9266
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
9267
+ enum: ["many_active_backup_codes"],
9268
+ type: "string"
9269
+ }
9270
+ },
9271
+ required: ["message", "warning_code"],
9272
+ type: "object"
9273
+ },
9274
+ {
9275
+ description: "A Salto Lock displaying an unknown device type.",
9276
+ properties: {
9277
+ message: { type: "string" },
9278
+ warning_code: {
9279
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
9280
+ enum: ["salto_unknown_device_type"],
9281
+ type: "string"
9282
+ }
9283
+ },
9284
+ required: ["message", "warning_code"],
9285
+ type: "object"
9286
+ },
9287
+ {
9288
+ description: "Wyze Lock is not connected to a gateway.",
9289
+ properties: {
9290
+ message: { type: "string" },
9291
+ warning_code: {
9292
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
9293
+ enum: ["wyze_device_missing_gateway"],
9294
+ type: "string"
9295
+ }
9296
+ },
9297
+ required: ["message", "warning_code"],
9298
+ type: "object"
9299
+ },
9300
+ {
9301
+ description: "Device is offline, but has some functionality available.",
9302
+ properties: {
9303
+ message: { type: "string" },
9304
+ warning_code: {
9305
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
9306
+ enum: ["functional_offline_device"],
9307
+ type: "string"
9308
+ }
9309
+ },
9310
+ required: ["message", "warning_code"],
9311
+ type: "object"
9312
+ },
9313
+ {
9314
+ description: "Third-party integration detected.",
9315
+ properties: {
9316
+ message: { type: "string" },
9317
+ warning_code: {
9318
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
9319
+ enum: ["third_party_integration_detected"],
9320
+ type: "string"
9321
+ }
9322
+ },
9323
+ required: ["message", "warning_code"],
9324
+ type: "object"
9325
+ },
9326
+ {
9327
+ description: "Nest thermostat in manual eco mode.",
9328
+ properties: {
9329
+ message: { type: "string" },
9330
+ warning_code: {
9331
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
9332
+ enum: ["nest_thermostat_in_manual_eco_mode"],
9333
+ type: "string"
9334
+ }
9335
+ },
9336
+ required: ["message", "warning_code"],
9337
+ type: "object"
9338
+ },
9339
+ {
9340
+ description: "Remote Unlock feature not enabled in settings.",
9341
+ properties: {
9342
+ message: { type: "string" },
9343
+ warning_code: {
9344
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
9345
+ enum: ["ttlock_lock_gateway_unlocking_not_enabled"],
9346
+ type: "string"
9347
+ }
9348
+ },
9349
+ required: ["message", "warning_code"],
9350
+ type: "object"
9351
+ },
9352
+ {
9353
+ description: "Gateway signal is weak.",
9354
+ properties: {
9355
+ message: { type: "string" },
9356
+ warning_code: {
9357
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
9358
+ enum: ["ttlock_weak_gateway_signal"],
9359
+ type: "string"
9360
+ }
9361
+ },
9362
+ required: ["message", "warning_code"],
9363
+ type: "object"
9364
+ },
9365
+ {
9366
+ description: "Temperature threshold exceeded.",
9367
+ properties: {
9368
+ message: { type: "string" },
9369
+ warning_code: {
9370
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
9371
+ enum: ["temperature_threshold_exceeded"],
9372
+ type: "string"
9373
+ }
9374
+ },
9375
+ required: ["message", "warning_code"],
9376
+ type: "object"
9377
+ },
9378
+ {
9379
+ description: "Device appears to be unresponsive.",
9380
+ properties: {
9381
+ message: { type: "string" },
9382
+ warning_code: {
9383
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
9384
+ enum: ["device_communication_degraded"],
9385
+ type: "string"
9386
+ }
9387
+ },
9388
+ required: ["message", "warning_code"],
9389
+ type: "object"
9390
+ },
9391
+ {
9392
+ description: "Scheduled maintenance window detected.",
9393
+ properties: {
9394
+ message: { type: "string" },
9395
+ warning_code: {
9396
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
9397
+ enum: ["scheduled_maintenance_window"],
9398
+ type: "string"
9399
+ }
9400
+ },
9401
+ required: ["message", "warning_code"],
9402
+ type: "object"
9403
+ },
9404
+ {
9405
+ description: "Device has flaky connection.",
9406
+ properties: {
9407
+ message: { type: "string" },
9408
+ warning_code: {
9409
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
9410
+ enum: ["device_has_flaky_connection"],
9411
+ type: "string"
9412
+ }
9413
+ },
9414
+ required: ["message", "warning_code"],
9415
+ type: "object"
9416
+ },
9417
+ {
9418
+ description: "Lock is in Office Mode. Access Codes will not unlock doors.",
9419
+ properties: {
9420
+ message: { type: "string" },
9421
+ warning_code: {
9422
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
9423
+ enum: ["salto_office_mode"],
9424
+ type: "string"
9425
+ }
9426
+ },
9427
+ required: ["message", "warning_code"],
9428
+ type: "object"
9429
+ },
9430
+ {
9431
+ description: "Lock is in Privacy Mode. Access Codes will not unlock doors.",
9432
+ properties: {
9433
+ message: { type: "string" },
9434
+ warning_code: {
9435
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
9436
+ enum: ["salto_privacy_mode"],
9437
+ type: "string"
9438
+ }
9439
+ },
9440
+ required: ["message", "warning_code"],
9441
+ type: "object"
9442
+ }
9443
+ ]
9193
9444
  },
9194
9445
  type: "array"
9195
9446
  },
@@ -13662,78 +13913,269 @@ var openapi_default = {
13662
13913
  warnings: {
13663
13914
  description: 'Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.',
13664
13915
  items: {
13665
- properties: {
13666
- message: { type: "string" },
13667
- warning_code: { type: "string" }
13668
- },
13669
- required: ["message", "warning_code"],
13670
- type: "object"
13671
- },
13672
- type: "array"
13673
- },
13674
- workspace_id: {
13675
- description: "Unique identifier for the Seam workspace associated with the device.",
13676
- format: "uuid",
13677
- type: "string"
13678
- }
13679
- },
13680
- required: [
13681
- "device_id",
13682
- "device_type",
13683
- "display_name",
13684
- "capabilities_supported",
13685
- "properties",
13686
- "location",
13687
- "workspace_id",
13688
- "errors",
13689
- "warnings",
13690
- "created_at",
13691
- "is_managed",
13692
- "custom_metadata"
13693
- ],
13694
- type: "object",
13695
- "x-route-path": "/phones"
13696
- },
13697
- service_health: {
13698
- properties: {
13699
- description: { type: "string" },
13700
- service: { type: "string" },
13701
- status: { enum: ["healthy", "degraded", "down"], type: "string" }
13702
- },
13703
- required: ["service", "status", "description"],
13704
- type: "object",
13705
- "x-route-path": "/health"
13706
- },
13707
- thermostat_schedule: {
13708
- description: "Represents a [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules) that activates a configured [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) on a [thermostat](https://docs.seam.co/latest/capability-guides/thermostats) at a specified starting time and deactivates the climate preset at a specified ending time.",
13709
- properties: {
13710
- climate_preset_key: {
13711
- description: "Key of the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) to use for the thermostat schedule.",
13712
- type: "string"
13713
- },
13714
- created_at: {
13715
- description: "Date and time at which the thermostat schedule was created.",
13716
- format: "date-time",
13717
- type: "string"
13718
- },
13719
- device_id: {
13720
- description: "ID of the desired thermostat device.",
13721
- format: "uuid",
13722
- type: "string"
13723
- },
13724
- ends_at: {
13725
- description: "Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
13726
- format: "date-time",
13727
- type: "string"
13728
- },
13729
- errors: {
13730
- description: "Array of errors associated with the thermostat schedule. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.",
13731
- items: {
13732
- properties: {
13733
- error_code: { type: "string" },
13734
- message: { type: "string" }
13735
- },
13736
- required: ["error_code", "message"],
13916
+ oneOf: [
13917
+ {
13918
+ description: "Backup access code unhealthy.",
13919
+ properties: {
13920
+ message: { type: "string" },
13921
+ warning_code: {
13922
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
13923
+ enum: ["partial_backup_access_code_pool"],
13924
+ type: "string"
13925
+ }
13926
+ },
13927
+ required: ["message", "warning_code"],
13928
+ type: "object"
13929
+ },
13930
+ {
13931
+ description: "Too many backup codes.",
13932
+ properties: {
13933
+ message: { type: "string" },
13934
+ warning_code: {
13935
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
13936
+ enum: ["many_active_backup_codes"],
13937
+ type: "string"
13938
+ }
13939
+ },
13940
+ required: ["message", "warning_code"],
13941
+ type: "object"
13942
+ },
13943
+ {
13944
+ description: "A Salto Lock displaying an unknown device type.",
13945
+ properties: {
13946
+ message: { type: "string" },
13947
+ warning_code: {
13948
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
13949
+ enum: ["salto_unknown_device_type"],
13950
+ type: "string"
13951
+ }
13952
+ },
13953
+ required: ["message", "warning_code"],
13954
+ type: "object"
13955
+ },
13956
+ {
13957
+ description: "Wyze Lock is not connected to a gateway.",
13958
+ properties: {
13959
+ message: { type: "string" },
13960
+ warning_code: {
13961
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
13962
+ enum: ["wyze_device_missing_gateway"],
13963
+ type: "string"
13964
+ }
13965
+ },
13966
+ required: ["message", "warning_code"],
13967
+ type: "object"
13968
+ },
13969
+ {
13970
+ description: "Device is offline, but has some functionality available.",
13971
+ properties: {
13972
+ message: { type: "string" },
13973
+ warning_code: {
13974
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
13975
+ enum: ["functional_offline_device"],
13976
+ type: "string"
13977
+ }
13978
+ },
13979
+ required: ["message", "warning_code"],
13980
+ type: "object"
13981
+ },
13982
+ {
13983
+ description: "Third-party integration detected.",
13984
+ properties: {
13985
+ message: { type: "string" },
13986
+ warning_code: {
13987
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
13988
+ enum: ["third_party_integration_detected"],
13989
+ type: "string"
13990
+ }
13991
+ },
13992
+ required: ["message", "warning_code"],
13993
+ type: "object"
13994
+ },
13995
+ {
13996
+ description: "Nest thermostat in manual eco mode.",
13997
+ properties: {
13998
+ message: { type: "string" },
13999
+ warning_code: {
14000
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
14001
+ enum: ["nest_thermostat_in_manual_eco_mode"],
14002
+ type: "string"
14003
+ }
14004
+ },
14005
+ required: ["message", "warning_code"],
14006
+ type: "object"
14007
+ },
14008
+ {
14009
+ description: "Remote Unlock feature not enabled in settings.",
14010
+ properties: {
14011
+ message: { type: "string" },
14012
+ warning_code: {
14013
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
14014
+ enum: ["ttlock_lock_gateway_unlocking_not_enabled"],
14015
+ type: "string"
14016
+ }
14017
+ },
14018
+ required: ["message", "warning_code"],
14019
+ type: "object"
14020
+ },
14021
+ {
14022
+ description: "Gateway signal is weak.",
14023
+ properties: {
14024
+ message: { type: "string" },
14025
+ warning_code: {
14026
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
14027
+ enum: ["ttlock_weak_gateway_signal"],
14028
+ type: "string"
14029
+ }
14030
+ },
14031
+ required: ["message", "warning_code"],
14032
+ type: "object"
14033
+ },
14034
+ {
14035
+ description: "Temperature threshold exceeded.",
14036
+ properties: {
14037
+ message: { type: "string" },
14038
+ warning_code: {
14039
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
14040
+ enum: ["temperature_threshold_exceeded"],
14041
+ type: "string"
14042
+ }
14043
+ },
14044
+ required: ["message", "warning_code"],
14045
+ type: "object"
14046
+ },
14047
+ {
14048
+ description: "Device appears to be unresponsive.",
14049
+ properties: {
14050
+ message: { type: "string" },
14051
+ warning_code: {
14052
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
14053
+ enum: ["device_communication_degraded"],
14054
+ type: "string"
14055
+ }
14056
+ },
14057
+ required: ["message", "warning_code"],
14058
+ type: "object"
14059
+ },
14060
+ {
14061
+ description: "Scheduled maintenance window detected.",
14062
+ properties: {
14063
+ message: { type: "string" },
14064
+ warning_code: {
14065
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
14066
+ enum: ["scheduled_maintenance_window"],
14067
+ type: "string"
14068
+ }
14069
+ },
14070
+ required: ["message", "warning_code"],
14071
+ type: "object"
14072
+ },
14073
+ {
14074
+ description: "Device has flaky connection.",
14075
+ properties: {
14076
+ message: { type: "string" },
14077
+ warning_code: {
14078
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
14079
+ enum: ["device_has_flaky_connection"],
14080
+ type: "string"
14081
+ }
14082
+ },
14083
+ required: ["message", "warning_code"],
14084
+ type: "object"
14085
+ },
14086
+ {
14087
+ description: "Lock is in Office Mode. Access Codes will not unlock doors.",
14088
+ properties: {
14089
+ message: { type: "string" },
14090
+ warning_code: {
14091
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
14092
+ enum: ["salto_office_mode"],
14093
+ type: "string"
14094
+ }
14095
+ },
14096
+ required: ["message", "warning_code"],
14097
+ type: "object"
14098
+ },
14099
+ {
14100
+ description: "Lock is in Privacy Mode. Access Codes will not unlock doors.",
14101
+ properties: {
14102
+ message: { type: "string" },
14103
+ warning_code: {
14104
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
14105
+ enum: ["salto_privacy_mode"],
14106
+ type: "string"
14107
+ }
14108
+ },
14109
+ required: ["message", "warning_code"],
14110
+ type: "object"
14111
+ }
14112
+ ]
14113
+ },
14114
+ type: "array"
14115
+ },
14116
+ workspace_id: {
14117
+ description: "Unique identifier for the Seam workspace associated with the device.",
14118
+ format: "uuid",
14119
+ type: "string"
14120
+ }
14121
+ },
14122
+ required: [
14123
+ "device_id",
14124
+ "device_type",
14125
+ "display_name",
14126
+ "capabilities_supported",
14127
+ "properties",
14128
+ "location",
14129
+ "workspace_id",
14130
+ "errors",
14131
+ "warnings",
14132
+ "created_at",
14133
+ "is_managed",
14134
+ "custom_metadata"
14135
+ ],
14136
+ type: "object",
14137
+ "x-route-path": "/phones"
14138
+ },
14139
+ service_health: {
14140
+ properties: {
14141
+ description: { type: "string" },
14142
+ service: { type: "string" },
14143
+ status: { enum: ["healthy", "degraded", "down"], type: "string" }
14144
+ },
14145
+ required: ["service", "status", "description"],
14146
+ type: "object",
14147
+ "x-route-path": "/health"
14148
+ },
14149
+ thermostat_schedule: {
14150
+ description: "Represents a [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules) that activates a configured [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) on a [thermostat](https://docs.seam.co/latest/capability-guides/thermostats) at a specified starting time and deactivates the climate preset at a specified ending time.",
14151
+ properties: {
14152
+ climate_preset_key: {
14153
+ description: "Key of the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) to use for the thermostat schedule.",
14154
+ type: "string"
14155
+ },
14156
+ created_at: {
14157
+ description: "Date and time at which the thermostat schedule was created.",
14158
+ format: "date-time",
14159
+ type: "string"
14160
+ },
14161
+ device_id: {
14162
+ description: "ID of the desired thermostat device.",
14163
+ format: "uuid",
14164
+ type: "string"
14165
+ },
14166
+ ends_at: {
14167
+ description: "Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
14168
+ format: "date-time",
14169
+ type: "string"
14170
+ },
14171
+ errors: {
14172
+ description: "Array of errors associated with the thermostat schedule. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.",
14173
+ items: {
14174
+ properties: {
14175
+ error_code: { type: "string" },
14176
+ message: { type: "string" }
14177
+ },
14178
+ required: ["error_code", "message"],
13737
14179
  type: "object"
13738
14180
  },
13739
14181
  type: "array"
@@ -14514,12 +14956,203 @@ var openapi_default = {
14514
14956
  warnings: {
14515
14957
  description: 'Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.',
14516
14958
  items: {
14517
- properties: {
14518
- message: { type: "string" },
14519
- warning_code: { type: "string" }
14520
- },
14521
- required: ["message", "warning_code"],
14522
- type: "object"
14959
+ oneOf: [
14960
+ {
14961
+ description: "Backup access code unhealthy.",
14962
+ properties: {
14963
+ message: { type: "string" },
14964
+ warning_code: {
14965
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
14966
+ enum: ["partial_backup_access_code_pool"],
14967
+ type: "string"
14968
+ }
14969
+ },
14970
+ required: ["message", "warning_code"],
14971
+ type: "object"
14972
+ },
14973
+ {
14974
+ description: "Too many backup codes.",
14975
+ properties: {
14976
+ message: { type: "string" },
14977
+ warning_code: {
14978
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
14979
+ enum: ["many_active_backup_codes"],
14980
+ type: "string"
14981
+ }
14982
+ },
14983
+ required: ["message", "warning_code"],
14984
+ type: "object"
14985
+ },
14986
+ {
14987
+ description: "A Salto Lock displaying an unknown device type.",
14988
+ properties: {
14989
+ message: { type: "string" },
14990
+ warning_code: {
14991
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
14992
+ enum: ["salto_unknown_device_type"],
14993
+ type: "string"
14994
+ }
14995
+ },
14996
+ required: ["message", "warning_code"],
14997
+ type: "object"
14998
+ },
14999
+ {
15000
+ description: "Wyze Lock is not connected to a gateway.",
15001
+ properties: {
15002
+ message: { type: "string" },
15003
+ warning_code: {
15004
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
15005
+ enum: ["wyze_device_missing_gateway"],
15006
+ type: "string"
15007
+ }
15008
+ },
15009
+ required: ["message", "warning_code"],
15010
+ type: "object"
15011
+ },
15012
+ {
15013
+ description: "Device is offline, but has some functionality available.",
15014
+ properties: {
15015
+ message: { type: "string" },
15016
+ warning_code: {
15017
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
15018
+ enum: ["functional_offline_device"],
15019
+ type: "string"
15020
+ }
15021
+ },
15022
+ required: ["message", "warning_code"],
15023
+ type: "object"
15024
+ },
15025
+ {
15026
+ description: "Third-party integration detected.",
15027
+ properties: {
15028
+ message: { type: "string" },
15029
+ warning_code: {
15030
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
15031
+ enum: ["third_party_integration_detected"],
15032
+ type: "string"
15033
+ }
15034
+ },
15035
+ required: ["message", "warning_code"],
15036
+ type: "object"
15037
+ },
15038
+ {
15039
+ description: "Nest thermostat in manual eco mode.",
15040
+ properties: {
15041
+ message: { type: "string" },
15042
+ warning_code: {
15043
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
15044
+ enum: ["nest_thermostat_in_manual_eco_mode"],
15045
+ type: "string"
15046
+ }
15047
+ },
15048
+ required: ["message", "warning_code"],
15049
+ type: "object"
15050
+ },
15051
+ {
15052
+ description: "Remote Unlock feature not enabled in settings.",
15053
+ properties: {
15054
+ message: { type: "string" },
15055
+ warning_code: {
15056
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
15057
+ enum: ["ttlock_lock_gateway_unlocking_not_enabled"],
15058
+ type: "string"
15059
+ }
15060
+ },
15061
+ required: ["message", "warning_code"],
15062
+ type: "object"
15063
+ },
15064
+ {
15065
+ description: "Gateway signal is weak.",
15066
+ properties: {
15067
+ message: { type: "string" },
15068
+ warning_code: {
15069
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
15070
+ enum: ["ttlock_weak_gateway_signal"],
15071
+ type: "string"
15072
+ }
15073
+ },
15074
+ required: ["message", "warning_code"],
15075
+ type: "object"
15076
+ },
15077
+ {
15078
+ description: "Temperature threshold exceeded.",
15079
+ properties: {
15080
+ message: { type: "string" },
15081
+ warning_code: {
15082
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
15083
+ enum: ["temperature_threshold_exceeded"],
15084
+ type: "string"
15085
+ }
15086
+ },
15087
+ required: ["message", "warning_code"],
15088
+ type: "object"
15089
+ },
15090
+ {
15091
+ description: "Device appears to be unresponsive.",
15092
+ properties: {
15093
+ message: { type: "string" },
15094
+ warning_code: {
15095
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
15096
+ enum: ["device_communication_degraded"],
15097
+ type: "string"
15098
+ }
15099
+ },
15100
+ required: ["message", "warning_code"],
15101
+ type: "object"
15102
+ },
15103
+ {
15104
+ description: "Scheduled maintenance window detected.",
15105
+ properties: {
15106
+ message: { type: "string" },
15107
+ warning_code: {
15108
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
15109
+ enum: ["scheduled_maintenance_window"],
15110
+ type: "string"
15111
+ }
15112
+ },
15113
+ required: ["message", "warning_code"],
15114
+ type: "object"
15115
+ },
15116
+ {
15117
+ description: "Device has flaky connection.",
15118
+ properties: {
15119
+ message: { type: "string" },
15120
+ warning_code: {
15121
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
15122
+ enum: ["device_has_flaky_connection"],
15123
+ type: "string"
15124
+ }
15125
+ },
15126
+ required: ["message", "warning_code"],
15127
+ type: "object"
15128
+ },
15129
+ {
15130
+ description: "Lock is in Office Mode. Access Codes will not unlock doors.",
15131
+ properties: {
15132
+ message: { type: "string" },
15133
+ warning_code: {
15134
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
15135
+ enum: ["salto_office_mode"],
15136
+ type: "string"
15137
+ }
15138
+ },
15139
+ required: ["message", "warning_code"],
15140
+ type: "object"
15141
+ },
15142
+ {
15143
+ description: "Lock is in Privacy Mode. Access Codes will not unlock doors.",
15144
+ properties: {
15145
+ message: { type: "string" },
15146
+ warning_code: {
15147
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
15148
+ enum: ["salto_privacy_mode"],
15149
+ type: "string"
15150
+ }
15151
+ },
15152
+ required: ["message", "warning_code"],
15153
+ type: "object"
15154
+ }
15155
+ ]
14523
15156
  },
14524
15157
  type: "array"
14525
15158
  },