@seamapi/types 1.177.0 → 1.177.1

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.
@@ -551,6 +551,488 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
551
551
  action_attempt_id: string;
552
552
  result: null;
553
553
  action_type: "SET_THERMOSTAT_OFF";
554
+ }>, z.ZodObject<{
555
+ error: z.ZodNull;
556
+ status: z.ZodLiteral<"pending">;
557
+ action_attempt_id: z.ZodString;
558
+ result: z.ZodNull;
559
+ action_type: z.ZodLiteral<"SYNC_ACCESS_CODES">;
560
+ }, "strip", z.ZodTypeAny, {
561
+ error: null;
562
+ status: "pending";
563
+ action_attempt_id: string;
564
+ result: null;
565
+ action_type: "SYNC_ACCESS_CODES";
566
+ }, {
567
+ error: null;
568
+ status: "pending";
569
+ action_attempt_id: string;
570
+ result: null;
571
+ action_type: "SYNC_ACCESS_CODES";
572
+ }>, z.ZodObject<{
573
+ error: z.ZodNull;
574
+ status: z.ZodLiteral<"success">;
575
+ action_attempt_id: z.ZodString;
576
+ action_type: z.ZodLiteral<"SYNC_ACCESS_CODES">;
577
+ result: z.ZodAny;
578
+ }, "strip", z.ZodTypeAny, {
579
+ error: null;
580
+ status: "success";
581
+ action_attempt_id: string;
582
+ action_type: "SYNC_ACCESS_CODES";
583
+ result?: any;
584
+ }, {
585
+ error: null;
586
+ status: "success";
587
+ action_attempt_id: string;
588
+ action_type: "SYNC_ACCESS_CODES";
589
+ result?: any;
590
+ }>, z.ZodObject<{
591
+ status: z.ZodLiteral<"error">;
592
+ action_attempt_id: z.ZodString;
593
+ result: z.ZodNull;
594
+ action_type: z.ZodLiteral<"SYNC_ACCESS_CODES">;
595
+ error: z.ZodObject<{
596
+ type: z.ZodString;
597
+ message: z.ZodString;
598
+ }, "strip", z.ZodTypeAny, {
599
+ type: string;
600
+ message: string;
601
+ }, {
602
+ type: string;
603
+ message: string;
604
+ }>;
605
+ }, "strip", z.ZodTypeAny, {
606
+ error: {
607
+ type: string;
608
+ message: string;
609
+ };
610
+ status: "error";
611
+ action_attempt_id: string;
612
+ result: null;
613
+ action_type: "SYNC_ACCESS_CODES";
614
+ }, {
615
+ error: {
616
+ type: string;
617
+ message: string;
618
+ };
619
+ status: "error";
620
+ action_attempt_id: string;
621
+ result: null;
622
+ action_type: "SYNC_ACCESS_CODES";
623
+ }>, z.ZodObject<{
624
+ error: z.ZodNull;
625
+ status: z.ZodLiteral<"pending">;
626
+ action_attempt_id: z.ZodString;
627
+ result: z.ZodNull;
628
+ action_type: z.ZodLiteral<"CREATE_ACCESS_CODE">;
629
+ }, "strip", z.ZodTypeAny, {
630
+ error: null;
631
+ status: "pending";
632
+ action_attempt_id: string;
633
+ result: null;
634
+ action_type: "CREATE_ACCESS_CODE";
635
+ }, {
636
+ error: null;
637
+ status: "pending";
638
+ action_attempt_id: string;
639
+ result: null;
640
+ action_type: "CREATE_ACCESS_CODE";
641
+ }>, z.ZodObject<{
642
+ error: z.ZodNull;
643
+ status: z.ZodLiteral<"success">;
644
+ action_attempt_id: z.ZodString;
645
+ action_type: z.ZodLiteral<"CREATE_ACCESS_CODE">;
646
+ result: z.ZodAny;
647
+ }, "strip", z.ZodTypeAny, {
648
+ error: null;
649
+ status: "success";
650
+ action_attempt_id: string;
651
+ action_type: "CREATE_ACCESS_CODE";
652
+ result?: any;
653
+ }, {
654
+ error: null;
655
+ status: "success";
656
+ action_attempt_id: string;
657
+ action_type: "CREATE_ACCESS_CODE";
658
+ result?: any;
659
+ }>, z.ZodObject<{
660
+ status: z.ZodLiteral<"error">;
661
+ action_attempt_id: z.ZodString;
662
+ result: z.ZodNull;
663
+ action_type: z.ZodLiteral<"CREATE_ACCESS_CODE">;
664
+ error: z.ZodObject<{
665
+ type: z.ZodString;
666
+ message: z.ZodString;
667
+ }, "strip", z.ZodTypeAny, {
668
+ type: string;
669
+ message: string;
670
+ }, {
671
+ type: string;
672
+ message: string;
673
+ }>;
674
+ }, "strip", z.ZodTypeAny, {
675
+ error: {
676
+ type: string;
677
+ message: string;
678
+ };
679
+ status: "error";
680
+ action_attempt_id: string;
681
+ result: null;
682
+ action_type: "CREATE_ACCESS_CODE";
683
+ }, {
684
+ error: {
685
+ type: string;
686
+ message: string;
687
+ };
688
+ status: "error";
689
+ action_attempt_id: string;
690
+ result: null;
691
+ action_type: "CREATE_ACCESS_CODE";
692
+ }>, z.ZodObject<{
693
+ error: z.ZodNull;
694
+ status: z.ZodLiteral<"pending">;
695
+ action_attempt_id: z.ZodString;
696
+ result: z.ZodNull;
697
+ action_type: z.ZodLiteral<"DELETE_ACCESS_CODE">;
698
+ }, "strip", z.ZodTypeAny, {
699
+ error: null;
700
+ status: "pending";
701
+ action_attempt_id: string;
702
+ result: null;
703
+ action_type: "DELETE_ACCESS_CODE";
704
+ }, {
705
+ error: null;
706
+ status: "pending";
707
+ action_attempt_id: string;
708
+ result: null;
709
+ action_type: "DELETE_ACCESS_CODE";
710
+ }>, z.ZodObject<{
711
+ error: z.ZodNull;
712
+ status: z.ZodLiteral<"success">;
713
+ action_attempt_id: z.ZodString;
714
+ action_type: z.ZodLiteral<"DELETE_ACCESS_CODE">;
715
+ result: z.ZodAny;
716
+ }, "strip", z.ZodTypeAny, {
717
+ error: null;
718
+ status: "success";
719
+ action_attempt_id: string;
720
+ action_type: "DELETE_ACCESS_CODE";
721
+ result?: any;
722
+ }, {
723
+ error: null;
724
+ status: "success";
725
+ action_attempt_id: string;
726
+ action_type: "DELETE_ACCESS_CODE";
727
+ result?: any;
728
+ }>, z.ZodObject<{
729
+ status: z.ZodLiteral<"error">;
730
+ action_attempt_id: z.ZodString;
731
+ result: z.ZodNull;
732
+ action_type: z.ZodLiteral<"DELETE_ACCESS_CODE">;
733
+ error: z.ZodObject<{
734
+ type: z.ZodString;
735
+ message: z.ZodString;
736
+ }, "strip", z.ZodTypeAny, {
737
+ type: string;
738
+ message: string;
739
+ }, {
740
+ type: string;
741
+ message: string;
742
+ }>;
743
+ }, "strip", z.ZodTypeAny, {
744
+ error: {
745
+ type: string;
746
+ message: string;
747
+ };
748
+ status: "error";
749
+ action_attempt_id: string;
750
+ result: null;
751
+ action_type: "DELETE_ACCESS_CODE";
752
+ }, {
753
+ error: {
754
+ type: string;
755
+ message: string;
756
+ };
757
+ status: "error";
758
+ action_attempt_id: string;
759
+ result: null;
760
+ action_type: "DELETE_ACCESS_CODE";
761
+ }>, z.ZodObject<{
762
+ error: z.ZodNull;
763
+ status: z.ZodLiteral<"pending">;
764
+ action_attempt_id: z.ZodString;
765
+ result: z.ZodNull;
766
+ action_type: z.ZodLiteral<"UPDATE_ACCESS_CODE">;
767
+ }, "strip", z.ZodTypeAny, {
768
+ error: null;
769
+ status: "pending";
770
+ action_attempt_id: string;
771
+ result: null;
772
+ action_type: "UPDATE_ACCESS_CODE";
773
+ }, {
774
+ error: null;
775
+ status: "pending";
776
+ action_attempt_id: string;
777
+ result: null;
778
+ action_type: "UPDATE_ACCESS_CODE";
779
+ }>, z.ZodObject<{
780
+ error: z.ZodNull;
781
+ status: z.ZodLiteral<"success">;
782
+ action_attempt_id: z.ZodString;
783
+ action_type: z.ZodLiteral<"UPDATE_ACCESS_CODE">;
784
+ result: z.ZodAny;
785
+ }, "strip", z.ZodTypeAny, {
786
+ error: null;
787
+ status: "success";
788
+ action_attempt_id: string;
789
+ action_type: "UPDATE_ACCESS_CODE";
790
+ result?: any;
791
+ }, {
792
+ error: null;
793
+ status: "success";
794
+ action_attempt_id: string;
795
+ action_type: "UPDATE_ACCESS_CODE";
796
+ result?: any;
797
+ }>, z.ZodObject<{
798
+ status: z.ZodLiteral<"error">;
799
+ action_attempt_id: z.ZodString;
800
+ result: z.ZodNull;
801
+ action_type: z.ZodLiteral<"UPDATE_ACCESS_CODE">;
802
+ error: z.ZodObject<{
803
+ type: z.ZodString;
804
+ message: z.ZodString;
805
+ }, "strip", z.ZodTypeAny, {
806
+ type: string;
807
+ message: string;
808
+ }, {
809
+ type: string;
810
+ message: string;
811
+ }>;
812
+ }, "strip", z.ZodTypeAny, {
813
+ error: {
814
+ type: string;
815
+ message: string;
816
+ };
817
+ status: "error";
818
+ action_attempt_id: string;
819
+ result: null;
820
+ action_type: "UPDATE_ACCESS_CODE";
821
+ }, {
822
+ error: {
823
+ type: string;
824
+ message: string;
825
+ };
826
+ status: "error";
827
+ action_attempt_id: string;
828
+ result: null;
829
+ action_type: "UPDATE_ACCESS_CODE";
830
+ }>, z.ZodObject<{
831
+ error: z.ZodNull;
832
+ status: z.ZodLiteral<"pending">;
833
+ action_attempt_id: z.ZodString;
834
+ result: z.ZodNull;
835
+ action_type: z.ZodLiteral<"CREATE_NOISE_THRESHOLD">;
836
+ }, "strip", z.ZodTypeAny, {
837
+ error: null;
838
+ status: "pending";
839
+ action_attempt_id: string;
840
+ result: null;
841
+ action_type: "CREATE_NOISE_THRESHOLD";
842
+ }, {
843
+ error: null;
844
+ status: "pending";
845
+ action_attempt_id: string;
846
+ result: null;
847
+ action_type: "CREATE_NOISE_THRESHOLD";
848
+ }>, z.ZodObject<{
849
+ error: z.ZodNull;
850
+ status: z.ZodLiteral<"success">;
851
+ action_attempt_id: z.ZodString;
852
+ action_type: z.ZodLiteral<"CREATE_NOISE_THRESHOLD">;
853
+ result: z.ZodAny;
854
+ }, "strip", z.ZodTypeAny, {
855
+ error: null;
856
+ status: "success";
857
+ action_attempt_id: string;
858
+ action_type: "CREATE_NOISE_THRESHOLD";
859
+ result?: any;
860
+ }, {
861
+ error: null;
862
+ status: "success";
863
+ action_attempt_id: string;
864
+ action_type: "CREATE_NOISE_THRESHOLD";
865
+ result?: any;
866
+ }>, z.ZodObject<{
867
+ status: z.ZodLiteral<"error">;
868
+ action_attempt_id: z.ZodString;
869
+ result: z.ZodNull;
870
+ action_type: z.ZodLiteral<"CREATE_NOISE_THRESHOLD">;
871
+ error: z.ZodObject<{
872
+ type: z.ZodString;
873
+ message: z.ZodString;
874
+ }, "strip", z.ZodTypeAny, {
875
+ type: string;
876
+ message: string;
877
+ }, {
878
+ type: string;
879
+ message: string;
880
+ }>;
881
+ }, "strip", z.ZodTypeAny, {
882
+ error: {
883
+ type: string;
884
+ message: string;
885
+ };
886
+ status: "error";
887
+ action_attempt_id: string;
888
+ result: null;
889
+ action_type: "CREATE_NOISE_THRESHOLD";
890
+ }, {
891
+ error: {
892
+ type: string;
893
+ message: string;
894
+ };
895
+ status: "error";
896
+ action_attempt_id: string;
897
+ result: null;
898
+ action_type: "CREATE_NOISE_THRESHOLD";
899
+ }>, z.ZodObject<{
900
+ error: z.ZodNull;
901
+ status: z.ZodLiteral<"pending">;
902
+ action_attempt_id: z.ZodString;
903
+ result: z.ZodNull;
904
+ action_type: z.ZodLiteral<"DELETE_NOISE_THRESHOLD">;
905
+ }, "strip", z.ZodTypeAny, {
906
+ error: null;
907
+ status: "pending";
908
+ action_attempt_id: string;
909
+ result: null;
910
+ action_type: "DELETE_NOISE_THRESHOLD";
911
+ }, {
912
+ error: null;
913
+ status: "pending";
914
+ action_attempt_id: string;
915
+ result: null;
916
+ action_type: "DELETE_NOISE_THRESHOLD";
917
+ }>, z.ZodObject<{
918
+ error: z.ZodNull;
919
+ status: z.ZodLiteral<"success">;
920
+ action_attempt_id: z.ZodString;
921
+ action_type: z.ZodLiteral<"DELETE_NOISE_THRESHOLD">;
922
+ result: z.ZodAny;
923
+ }, "strip", z.ZodTypeAny, {
924
+ error: null;
925
+ status: "success";
926
+ action_attempt_id: string;
927
+ action_type: "DELETE_NOISE_THRESHOLD";
928
+ result?: any;
929
+ }, {
930
+ error: null;
931
+ status: "success";
932
+ action_attempt_id: string;
933
+ action_type: "DELETE_NOISE_THRESHOLD";
934
+ result?: any;
935
+ }>, z.ZodObject<{
936
+ status: z.ZodLiteral<"error">;
937
+ action_attempt_id: z.ZodString;
938
+ result: z.ZodNull;
939
+ action_type: z.ZodLiteral<"DELETE_NOISE_THRESHOLD">;
940
+ error: z.ZodObject<{
941
+ type: z.ZodString;
942
+ message: z.ZodString;
943
+ }, "strip", z.ZodTypeAny, {
944
+ type: string;
945
+ message: string;
946
+ }, {
947
+ type: string;
948
+ message: string;
949
+ }>;
950
+ }, "strip", z.ZodTypeAny, {
951
+ error: {
952
+ type: string;
953
+ message: string;
954
+ };
955
+ status: "error";
956
+ action_attempt_id: string;
957
+ result: null;
958
+ action_type: "DELETE_NOISE_THRESHOLD";
959
+ }, {
960
+ error: {
961
+ type: string;
962
+ message: string;
963
+ };
964
+ status: "error";
965
+ action_attempt_id: string;
966
+ result: null;
967
+ action_type: "DELETE_NOISE_THRESHOLD";
968
+ }>, z.ZodObject<{
969
+ error: z.ZodNull;
970
+ status: z.ZodLiteral<"pending">;
971
+ action_attempt_id: z.ZodString;
972
+ result: z.ZodNull;
973
+ action_type: z.ZodLiteral<"UPDATE_NOISE_THRESHOLD">;
974
+ }, "strip", z.ZodTypeAny, {
975
+ error: null;
976
+ status: "pending";
977
+ action_attempt_id: string;
978
+ result: null;
979
+ action_type: "UPDATE_NOISE_THRESHOLD";
980
+ }, {
981
+ error: null;
982
+ status: "pending";
983
+ action_attempt_id: string;
984
+ result: null;
985
+ action_type: "UPDATE_NOISE_THRESHOLD";
986
+ }>, z.ZodObject<{
987
+ error: z.ZodNull;
988
+ status: z.ZodLiteral<"success">;
989
+ action_attempt_id: z.ZodString;
990
+ action_type: z.ZodLiteral<"UPDATE_NOISE_THRESHOLD">;
991
+ result: z.ZodAny;
992
+ }, "strip", z.ZodTypeAny, {
993
+ error: null;
994
+ status: "success";
995
+ action_attempt_id: string;
996
+ action_type: "UPDATE_NOISE_THRESHOLD";
997
+ result?: any;
998
+ }, {
999
+ error: null;
1000
+ status: "success";
1001
+ action_attempt_id: string;
1002
+ action_type: "UPDATE_NOISE_THRESHOLD";
1003
+ result?: any;
1004
+ }>, z.ZodObject<{
1005
+ status: z.ZodLiteral<"error">;
1006
+ action_attempt_id: z.ZodString;
1007
+ result: z.ZodNull;
1008
+ action_type: z.ZodLiteral<"UPDATE_NOISE_THRESHOLD">;
1009
+ error: z.ZodObject<{
1010
+ type: z.ZodString;
1011
+ message: z.ZodString;
1012
+ }, "strip", z.ZodTypeAny, {
1013
+ type: string;
1014
+ message: string;
1015
+ }, {
1016
+ type: string;
1017
+ message: string;
1018
+ }>;
1019
+ }, "strip", z.ZodTypeAny, {
1020
+ error: {
1021
+ type: string;
1022
+ message: string;
1023
+ };
1024
+ status: "error";
1025
+ action_attempt_id: string;
1026
+ result: null;
1027
+ action_type: "UPDATE_NOISE_THRESHOLD";
1028
+ }, {
1029
+ error: {
1030
+ type: string;
1031
+ message: string;
1032
+ };
1033
+ status: "error";
1034
+ action_attempt_id: string;
1035
+ result: null;
1036
+ action_type: "UPDATE_NOISE_THRESHOLD";
554
1037
  }>]>;
555
1038
  export type ActionAttempt = z.infer<typeof action_attempt>;
556
- export type ActionAttemptType = ActionAttempt['action_type'];
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { deprecated_action_attempts } from './deprecated.js';
2
3
  import { lock_door_action_attempt } from './lock-door.js';
3
4
  import { reset_sandbox_workspace_action_attempt } from './reset-sandbox-workspace.js';
4
5
  import { set_cool_action_attempt } from './set-cool.js';
@@ -16,5 +17,6 @@ export const action_attempt = z.union([
16
17
  ...set_heat_cool_action_attempt.options,
17
18
  ...set_fan_mode_action_attempt.options,
18
19
  ...set_thermostat_off_action_attempt.options,
20
+ ...deprecated_action_attempts,
19
21
  ]);
20
22
  //# sourceMappingURL=action-attempt.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,iCAAiC,CAAC,OAAO;CAC7C,CAAC,CAAA"}
1
+ {"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,iCAAiC,CAAC,OAAO;IAC5C,GAAG,0BAA0B;CAC9B,CAAC,CAAA"}