@seamapi/types 1.175.0 → 1.177.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 (116) hide show
  1. package/dist/connect.cjs +1973 -161
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +4627 -403
  4. package/lib/seam/connect/model-types.d.ts +1 -1
  5. package/lib/seam/connect/models/acs/system.d.ts +36 -0
  6. package/lib/seam/connect/models/acs/system.js +8 -0
  7. package/lib/seam/connect/models/acs/system.js.map +1 -1
  8. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +556 -0
  9. package/lib/seam/connect/models/action-attempts/action-attempt.js +20 -0
  10. package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -0
  11. package/lib/seam/connect/models/action-attempts/common.d.ts +53 -0
  12. package/lib/seam/connect/models/action-attempts/common.js +24 -0
  13. package/lib/seam/connect/models/action-attempts/common.js.map +1 -0
  14. package/lib/seam/connect/models/action-attempts/index.d.ts +1 -0
  15. package/lib/seam/connect/models/action-attempts/index.js +2 -0
  16. package/lib/seam/connect/models/action-attempts/index.js.map +1 -0
  17. package/lib/seam/connect/models/action-attempts/lock-door.d.ts +72 -0
  18. package/lib/seam/connect/models/action-attempts/lock-door.js +25 -0
  19. package/lib/seam/connect/models/action-attempts/lock-door.js.map +1 -0
  20. package/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.d.ts +71 -0
  21. package/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.js +28 -0
  22. package/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.js.map +1 -0
  23. package/lib/seam/connect/models/action-attempts/set-cool.d.ts +71 -0
  24. package/lib/seam/connect/models/action-attempts/set-cool.js +25 -0
  25. package/lib/seam/connect/models/action-attempts/set-cool.js.map +1 -0
  26. package/lib/seam/connect/models/action-attempts/set-fan-mode.d.ts +71 -0
  27. package/lib/seam/connect/models/action-attempts/set-fan-mode.js +25 -0
  28. package/lib/seam/connect/models/action-attempts/set-fan-mode.js.map +1 -0
  29. package/lib/seam/connect/models/action-attempts/set-heat-cool.d.ts +71 -0
  30. package/lib/seam/connect/models/action-attempts/set-heat-cool.js +25 -0
  31. package/lib/seam/connect/models/action-attempts/set-heat-cool.js.map +1 -0
  32. package/lib/seam/connect/models/action-attempts/set-heat.d.ts +71 -0
  33. package/lib/seam/connect/models/action-attempts/set-heat.js +25 -0
  34. package/lib/seam/connect/models/action-attempts/set-heat.js.map +1 -0
  35. package/lib/seam/connect/models/action-attempts/set-thermostat-off.d.ts +71 -0
  36. package/lib/seam/connect/models/action-attempts/set-thermostat-off.js +25 -0
  37. package/lib/seam/connect/models/action-attempts/set-thermostat-off.js.map +1 -0
  38. package/lib/seam/connect/models/action-attempts/unlock-door.d.ts +72 -0
  39. package/lib/seam/connect/models/action-attempts/unlock-door.js +25 -0
  40. package/lib/seam/connect/models/action-attempts/unlock-door.js.map +1 -0
  41. package/lib/seam/connect/models/devices/managed-device.js +6 -2
  42. package/lib/seam/connect/models/devices/managed-device.js.map +1 -1
  43. package/lib/seam/connect/models/events/access-codes.d.ts +1 -1
  44. package/lib/seam/connect/models/events/access-codes.js +1 -1
  45. package/lib/seam/connect/models/events/access-codes.js.map +1 -1
  46. package/lib/seam/connect/models/events/acs/common.d.ts +1 -1
  47. package/lib/seam/connect/models/events/acs/common.js +1 -1
  48. package/lib/seam/connect/models/events/acs/common.js.map +1 -1
  49. package/lib/seam/connect/models/events/acs/credentials.d.ts +1 -1
  50. package/lib/seam/connect/models/events/acs/credentials.js +1 -1
  51. package/lib/seam/connect/models/events/acs/credentials.js.map +1 -1
  52. package/lib/seam/connect/models/events/acs/users.d.ts +1 -1
  53. package/lib/seam/connect/models/events/acs/users.js +1 -1
  54. package/lib/seam/connect/models/events/acs/users.js.map +1 -1
  55. package/lib/seam/connect/models/events/action-attempts.d.ts +10 -10
  56. package/lib/seam/connect/models/events/client-sessions.d.ts +1 -1
  57. package/lib/seam/connect/models/events/client-sessions.js +1 -1
  58. package/lib/seam/connect/models/events/client-sessions.js.map +1 -1
  59. package/lib/seam/connect/models/events/common.d.ts +1 -1
  60. package/lib/seam/connect/models/events/common.js +1 -1
  61. package/lib/seam/connect/models/events/common.js.map +1 -1
  62. package/lib/seam/connect/models/events/connected-accounts.d.ts +1 -1
  63. package/lib/seam/connect/models/events/connected-accounts.js +1 -1
  64. package/lib/seam/connect/models/events/connected-accounts.js.map +1 -1
  65. package/lib/seam/connect/models/events/devices.d.ts +1 -1
  66. package/lib/seam/connect/models/events/devices.js +1 -1
  67. package/lib/seam/connect/models/events/devices.js.map +1 -1
  68. package/lib/seam/connect/models/events/enrollment-automations.d.ts +1 -1
  69. package/lib/seam/connect/models/events/enrollment-automations.js +1 -1
  70. package/lib/seam/connect/models/events/enrollment-automations.js.map +1 -1
  71. package/lib/seam/connect/models/events/phones.d.ts +1 -1
  72. package/lib/seam/connect/models/events/phones.js +1 -1
  73. package/lib/seam/connect/models/events/phones.js.map +1 -1
  74. package/lib/seam/connect/models/events/seam-event.d.ts +1 -1
  75. package/lib/seam/connect/models/events/seam-event.js +1 -1
  76. package/lib/seam/connect/models/events/seam-event.js.map +1 -1
  77. package/lib/seam/connect/models/index.d.ts +1 -0
  78. package/lib/seam/connect/models/index.js +1 -0
  79. package/lib/seam/connect/models/index.js.map +1 -1
  80. package/lib/seam/connect/openapi.d.ts +1366 -105
  81. package/lib/seam/connect/openapi.js +1686 -28
  82. package/lib/seam/connect/openapi.js.map +1 -1
  83. package/lib/seam/connect/route-types.d.ts +2764 -356
  84. package/lib/seam/connect/schemas.d.ts +1 -1
  85. package/lib/seam/connect/schemas.js +1 -1
  86. package/lib/seam/connect/schemas.js.map +1 -1
  87. package/package.json +1 -1
  88. package/src/lib/seam/connect/model-types.ts +1 -0
  89. package/src/lib/seam/connect/models/acs/system.ts +12 -0
  90. package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +25 -0
  91. package/src/lib/seam/connect/models/action-attempts/common.ts +27 -0
  92. package/src/lib/seam/connect/models/action-attempts/index.ts +1 -0
  93. package/src/lib/seam/connect/models/action-attempts/lock-door.ts +35 -0
  94. package/src/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.ts +39 -0
  95. package/src/lib/seam/connect/models/action-attempts/set-cool.ts +33 -0
  96. package/src/lib/seam/connect/models/action-attempts/set-fan-mode.ts +33 -0
  97. package/src/lib/seam/connect/models/action-attempts/set-heat-cool.ts +33 -0
  98. package/src/lib/seam/connect/models/action-attempts/set-heat.ts +33 -0
  99. package/src/lib/seam/connect/models/action-attempts/set-thermostat-off.ts +36 -0
  100. package/src/lib/seam/connect/models/action-attempts/unlock-door.ts +35 -0
  101. package/src/lib/seam/connect/models/devices/managed-device.ts +8 -2
  102. package/src/lib/seam/connect/models/events/access-codes.ts +1 -1
  103. package/src/lib/seam/connect/models/events/acs/common.ts +1 -1
  104. package/src/lib/seam/connect/models/events/acs/credentials.ts +1 -1
  105. package/src/lib/seam/connect/models/events/acs/users.ts +1 -1
  106. package/src/lib/seam/connect/models/events/client-sessions.ts +1 -1
  107. package/src/lib/seam/connect/models/events/common.ts +1 -1
  108. package/src/lib/seam/connect/models/events/connected-accounts.ts +1 -1
  109. package/src/lib/seam/connect/models/events/devices.ts +1 -1
  110. package/src/lib/seam/connect/models/events/enrollment-automations.ts +1 -1
  111. package/src/lib/seam/connect/models/events/phones.ts +1 -1
  112. package/src/lib/seam/connect/models/events/seam-event.ts +1 -1
  113. package/src/lib/seam/connect/models/index.ts +1 -0
  114. package/src/lib/seam/connect/openapi.ts +1710 -28
  115. package/src/lib/seam/connect/route-types.ts +3452 -876
  116. package/src/lib/seam/connect/schemas.ts +6 -1
@@ -377,6 +377,17 @@ export default {
377
377
  can_remove_acs_users_from_acs_access_groups: { type: 'boolean' },
378
378
  connected_account_ids: { items: { type: 'string' }, type: 'array' },
379
379
  created_at: { format: 'date-time', type: 'string' },
380
+ errors: {
381
+ items: {
382
+ properties: {
383
+ error_code: { type: 'string' },
384
+ message: { type: 'string' },
385
+ },
386
+ required: ['error_code', 'message'],
387
+ type: 'object',
388
+ },
389
+ type: 'array',
390
+ },
380
391
  external_type: {
381
392
  enum: [
382
393
  'pti_site',
@@ -412,6 +423,17 @@ export default {
412
423
  description: '\n ---\n deprecated: use external_type_display_name\n ---\n ',
413
424
  type: 'string',
414
425
  },
426
+ warnings: {
427
+ items: {
428
+ properties: {
429
+ message: { type: 'string' },
430
+ warning_code: { type: 'string' },
431
+ },
432
+ required: ['warning_code', 'message'],
433
+ type: 'object',
434
+ },
435
+ type: 'array',
436
+ },
415
437
  workspace_id: { format: 'uuid', type: 'string' },
416
438
  },
417
439
  required: [
@@ -422,6 +444,8 @@ export default {
422
444
  'connected_account_ids',
423
445
  'image_url',
424
446
  'image_alt_text',
447
+ 'errors',
448
+ 'warnings',
425
449
  ],
426
450
  type: 'object',
427
451
  },
@@ -477,40 +501,580 @@ export default {
477
501
  type: 'object',
478
502
  },
479
503
  action_attempt: {
480
- discriminator: { propertyName: 'status' },
481
504
  oneOf: [
482
505
  {
506
+ description: 'Locking door.',
507
+ properties: {
508
+ action_attempt_id: {
509
+ description: '\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ',
510
+ format: 'uuid',
511
+ type: 'string',
512
+ },
513
+ action_type: { enum: ['LOCK_DOOR'], type: 'string' },
514
+ error: { format: 'null', nullable: true, type: 'string' },
515
+ result: { format: 'null', nullable: true, type: 'string' },
516
+ status: { enum: ['pending'], type: 'string' },
517
+ },
518
+ required: [
519
+ 'action_attempt_id',
520
+ 'status',
521
+ 'result',
522
+ 'error',
523
+ 'action_type',
524
+ ],
525
+ type: 'object',
526
+ },
527
+ {
528
+ description: 'Locking door succeeded.',
529
+ properties: {
530
+ action_attempt_id: {
531
+ description: '\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ',
532
+ format: 'uuid',
533
+ type: 'string',
534
+ },
535
+ action_type: { enum: ['LOCK_DOOR'], type: 'string' },
536
+ error: { format: 'null', nullable: true, type: 'string' },
537
+ result: { properties: {}, type: 'object' },
538
+ status: { enum: ['success'], type: 'string' },
539
+ },
540
+ required: [
541
+ 'action_attempt_id',
542
+ 'status',
543
+ 'error',
544
+ 'action_type',
545
+ 'result',
546
+ ],
547
+ type: 'object',
548
+ },
549
+ {
550
+ description: 'Locking door failed.',
551
+ properties: {
552
+ action_attempt_id: {
553
+ description: '\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ',
554
+ format: 'uuid',
555
+ type: 'string',
556
+ },
557
+ action_type: { enum: ['LOCK_DOOR'], type: 'string' },
558
+ error: {
559
+ properties: {
560
+ message: { type: 'string' },
561
+ type: { type: 'string' },
562
+ },
563
+ required: ['type', 'message'],
564
+ type: 'object',
565
+ },
566
+ result: { format: 'null', nullable: true, type: 'string' },
567
+ status: { enum: ['error'], type: 'string' },
568
+ },
569
+ required: [
570
+ 'action_attempt_id',
571
+ 'status',
572
+ 'result',
573
+ 'action_type',
574
+ 'error',
575
+ ],
576
+ type: 'object',
577
+ },
578
+ {
579
+ description: 'Unlocking door.',
580
+ properties: {
581
+ action_attempt_id: {
582
+ description: '\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ',
583
+ format: 'uuid',
584
+ type: 'string',
585
+ },
586
+ action_type: { enum: ['UNLOCK_DOOR'], type: 'string' },
587
+ error: { format: 'null', nullable: true, type: 'string' },
588
+ result: { format: 'null', nullable: true, type: 'string' },
589
+ status: { enum: ['pending'], type: 'string' },
590
+ },
591
+ required: [
592
+ 'action_attempt_id',
593
+ 'status',
594
+ 'result',
595
+ 'error',
596
+ 'action_type',
597
+ ],
598
+ type: 'object',
599
+ },
600
+ {
601
+ description: 'Unlocking door succeeded.',
602
+ properties: {
603
+ action_attempt_id: {
604
+ description: '\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ',
605
+ format: 'uuid',
606
+ type: 'string',
607
+ },
608
+ action_type: { enum: ['UNLOCK_DOOR'], type: 'string' },
609
+ error: { format: 'null', nullable: true, type: 'string' },
610
+ result: { properties: {}, type: 'object' },
611
+ status: { enum: ['success'], type: 'string' },
612
+ },
613
+ required: [
614
+ 'action_attempt_id',
615
+ 'status',
616
+ 'error',
617
+ 'action_type',
618
+ 'result',
619
+ ],
620
+ type: 'object',
621
+ },
622
+ {
623
+ description: 'Unlocking door failed.',
624
+ properties: {
625
+ action_attempt_id: {
626
+ description: '\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ',
627
+ format: 'uuid',
628
+ type: 'string',
629
+ },
630
+ action_type: { enum: ['UNLOCK_DOOR'], type: 'string' },
631
+ error: {
632
+ properties: {
633
+ message: { type: 'string' },
634
+ type: { type: 'string' },
635
+ },
636
+ required: ['type', 'message'],
637
+ type: 'object',
638
+ },
639
+ result: { format: 'null', nullable: true, type: 'string' },
640
+ status: { enum: ['error'], type: 'string' },
641
+ },
642
+ required: [
643
+ 'action_attempt_id',
644
+ 'status',
645
+ 'result',
646
+ 'action_type',
647
+ 'error',
648
+ ],
649
+ type: 'object',
650
+ },
651
+ {
652
+ description: 'Resetting sandbox workspace.',
653
+ properties: {
654
+ action_attempt_id: {
655
+ description: '\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ',
656
+ format: 'uuid',
657
+ type: 'string',
658
+ },
659
+ action_type: {
660
+ enum: ['RESET_SANDBOX_WORKSPACE'],
661
+ type: 'string',
662
+ },
663
+ error: { format: 'null', nullable: true, type: 'string' },
664
+ result: { format: 'null', nullable: true, type: 'string' },
665
+ status: { enum: ['pending'], type: 'string' },
666
+ },
667
+ required: [
668
+ 'action_attempt_id',
669
+ 'status',
670
+ 'result',
671
+ 'error',
672
+ 'action_type',
673
+ ],
674
+ type: 'object',
675
+ },
676
+ {
677
+ description: 'Resetting sandbox workspace succeeded.',
678
+ properties: {
679
+ action_attempt_id: {
680
+ description: '\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ',
681
+ format: 'uuid',
682
+ type: 'string',
683
+ },
684
+ action_type: {
685
+ enum: ['RESET_SANDBOX_WORKSPACE'],
686
+ type: 'string',
687
+ },
688
+ error: { format: 'null', nullable: true, type: 'string' },
689
+ result: { properties: {}, type: 'object' },
690
+ status: { enum: ['success'], type: 'string' },
691
+ },
692
+ required: [
693
+ 'action_attempt_id',
694
+ 'status',
695
+ 'error',
696
+ 'action_type',
697
+ 'result',
698
+ ],
699
+ type: 'object',
700
+ },
701
+ {
702
+ description: 'Resetting sandbox workspace failed.',
703
+ properties: {
704
+ action_attempt_id: {
705
+ description: '\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ',
706
+ format: 'uuid',
707
+ type: 'string',
708
+ },
709
+ action_type: {
710
+ enum: ['RESET_SANDBOX_WORKSPACE'],
711
+ type: 'string',
712
+ },
713
+ error: {
714
+ properties: {
715
+ message: { type: 'string' },
716
+ type: { type: 'string' },
717
+ },
718
+ required: ['type', 'message'],
719
+ type: 'object',
720
+ },
721
+ result: { format: 'null', nullable: true, type: 'string' },
722
+ status: { enum: ['error'], type: 'string' },
723
+ },
724
+ required: [
725
+ 'action_attempt_id',
726
+ 'status',
727
+ 'result',
728
+ 'action_type',
729
+ 'error',
730
+ ],
731
+ type: 'object',
732
+ },
733
+ {
734
+ description: 'Setting HVAC to cool.',
735
+ properties: {
736
+ action_attempt_id: {
737
+ description: '\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ',
738
+ format: 'uuid',
739
+ type: 'string',
740
+ },
741
+ action_type: { enum: ['SET_COOL'], type: 'string' },
742
+ error: { format: 'null', nullable: true, type: 'string' },
743
+ result: { format: 'null', nullable: true, type: 'string' },
744
+ status: { enum: ['pending'], type: 'string' },
745
+ },
746
+ required: [
747
+ 'action_attempt_id',
748
+ 'status',
749
+ 'result',
750
+ 'error',
751
+ 'action_type',
752
+ ],
753
+ type: 'object',
754
+ },
755
+ {
756
+ description: 'Setting HVAC to cool succeeded.',
757
+ properties: {
758
+ action_attempt_id: {
759
+ description: '\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ',
760
+ format: 'uuid',
761
+ type: 'string',
762
+ },
763
+ action_type: { enum: ['SET_COOL'], type: 'string' },
764
+ error: { format: 'null', nullable: true, type: 'string' },
765
+ result: { properties: {}, type: 'object' },
766
+ status: { enum: ['success'], type: 'string' },
767
+ },
768
+ required: [
769
+ 'action_attempt_id',
770
+ 'status',
771
+ 'error',
772
+ 'action_type',
773
+ 'result',
774
+ ],
775
+ type: 'object',
776
+ },
777
+ {
778
+ description: 'Setting HVAC to cool failed.',
779
+ properties: {
780
+ action_attempt_id: {
781
+ description: '\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ',
782
+ format: 'uuid',
783
+ type: 'string',
784
+ },
785
+ action_type: { enum: ['SET_COOL'], type: 'string' },
786
+ error: {
787
+ properties: {
788
+ message: { type: 'string' },
789
+ type: { type: 'string' },
790
+ },
791
+ required: ['type', 'message'],
792
+ type: 'object',
793
+ },
794
+ result: { format: 'null', nullable: true, type: 'string' },
795
+ status: { enum: ['error'], type: 'string' },
796
+ },
797
+ required: [
798
+ 'action_attempt_id',
799
+ 'status',
800
+ 'result',
801
+ 'action_type',
802
+ 'error',
803
+ ],
804
+ type: 'object',
805
+ },
806
+ {
807
+ description: 'Setting HVAC to heat mode.',
808
+ properties: {
809
+ action_attempt_id: {
810
+ description: '\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ',
811
+ format: 'uuid',
812
+ type: 'string',
813
+ },
814
+ action_type: { enum: ['SET_HEAT'], type: 'string' },
815
+ error: { format: 'null', nullable: true, type: 'string' },
816
+ result: { format: 'null', nullable: true, type: 'string' },
817
+ status: { enum: ['pending'], type: 'string' },
818
+ },
819
+ required: [
820
+ 'action_attempt_id',
821
+ 'status',
822
+ 'result',
823
+ 'error',
824
+ 'action_type',
825
+ ],
826
+ type: 'object',
827
+ },
828
+ {
829
+ description: 'Setting HVAC to heat mode succeeded.',
830
+ properties: {
831
+ action_attempt_id: {
832
+ description: '\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ',
833
+ format: 'uuid',
834
+ type: 'string',
835
+ },
836
+ action_type: { enum: ['SET_HEAT'], type: 'string' },
837
+ error: { format: 'null', nullable: true, type: 'string' },
838
+ result: { properties: {}, type: 'object' },
839
+ status: { enum: ['success'], type: 'string' },
840
+ },
841
+ required: [
842
+ 'action_attempt_id',
843
+ 'status',
844
+ 'error',
845
+ 'action_type',
846
+ 'result',
847
+ ],
848
+ type: 'object',
849
+ },
850
+ {
851
+ description: 'Setting HVAC to heat mode failed.',
852
+ properties: {
853
+ action_attempt_id: {
854
+ description: '\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ',
855
+ format: 'uuid',
856
+ type: 'string',
857
+ },
858
+ action_type: { enum: ['SET_HEAT'], type: 'string' },
859
+ error: {
860
+ properties: {
861
+ message: { type: 'string' },
862
+ type: { type: 'string' },
863
+ },
864
+ required: ['type', 'message'],
865
+ type: 'object',
866
+ },
867
+ result: { format: 'null', nullable: true, type: 'string' },
868
+ status: { enum: ['error'], type: 'string' },
869
+ },
870
+ required: [
871
+ 'action_attempt_id',
872
+ 'status',
873
+ 'result',
874
+ 'action_type',
875
+ 'error',
876
+ ],
877
+ type: 'object',
878
+ },
879
+ {
880
+ description: 'Setting HVAC to heat-cool mode.',
881
+ properties: {
882
+ action_attempt_id: {
883
+ description: '\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ',
884
+ format: 'uuid',
885
+ type: 'string',
886
+ },
887
+ action_type: { enum: ['SET_HEAT_COOL'], type: 'string' },
888
+ error: { format: 'null', nullable: true, type: 'string' },
889
+ result: { format: 'null', nullable: true, type: 'string' },
890
+ status: { enum: ['pending'], type: 'string' },
891
+ },
892
+ required: [
893
+ 'action_attempt_id',
894
+ 'status',
895
+ 'result',
896
+ 'error',
897
+ 'action_type',
898
+ ],
899
+ type: 'object',
900
+ },
901
+ {
902
+ description: 'Setting HVAC to heat-cool mode succeeded.',
903
+ properties: {
904
+ action_attempt_id: {
905
+ description: '\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ',
906
+ format: 'uuid',
907
+ type: 'string',
908
+ },
909
+ action_type: { enum: ['SET_HEAT_COOL'], type: 'string' },
910
+ error: { format: 'null', nullable: true, type: 'string' },
911
+ result: { properties: {}, type: 'object' },
912
+ status: { enum: ['success'], type: 'string' },
913
+ },
914
+ required: [
915
+ 'action_attempt_id',
916
+ 'status',
917
+ 'error',
918
+ 'action_type',
919
+ 'result',
920
+ ],
921
+ type: 'object',
922
+ },
923
+ {
924
+ description: 'Setting heat-cool mode failed.',
925
+ properties: {
926
+ action_attempt_id: {
927
+ description: '\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ',
928
+ format: 'uuid',
929
+ type: 'string',
930
+ },
931
+ action_type: { enum: ['SET_HEAT_COOL'], type: 'string' },
932
+ error: {
933
+ properties: {
934
+ message: { type: 'string' },
935
+ type: { type: 'string' },
936
+ },
937
+ required: ['type', 'message'],
938
+ type: 'object',
939
+ },
940
+ result: { format: 'null', nullable: true, type: 'string' },
941
+ status: { enum: ['error'], type: 'string' },
942
+ },
943
+ required: [
944
+ 'action_attempt_id',
945
+ 'status',
946
+ 'result',
947
+ 'action_type',
948
+ 'error',
949
+ ],
950
+ type: 'object',
951
+ },
952
+ {
953
+ description: 'Setting fan mode.',
954
+ properties: {
955
+ action_attempt_id: {
956
+ description: '\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ',
957
+ format: 'uuid',
958
+ type: 'string',
959
+ },
960
+ action_type: { enum: ['SET_FAN_MODE'], type: 'string' },
961
+ error: { format: 'null', nullable: true, type: 'string' },
962
+ result: { format: 'null', nullable: true, type: 'string' },
963
+ status: { enum: ['pending'], type: 'string' },
964
+ },
965
+ required: [
966
+ 'action_attempt_id',
967
+ 'status',
968
+ 'result',
969
+ 'error',
970
+ 'action_type',
971
+ ],
972
+ type: 'object',
973
+ },
974
+ {
975
+ description: 'Setting fan mode succeeded.',
483
976
  properties: {
484
- action_attempt_id: { format: 'uuid', type: 'string' },
485
- action_type: { type: 'string' },
977
+ action_attempt_id: {
978
+ description: '\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ',
979
+ format: 'uuid',
980
+ type: 'string',
981
+ },
982
+ action_type: { enum: ['SET_FAN_MODE'], type: 'string' },
486
983
  error: { format: 'null', nullable: true, type: 'string' },
487
- result: { nullable: true },
984
+ result: { properties: {}, type: 'object' },
488
985
  status: { enum: ['success'], type: 'string' },
489
986
  },
490
- required: ['status', 'action_type', 'action_attempt_id', 'error'],
987
+ required: [
988
+ 'action_attempt_id',
989
+ 'status',
990
+ 'error',
991
+ 'action_type',
992
+ 'result',
993
+ ],
994
+ type: 'object',
995
+ },
996
+ {
997
+ description: 'Setting fan mode failed.',
998
+ properties: {
999
+ action_attempt_id: {
1000
+ description: '\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ',
1001
+ format: 'uuid',
1002
+ type: 'string',
1003
+ },
1004
+ action_type: { enum: ['SET_FAN_MODE'], type: 'string' },
1005
+ error: {
1006
+ properties: {
1007
+ message: { type: 'string' },
1008
+ type: { type: 'string' },
1009
+ },
1010
+ required: ['type', 'message'],
1011
+ type: 'object',
1012
+ },
1013
+ result: { format: 'null', nullable: true, type: 'string' },
1014
+ status: { enum: ['error'], type: 'string' },
1015
+ },
1016
+ required: [
1017
+ 'action_attempt_id',
1018
+ 'status',
1019
+ 'result',
1020
+ 'action_type',
1021
+ 'error',
1022
+ ],
491
1023
  type: 'object',
492
1024
  },
493
1025
  {
1026
+ description: 'Turning HVAC off.',
494
1027
  properties: {
495
- action_attempt_id: { format: 'uuid', type: 'string' },
496
- action_type: { type: 'string' },
1028
+ action_attempt_id: {
1029
+ description: '\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ',
1030
+ format: 'uuid',
1031
+ type: 'string',
1032
+ },
1033
+ action_type: { enum: ['SET_THERMOSTAT_OFF'], type: 'string' },
497
1034
  error: { format: 'null', nullable: true, type: 'string' },
498
1035
  result: { format: 'null', nullable: true, type: 'string' },
499
1036
  status: { enum: ['pending'], type: 'string' },
500
1037
  },
501
1038
  required: [
1039
+ 'action_attempt_id',
502
1040
  'status',
1041
+ 'result',
1042
+ 'error',
503
1043
  'action_type',
1044
+ ],
1045
+ type: 'object',
1046
+ },
1047
+ {
1048
+ description: 'Turning HVAC off succeeded.',
1049
+ properties: {
1050
+ action_attempt_id: {
1051
+ description: '\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ',
1052
+ format: 'uuid',
1053
+ type: 'string',
1054
+ },
1055
+ action_type: { enum: ['SET_THERMOSTAT_OFF'], type: 'string' },
1056
+ error: { format: 'null', nullable: true, type: 'string' },
1057
+ result: { properties: {}, type: 'object' },
1058
+ status: { enum: ['success'], type: 'string' },
1059
+ },
1060
+ required: [
504
1061
  'action_attempt_id',
505
- 'result',
1062
+ 'status',
506
1063
  'error',
1064
+ 'action_type',
1065
+ 'result',
507
1066
  ],
508
1067
  type: 'object',
509
1068
  },
510
1069
  {
1070
+ description: 'Turning HVAC off failed.',
511
1071
  properties: {
512
- action_attempt_id: { format: 'uuid', type: 'string' },
513
- action_type: { type: 'string' },
1072
+ action_attempt_id: {
1073
+ description: '\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ',
1074
+ format: 'uuid',
1075
+ type: 'string',
1076
+ },
1077
+ action_type: { enum: ['SET_THERMOSTAT_OFF'], type: 'string' },
514
1078
  error: {
515
1079
  properties: {
516
1080
  message: { type: 'string' },
@@ -523,10 +1087,10 @@ export default {
523
1087
  status: { enum: ['error'], type: 'string' },
524
1088
  },
525
1089
  required: [
526
- 'status',
527
- 'action_type',
528
1090
  'action_attempt_id',
1091
+ 'status',
529
1092
  'result',
1093
+ 'action_type',
530
1094
  'error',
531
1095
  ],
532
1096
  type: 'object',
@@ -922,7 +1486,7 @@ export default {
922
1486
  model: {
923
1487
  properties: {
924
1488
  accessory_keypad_supported: {
925
- description: 'Indicates whether the device supports an accessory keypad.',
1489
+ description: '\n ---\n deprecated: use device.properties.model.can_connect_accessory_keypad\n ---\n ',
926
1490
  type: 'boolean',
927
1491
  },
928
1492
  can_connect_accessory_keypad: {
@@ -981,7 +1545,7 @@ export default {
981
1545
  type: 'string',
982
1546
  },
983
1547
  supports_accessory_keypad: {
984
- description: '\n ---\n deprecated: use model.accessory_keypad_supported\n ---\n ',
1548
+ description: '\n ---\n deprecated: use device.properties.model.can_connect_accessory_keypad\n ---\n ',
985
1549
  type: 'boolean',
986
1550
  },
987
1551
  supports_offline_access_codes: {
@@ -2464,7 +3028,7 @@ export default {
2464
3028
  model: {
2465
3029
  properties: {
2466
3030
  accessory_keypad_supported: {
2467
- description: 'Indicates whether the device supports an accessory keypad.',
3031
+ description: '\n ---\n deprecated: use device.properties.model.can_connect_accessory_keypad\n ---\n ',
2468
3032
  type: 'boolean',
2469
3033
  },
2470
3034
  can_connect_accessory_keypad: {
@@ -2700,7 +3264,91 @@ export default {
2700
3264
  properties: {
2701
3265
  access_code: { $ref: '#/components/schemas/access_code' },
2702
3266
  action_attempt: {
2703
- $ref: '#/components/schemas/action_attempt',
3267
+ discriminator: { propertyName: 'status' },
3268
+ oneOf: [
3269
+ {
3270
+ properties: {
3271
+ action_attempt_id: {
3272
+ format: 'uuid',
3273
+ type: 'string',
3274
+ },
3275
+ action_type: { type: 'string' },
3276
+ error: {
3277
+ format: 'null',
3278
+ nullable: true,
3279
+ type: 'string',
3280
+ },
3281
+ result: { nullable: true },
3282
+ status: { enum: ['success'], type: 'string' },
3283
+ },
3284
+ required: [
3285
+ 'status',
3286
+ 'action_type',
3287
+ 'action_attempt_id',
3288
+ 'error',
3289
+ ],
3290
+ type: 'object',
3291
+ },
3292
+ {
3293
+ properties: {
3294
+ action_attempt_id: {
3295
+ format: 'uuid',
3296
+ type: 'string',
3297
+ },
3298
+ action_type: { type: 'string' },
3299
+ error: {
3300
+ format: 'null',
3301
+ nullable: true,
3302
+ type: 'string',
3303
+ },
3304
+ result: {
3305
+ format: 'null',
3306
+ nullable: true,
3307
+ type: 'string',
3308
+ },
3309
+ status: { enum: ['pending'], type: 'string' },
3310
+ },
3311
+ required: [
3312
+ 'status',
3313
+ 'action_type',
3314
+ 'action_attempt_id',
3315
+ 'result',
3316
+ 'error',
3317
+ ],
3318
+ type: 'object',
3319
+ },
3320
+ {
3321
+ properties: {
3322
+ action_attempt_id: {
3323
+ format: 'uuid',
3324
+ type: 'string',
3325
+ },
3326
+ action_type: { type: 'string' },
3327
+ error: {
3328
+ properties: {
3329
+ message: { type: 'string' },
3330
+ type: { type: 'string' },
3331
+ },
3332
+ required: ['type', 'message'],
3333
+ type: 'object',
3334
+ },
3335
+ result: {
3336
+ format: 'null',
3337
+ nullable: true,
3338
+ type: 'string',
3339
+ },
3340
+ status: { enum: ['error'], type: 'string' },
3341
+ },
3342
+ required: [
3343
+ 'status',
3344
+ 'action_type',
3345
+ 'action_attempt_id',
3346
+ 'result',
3347
+ 'error',
3348
+ ],
3349
+ type: 'object',
3350
+ },
3351
+ ],
2704
3352
  },
2705
3353
  ok: { type: 'boolean' },
2706
3354
  },
@@ -2918,7 +3566,91 @@ export default {
2918
3566
  schema: {
2919
3567
  properties: {
2920
3568
  action_attempt: {
2921
- $ref: '#/components/schemas/action_attempt',
3569
+ discriminator: { propertyName: 'status' },
3570
+ oneOf: [
3571
+ {
3572
+ properties: {
3573
+ action_attempt_id: {
3574
+ format: 'uuid',
3575
+ type: 'string',
3576
+ },
3577
+ action_type: { type: 'string' },
3578
+ error: {
3579
+ format: 'null',
3580
+ nullable: true,
3581
+ type: 'string',
3582
+ },
3583
+ result: { nullable: true },
3584
+ status: { enum: ['success'], type: 'string' },
3585
+ },
3586
+ required: [
3587
+ 'status',
3588
+ 'action_type',
3589
+ 'action_attempt_id',
3590
+ 'error',
3591
+ ],
3592
+ type: 'object',
3593
+ },
3594
+ {
3595
+ properties: {
3596
+ action_attempt_id: {
3597
+ format: 'uuid',
3598
+ type: 'string',
3599
+ },
3600
+ action_type: { type: 'string' },
3601
+ error: {
3602
+ format: 'null',
3603
+ nullable: true,
3604
+ type: 'string',
3605
+ },
3606
+ result: {
3607
+ format: 'null',
3608
+ nullable: true,
3609
+ type: 'string',
3610
+ },
3611
+ status: { enum: ['pending'], type: 'string' },
3612
+ },
3613
+ required: [
3614
+ 'status',
3615
+ 'action_type',
3616
+ 'action_attempt_id',
3617
+ 'result',
3618
+ 'error',
3619
+ ],
3620
+ type: 'object',
3621
+ },
3622
+ {
3623
+ properties: {
3624
+ action_attempt_id: {
3625
+ format: 'uuid',
3626
+ type: 'string',
3627
+ },
3628
+ action_type: { type: 'string' },
3629
+ error: {
3630
+ properties: {
3631
+ message: { type: 'string' },
3632
+ type: { type: 'string' },
3633
+ },
3634
+ required: ['type', 'message'],
3635
+ type: 'object',
3636
+ },
3637
+ result: {
3638
+ format: 'null',
3639
+ nullable: true,
3640
+ type: 'string',
3641
+ },
3642
+ status: { enum: ['error'], type: 'string' },
3643
+ },
3644
+ required: [
3645
+ 'status',
3646
+ 'action_type',
3647
+ 'action_attempt_id',
3648
+ 'result',
3649
+ 'error',
3650
+ ],
3651
+ type: 'object',
3652
+ },
3653
+ ],
2922
3654
  },
2923
3655
  ok: { type: 'boolean' },
2924
3656
  },
@@ -3320,7 +4052,91 @@ export default {
3320
4052
  schema: {
3321
4053
  properties: {
3322
4054
  action_attempt: {
3323
- $ref: '#/components/schemas/action_attempt',
4055
+ discriminator: { propertyName: 'status' },
4056
+ oneOf: [
4057
+ {
4058
+ properties: {
4059
+ action_attempt_id: {
4060
+ format: 'uuid',
4061
+ type: 'string',
4062
+ },
4063
+ action_type: { type: 'string' },
4064
+ error: {
4065
+ format: 'null',
4066
+ nullable: true,
4067
+ type: 'string',
4068
+ },
4069
+ result: { nullable: true },
4070
+ status: { enum: ['success'], type: 'string' },
4071
+ },
4072
+ required: [
4073
+ 'status',
4074
+ 'action_type',
4075
+ 'action_attempt_id',
4076
+ 'error',
4077
+ ],
4078
+ type: 'object',
4079
+ },
4080
+ {
4081
+ properties: {
4082
+ action_attempt_id: {
4083
+ format: 'uuid',
4084
+ type: 'string',
4085
+ },
4086
+ action_type: { type: 'string' },
4087
+ error: {
4088
+ format: 'null',
4089
+ nullable: true,
4090
+ type: 'string',
4091
+ },
4092
+ result: {
4093
+ format: 'null',
4094
+ nullable: true,
4095
+ type: 'string',
4096
+ },
4097
+ status: { enum: ['pending'], type: 'string' },
4098
+ },
4099
+ required: [
4100
+ 'status',
4101
+ 'action_type',
4102
+ 'action_attempt_id',
4103
+ 'result',
4104
+ 'error',
4105
+ ],
4106
+ type: 'object',
4107
+ },
4108
+ {
4109
+ properties: {
4110
+ action_attempt_id: {
4111
+ format: 'uuid',
4112
+ type: 'string',
4113
+ },
4114
+ action_type: { type: 'string' },
4115
+ error: {
4116
+ properties: {
4117
+ message: { type: 'string' },
4118
+ type: { type: 'string' },
4119
+ },
4120
+ required: ['type', 'message'],
4121
+ type: 'object',
4122
+ },
4123
+ result: {
4124
+ format: 'null',
4125
+ nullable: true,
4126
+ type: 'string',
4127
+ },
4128
+ status: { enum: ['error'], type: 'string' },
4129
+ },
4130
+ required: [
4131
+ 'status',
4132
+ 'action_type',
4133
+ 'action_attempt_id',
4134
+ 'result',
4135
+ 'error',
4136
+ ],
4137
+ type: 'object',
4138
+ },
4139
+ ],
3324
4140
  },
3325
4141
  ok: { type: 'boolean' },
3326
4142
  },
@@ -3596,7 +4412,91 @@ export default {
3596
4412
  schema: {
3597
4413
  properties: {
3598
4414
  action_attempt: {
3599
- $ref: '#/components/schemas/action_attempt',
4415
+ discriminator: { propertyName: 'status' },
4416
+ oneOf: [
4417
+ {
4418
+ properties: {
4419
+ action_attempt_id: {
4420
+ format: 'uuid',
4421
+ type: 'string',
4422
+ },
4423
+ action_type: { type: 'string' },
4424
+ error: {
4425
+ format: 'null',
4426
+ nullable: true,
4427
+ type: 'string',
4428
+ },
4429
+ result: { nullable: true },
4430
+ status: { enum: ['success'], type: 'string' },
4431
+ },
4432
+ required: [
4433
+ 'status',
4434
+ 'action_type',
4435
+ 'action_attempt_id',
4436
+ 'error',
4437
+ ],
4438
+ type: 'object',
4439
+ },
4440
+ {
4441
+ properties: {
4442
+ action_attempt_id: {
4443
+ format: 'uuid',
4444
+ type: 'string',
4445
+ },
4446
+ action_type: { type: 'string' },
4447
+ error: {
4448
+ format: 'null',
4449
+ nullable: true,
4450
+ type: 'string',
4451
+ },
4452
+ result: {
4453
+ format: 'null',
4454
+ nullable: true,
4455
+ type: 'string',
4456
+ },
4457
+ status: { enum: ['pending'], type: 'string' },
4458
+ },
4459
+ required: [
4460
+ 'status',
4461
+ 'action_type',
4462
+ 'action_attempt_id',
4463
+ 'result',
4464
+ 'error',
4465
+ ],
4466
+ type: 'object',
4467
+ },
4468
+ {
4469
+ properties: {
4470
+ action_attempt_id: {
4471
+ format: 'uuid',
4472
+ type: 'string',
4473
+ },
4474
+ action_type: { type: 'string' },
4475
+ error: {
4476
+ properties: {
4477
+ message: { type: 'string' },
4478
+ type: { type: 'string' },
4479
+ },
4480
+ required: ['type', 'message'],
4481
+ type: 'object',
4482
+ },
4483
+ result: {
4484
+ format: 'null',
4485
+ nullable: true,
4486
+ type: 'string',
4487
+ },
4488
+ status: { enum: ['error'], type: 'string' },
4489
+ },
4490
+ required: [
4491
+ 'status',
4492
+ 'action_type',
4493
+ 'action_attempt_id',
4494
+ 'result',
4495
+ 'error',
4496
+ ],
4497
+ type: 'object',
4498
+ },
4499
+ ],
3600
4500
  },
3601
4501
  ok: { type: 'boolean' },
3602
4502
  },
@@ -3671,7 +4571,91 @@ export default {
3671
4571
  schema: {
3672
4572
  properties: {
3673
4573
  action_attempt: {
3674
- $ref: '#/components/schemas/action_attempt',
4574
+ discriminator: { propertyName: 'status' },
4575
+ oneOf: [
4576
+ {
4577
+ properties: {
4578
+ action_attempt_id: {
4579
+ format: 'uuid',
4580
+ type: 'string',
4581
+ },
4582
+ action_type: { type: 'string' },
4583
+ error: {
4584
+ format: 'null',
4585
+ nullable: true,
4586
+ type: 'string',
4587
+ },
4588
+ result: { nullable: true },
4589
+ status: { enum: ['success'], type: 'string' },
4590
+ },
4591
+ required: [
4592
+ 'status',
4593
+ 'action_type',
4594
+ 'action_attempt_id',
4595
+ 'error',
4596
+ ],
4597
+ type: 'object',
4598
+ },
4599
+ {
4600
+ properties: {
4601
+ action_attempt_id: {
4602
+ format: 'uuid',
4603
+ type: 'string',
4604
+ },
4605
+ action_type: { type: 'string' },
4606
+ error: {
4607
+ format: 'null',
4608
+ nullable: true,
4609
+ type: 'string',
4610
+ },
4611
+ result: {
4612
+ format: 'null',
4613
+ nullable: true,
4614
+ type: 'string',
4615
+ },
4616
+ status: { enum: ['pending'], type: 'string' },
4617
+ },
4618
+ required: [
4619
+ 'status',
4620
+ 'action_type',
4621
+ 'action_attempt_id',
4622
+ 'result',
4623
+ 'error',
4624
+ ],
4625
+ type: 'object',
4626
+ },
4627
+ {
4628
+ properties: {
4629
+ action_attempt_id: {
4630
+ format: 'uuid',
4631
+ type: 'string',
4632
+ },
4633
+ action_type: { type: 'string' },
4634
+ error: {
4635
+ properties: {
4636
+ message: { type: 'string' },
4637
+ type: { type: 'string' },
4638
+ },
4639
+ required: ['type', 'message'],
4640
+ type: 'object',
4641
+ },
4642
+ result: {
4643
+ format: 'null',
4644
+ nullable: true,
4645
+ type: 'string',
4646
+ },
4647
+ status: { enum: ['error'], type: 'string' },
4648
+ },
4649
+ required: [
4650
+ 'status',
4651
+ 'action_type',
4652
+ 'action_attempt_id',
4653
+ 'result',
4654
+ 'error',
4655
+ ],
4656
+ type: 'object',
4657
+ },
4658
+ ],
3675
4659
  },
3676
4660
  ok: { type: 'boolean' },
3677
4661
  },
@@ -3747,7 +4731,91 @@ export default {
3747
4731
  schema: {
3748
4732
  properties: {
3749
4733
  action_attempt: {
3750
- $ref: '#/components/schemas/action_attempt',
4734
+ discriminator: { propertyName: 'status' },
4735
+ oneOf: [
4736
+ {
4737
+ properties: {
4738
+ action_attempt_id: {
4739
+ format: 'uuid',
4740
+ type: 'string',
4741
+ },
4742
+ action_type: { type: 'string' },
4743
+ error: {
4744
+ format: 'null',
4745
+ nullable: true,
4746
+ type: 'string',
4747
+ },
4748
+ result: { nullable: true },
4749
+ status: { enum: ['success'], type: 'string' },
4750
+ },
4751
+ required: [
4752
+ 'status',
4753
+ 'action_type',
4754
+ 'action_attempt_id',
4755
+ 'error',
4756
+ ],
4757
+ type: 'object',
4758
+ },
4759
+ {
4760
+ properties: {
4761
+ action_attempt_id: {
4762
+ format: 'uuid',
4763
+ type: 'string',
4764
+ },
4765
+ action_type: { type: 'string' },
4766
+ error: {
4767
+ format: 'null',
4768
+ nullable: true,
4769
+ type: 'string',
4770
+ },
4771
+ result: {
4772
+ format: 'null',
4773
+ nullable: true,
4774
+ type: 'string',
4775
+ },
4776
+ status: { enum: ['pending'], type: 'string' },
4777
+ },
4778
+ required: [
4779
+ 'status',
4780
+ 'action_type',
4781
+ 'action_attempt_id',
4782
+ 'result',
4783
+ 'error',
4784
+ ],
4785
+ type: 'object',
4786
+ },
4787
+ {
4788
+ properties: {
4789
+ action_attempt_id: {
4790
+ format: 'uuid',
4791
+ type: 'string',
4792
+ },
4793
+ action_type: { type: 'string' },
4794
+ error: {
4795
+ properties: {
4796
+ message: { type: 'string' },
4797
+ type: { type: 'string' },
4798
+ },
4799
+ required: ['type', 'message'],
4800
+ type: 'object',
4801
+ },
4802
+ result: {
4803
+ format: 'null',
4804
+ nullable: true,
4805
+ type: 'string',
4806
+ },
4807
+ status: { enum: ['error'], type: 'string' },
4808
+ },
4809
+ required: [
4810
+ 'status',
4811
+ 'action_type',
4812
+ 'action_attempt_id',
4813
+ 'result',
4814
+ 'error',
4815
+ ],
4816
+ type: 'object',
4817
+ },
4818
+ ],
3751
4819
  },
3752
4820
  ok: { type: 'boolean' },
3753
4821
  },
@@ -5776,7 +6844,91 @@ export default {
5776
6844
  schema: {
5777
6845
  properties: {
5778
6846
  action_attempt: {
5779
- $ref: '#/components/schemas/action_attempt',
6847
+ discriminator: { propertyName: 'status' },
6848
+ oneOf: [
6849
+ {
6850
+ properties: {
6851
+ action_attempt_id: {
6852
+ format: 'uuid',
6853
+ type: 'string',
6854
+ },
6855
+ action_type: { type: 'string' },
6856
+ error: {
6857
+ format: 'null',
6858
+ nullable: true,
6859
+ type: 'string',
6860
+ },
6861
+ result: { nullable: true },
6862
+ status: { enum: ['success'], type: 'string' },
6863
+ },
6864
+ required: [
6865
+ 'status',
6866
+ 'action_type',
6867
+ 'action_attempt_id',
6868
+ 'error',
6869
+ ],
6870
+ type: 'object',
6871
+ },
6872
+ {
6873
+ properties: {
6874
+ action_attempt_id: {
6875
+ format: 'uuid',
6876
+ type: 'string',
6877
+ },
6878
+ action_type: { type: 'string' },
6879
+ error: {
6880
+ format: 'null',
6881
+ nullable: true,
6882
+ type: 'string',
6883
+ },
6884
+ result: {
6885
+ format: 'null',
6886
+ nullable: true,
6887
+ type: 'string',
6888
+ },
6889
+ status: { enum: ['pending'], type: 'string' },
6890
+ },
6891
+ required: [
6892
+ 'status',
6893
+ 'action_type',
6894
+ 'action_attempt_id',
6895
+ 'result',
6896
+ 'error',
6897
+ ],
6898
+ type: 'object',
6899
+ },
6900
+ {
6901
+ properties: {
6902
+ action_attempt_id: {
6903
+ format: 'uuid',
6904
+ type: 'string',
6905
+ },
6906
+ action_type: { type: 'string' },
6907
+ error: {
6908
+ properties: {
6909
+ message: { type: 'string' },
6910
+ type: { type: 'string' },
6911
+ },
6912
+ required: ['type', 'message'],
6913
+ type: 'object',
6914
+ },
6915
+ result: {
6916
+ format: 'null',
6917
+ nullable: true,
6918
+ type: 'string',
6919
+ },
6920
+ status: { enum: ['error'], type: 'string' },
6921
+ },
6922
+ required: [
6923
+ 'status',
6924
+ 'action_type',
6925
+ 'action_attempt_id',
6926
+ 'result',
6927
+ 'error',
6928
+ ],
6929
+ type: 'object',
6930
+ },
6931
+ ],
5780
6932
  },
5781
6933
  ok: { type: 'boolean' },
5782
6934
  },
@@ -5829,7 +6981,93 @@ export default {
5829
6981
  schema: {
5830
6982
  properties: {
5831
6983
  action_attempts: {
5832
- items: { $ref: '#/components/schemas/action_attempt' },
6984
+ items: {
6985
+ discriminator: { propertyName: 'status' },
6986
+ oneOf: [
6987
+ {
6988
+ properties: {
6989
+ action_attempt_id: {
6990
+ format: 'uuid',
6991
+ type: 'string',
6992
+ },
6993
+ action_type: { type: 'string' },
6994
+ error: {
6995
+ format: 'null',
6996
+ nullable: true,
6997
+ type: 'string',
6998
+ },
6999
+ result: { nullable: true },
7000
+ status: { enum: ['success'], type: 'string' },
7001
+ },
7002
+ required: [
7003
+ 'status',
7004
+ 'action_type',
7005
+ 'action_attempt_id',
7006
+ 'error',
7007
+ ],
7008
+ type: 'object',
7009
+ },
7010
+ {
7011
+ properties: {
7012
+ action_attempt_id: {
7013
+ format: 'uuid',
7014
+ type: 'string',
7015
+ },
7016
+ action_type: { type: 'string' },
7017
+ error: {
7018
+ format: 'null',
7019
+ nullable: true,
7020
+ type: 'string',
7021
+ },
7022
+ result: {
7023
+ format: 'null',
7024
+ nullable: true,
7025
+ type: 'string',
7026
+ },
7027
+ status: { enum: ['pending'], type: 'string' },
7028
+ },
7029
+ required: [
7030
+ 'status',
7031
+ 'action_type',
7032
+ 'action_attempt_id',
7033
+ 'result',
7034
+ 'error',
7035
+ ],
7036
+ type: 'object',
7037
+ },
7038
+ {
7039
+ properties: {
7040
+ action_attempt_id: {
7041
+ format: 'uuid',
7042
+ type: 'string',
7043
+ },
7044
+ action_type: { type: 'string' },
7045
+ error: {
7046
+ properties: {
7047
+ message: { type: 'string' },
7048
+ type: { type: 'string' },
7049
+ },
7050
+ required: ['type', 'message'],
7051
+ type: 'object',
7052
+ },
7053
+ result: {
7054
+ format: 'null',
7055
+ nullable: true,
7056
+ type: 'string',
7057
+ },
7058
+ status: { enum: ['error'], type: 'string' },
7059
+ },
7060
+ required: [
7061
+ 'status',
7062
+ 'action_type',
7063
+ 'action_attempt_id',
7064
+ 'result',
7065
+ 'error',
7066
+ ],
7067
+ type: 'object',
7068
+ },
7069
+ ],
7070
+ },
5833
7071
  type: 'array',
5834
7072
  },
5835
7073
  ok: { type: 'boolean' },
@@ -8578,7 +9816,91 @@ export default {
8578
9816
  schema: {
8579
9817
  properties: {
8580
9818
  action_attempt: {
8581
- $ref: '#/components/schemas/action_attempt',
9819
+ discriminator: { propertyName: 'status' },
9820
+ oneOf: [
9821
+ {
9822
+ properties: {
9823
+ action_attempt_id: {
9824
+ format: 'uuid',
9825
+ type: 'string',
9826
+ },
9827
+ action_type: { type: 'string' },
9828
+ error: {
9829
+ format: 'null',
9830
+ nullable: true,
9831
+ type: 'string',
9832
+ },
9833
+ result: { nullable: true },
9834
+ status: { enum: ['success'], type: 'string' },
9835
+ },
9836
+ required: [
9837
+ 'status',
9838
+ 'action_type',
9839
+ 'action_attempt_id',
9840
+ 'error',
9841
+ ],
9842
+ type: 'object',
9843
+ },
9844
+ {
9845
+ properties: {
9846
+ action_attempt_id: {
9847
+ format: 'uuid',
9848
+ type: 'string',
9849
+ },
9850
+ action_type: { type: 'string' },
9851
+ error: {
9852
+ format: 'null',
9853
+ nullable: true,
9854
+ type: 'string',
9855
+ },
9856
+ result: {
9857
+ format: 'null',
9858
+ nullable: true,
9859
+ type: 'string',
9860
+ },
9861
+ status: { enum: ['pending'], type: 'string' },
9862
+ },
9863
+ required: [
9864
+ 'status',
9865
+ 'action_type',
9866
+ 'action_attempt_id',
9867
+ 'result',
9868
+ 'error',
9869
+ ],
9870
+ type: 'object',
9871
+ },
9872
+ {
9873
+ properties: {
9874
+ action_attempt_id: {
9875
+ format: 'uuid',
9876
+ type: 'string',
9877
+ },
9878
+ action_type: { type: 'string' },
9879
+ error: {
9880
+ properties: {
9881
+ message: { type: 'string' },
9882
+ type: { type: 'string' },
9883
+ },
9884
+ required: ['type', 'message'],
9885
+ type: 'object',
9886
+ },
9887
+ result: {
9888
+ format: 'null',
9889
+ nullable: true,
9890
+ type: 'string',
9891
+ },
9892
+ status: { enum: ['error'], type: 'string' },
9893
+ },
9894
+ required: [
9895
+ 'status',
9896
+ 'action_type',
9897
+ 'action_attempt_id',
9898
+ 'result',
9899
+ 'error',
9900
+ ],
9901
+ type: 'object',
9902
+ },
9903
+ ],
8582
9904
  },
8583
9905
  noise_threshold: {
8584
9906
  $ref: '#/components/schemas/noise_threshold',
@@ -8632,7 +9954,91 @@ export default {
8632
9954
  schema: {
8633
9955
  properties: {
8634
9956
  action_attempt: {
8635
- $ref: '#/components/schemas/action_attempt',
9957
+ discriminator: { propertyName: 'status' },
9958
+ oneOf: [
9959
+ {
9960
+ properties: {
9961
+ action_attempt_id: {
9962
+ format: 'uuid',
9963
+ type: 'string',
9964
+ },
9965
+ action_type: { type: 'string' },
9966
+ error: {
9967
+ format: 'null',
9968
+ nullable: true,
9969
+ type: 'string',
9970
+ },
9971
+ result: { nullable: true },
9972
+ status: { enum: ['success'], type: 'string' },
9973
+ },
9974
+ required: [
9975
+ 'status',
9976
+ 'action_type',
9977
+ 'action_attempt_id',
9978
+ 'error',
9979
+ ],
9980
+ type: 'object',
9981
+ },
9982
+ {
9983
+ properties: {
9984
+ action_attempt_id: {
9985
+ format: 'uuid',
9986
+ type: 'string',
9987
+ },
9988
+ action_type: { type: 'string' },
9989
+ error: {
9990
+ format: 'null',
9991
+ nullable: true,
9992
+ type: 'string',
9993
+ },
9994
+ result: {
9995
+ format: 'null',
9996
+ nullable: true,
9997
+ type: 'string',
9998
+ },
9999
+ status: { enum: ['pending'], type: 'string' },
10000
+ },
10001
+ required: [
10002
+ 'status',
10003
+ 'action_type',
10004
+ 'action_attempt_id',
10005
+ 'result',
10006
+ 'error',
10007
+ ],
10008
+ type: 'object',
10009
+ },
10010
+ {
10011
+ properties: {
10012
+ action_attempt_id: {
10013
+ format: 'uuid',
10014
+ type: 'string',
10015
+ },
10016
+ action_type: { type: 'string' },
10017
+ error: {
10018
+ properties: {
10019
+ message: { type: 'string' },
10020
+ type: { type: 'string' },
10021
+ },
10022
+ required: ['type', 'message'],
10023
+ type: 'object',
10024
+ },
10025
+ result: {
10026
+ format: 'null',
10027
+ nullable: true,
10028
+ type: 'string',
10029
+ },
10030
+ status: { enum: ['error'], type: 'string' },
10031
+ },
10032
+ required: [
10033
+ 'status',
10034
+ 'action_type',
10035
+ 'action_attempt_id',
10036
+ 'result',
10037
+ 'error',
10038
+ ],
10039
+ type: 'object',
10040
+ },
10041
+ ],
8636
10042
  },
8637
10043
  ok: { type: 'boolean' },
8638
10044
  },
@@ -8787,7 +10193,91 @@ export default {
8787
10193
  schema: {
8788
10194
  properties: {
8789
10195
  action_attempt: {
8790
- $ref: '#/components/schemas/action_attempt',
10196
+ discriminator: { propertyName: 'status' },
10197
+ oneOf: [
10198
+ {
10199
+ properties: {
10200
+ action_attempt_id: {
10201
+ format: 'uuid',
10202
+ type: 'string',
10203
+ },
10204
+ action_type: { type: 'string' },
10205
+ error: {
10206
+ format: 'null',
10207
+ nullable: true,
10208
+ type: 'string',
10209
+ },
10210
+ result: { nullable: true },
10211
+ status: { enum: ['success'], type: 'string' },
10212
+ },
10213
+ required: [
10214
+ 'status',
10215
+ 'action_type',
10216
+ 'action_attempt_id',
10217
+ 'error',
10218
+ ],
10219
+ type: 'object',
10220
+ },
10221
+ {
10222
+ properties: {
10223
+ action_attempt_id: {
10224
+ format: 'uuid',
10225
+ type: 'string',
10226
+ },
10227
+ action_type: { type: 'string' },
10228
+ error: {
10229
+ format: 'null',
10230
+ nullable: true,
10231
+ type: 'string',
10232
+ },
10233
+ result: {
10234
+ format: 'null',
10235
+ nullable: true,
10236
+ type: 'string',
10237
+ },
10238
+ status: { enum: ['pending'], type: 'string' },
10239
+ },
10240
+ required: [
10241
+ 'status',
10242
+ 'action_type',
10243
+ 'action_attempt_id',
10244
+ 'result',
10245
+ 'error',
10246
+ ],
10247
+ type: 'object',
10248
+ },
10249
+ {
10250
+ properties: {
10251
+ action_attempt_id: {
10252
+ format: 'uuid',
10253
+ type: 'string',
10254
+ },
10255
+ action_type: { type: 'string' },
10256
+ error: {
10257
+ properties: {
10258
+ message: { type: 'string' },
10259
+ type: { type: 'string' },
10260
+ },
10261
+ required: ['type', 'message'],
10262
+ type: 'object',
10263
+ },
10264
+ result: {
10265
+ format: 'null',
10266
+ nullable: true,
10267
+ type: 'string',
10268
+ },
10269
+ status: { enum: ['error'], type: 'string' },
10270
+ },
10271
+ required: [
10272
+ 'status',
10273
+ 'action_type',
10274
+ 'action_attempt_id',
10275
+ 'result',
10276
+ 'error',
10277
+ ],
10278
+ type: 'object',
10279
+ },
10280
+ ],
8791
10281
  },
8792
10282
  ok: { type: 'boolean' },
8793
10283
  },
@@ -8839,7 +10329,91 @@ export default {
8839
10329
  schema: {
8840
10330
  properties: {
8841
10331
  action_attempt: {
8842
- $ref: '#/components/schemas/action_attempt',
10332
+ discriminator: { propertyName: 'status' },
10333
+ oneOf: [
10334
+ {
10335
+ properties: {
10336
+ action_attempt_id: {
10337
+ format: 'uuid',
10338
+ type: 'string',
10339
+ },
10340
+ action_type: { type: 'string' },
10341
+ error: {
10342
+ format: 'null',
10343
+ nullable: true,
10344
+ type: 'string',
10345
+ },
10346
+ result: { nullable: true },
10347
+ status: { enum: ['success'], type: 'string' },
10348
+ },
10349
+ required: [
10350
+ 'status',
10351
+ 'action_type',
10352
+ 'action_attempt_id',
10353
+ 'error',
10354
+ ],
10355
+ type: 'object',
10356
+ },
10357
+ {
10358
+ properties: {
10359
+ action_attempt_id: {
10360
+ format: 'uuid',
10361
+ type: 'string',
10362
+ },
10363
+ action_type: { type: 'string' },
10364
+ error: {
10365
+ format: 'null',
10366
+ nullable: true,
10367
+ type: 'string',
10368
+ },
10369
+ result: {
10370
+ format: 'null',
10371
+ nullable: true,
10372
+ type: 'string',
10373
+ },
10374
+ status: { enum: ['pending'], type: 'string' },
10375
+ },
10376
+ required: [
10377
+ 'status',
10378
+ 'action_type',
10379
+ 'action_attempt_id',
10380
+ 'result',
10381
+ 'error',
10382
+ ],
10383
+ type: 'object',
10384
+ },
10385
+ {
10386
+ properties: {
10387
+ action_attempt_id: {
10388
+ format: 'uuid',
10389
+ type: 'string',
10390
+ },
10391
+ action_type: { type: 'string' },
10392
+ error: {
10393
+ properties: {
10394
+ message: { type: 'string' },
10395
+ type: { type: 'string' },
10396
+ },
10397
+ required: ['type', 'message'],
10398
+ type: 'object',
10399
+ },
10400
+ result: {
10401
+ format: 'null',
10402
+ nullable: true,
10403
+ type: 'string',
10404
+ },
10405
+ status: { enum: ['error'], type: 'string' },
10406
+ },
10407
+ required: [
10408
+ 'status',
10409
+ 'action_type',
10410
+ 'action_attempt_id',
10411
+ 'result',
10412
+ 'error',
10413
+ ],
10414
+ type: 'object',
10415
+ },
10416
+ ],
8843
10417
  },
8844
10418
  ok: { type: 'boolean' },
8845
10419
  },
@@ -8892,7 +10466,91 @@ export default {
8892
10466
  schema: {
8893
10467
  properties: {
8894
10468
  action_attempt: {
8895
- $ref: '#/components/schemas/action_attempt',
10469
+ discriminator: { propertyName: 'status' },
10470
+ oneOf: [
10471
+ {
10472
+ properties: {
10473
+ action_attempt_id: {
10474
+ format: 'uuid',
10475
+ type: 'string',
10476
+ },
10477
+ action_type: { type: 'string' },
10478
+ error: {
10479
+ format: 'null',
10480
+ nullable: true,
10481
+ type: 'string',
10482
+ },
10483
+ result: { nullable: true },
10484
+ status: { enum: ['success'], type: 'string' },
10485
+ },
10486
+ required: [
10487
+ 'status',
10488
+ 'action_type',
10489
+ 'action_attempt_id',
10490
+ 'error',
10491
+ ],
10492
+ type: 'object',
10493
+ },
10494
+ {
10495
+ properties: {
10496
+ action_attempt_id: {
10497
+ format: 'uuid',
10498
+ type: 'string',
10499
+ },
10500
+ action_type: { type: 'string' },
10501
+ error: {
10502
+ format: 'null',
10503
+ nullable: true,
10504
+ type: 'string',
10505
+ },
10506
+ result: {
10507
+ format: 'null',
10508
+ nullable: true,
10509
+ type: 'string',
10510
+ },
10511
+ status: { enum: ['pending'], type: 'string' },
10512
+ },
10513
+ required: [
10514
+ 'status',
10515
+ 'action_type',
10516
+ 'action_attempt_id',
10517
+ 'result',
10518
+ 'error',
10519
+ ],
10520
+ type: 'object',
10521
+ },
10522
+ {
10523
+ properties: {
10524
+ action_attempt_id: {
10525
+ format: 'uuid',
10526
+ type: 'string',
10527
+ },
10528
+ action_type: { type: 'string' },
10529
+ error: {
10530
+ properties: {
10531
+ message: { type: 'string' },
10532
+ type: { type: 'string' },
10533
+ },
10534
+ required: ['type', 'message'],
10535
+ type: 'object',
10536
+ },
10537
+ result: {
10538
+ format: 'null',
10539
+ nullable: true,
10540
+ type: 'string',
10541
+ },
10542
+ status: { enum: ['error'], type: 'string' },
10543
+ },
10544
+ required: [
10545
+ 'status',
10546
+ 'action_type',
10547
+ 'action_attempt_id',
10548
+ 'result',
10549
+ 'error',
10550
+ ],
10551
+ type: 'object',
10552
+ },
10553
+ ],
8896
10554
  },
8897
10555
  ok: { type: 'boolean' },
8898
10556
  },