@seamapi/types 1.360.1 → 1.361.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.
Files changed (40) hide show
  1. package/dist/connect.cjs +739 -583
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +2320 -1622
  4. package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +192 -126
  5. package/lib/seam/connect/models/access-codes/managed-access-code.js +2 -4
  6. package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
  7. package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +193 -127
  8. package/lib/seam/connect/models/acs/acs-access-group.d.ts +4 -4
  9. package/lib/seam/connect/models/acs/acs-credential-pool.d.ts +2 -2
  10. package/lib/seam/connect/models/acs/acs-credential.d.ts +6 -6
  11. package/lib/seam/connect/models/acs/acs-encoder.d.ts +2 -2
  12. package/lib/seam/connect/models/acs/acs-entrance.d.ts +2 -2
  13. package/lib/seam/connect/models/acs/acs-system.d.ts +2 -2
  14. package/lib/seam/connect/models/acs/acs-user.d.ts +4 -4
  15. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +26 -26
  16. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +8 -8
  17. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +18 -18
  18. package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +42 -42
  19. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +18 -18
  20. package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +18 -18
  21. package/lib/seam/connect/models/devices/device.d.ts +1760 -389
  22. package/lib/seam/connect/models/devices/device.js +82 -4
  23. package/lib/seam/connect/models/devices/device.js.map +1 -1
  24. package/lib/seam/connect/models/devices/phone.d.ts +4 -4
  25. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +236 -58
  26. package/lib/seam/connect/models/events/access-codes.d.ts +68 -68
  27. package/lib/seam/connect/models/events/devices.d.ts +152 -152
  28. package/lib/seam/connect/models/events/phones.d.ts +4 -4
  29. package/lib/seam/connect/models/events/seam-event.d.ts +112 -112
  30. package/lib/seam/connect/models/thermostats/thermostat-schedule.d.ts +8 -8
  31. package/lib/seam/connect/models/user-identities/user-identity.d.ts +2 -2
  32. package/lib/seam/connect/openapi.d.ts +58 -148
  33. package/lib/seam/connect/openapi.js +563 -463
  34. package/lib/seam/connect/openapi.js.map +1 -1
  35. package/lib/seam/connect/route-types.d.ts +840 -648
  36. package/package.json +1 -1
  37. package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +2 -4
  38. package/src/lib/seam/connect/models/devices/device.ts +103 -4
  39. package/src/lib/seam/connect/openapi.ts +562 -478
  40. package/src/lib/seam/connect/route-types.ts +888 -720
@@ -341,246 +341,290 @@ export default {
341
341
  type: 'object',
342
342
  },
343
343
  {
344
- description: 'Device is offline',
344
+ description: 'Account is disconnected',
345
345
  properties: {
346
+ created_at: { format: 'date-time', type: 'string' },
346
347
  error_code: {
347
348
  description:
348
349
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
349
- enum: ['device_offline'],
350
+ enum: ['account_disconnected'],
350
351
  type: 'string',
351
352
  },
352
- is_device_error: { enum: [true], type: 'boolean' },
353
- message: { type: 'string' },
354
- },
355
- required: ['message', 'is_device_error', 'error_code'],
356
- type: 'object',
357
- },
358
- {
359
- description: 'Device has been removed',
360
- properties: {
361
- error_code: {
362
- description:
363
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
364
- enum: ['device_removed'],
365
- type: 'string',
353
+ is_connected_account_error: {
354
+ enum: [true],
355
+ type: 'boolean',
366
356
  },
367
- is_device_error: { enum: [true], type: 'boolean' },
357
+ is_device_error: { enum: [false], type: 'boolean' },
368
358
  message: { type: 'string' },
369
359
  },
370
- required: ['message', 'is_device_error', 'error_code'],
360
+ required: [
361
+ 'message',
362
+ 'is_device_error',
363
+ 'created_at',
364
+ 'error_code',
365
+ 'is_connected_account_error',
366
+ ],
371
367
  type: 'object',
372
368
  },
373
369
  {
374
- description: 'Hub is disconnected',
370
+ description: 'Salto site user limit reached.',
375
371
  properties: {
372
+ created_at: { format: 'date-time', type: 'string' },
376
373
  error_code: {
377
374
  description:
378
375
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
379
- enum: ['hub_disconnected'],
376
+ enum: ['salto_ks_subscription_limit_exceeded'],
380
377
  type: 'string',
381
378
  },
382
- is_device_error: { enum: [true], type: 'boolean' },
379
+ is_connected_account_error: {
380
+ enum: [true],
381
+ type: 'boolean',
382
+ },
383
+ is_device_error: { enum: [false], type: 'boolean' },
383
384
  message: { type: 'string' },
384
385
  },
385
- required: ['message', 'is_device_error', 'error_code'],
386
+ required: [
387
+ 'message',
388
+ 'is_device_error',
389
+ 'created_at',
390
+ 'error_code',
391
+ 'is_connected_account_error',
392
+ ],
386
393
  type: 'object',
387
394
  },
388
395
  {
389
- description: 'Device is disconnected',
396
+ description: 'Device is offline',
390
397
  properties: {
398
+ created_at: { format: 'date-time', type: 'string' },
391
399
  error_code: {
392
400
  description:
393
401
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
394
- enum: ['device_disconnected'],
402
+ enum: ['device_offline'],
395
403
  type: 'string',
396
404
  },
397
405
  is_device_error: { enum: [true], type: 'boolean' },
398
406
  message: { type: 'string' },
399
407
  },
400
- required: ['message', 'is_device_error', 'error_code'],
408
+ required: [
409
+ 'message',
410
+ 'is_device_error',
411
+ 'created_at',
412
+ 'error_code',
413
+ ],
401
414
  type: 'object',
402
415
  },
403
416
  {
404
- description: 'The backup access code pool is empty.',
417
+ description: 'Device has been removed',
405
418
  properties: {
419
+ created_at: { format: 'date-time', type: 'string' },
406
420
  error_code: {
407
421
  description:
408
422
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
409
- enum: ['empty_backup_access_code_pool'],
423
+ enum: ['device_removed'],
410
424
  type: 'string',
411
425
  },
412
426
  is_device_error: { enum: [true], type: 'boolean' },
413
427
  message: { type: 'string' },
414
428
  },
415
- required: ['message', 'is_device_error', 'error_code'],
429
+ required: [
430
+ 'message',
431
+ 'is_device_error',
432
+ 'created_at',
433
+ 'error_code',
434
+ ],
416
435
  type: 'object',
417
436
  },
418
437
  {
419
- description: 'User is not authorized to use the August Lock.',
438
+ description: 'Hub is disconnected',
420
439
  properties: {
440
+ created_at: { format: 'date-time', type: 'string' },
421
441
  error_code: {
422
442
  description:
423
443
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
424
- enum: ['august_lock_not_authorized'],
444
+ enum: ['hub_disconnected'],
425
445
  type: 'string',
426
446
  },
427
447
  is_device_error: { enum: [true], type: 'boolean' },
428
448
  message: { type: 'string' },
429
449
  },
430
- required: ['message', 'is_device_error', 'error_code'],
450
+ required: [
451
+ 'message',
452
+ 'is_device_error',
453
+ 'created_at',
454
+ 'error_code',
455
+ ],
431
456
  type: 'object',
432
457
  },
433
458
  {
434
- description: 'Lock is not connected to the Seam Bridge.',
459
+ description: 'Device is disconnected',
435
460
  properties: {
461
+ created_at: { format: 'date-time', type: 'string' },
436
462
  error_code: {
437
463
  description:
438
464
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
439
- enum: ['august_lock_missing_bridge'],
465
+ enum: ['device_disconnected'],
440
466
  type: 'string',
441
467
  },
442
468
  is_device_error: { enum: [true], type: 'boolean' },
443
469
  message: { type: 'string' },
444
470
  },
445
- required: ['message', 'is_device_error', 'error_code'],
471
+ required: [
472
+ 'message',
473
+ 'is_device_error',
474
+ 'created_at',
475
+ 'error_code',
476
+ ],
446
477
  type: 'object',
447
478
  },
448
479
  {
449
- description: 'Salto site user limit reached.',
480
+ description: 'The backup access code pool is empty.',
450
481
  properties: {
482
+ created_at: { format: 'date-time', type: 'string' },
451
483
  error_code: {
452
484
  description:
453
485
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
454
- enum: ['salto_site_user_limit_reached'],
486
+ enum: ['empty_backup_access_code_pool'],
455
487
  type: 'string',
456
488
  },
457
489
  is_device_error: { enum: [true], type: 'boolean' },
458
490
  message: { type: 'string' },
459
491
  },
460
- required: ['message', 'is_device_error', 'error_code'],
492
+ required: [
493
+ 'message',
494
+ 'is_device_error',
495
+ 'created_at',
496
+ 'error_code',
497
+ ],
461
498
  type: 'object',
462
499
  },
463
500
  {
464
- description: 'Lock is not paired with a Gateway.',
501
+ description: 'User is not authorized to use the August Lock.',
465
502
  properties: {
503
+ created_at: { format: 'date-time', type: 'string' },
466
504
  error_code: {
467
505
  description:
468
506
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
469
- enum: ['ttlock_lock_not_paired_to_gateway'],
507
+ enum: ['august_lock_not_authorized'],
470
508
  type: 'string',
471
509
  },
472
510
  is_device_error: { enum: [true], type: 'boolean' },
473
511
  message: { type: 'string' },
474
512
  },
475
- required: ['message', 'is_device_error', 'error_code'],
513
+ required: [
514
+ 'message',
515
+ 'is_device_error',
516
+ 'created_at',
517
+ 'error_code',
518
+ ],
476
519
  type: 'object',
477
520
  },
478
521
  {
479
- description: 'Missing device credentials.',
522
+ description: 'Lock is not connected to the Seam Bridge.',
480
523
  properties: {
524
+ created_at: { format: 'date-time', type: 'string' },
481
525
  error_code: {
482
526
  description:
483
527
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
484
- enum: ['missing_device_credentials'],
528
+ enum: ['august_lock_missing_bridge'],
485
529
  type: 'string',
486
530
  },
487
531
  is_device_error: { enum: [true], type: 'boolean' },
488
532
  message: { type: 'string' },
489
533
  },
490
- required: ['message', 'is_device_error', 'error_code'],
534
+ required: [
535
+ 'message',
536
+ 'is_device_error',
537
+ 'created_at',
538
+ 'error_code',
539
+ ],
491
540
  type: 'object',
492
541
  },
493
542
  {
494
- description: 'The auxiliary heat is running.',
543
+ description: 'Lock is not paired with a Gateway.',
495
544
  properties: {
545
+ created_at: { format: 'date-time', type: 'string' },
496
546
  error_code: {
497
547
  description:
498
548
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
499
- enum: ['auxiliary_heat_running'],
549
+ enum: ['ttlock_lock_not_paired_to_gateway'],
500
550
  type: 'string',
501
551
  },
502
552
  is_device_error: { enum: [true], type: 'boolean' },
503
553
  message: { type: 'string' },
504
554
  },
505
- required: ['message', 'is_device_error', 'error_code'],
555
+ required: [
556
+ 'message',
557
+ 'is_device_error',
558
+ 'created_at',
559
+ 'error_code',
560
+ ],
506
561
  type: 'object',
507
562
  },
508
563
  {
509
- description: 'Subscription required to connect.',
564
+ description: 'Missing device credentials.',
510
565
  properties: {
566
+ created_at: { format: 'date-time', type: 'string' },
511
567
  error_code: {
512
568
  description:
513
569
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
514
- enum: ['subscription_required'],
570
+ enum: ['missing_device_credentials'],
515
571
  type: 'string',
516
572
  },
517
573
  is_device_error: { enum: [true], type: 'boolean' },
518
574
  message: { type: 'string' },
519
575
  },
520
- required: ['message', 'is_device_error', 'error_code'],
576
+ required: [
577
+ 'message',
578
+ 'is_device_error',
579
+ 'created_at',
580
+ 'error_code',
581
+ ],
521
582
  type: 'object',
522
583
  },
523
584
  {
524
- description: 'Account is disconnected.',
585
+ description: 'The auxiliary heat is running.',
525
586
  properties: {
526
- created_at: {
527
- description:
528
- 'Date and time at which Seam created the error.',
529
- format: 'date-time',
530
- type: 'string',
531
- },
587
+ created_at: { format: 'date-time', type: 'string' },
532
588
  error_code: {
533
589
  description:
534
590
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
535
- enum: ['account_disconnected'],
591
+ enum: ['auxiliary_heat_running'],
536
592
  type: 'string',
537
593
  },
538
- is_connected_account_error: {
539
- enum: [true],
540
- type: 'boolean',
541
- },
594
+ is_device_error: { enum: [true], type: 'boolean' },
542
595
  message: { type: 'string' },
543
596
  },
544
597
  required: [
545
- 'created_at',
546
598
  'message',
547
- 'is_connected_account_error',
599
+ 'is_device_error',
600
+ 'created_at',
548
601
  'error_code',
549
602
  ],
550
603
  type: 'object',
551
604
  },
552
605
  {
553
- description: 'Credentials provided were invalid.',
606
+ description: 'Subscription required to connect.',
554
607
  properties: {
555
- created_at: {
556
- description:
557
- 'Date and time at which Seam created the error.',
558
- format: 'date-time',
559
- type: 'string',
560
- },
608
+ created_at: { format: 'date-time', type: 'string' },
561
609
  error_code: {
562
610
  description:
563
611
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
564
- enum: ['invalid_credentials'],
612
+ enum: ['subscription_required'],
565
613
  type: 'string',
566
614
  },
567
- is_connected_account_error: {
568
- enum: [true],
569
- type: 'boolean',
570
- },
615
+ is_device_error: { enum: [true], type: 'boolean' },
571
616
  message: { type: 'string' },
572
617
  },
573
618
  required: [
574
- 'created_at',
575
619
  'message',
576
- 'is_connected_account_error',
620
+ 'is_device_error',
621
+ 'created_at',
577
622
  'error_code',
578
623
  ],
579
624
  type: 'object',
580
625
  },
581
626
  {
582
- description:
583
- 'Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.',
627
+ description: 'Credentials provided were invalid.',
584
628
  properties: {
585
629
  created_at: {
586
630
  description:
@@ -591,7 +635,7 @@ export default {
591
635
  error_code: {
592
636
  description:
593
637
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
594
- enum: ['salto_ks_subscription_limit_exceeded'],
638
+ enum: ['invalid_credentials'],
595
639
  type: 'string',
596
640
  },
597
641
  is_connected_account_error: {
@@ -599,43 +643,12 @@ export default {
599
643
  type: 'boolean',
600
644
  },
601
645
  message: { type: 'string' },
602
- salto_ks_metadata: {
603
- properties: {
604
- sites: {
605
- items: {
606
- properties: {
607
- site_id: { type: 'string' },
608
- site_name: { type: 'string' },
609
- site_user_subscription_limit: {
610
- minimum: 0,
611
- type: 'integer',
612
- },
613
- subscribed_site_user_count: {
614
- minimum: 0,
615
- type: 'integer',
616
- },
617
- },
618
- required: [
619
- 'site_id',
620
- 'site_name',
621
- 'subscribed_site_user_count',
622
- 'site_user_subscription_limit',
623
- ],
624
- type: 'object',
625
- },
626
- type: 'array',
627
- },
628
- },
629
- required: ['sites'],
630
- type: 'object',
631
- },
632
646
  },
633
647
  required: [
634
648
  'created_at',
635
649
  'message',
636
650
  'is_connected_account_error',
637
651
  'error_code',
638
- 'salto_ks_metadata',
639
652
  ],
640
653
  type: 'object',
641
654
  },
@@ -5904,246 +5917,290 @@ export default {
5904
5917
  discriminator: { propertyName: 'error_code' },
5905
5918
  oneOf: [
5906
5919
  {
5907
- description: 'Device is offline',
5920
+ description: 'Account is disconnected',
5908
5921
  properties: {
5922
+ created_at: { format: 'date-time', type: 'string' },
5909
5923
  error_code: {
5910
5924
  description:
5911
5925
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
5912
- enum: ['device_offline'],
5926
+ enum: ['account_disconnected'],
5913
5927
  type: 'string',
5914
5928
  },
5915
- is_device_error: { enum: [true], type: 'boolean' },
5929
+ is_connected_account_error: {
5930
+ enum: [true],
5931
+ type: 'boolean',
5932
+ },
5933
+ is_device_error: { enum: [false], type: 'boolean' },
5916
5934
  message: { type: 'string' },
5917
5935
  },
5918
- required: ['message', 'is_device_error', 'error_code'],
5936
+ required: [
5937
+ 'message',
5938
+ 'is_device_error',
5939
+ 'created_at',
5940
+ 'error_code',
5941
+ 'is_connected_account_error',
5942
+ ],
5919
5943
  type: 'object',
5920
5944
  },
5921
5945
  {
5922
- description: 'Device has been removed',
5946
+ description: 'Salto site user limit reached.',
5923
5947
  properties: {
5948
+ created_at: { format: 'date-time', type: 'string' },
5924
5949
  error_code: {
5925
5950
  description:
5926
5951
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
5927
- enum: ['device_removed'],
5952
+ enum: ['salto_ks_subscription_limit_exceeded'],
5928
5953
  type: 'string',
5929
5954
  },
5930
- is_device_error: { enum: [true], type: 'boolean' },
5955
+ is_connected_account_error: {
5956
+ enum: [true],
5957
+ type: 'boolean',
5958
+ },
5959
+ is_device_error: { enum: [false], type: 'boolean' },
5931
5960
  message: { type: 'string' },
5932
5961
  },
5933
- required: ['message', 'is_device_error', 'error_code'],
5962
+ required: [
5963
+ 'message',
5964
+ 'is_device_error',
5965
+ 'created_at',
5966
+ 'error_code',
5967
+ 'is_connected_account_error',
5968
+ ],
5934
5969
  type: 'object',
5935
5970
  },
5936
5971
  {
5937
- description: 'Hub is disconnected',
5972
+ description: 'Device is offline',
5938
5973
  properties: {
5974
+ created_at: { format: 'date-time', type: 'string' },
5939
5975
  error_code: {
5940
5976
  description:
5941
5977
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
5942
- enum: ['hub_disconnected'],
5978
+ enum: ['device_offline'],
5943
5979
  type: 'string',
5944
5980
  },
5945
5981
  is_device_error: { enum: [true], type: 'boolean' },
5946
5982
  message: { type: 'string' },
5947
5983
  },
5948
- required: ['message', 'is_device_error', 'error_code'],
5984
+ required: [
5985
+ 'message',
5986
+ 'is_device_error',
5987
+ 'created_at',
5988
+ 'error_code',
5989
+ ],
5949
5990
  type: 'object',
5950
5991
  },
5951
5992
  {
5952
- description: 'Device is disconnected',
5993
+ description: 'Device has been removed',
5953
5994
  properties: {
5995
+ created_at: { format: 'date-time', type: 'string' },
5954
5996
  error_code: {
5955
5997
  description:
5956
5998
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
5957
- enum: ['device_disconnected'],
5999
+ enum: ['device_removed'],
5958
6000
  type: 'string',
5959
6001
  },
5960
6002
  is_device_error: { enum: [true], type: 'boolean' },
5961
6003
  message: { type: 'string' },
5962
6004
  },
5963
- required: ['message', 'is_device_error', 'error_code'],
6005
+ required: [
6006
+ 'message',
6007
+ 'is_device_error',
6008
+ 'created_at',
6009
+ 'error_code',
6010
+ ],
5964
6011
  type: 'object',
5965
6012
  },
5966
6013
  {
5967
- description: 'The backup access code pool is empty.',
6014
+ description: 'Hub is disconnected',
5968
6015
  properties: {
6016
+ created_at: { format: 'date-time', type: 'string' },
5969
6017
  error_code: {
5970
6018
  description:
5971
6019
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
5972
- enum: ['empty_backup_access_code_pool'],
6020
+ enum: ['hub_disconnected'],
5973
6021
  type: 'string',
5974
6022
  },
5975
6023
  is_device_error: { enum: [true], type: 'boolean' },
5976
6024
  message: { type: 'string' },
5977
6025
  },
5978
- required: ['message', 'is_device_error', 'error_code'],
6026
+ required: [
6027
+ 'message',
6028
+ 'is_device_error',
6029
+ 'created_at',
6030
+ 'error_code',
6031
+ ],
5979
6032
  type: 'object',
5980
6033
  },
5981
6034
  {
5982
- description: 'User is not authorized to use the August Lock.',
6035
+ description: 'Device is disconnected',
5983
6036
  properties: {
6037
+ created_at: { format: 'date-time', type: 'string' },
5984
6038
  error_code: {
5985
6039
  description:
5986
6040
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
5987
- enum: ['august_lock_not_authorized'],
6041
+ enum: ['device_disconnected'],
5988
6042
  type: 'string',
5989
6043
  },
5990
6044
  is_device_error: { enum: [true], type: 'boolean' },
5991
6045
  message: { type: 'string' },
5992
6046
  },
5993
- required: ['message', 'is_device_error', 'error_code'],
5994
- type: 'object',
5995
- },
5996
- {
5997
- description: 'Lock is not connected to the Seam Bridge.',
5998
- properties: {
5999
- error_code: {
6000
- description:
6001
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
6002
- enum: ['august_lock_missing_bridge'],
6003
- type: 'string',
6004
- },
6005
- is_device_error: { enum: [true], type: 'boolean' },
6006
- message: { type: 'string' },
6007
- },
6008
- required: ['message', 'is_device_error', 'error_code'],
6047
+ required: [
6048
+ 'message',
6049
+ 'is_device_error',
6050
+ 'created_at',
6051
+ 'error_code',
6052
+ ],
6009
6053
  type: 'object',
6010
6054
  },
6011
6055
  {
6012
- description: 'Salto site user limit reached.',
6056
+ description: 'The backup access code pool is empty.',
6013
6057
  properties: {
6058
+ created_at: { format: 'date-time', type: 'string' },
6014
6059
  error_code: {
6015
6060
  description:
6016
6061
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
6017
- enum: ['salto_site_user_limit_reached'],
6062
+ enum: ['empty_backup_access_code_pool'],
6018
6063
  type: 'string',
6019
6064
  },
6020
6065
  is_device_error: { enum: [true], type: 'boolean' },
6021
6066
  message: { type: 'string' },
6022
6067
  },
6023
- required: ['message', 'is_device_error', 'error_code'],
6068
+ required: [
6069
+ 'message',
6070
+ 'is_device_error',
6071
+ 'created_at',
6072
+ 'error_code',
6073
+ ],
6024
6074
  type: 'object',
6025
6075
  },
6026
6076
  {
6027
- description: 'Lock is not paired with a Gateway.',
6077
+ description: 'User is not authorized to use the August Lock.',
6028
6078
  properties: {
6079
+ created_at: { format: 'date-time', type: 'string' },
6029
6080
  error_code: {
6030
6081
  description:
6031
6082
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
6032
- enum: ['ttlock_lock_not_paired_to_gateway'],
6083
+ enum: ['august_lock_not_authorized'],
6033
6084
  type: 'string',
6034
6085
  },
6035
6086
  is_device_error: { enum: [true], type: 'boolean' },
6036
6087
  message: { type: 'string' },
6037
6088
  },
6038
- required: ['message', 'is_device_error', 'error_code'],
6089
+ required: [
6090
+ 'message',
6091
+ 'is_device_error',
6092
+ 'created_at',
6093
+ 'error_code',
6094
+ ],
6039
6095
  type: 'object',
6040
6096
  },
6041
6097
  {
6042
- description: 'Missing device credentials.',
6098
+ description: 'Lock is not connected to the Seam Bridge.',
6043
6099
  properties: {
6100
+ created_at: { format: 'date-time', type: 'string' },
6044
6101
  error_code: {
6045
6102
  description:
6046
6103
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
6047
- enum: ['missing_device_credentials'],
6104
+ enum: ['august_lock_missing_bridge'],
6048
6105
  type: 'string',
6049
6106
  },
6050
6107
  is_device_error: { enum: [true], type: 'boolean' },
6051
6108
  message: { type: 'string' },
6052
6109
  },
6053
- required: ['message', 'is_device_error', 'error_code'],
6110
+ required: [
6111
+ 'message',
6112
+ 'is_device_error',
6113
+ 'created_at',
6114
+ 'error_code',
6115
+ ],
6054
6116
  type: 'object',
6055
6117
  },
6056
6118
  {
6057
- description: 'The auxiliary heat is running.',
6119
+ description: 'Lock is not paired with a Gateway.',
6058
6120
  properties: {
6121
+ created_at: { format: 'date-time', type: 'string' },
6059
6122
  error_code: {
6060
6123
  description:
6061
6124
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
6062
- enum: ['auxiliary_heat_running'],
6125
+ enum: ['ttlock_lock_not_paired_to_gateway'],
6063
6126
  type: 'string',
6064
6127
  },
6065
6128
  is_device_error: { enum: [true], type: 'boolean' },
6066
6129
  message: { type: 'string' },
6067
6130
  },
6068
- required: ['message', 'is_device_error', 'error_code'],
6131
+ required: [
6132
+ 'message',
6133
+ 'is_device_error',
6134
+ 'created_at',
6135
+ 'error_code',
6136
+ ],
6069
6137
  type: 'object',
6070
6138
  },
6071
6139
  {
6072
- description: 'Subscription required to connect.',
6140
+ description: 'Missing device credentials.',
6073
6141
  properties: {
6142
+ created_at: { format: 'date-time', type: 'string' },
6074
6143
  error_code: {
6075
6144
  description:
6076
6145
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
6077
- enum: ['subscription_required'],
6146
+ enum: ['missing_device_credentials'],
6078
6147
  type: 'string',
6079
6148
  },
6080
6149
  is_device_error: { enum: [true], type: 'boolean' },
6081
6150
  message: { type: 'string' },
6082
6151
  },
6083
- required: ['message', 'is_device_error', 'error_code'],
6152
+ required: [
6153
+ 'message',
6154
+ 'is_device_error',
6155
+ 'created_at',
6156
+ 'error_code',
6157
+ ],
6084
6158
  type: 'object',
6085
6159
  },
6086
6160
  {
6087
- description: 'Account is disconnected.',
6161
+ description: 'The auxiliary heat is running.',
6088
6162
  properties: {
6089
- created_at: {
6090
- description:
6091
- 'Date and time at which Seam created the error.',
6092
- format: 'date-time',
6093
- type: 'string',
6094
- },
6163
+ created_at: { format: 'date-time', type: 'string' },
6095
6164
  error_code: {
6096
6165
  description:
6097
6166
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
6098
- enum: ['account_disconnected'],
6167
+ enum: ['auxiliary_heat_running'],
6099
6168
  type: 'string',
6100
6169
  },
6101
- is_connected_account_error: {
6102
- enum: [true],
6103
- type: 'boolean',
6104
- },
6170
+ is_device_error: { enum: [true], type: 'boolean' },
6105
6171
  message: { type: 'string' },
6106
6172
  },
6107
6173
  required: [
6108
- 'created_at',
6109
6174
  'message',
6110
- 'is_connected_account_error',
6175
+ 'is_device_error',
6176
+ 'created_at',
6111
6177
  'error_code',
6112
6178
  ],
6113
6179
  type: 'object',
6114
6180
  },
6115
6181
  {
6116
- description: 'Credentials provided were invalid.',
6182
+ description: 'Subscription required to connect.',
6117
6183
  properties: {
6118
- created_at: {
6119
- description:
6120
- 'Date and time at which Seam created the error.',
6121
- format: 'date-time',
6122
- type: 'string',
6123
- },
6184
+ created_at: { format: 'date-time', type: 'string' },
6124
6185
  error_code: {
6125
6186
  description:
6126
6187
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
6127
- enum: ['invalid_credentials'],
6188
+ enum: ['subscription_required'],
6128
6189
  type: 'string',
6129
6190
  },
6130
- is_connected_account_error: {
6131
- enum: [true],
6132
- type: 'boolean',
6133
- },
6191
+ is_device_error: { enum: [true], type: 'boolean' },
6134
6192
  message: { type: 'string' },
6135
6193
  },
6136
6194
  required: [
6137
- 'created_at',
6138
6195
  'message',
6139
- 'is_connected_account_error',
6196
+ 'is_device_error',
6197
+ 'created_at',
6140
6198
  'error_code',
6141
6199
  ],
6142
6200
  type: 'object',
6143
6201
  },
6144
6202
  {
6145
- description:
6146
- 'Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.',
6203
+ description: 'Credentials provided were invalid.',
6147
6204
  properties: {
6148
6205
  created_at: {
6149
6206
  description:
@@ -6154,7 +6211,7 @@ export default {
6154
6211
  error_code: {
6155
6212
  description:
6156
6213
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
6157
- enum: ['salto_ks_subscription_limit_exceeded'],
6214
+ enum: ['invalid_credentials'],
6158
6215
  type: 'string',
6159
6216
  },
6160
6217
  is_connected_account_error: {
@@ -6162,43 +6219,12 @@ export default {
6162
6219
  type: 'boolean',
6163
6220
  },
6164
6221
  message: { type: 'string' },
6165
- salto_ks_metadata: {
6166
- properties: {
6167
- sites: {
6168
- items: {
6169
- properties: {
6170
- site_id: { type: 'string' },
6171
- site_name: { type: 'string' },
6172
- site_user_subscription_limit: {
6173
- minimum: 0,
6174
- type: 'integer',
6175
- },
6176
- subscribed_site_user_count: {
6177
- minimum: 0,
6178
- type: 'integer',
6179
- },
6180
- },
6181
- required: [
6182
- 'site_id',
6183
- 'site_name',
6184
- 'subscribed_site_user_count',
6185
- 'site_user_subscription_limit',
6186
- ],
6187
- type: 'object',
6188
- },
6189
- type: 'array',
6190
- },
6191
- },
6192
- required: ['sites'],
6193
- type: 'object',
6194
- },
6195
6222
  },
6196
6223
  required: [
6197
6224
  'created_at',
6198
6225
  'message',
6199
6226
  'is_connected_account_error',
6200
6227
  'error_code',
6201
- 'salto_ks_metadata',
6202
6228
  ],
6203
6229
  type: 'object',
6204
6230
  },
@@ -7545,6 +7571,7 @@ export default {
7545
7571
  {
7546
7572
  description: 'Backup access code unhealthy.',
7547
7573
  properties: {
7574
+ created_at: { format: 'date-time', type: 'string' },
7548
7575
  message: { type: 'string' },
7549
7576
  warning_code: {
7550
7577
  description:
@@ -7553,12 +7580,13 @@ export default {
7553
7580
  type: 'string',
7554
7581
  },
7555
7582
  },
7556
- required: ['message', 'warning_code'],
7583
+ required: ['message', 'created_at', 'warning_code'],
7557
7584
  type: 'object',
7558
7585
  },
7559
7586
  {
7560
7587
  description: 'Too many backup codes.',
7561
7588
  properties: {
7589
+ created_at: { format: 'date-time', type: 'string' },
7562
7590
  message: { type: 'string' },
7563
7591
  warning_code: {
7564
7592
  description:
@@ -7567,13 +7595,14 @@ export default {
7567
7595
  type: 'string',
7568
7596
  },
7569
7597
  },
7570
- required: ['message', 'warning_code'],
7598
+ required: ['message', 'created_at', 'warning_code'],
7571
7599
  type: 'object',
7572
7600
  },
7573
7601
  {
7574
7602
  description:
7575
7603
  'A Salto Lock displaying an unknown device type.',
7576
7604
  properties: {
7605
+ created_at: { format: 'date-time', type: 'string' },
7577
7606
  message: { type: 'string' },
7578
7607
  warning_code: {
7579
7608
  description:
@@ -7582,12 +7611,13 @@ export default {
7582
7611
  type: 'string',
7583
7612
  },
7584
7613
  },
7585
- required: ['message', 'warning_code'],
7614
+ required: ['message', 'created_at', 'warning_code'],
7586
7615
  type: 'object',
7587
7616
  },
7588
7617
  {
7589
7618
  description: 'Wyze Lock is not connected to a gateway.',
7590
7619
  properties: {
7620
+ created_at: { format: 'date-time', type: 'string' },
7591
7621
  message: { type: 'string' },
7592
7622
  warning_code: {
7593
7623
  description:
@@ -7596,13 +7626,14 @@ export default {
7596
7626
  type: 'string',
7597
7627
  },
7598
7628
  },
7599
- required: ['message', 'warning_code'],
7629
+ required: ['message', 'created_at', 'warning_code'],
7600
7630
  type: 'object',
7601
7631
  },
7602
7632
  {
7603
7633
  description:
7604
7634
  'Device is offline, but has some functionality available.',
7605
7635
  properties: {
7636
+ created_at: { format: 'date-time', type: 'string' },
7606
7637
  message: { type: 'string' },
7607
7638
  warning_code: {
7608
7639
  description:
@@ -7611,12 +7642,13 @@ export default {
7611
7642
  type: 'string',
7612
7643
  },
7613
7644
  },
7614
- required: ['message', 'warning_code'],
7645
+ required: ['message', 'created_at', 'warning_code'],
7615
7646
  type: 'object',
7616
7647
  },
7617
7648
  {
7618
7649
  description: 'Third-party integration detected.',
7619
7650
  properties: {
7651
+ created_at: { format: 'date-time', type: 'string' },
7620
7652
  message: { type: 'string' },
7621
7653
  warning_code: {
7622
7654
  description:
@@ -7625,12 +7657,13 @@ export default {
7625
7657
  type: 'string',
7626
7658
  },
7627
7659
  },
7628
- required: ['message', 'warning_code'],
7660
+ required: ['message', 'created_at', 'warning_code'],
7629
7661
  type: 'object',
7630
7662
  },
7631
7663
  {
7632
7664
  description: 'Nest thermostat in manual eco mode.',
7633
7665
  properties: {
7666
+ created_at: { format: 'date-time', type: 'string' },
7634
7667
  message: { type: 'string' },
7635
7668
  warning_code: {
7636
7669
  description:
@@ -7639,12 +7672,13 @@ export default {
7639
7672
  type: 'string',
7640
7673
  },
7641
7674
  },
7642
- required: ['message', 'warning_code'],
7675
+ required: ['message', 'created_at', 'warning_code'],
7643
7676
  type: 'object',
7644
7677
  },
7645
7678
  {
7646
7679
  description: 'Remote Unlock feature not enabled in settings.',
7647
7680
  properties: {
7681
+ created_at: { format: 'date-time', type: 'string' },
7648
7682
  message: { type: 'string' },
7649
7683
  warning_code: {
7650
7684
  description:
@@ -7653,12 +7687,13 @@ export default {
7653
7687
  type: 'string',
7654
7688
  },
7655
7689
  },
7656
- required: ['message', 'warning_code'],
7690
+ required: ['message', 'created_at', 'warning_code'],
7657
7691
  type: 'object',
7658
7692
  },
7659
7693
  {
7660
7694
  description: 'Gateway signal is weak.',
7661
7695
  properties: {
7696
+ created_at: { format: 'date-time', type: 'string' },
7662
7697
  message: { type: 'string' },
7663
7698
  warning_code: {
7664
7699
  description:
@@ -7667,12 +7702,13 @@ export default {
7667
7702
  type: 'string',
7668
7703
  },
7669
7704
  },
7670
- required: ['message', 'warning_code'],
7705
+ required: ['message', 'created_at', 'warning_code'],
7671
7706
  type: 'object',
7672
7707
  },
7673
7708
  {
7674
7709
  description: 'Temperature threshold exceeded.',
7675
7710
  properties: {
7711
+ created_at: { format: 'date-time', type: 'string' },
7676
7712
  message: { type: 'string' },
7677
7713
  warning_code: {
7678
7714
  description:
@@ -7681,12 +7717,13 @@ export default {
7681
7717
  type: 'string',
7682
7718
  },
7683
7719
  },
7684
- required: ['message', 'warning_code'],
7720
+ required: ['message', 'created_at', 'warning_code'],
7685
7721
  type: 'object',
7686
7722
  },
7687
7723
  {
7688
7724
  description: 'Device appears to be unresponsive.',
7689
7725
  properties: {
7726
+ created_at: { format: 'date-time', type: 'string' },
7690
7727
  message: { type: 'string' },
7691
7728
  warning_code: {
7692
7729
  description:
@@ -7695,12 +7732,13 @@ export default {
7695
7732
  type: 'string',
7696
7733
  },
7697
7734
  },
7698
- required: ['message', 'warning_code'],
7735
+ required: ['message', 'created_at', 'warning_code'],
7699
7736
  type: 'object',
7700
7737
  },
7701
7738
  {
7702
7739
  description: 'Scheduled maintenance window detected.',
7703
7740
  properties: {
7741
+ created_at: { format: 'date-time', type: 'string' },
7704
7742
  message: { type: 'string' },
7705
7743
  warning_code: {
7706
7744
  description:
@@ -7709,12 +7747,13 @@ export default {
7709
7747
  type: 'string',
7710
7748
  },
7711
7749
  },
7712
- required: ['message', 'warning_code'],
7750
+ required: ['message', 'created_at', 'warning_code'],
7713
7751
  type: 'object',
7714
7752
  },
7715
7753
  {
7716
7754
  description: 'Device has flaky connection.',
7717
7755
  properties: {
7756
+ created_at: { format: 'date-time', type: 'string' },
7718
7757
  message: { type: 'string' },
7719
7758
  warning_code: {
7720
7759
  description:
@@ -7723,13 +7762,14 @@ export default {
7723
7762
  type: 'string',
7724
7763
  },
7725
7764
  },
7726
- required: ['message', 'warning_code'],
7765
+ required: ['message', 'created_at', 'warning_code'],
7727
7766
  type: 'object',
7728
7767
  },
7729
7768
  {
7730
7769
  description:
7731
7770
  'Lock is in Office Mode. Access Codes will not unlock doors.',
7732
7771
  properties: {
7772
+ created_at: { format: 'date-time', type: 'string' },
7733
7773
  message: { type: 'string' },
7734
7774
  warning_code: {
7735
7775
  description:
@@ -7738,13 +7778,14 @@ export default {
7738
7778
  type: 'string',
7739
7779
  },
7740
7780
  },
7741
- required: ['message', 'warning_code'],
7781
+ required: ['message', 'created_at', 'warning_code'],
7742
7782
  type: 'object',
7743
7783
  },
7744
7784
  {
7745
7785
  description:
7746
7786
  'Lock is in Privacy Mode. Access Codes will not unlock doors.',
7747
7787
  properties: {
7788
+ created_at: { format: 'date-time', type: 'string' },
7748
7789
  message: { type: 'string' },
7749
7790
  warning_code: {
7750
7791
  description:
@@ -7753,13 +7794,14 @@ export default {
7753
7794
  type: 'string',
7754
7795
  },
7755
7796
  },
7756
- required: ['message', 'warning_code'],
7797
+ required: ['message', 'created_at', 'warning_code'],
7757
7798
  type: 'object',
7758
7799
  },
7759
7800
  {
7760
7801
  description:
7761
7802
  'An unknown issue occurred while syncing the state of this phone with the provider. This issue may affect the proper functioning of this phone.',
7762
7803
  properties: {
7804
+ created_at: { format: 'date-time', type: 'string' },
7763
7805
  message: { type: 'string' },
7764
7806
  warning_code: {
7765
7807
  description:
@@ -7768,7 +7810,7 @@ export default {
7768
7810
  type: 'string',
7769
7811
  },
7770
7812
  },
7771
- required: ['message', 'warning_code'],
7813
+ required: ['message', 'created_at', 'warning_code'],
7772
7814
  type: 'object',
7773
7815
  },
7774
7816
  ],
@@ -12957,9 +12999,62 @@ export default {
12957
12999
  required: ['message', 'is_access_code_error', 'error_code'],
12958
13000
  type: 'object',
12959
13001
  },
13002
+ {
13003
+ description: 'Account is disconnected',
13004
+ properties: {
13005
+ created_at: { format: 'date-time', type: 'string' },
13006
+ error_code: {
13007
+ description:
13008
+ 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
13009
+ enum: ['account_disconnected'],
13010
+ type: 'string',
13011
+ },
13012
+ is_connected_account_error: {
13013
+ enum: [true],
13014
+ type: 'boolean',
13015
+ },
13016
+ is_device_error: { enum: [false], type: 'boolean' },
13017
+ message: { type: 'string' },
13018
+ },
13019
+ required: [
13020
+ 'message',
13021
+ 'is_device_error',
13022
+ 'created_at',
13023
+ 'error_code',
13024
+ 'is_connected_account_error',
13025
+ ],
13026
+ type: 'object',
13027
+ },
13028
+ {
13029
+ description: 'Salto site user limit reached.',
13030
+ properties: {
13031
+ created_at: { format: 'date-time', type: 'string' },
13032
+ error_code: {
13033
+ description:
13034
+ 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
13035
+ enum: ['salto_ks_subscription_limit_exceeded'],
13036
+ type: 'string',
13037
+ },
13038
+ is_connected_account_error: {
13039
+ enum: [true],
13040
+ type: 'boolean',
13041
+ },
13042
+ is_device_error: { enum: [false], type: 'boolean' },
13043
+ message: { type: 'string' },
13044
+ },
13045
+ required: [
13046
+ 'message',
13047
+ 'is_device_error',
13048
+ 'created_at',
13049
+ 'error_code',
13050
+ 'is_connected_account_error',
13051
+ ],
13052
+ type: 'object',
13053
+ },
12960
13054
  {
12961
13055
  description: 'Device is offline',
12962
13056
  properties: {
13057
+ created_at: { format: 'date-time', type: 'string' },
12963
13058
  error_code: {
12964
13059
  description:
12965
13060
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
@@ -12969,12 +13064,18 @@ export default {
12969
13064
  is_device_error: { enum: [true], type: 'boolean' },
12970
13065
  message: { type: 'string' },
12971
13066
  },
12972
- required: ['message', 'is_device_error', 'error_code'],
13067
+ required: [
13068
+ 'message',
13069
+ 'is_device_error',
13070
+ 'created_at',
13071
+ 'error_code',
13072
+ ],
12973
13073
  type: 'object',
12974
13074
  },
12975
13075
  {
12976
13076
  description: 'Device has been removed',
12977
13077
  properties: {
13078
+ created_at: { format: 'date-time', type: 'string' },
12978
13079
  error_code: {
12979
13080
  description:
12980
13081
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
@@ -12984,12 +13085,18 @@ export default {
12984
13085
  is_device_error: { enum: [true], type: 'boolean' },
12985
13086
  message: { type: 'string' },
12986
13087
  },
12987
- required: ['message', 'is_device_error', 'error_code'],
13088
+ required: [
13089
+ 'message',
13090
+ 'is_device_error',
13091
+ 'created_at',
13092
+ 'error_code',
13093
+ ],
12988
13094
  type: 'object',
12989
13095
  },
12990
13096
  {
12991
13097
  description: 'Hub is disconnected',
12992
13098
  properties: {
13099
+ created_at: { format: 'date-time', type: 'string' },
12993
13100
  error_code: {
12994
13101
  description:
12995
13102
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
@@ -12999,12 +13106,18 @@ export default {
12999
13106
  is_device_error: { enum: [true], type: 'boolean' },
13000
13107
  message: { type: 'string' },
13001
13108
  },
13002
- required: ['message', 'is_device_error', 'error_code'],
13109
+ required: [
13110
+ 'message',
13111
+ 'is_device_error',
13112
+ 'created_at',
13113
+ 'error_code',
13114
+ ],
13003
13115
  type: 'object',
13004
13116
  },
13005
13117
  {
13006
13118
  description: 'Device is disconnected',
13007
13119
  properties: {
13120
+ created_at: { format: 'date-time', type: 'string' },
13008
13121
  error_code: {
13009
13122
  description:
13010
13123
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
@@ -13014,12 +13127,18 @@ export default {
13014
13127
  is_device_error: { enum: [true], type: 'boolean' },
13015
13128
  message: { type: 'string' },
13016
13129
  },
13017
- required: ['message', 'is_device_error', 'error_code'],
13130
+ required: [
13131
+ 'message',
13132
+ 'is_device_error',
13133
+ 'created_at',
13134
+ 'error_code',
13135
+ ],
13018
13136
  type: 'object',
13019
13137
  },
13020
13138
  {
13021
13139
  description: 'The backup access code pool is empty.',
13022
13140
  properties: {
13141
+ created_at: { format: 'date-time', type: 'string' },
13023
13142
  error_code: {
13024
13143
  description:
13025
13144
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
@@ -13029,12 +13148,18 @@ export default {
13029
13148
  is_device_error: { enum: [true], type: 'boolean' },
13030
13149
  message: { type: 'string' },
13031
13150
  },
13032
- required: ['message', 'is_device_error', 'error_code'],
13151
+ required: [
13152
+ 'message',
13153
+ 'is_device_error',
13154
+ 'created_at',
13155
+ 'error_code',
13156
+ ],
13033
13157
  type: 'object',
13034
13158
  },
13035
13159
  {
13036
13160
  description: 'User is not authorized to use the August Lock.',
13037
13161
  properties: {
13162
+ created_at: { format: 'date-time', type: 'string' },
13038
13163
  error_code: {
13039
13164
  description:
13040
13165
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
@@ -13044,12 +13169,18 @@ export default {
13044
13169
  is_device_error: { enum: [true], type: 'boolean' },
13045
13170
  message: { type: 'string' },
13046
13171
  },
13047
- required: ['message', 'is_device_error', 'error_code'],
13172
+ required: [
13173
+ 'message',
13174
+ 'is_device_error',
13175
+ 'created_at',
13176
+ 'error_code',
13177
+ ],
13048
13178
  type: 'object',
13049
13179
  },
13050
13180
  {
13051
13181
  description: 'Lock is not connected to the Seam Bridge.',
13052
13182
  properties: {
13183
+ created_at: { format: 'date-time', type: 'string' },
13053
13184
  error_code: {
13054
13185
  description:
13055
13186
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
@@ -13059,27 +13190,18 @@ export default {
13059
13190
  is_device_error: { enum: [true], type: 'boolean' },
13060
13191
  message: { type: 'string' },
13061
13192
  },
13062
- required: ['message', 'is_device_error', 'error_code'],
13063
- type: 'object',
13064
- },
13065
- {
13066
- description: 'Salto site user limit reached.',
13067
- properties: {
13068
- error_code: {
13069
- description:
13070
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
13071
- enum: ['salto_site_user_limit_reached'],
13072
- type: 'string',
13073
- },
13074
- is_device_error: { enum: [true], type: 'boolean' },
13075
- message: { type: 'string' },
13076
- },
13077
- required: ['message', 'is_device_error', 'error_code'],
13193
+ required: [
13194
+ 'message',
13195
+ 'is_device_error',
13196
+ 'created_at',
13197
+ 'error_code',
13198
+ ],
13078
13199
  type: 'object',
13079
13200
  },
13080
13201
  {
13081
13202
  description: 'Lock is not paired with a Gateway.',
13082
13203
  properties: {
13204
+ created_at: { format: 'date-time', type: 'string' },
13083
13205
  error_code: {
13084
13206
  description:
13085
13207
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
@@ -13089,12 +13211,18 @@ export default {
13089
13211
  is_device_error: { enum: [true], type: 'boolean' },
13090
13212
  message: { type: 'string' },
13091
13213
  },
13092
- required: ['message', 'is_device_error', 'error_code'],
13214
+ required: [
13215
+ 'message',
13216
+ 'is_device_error',
13217
+ 'created_at',
13218
+ 'error_code',
13219
+ ],
13093
13220
  type: 'object',
13094
13221
  },
13095
13222
  {
13096
13223
  description: 'Missing device credentials.',
13097
13224
  properties: {
13225
+ created_at: { format: 'date-time', type: 'string' },
13098
13226
  error_code: {
13099
13227
  description:
13100
13228
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
@@ -13104,12 +13232,18 @@ export default {
13104
13232
  is_device_error: { enum: [true], type: 'boolean' },
13105
13233
  message: { type: 'string' },
13106
13234
  },
13107
- required: ['message', 'is_device_error', 'error_code'],
13235
+ required: [
13236
+ 'message',
13237
+ 'is_device_error',
13238
+ 'created_at',
13239
+ 'error_code',
13240
+ ],
13108
13241
  type: 'object',
13109
13242
  },
13110
13243
  {
13111
13244
  description: 'The auxiliary heat is running.',
13112
13245
  properties: {
13246
+ created_at: { format: 'date-time', type: 'string' },
13113
13247
  error_code: {
13114
13248
  description:
13115
13249
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
@@ -13119,12 +13253,18 @@ export default {
13119
13253
  is_device_error: { enum: [true], type: 'boolean' },
13120
13254
  message: { type: 'string' },
13121
13255
  },
13122
- required: ['message', 'is_device_error', 'error_code'],
13256
+ required: [
13257
+ 'message',
13258
+ 'is_device_error',
13259
+ 'created_at',
13260
+ 'error_code',
13261
+ ],
13123
13262
  type: 'object',
13124
13263
  },
13125
13264
  {
13126
13265
  description: 'Subscription required to connect.',
13127
13266
  properties: {
13267
+ created_at: { format: 'date-time', type: 'string' },
13128
13268
  error_code: {
13129
13269
  description:
13130
13270
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
@@ -13134,34 +13274,10 @@ export default {
13134
13274
  is_device_error: { enum: [true], type: 'boolean' },
13135
13275
  message: { type: 'string' },
13136
13276
  },
13137
- required: ['message', 'is_device_error', 'error_code'],
13138
- type: 'object',
13139
- },
13140
- {
13141
- description: 'Account is disconnected.',
13142
- properties: {
13143
- created_at: {
13144
- description:
13145
- 'Date and time at which Seam created the error.',
13146
- format: 'date-time',
13147
- type: 'string',
13148
- },
13149
- error_code: {
13150
- description:
13151
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
13152
- enum: ['account_disconnected'],
13153
- type: 'string',
13154
- },
13155
- is_connected_account_error: {
13156
- enum: [true],
13157
- type: 'boolean',
13158
- },
13159
- message: { type: 'string' },
13160
- },
13161
13277
  required: [
13162
- 'created_at',
13163
13278
  'message',
13164
- 'is_connected_account_error',
13279
+ 'is_device_error',
13280
+ 'created_at',
13165
13281
  'error_code',
13166
13282
  ],
13167
13283
  type: 'object',
@@ -13195,67 +13311,6 @@ export default {
13195
13311
  ],
13196
13312
  type: 'object',
13197
13313
  },
13198
- {
13199
- description:
13200
- 'Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.',
13201
- properties: {
13202
- created_at: {
13203
- description:
13204
- 'Date and time at which Seam created the error.',
13205
- format: 'date-time',
13206
- type: 'string',
13207
- },
13208
- error_code: {
13209
- description:
13210
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
13211
- enum: ['salto_ks_subscription_limit_exceeded'],
13212
- type: 'string',
13213
- },
13214
- is_connected_account_error: {
13215
- enum: [true],
13216
- type: 'boolean',
13217
- },
13218
- message: { type: 'string' },
13219
- salto_ks_metadata: {
13220
- properties: {
13221
- sites: {
13222
- items: {
13223
- properties: {
13224
- site_id: { type: 'string' },
13225
- site_name: { type: 'string' },
13226
- site_user_subscription_limit: {
13227
- minimum: 0,
13228
- type: 'integer',
13229
- },
13230
- subscribed_site_user_count: {
13231
- minimum: 0,
13232
- type: 'integer',
13233
- },
13234
- },
13235
- required: [
13236
- 'site_id',
13237
- 'site_name',
13238
- 'subscribed_site_user_count',
13239
- 'site_user_subscription_limit',
13240
- ],
13241
- type: 'object',
13242
- },
13243
- type: 'array',
13244
- },
13245
- },
13246
- required: ['sites'],
13247
- type: 'object',
13248
- },
13249
- },
13250
- required: [
13251
- 'created_at',
13252
- 'message',
13253
- 'is_connected_account_error',
13254
- 'error_code',
13255
- 'salto_ks_metadata',
13256
- ],
13257
- type: 'object',
13258
- },
13259
13314
  ],
13260
13315
  },
13261
13316
  type: 'array',
@@ -14414,246 +14469,290 @@ export default {
14414
14469
  discriminator: { propertyName: 'error_code' },
14415
14470
  oneOf: [
14416
14471
  {
14417
- description: 'Device is offline',
14472
+ description: 'Account is disconnected',
14418
14473
  properties: {
14474
+ created_at: { format: 'date-time', type: 'string' },
14419
14475
  error_code: {
14420
14476
  description:
14421
14477
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
14422
- enum: ['device_offline'],
14478
+ enum: ['account_disconnected'],
14423
14479
  type: 'string',
14424
14480
  },
14425
- is_device_error: { enum: [true], type: 'boolean' },
14426
- message: { type: 'string' },
14427
- },
14428
- required: ['message', 'is_device_error', 'error_code'],
14429
- type: 'object',
14430
- },
14431
- {
14432
- description: 'Device has been removed',
14433
- properties: {
14434
- error_code: {
14435
- description:
14436
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
14437
- enum: ['device_removed'],
14438
- type: 'string',
14481
+ is_connected_account_error: {
14482
+ enum: [true],
14483
+ type: 'boolean',
14439
14484
  },
14440
- is_device_error: { enum: [true], type: 'boolean' },
14485
+ is_device_error: { enum: [false], type: 'boolean' },
14441
14486
  message: { type: 'string' },
14442
14487
  },
14443
- required: ['message', 'is_device_error', 'error_code'],
14488
+ required: [
14489
+ 'message',
14490
+ 'is_device_error',
14491
+ 'created_at',
14492
+ 'error_code',
14493
+ 'is_connected_account_error',
14494
+ ],
14444
14495
  type: 'object',
14445
14496
  },
14446
14497
  {
14447
- description: 'Hub is disconnected',
14498
+ description: 'Salto site user limit reached.',
14448
14499
  properties: {
14500
+ created_at: { format: 'date-time', type: 'string' },
14449
14501
  error_code: {
14450
14502
  description:
14451
14503
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
14452
- enum: ['hub_disconnected'],
14504
+ enum: ['salto_ks_subscription_limit_exceeded'],
14453
14505
  type: 'string',
14454
14506
  },
14455
- is_device_error: { enum: [true], type: 'boolean' },
14507
+ is_connected_account_error: {
14508
+ enum: [true],
14509
+ type: 'boolean',
14510
+ },
14511
+ is_device_error: { enum: [false], type: 'boolean' },
14456
14512
  message: { type: 'string' },
14457
14513
  },
14458
- required: ['message', 'is_device_error', 'error_code'],
14514
+ required: [
14515
+ 'message',
14516
+ 'is_device_error',
14517
+ 'created_at',
14518
+ 'error_code',
14519
+ 'is_connected_account_error',
14520
+ ],
14459
14521
  type: 'object',
14460
14522
  },
14461
14523
  {
14462
- description: 'Device is disconnected',
14524
+ description: 'Device is offline',
14463
14525
  properties: {
14526
+ created_at: { format: 'date-time', type: 'string' },
14464
14527
  error_code: {
14465
14528
  description:
14466
14529
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
14467
- enum: ['device_disconnected'],
14530
+ enum: ['device_offline'],
14468
14531
  type: 'string',
14469
14532
  },
14470
14533
  is_device_error: { enum: [true], type: 'boolean' },
14471
14534
  message: { type: 'string' },
14472
14535
  },
14473
- required: ['message', 'is_device_error', 'error_code'],
14536
+ required: [
14537
+ 'message',
14538
+ 'is_device_error',
14539
+ 'created_at',
14540
+ 'error_code',
14541
+ ],
14474
14542
  type: 'object',
14475
14543
  },
14476
14544
  {
14477
- description: 'The backup access code pool is empty.',
14545
+ description: 'Device has been removed',
14478
14546
  properties: {
14547
+ created_at: { format: 'date-time', type: 'string' },
14479
14548
  error_code: {
14480
14549
  description:
14481
14550
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
14482
- enum: ['empty_backup_access_code_pool'],
14551
+ enum: ['device_removed'],
14483
14552
  type: 'string',
14484
14553
  },
14485
14554
  is_device_error: { enum: [true], type: 'boolean' },
14486
14555
  message: { type: 'string' },
14487
14556
  },
14488
- required: ['message', 'is_device_error', 'error_code'],
14557
+ required: [
14558
+ 'message',
14559
+ 'is_device_error',
14560
+ 'created_at',
14561
+ 'error_code',
14562
+ ],
14489
14563
  type: 'object',
14490
14564
  },
14491
14565
  {
14492
- description: 'User is not authorized to use the August Lock.',
14566
+ description: 'Hub is disconnected',
14493
14567
  properties: {
14568
+ created_at: { format: 'date-time', type: 'string' },
14494
14569
  error_code: {
14495
14570
  description:
14496
14571
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
14497
- enum: ['august_lock_not_authorized'],
14572
+ enum: ['hub_disconnected'],
14498
14573
  type: 'string',
14499
14574
  },
14500
14575
  is_device_error: { enum: [true], type: 'boolean' },
14501
14576
  message: { type: 'string' },
14502
14577
  },
14503
- required: ['message', 'is_device_error', 'error_code'],
14578
+ required: [
14579
+ 'message',
14580
+ 'is_device_error',
14581
+ 'created_at',
14582
+ 'error_code',
14583
+ ],
14504
14584
  type: 'object',
14505
14585
  },
14506
14586
  {
14507
- description: 'Lock is not connected to the Seam Bridge.',
14587
+ description: 'Device is disconnected',
14508
14588
  properties: {
14589
+ created_at: { format: 'date-time', type: 'string' },
14509
14590
  error_code: {
14510
14591
  description:
14511
14592
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
14512
- enum: ['august_lock_missing_bridge'],
14593
+ enum: ['device_disconnected'],
14513
14594
  type: 'string',
14514
14595
  },
14515
14596
  is_device_error: { enum: [true], type: 'boolean' },
14516
14597
  message: { type: 'string' },
14517
14598
  },
14518
- required: ['message', 'is_device_error', 'error_code'],
14599
+ required: [
14600
+ 'message',
14601
+ 'is_device_error',
14602
+ 'created_at',
14603
+ 'error_code',
14604
+ ],
14519
14605
  type: 'object',
14520
14606
  },
14521
14607
  {
14522
- description: 'Salto site user limit reached.',
14608
+ description: 'The backup access code pool is empty.',
14523
14609
  properties: {
14610
+ created_at: { format: 'date-time', type: 'string' },
14524
14611
  error_code: {
14525
14612
  description:
14526
14613
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
14527
- enum: ['salto_site_user_limit_reached'],
14614
+ enum: ['empty_backup_access_code_pool'],
14528
14615
  type: 'string',
14529
14616
  },
14530
14617
  is_device_error: { enum: [true], type: 'boolean' },
14531
14618
  message: { type: 'string' },
14532
14619
  },
14533
- required: ['message', 'is_device_error', 'error_code'],
14620
+ required: [
14621
+ 'message',
14622
+ 'is_device_error',
14623
+ 'created_at',
14624
+ 'error_code',
14625
+ ],
14534
14626
  type: 'object',
14535
14627
  },
14536
14628
  {
14537
- description: 'Lock is not paired with a Gateway.',
14629
+ description: 'User is not authorized to use the August Lock.',
14538
14630
  properties: {
14631
+ created_at: { format: 'date-time', type: 'string' },
14539
14632
  error_code: {
14540
14633
  description:
14541
14634
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
14542
- enum: ['ttlock_lock_not_paired_to_gateway'],
14635
+ enum: ['august_lock_not_authorized'],
14543
14636
  type: 'string',
14544
14637
  },
14545
14638
  is_device_error: { enum: [true], type: 'boolean' },
14546
14639
  message: { type: 'string' },
14547
14640
  },
14548
- required: ['message', 'is_device_error', 'error_code'],
14641
+ required: [
14642
+ 'message',
14643
+ 'is_device_error',
14644
+ 'created_at',
14645
+ 'error_code',
14646
+ ],
14549
14647
  type: 'object',
14550
14648
  },
14551
14649
  {
14552
- description: 'Missing device credentials.',
14650
+ description: 'Lock is not connected to the Seam Bridge.',
14553
14651
  properties: {
14652
+ created_at: { format: 'date-time', type: 'string' },
14554
14653
  error_code: {
14555
14654
  description:
14556
14655
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
14557
- enum: ['missing_device_credentials'],
14656
+ enum: ['august_lock_missing_bridge'],
14558
14657
  type: 'string',
14559
14658
  },
14560
14659
  is_device_error: { enum: [true], type: 'boolean' },
14561
14660
  message: { type: 'string' },
14562
14661
  },
14563
- required: ['message', 'is_device_error', 'error_code'],
14662
+ required: [
14663
+ 'message',
14664
+ 'is_device_error',
14665
+ 'created_at',
14666
+ 'error_code',
14667
+ ],
14564
14668
  type: 'object',
14565
14669
  },
14566
14670
  {
14567
- description: 'The auxiliary heat is running.',
14671
+ description: 'Lock is not paired with a Gateway.',
14568
14672
  properties: {
14673
+ created_at: { format: 'date-time', type: 'string' },
14569
14674
  error_code: {
14570
14675
  description:
14571
14676
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
14572
- enum: ['auxiliary_heat_running'],
14677
+ enum: ['ttlock_lock_not_paired_to_gateway'],
14573
14678
  type: 'string',
14574
14679
  },
14575
14680
  is_device_error: { enum: [true], type: 'boolean' },
14576
14681
  message: { type: 'string' },
14577
14682
  },
14578
- required: ['message', 'is_device_error', 'error_code'],
14683
+ required: [
14684
+ 'message',
14685
+ 'is_device_error',
14686
+ 'created_at',
14687
+ 'error_code',
14688
+ ],
14579
14689
  type: 'object',
14580
14690
  },
14581
14691
  {
14582
- description: 'Subscription required to connect.',
14692
+ description: 'Missing device credentials.',
14583
14693
  properties: {
14694
+ created_at: { format: 'date-time', type: 'string' },
14584
14695
  error_code: {
14585
14696
  description:
14586
14697
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
14587
- enum: ['subscription_required'],
14698
+ enum: ['missing_device_credentials'],
14588
14699
  type: 'string',
14589
14700
  },
14590
14701
  is_device_error: { enum: [true], type: 'boolean' },
14591
14702
  message: { type: 'string' },
14592
14703
  },
14593
- required: ['message', 'is_device_error', 'error_code'],
14704
+ required: [
14705
+ 'message',
14706
+ 'is_device_error',
14707
+ 'created_at',
14708
+ 'error_code',
14709
+ ],
14594
14710
  type: 'object',
14595
14711
  },
14596
14712
  {
14597
- description: 'Account is disconnected.',
14713
+ description: 'The auxiliary heat is running.',
14598
14714
  properties: {
14599
- created_at: {
14600
- description:
14601
- 'Date and time at which Seam created the error.',
14602
- format: 'date-time',
14603
- type: 'string',
14604
- },
14715
+ created_at: { format: 'date-time', type: 'string' },
14605
14716
  error_code: {
14606
14717
  description:
14607
14718
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
14608
- enum: ['account_disconnected'],
14719
+ enum: ['auxiliary_heat_running'],
14609
14720
  type: 'string',
14610
14721
  },
14611
- is_connected_account_error: {
14612
- enum: [true],
14613
- type: 'boolean',
14614
- },
14722
+ is_device_error: { enum: [true], type: 'boolean' },
14615
14723
  message: { type: 'string' },
14616
14724
  },
14617
14725
  required: [
14618
- 'created_at',
14619
14726
  'message',
14620
- 'is_connected_account_error',
14727
+ 'is_device_error',
14728
+ 'created_at',
14621
14729
  'error_code',
14622
14730
  ],
14623
14731
  type: 'object',
14624
14732
  },
14625
14733
  {
14626
- description: 'Credentials provided were invalid.',
14734
+ description: 'Subscription required to connect.',
14627
14735
  properties: {
14628
- created_at: {
14629
- description:
14630
- 'Date and time at which Seam created the error.',
14631
- format: 'date-time',
14632
- type: 'string',
14633
- },
14736
+ created_at: { format: 'date-time', type: 'string' },
14634
14737
  error_code: {
14635
14738
  description:
14636
14739
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
14637
- enum: ['invalid_credentials'],
14740
+ enum: ['subscription_required'],
14638
14741
  type: 'string',
14639
14742
  },
14640
- is_connected_account_error: {
14641
- enum: [true],
14642
- type: 'boolean',
14643
- },
14743
+ is_device_error: { enum: [true], type: 'boolean' },
14644
14744
  message: { type: 'string' },
14645
14745
  },
14646
14746
  required: [
14647
- 'created_at',
14648
14747
  'message',
14649
- 'is_connected_account_error',
14748
+ 'is_device_error',
14749
+ 'created_at',
14650
14750
  'error_code',
14651
14751
  ],
14652
14752
  type: 'object',
14653
14753
  },
14654
14754
  {
14655
- description:
14656
- 'Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.',
14755
+ description: 'Credentials provided were invalid.',
14657
14756
  properties: {
14658
14757
  created_at: {
14659
14758
  description:
@@ -14664,7 +14763,7 @@ export default {
14664
14763
  error_code: {
14665
14764
  description:
14666
14765
  'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
14667
- enum: ['salto_ks_subscription_limit_exceeded'],
14766
+ enum: ['invalid_credentials'],
14668
14767
  type: 'string',
14669
14768
  },
14670
14769
  is_connected_account_error: {
@@ -14672,43 +14771,12 @@ export default {
14672
14771
  type: 'boolean',
14673
14772
  },
14674
14773
  message: { type: 'string' },
14675
- salto_ks_metadata: {
14676
- properties: {
14677
- sites: {
14678
- items: {
14679
- properties: {
14680
- site_id: { type: 'string' },
14681
- site_name: { type: 'string' },
14682
- site_user_subscription_limit: {
14683
- minimum: 0,
14684
- type: 'integer',
14685
- },
14686
- subscribed_site_user_count: {
14687
- minimum: 0,
14688
- type: 'integer',
14689
- },
14690
- },
14691
- required: [
14692
- 'site_id',
14693
- 'site_name',
14694
- 'subscribed_site_user_count',
14695
- 'site_user_subscription_limit',
14696
- ],
14697
- type: 'object',
14698
- },
14699
- type: 'array',
14700
- },
14701
- },
14702
- required: ['sites'],
14703
- type: 'object',
14704
- },
14705
14774
  },
14706
14775
  required: [
14707
14776
  'created_at',
14708
14777
  'message',
14709
14778
  'is_connected_account_error',
14710
14779
  'error_code',
14711
- 'salto_ks_metadata',
14712
14780
  ],
14713
14781
  type: 'object',
14714
14782
  },
@@ -14872,6 +14940,7 @@ export default {
14872
14940
  {
14873
14941
  description: 'Backup access code unhealthy.',
14874
14942
  properties: {
14943
+ created_at: { format: 'date-time', type: 'string' },
14875
14944
  message: { type: 'string' },
14876
14945
  warning_code: {
14877
14946
  description:
@@ -14880,12 +14949,13 @@ export default {
14880
14949
  type: 'string',
14881
14950
  },
14882
14951
  },
14883
- required: ['message', 'warning_code'],
14952
+ required: ['message', 'created_at', 'warning_code'],
14884
14953
  type: 'object',
14885
14954
  },
14886
14955
  {
14887
14956
  description: 'Too many backup codes.',
14888
14957
  properties: {
14958
+ created_at: { format: 'date-time', type: 'string' },
14889
14959
  message: { type: 'string' },
14890
14960
  warning_code: {
14891
14961
  description:
@@ -14894,13 +14964,14 @@ export default {
14894
14964
  type: 'string',
14895
14965
  },
14896
14966
  },
14897
- required: ['message', 'warning_code'],
14967
+ required: ['message', 'created_at', 'warning_code'],
14898
14968
  type: 'object',
14899
14969
  },
14900
14970
  {
14901
14971
  description:
14902
14972
  'A Salto Lock displaying an unknown device type.',
14903
14973
  properties: {
14974
+ created_at: { format: 'date-time', type: 'string' },
14904
14975
  message: { type: 'string' },
14905
14976
  warning_code: {
14906
14977
  description:
@@ -14909,12 +14980,13 @@ export default {
14909
14980
  type: 'string',
14910
14981
  },
14911
14982
  },
14912
- required: ['message', 'warning_code'],
14983
+ required: ['message', 'created_at', 'warning_code'],
14913
14984
  type: 'object',
14914
14985
  },
14915
14986
  {
14916
14987
  description: 'Wyze Lock is not connected to a gateway.',
14917
14988
  properties: {
14989
+ created_at: { format: 'date-time', type: 'string' },
14918
14990
  message: { type: 'string' },
14919
14991
  warning_code: {
14920
14992
  description:
@@ -14923,13 +14995,14 @@ export default {
14923
14995
  type: 'string',
14924
14996
  },
14925
14997
  },
14926
- required: ['message', 'warning_code'],
14998
+ required: ['message', 'created_at', 'warning_code'],
14927
14999
  type: 'object',
14928
15000
  },
14929
15001
  {
14930
15002
  description:
14931
15003
  'Device is offline, but has some functionality available.',
14932
15004
  properties: {
15005
+ created_at: { format: 'date-time', type: 'string' },
14933
15006
  message: { type: 'string' },
14934
15007
  warning_code: {
14935
15008
  description:
@@ -14938,12 +15011,13 @@ export default {
14938
15011
  type: 'string',
14939
15012
  },
14940
15013
  },
14941
- required: ['message', 'warning_code'],
15014
+ required: ['message', 'created_at', 'warning_code'],
14942
15015
  type: 'object',
14943
15016
  },
14944
15017
  {
14945
15018
  description: 'Third-party integration detected.',
14946
15019
  properties: {
15020
+ created_at: { format: 'date-time', type: 'string' },
14947
15021
  message: { type: 'string' },
14948
15022
  warning_code: {
14949
15023
  description:
@@ -14952,12 +15026,13 @@ export default {
14952
15026
  type: 'string',
14953
15027
  },
14954
15028
  },
14955
- required: ['message', 'warning_code'],
15029
+ required: ['message', 'created_at', 'warning_code'],
14956
15030
  type: 'object',
14957
15031
  },
14958
15032
  {
14959
15033
  description: 'Nest thermostat in manual eco mode.',
14960
15034
  properties: {
15035
+ created_at: { format: 'date-time', type: 'string' },
14961
15036
  message: { type: 'string' },
14962
15037
  warning_code: {
14963
15038
  description:
@@ -14966,12 +15041,13 @@ export default {
14966
15041
  type: 'string',
14967
15042
  },
14968
15043
  },
14969
- required: ['message', 'warning_code'],
15044
+ required: ['message', 'created_at', 'warning_code'],
14970
15045
  type: 'object',
14971
15046
  },
14972
15047
  {
14973
15048
  description: 'Remote Unlock feature not enabled in settings.',
14974
15049
  properties: {
15050
+ created_at: { format: 'date-time', type: 'string' },
14975
15051
  message: { type: 'string' },
14976
15052
  warning_code: {
14977
15053
  description:
@@ -14980,12 +15056,13 @@ export default {
14980
15056
  type: 'string',
14981
15057
  },
14982
15058
  },
14983
- required: ['message', 'warning_code'],
15059
+ required: ['message', 'created_at', 'warning_code'],
14984
15060
  type: 'object',
14985
15061
  },
14986
15062
  {
14987
15063
  description: 'Gateway signal is weak.',
14988
15064
  properties: {
15065
+ created_at: { format: 'date-time', type: 'string' },
14989
15066
  message: { type: 'string' },
14990
15067
  warning_code: {
14991
15068
  description:
@@ -14994,12 +15071,13 @@ export default {
14994
15071
  type: 'string',
14995
15072
  },
14996
15073
  },
14997
- required: ['message', 'warning_code'],
15074
+ required: ['message', 'created_at', 'warning_code'],
14998
15075
  type: 'object',
14999
15076
  },
15000
15077
  {
15001
15078
  description: 'Temperature threshold exceeded.',
15002
15079
  properties: {
15080
+ created_at: { format: 'date-time', type: 'string' },
15003
15081
  message: { type: 'string' },
15004
15082
  warning_code: {
15005
15083
  description:
@@ -15008,12 +15086,13 @@ export default {
15008
15086
  type: 'string',
15009
15087
  },
15010
15088
  },
15011
- required: ['message', 'warning_code'],
15089
+ required: ['message', 'created_at', 'warning_code'],
15012
15090
  type: 'object',
15013
15091
  },
15014
15092
  {
15015
15093
  description: 'Device appears to be unresponsive.',
15016
15094
  properties: {
15095
+ created_at: { format: 'date-time', type: 'string' },
15017
15096
  message: { type: 'string' },
15018
15097
  warning_code: {
15019
15098
  description:
@@ -15022,12 +15101,13 @@ export default {
15022
15101
  type: 'string',
15023
15102
  },
15024
15103
  },
15025
- required: ['message', 'warning_code'],
15104
+ required: ['message', 'created_at', 'warning_code'],
15026
15105
  type: 'object',
15027
15106
  },
15028
15107
  {
15029
15108
  description: 'Scheduled maintenance window detected.',
15030
15109
  properties: {
15110
+ created_at: { format: 'date-time', type: 'string' },
15031
15111
  message: { type: 'string' },
15032
15112
  warning_code: {
15033
15113
  description:
@@ -15036,12 +15116,13 @@ export default {
15036
15116
  type: 'string',
15037
15117
  },
15038
15118
  },
15039
- required: ['message', 'warning_code'],
15119
+ required: ['message', 'created_at', 'warning_code'],
15040
15120
  type: 'object',
15041
15121
  },
15042
15122
  {
15043
15123
  description: 'Device has flaky connection.',
15044
15124
  properties: {
15125
+ created_at: { format: 'date-time', type: 'string' },
15045
15126
  message: { type: 'string' },
15046
15127
  warning_code: {
15047
15128
  description:
@@ -15050,13 +15131,14 @@ export default {
15050
15131
  type: 'string',
15051
15132
  },
15052
15133
  },
15053
- required: ['message', 'warning_code'],
15134
+ required: ['message', 'created_at', 'warning_code'],
15054
15135
  type: 'object',
15055
15136
  },
15056
15137
  {
15057
15138
  description:
15058
15139
  'Lock is in Office Mode. Access Codes will not unlock doors.',
15059
15140
  properties: {
15141
+ created_at: { format: 'date-time', type: 'string' },
15060
15142
  message: { type: 'string' },
15061
15143
  warning_code: {
15062
15144
  description:
@@ -15065,13 +15147,14 @@ export default {
15065
15147
  type: 'string',
15066
15148
  },
15067
15149
  },
15068
- required: ['message', 'warning_code'],
15150
+ required: ['message', 'created_at', 'warning_code'],
15069
15151
  type: 'object',
15070
15152
  },
15071
15153
  {
15072
15154
  description:
15073
15155
  'Lock is in Privacy Mode. Access Codes will not unlock doors.',
15074
15156
  properties: {
15157
+ created_at: { format: 'date-time', type: 'string' },
15075
15158
  message: { type: 'string' },
15076
15159
  warning_code: {
15077
15160
  description:
@@ -15080,13 +15163,14 @@ export default {
15080
15163
  type: 'string',
15081
15164
  },
15082
15165
  },
15083
- required: ['message', 'warning_code'],
15166
+ required: ['message', 'created_at', 'warning_code'],
15084
15167
  type: 'object',
15085
15168
  },
15086
15169
  {
15087
15170
  description:
15088
15171
  'An unknown issue occurred while syncing the state of this phone with the provider. This issue may affect the proper functioning of this phone.',
15089
15172
  properties: {
15173
+ created_at: { format: 'date-time', type: 'string' },
15090
15174
  message: { type: 'string' },
15091
15175
  warning_code: {
15092
15176
  description:
@@ -15095,7 +15179,7 @@ export default {
15095
15179
  type: 'string',
15096
15180
  },
15097
15181
  },
15098
- required: ['message', 'warning_code'],
15182
+ required: ['message', 'created_at', 'warning_code'],
15099
15183
  type: 'object',
15100
15184
  },
15101
15185
  ],