@awarevue/api-types 2.0.83 → 2.0.84

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.
@@ -77,11 +77,11 @@ export declare const sRegisterRq: z.ZodObject<{
77
77
  person: "person";
78
78
  zone: "zone";
79
79
  schedule: "schedule";
80
- device: "device";
81
80
  accessRule: "accessRule";
82
81
  }>>;
83
82
  oneSchedulePerDoor: z.ZodBoolean;
84
83
  }, z.core.$strip>>>;
84
+ testerCliTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
85
85
  }, z.core.$strip>;
86
86
  export declare const sRegisterRs: z.ZodObject<{
87
87
  requestId: z.ZodString;
@@ -649,23 +649,106 @@ export declare const sGetAvailableDevicesRs: z.ZodObject<{
649
649
  provider: z.ZodString;
650
650
  }, z.core.$strip>>>;
651
651
  }, z.core.$strip>;
652
- export declare const sObjectMerge: z.ZodUnion<readonly [z.ZodObject<{
653
- kind: z.ZodLiteral<"merge">;
654
- objectId: z.ZodString;
655
- objectKind: z.ZodLiteral<"accessRule">;
656
- original: z.ZodObject<{
657
- displayName: z.ZodString;
658
- appliedTo: z.ZodArray<z.ZodString>;
659
- permissions: z.ZodArray<z.ZodObject<{
660
- deviceId: z.ZodString;
661
- scheduleId: z.ZodString;
652
+ export declare const sExternalPersonProps: z.ZodObject<{
653
+ firstName: z.ZodString;
654
+ lastName: z.ZodString;
655
+ validFrom: z.ZodNullable<z.ZodNumber>;
656
+ validTo: z.ZodNullable<z.ZodNumber>;
657
+ accessSuspended: z.ZodBoolean;
658
+ credentials: z.ZodArray<z.ZodObject<{
659
+ type: z.ZodEnum<{
660
+ card: "card";
661
+ pin: "pin";
662
+ fingerprint: "fingerprint";
663
+ }>;
664
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
665
+ }, z.core.$strip>>;
666
+ }, z.core.$strip>;
667
+ export declare const sExternalScheduleProps: z.ZodObject<{
668
+ displayName: z.ZodString;
669
+ include: z.ZodObject<{
670
+ startDate: z.ZodNullable<z.ZodString>;
671
+ endDate: z.ZodNullable<z.ZodString>;
672
+ timeIntervals: z.ZodArray<z.ZodObject<{
673
+ weekDay: z.ZodEnum<{
674
+ mon: "mon";
675
+ tue: "tue";
676
+ wed: "wed";
677
+ thu: "thu";
678
+ fri: "fri";
679
+ sat: "sat";
680
+ sun: "sun";
681
+ }>;
682
+ from: z.ZodNumber;
683
+ to: z.ZodNumber;
662
684
  }, z.core.$strip>>;
663
- groupPermissions: z.ZodArray<z.ZodObject<{
664
- groupId: z.ZodString;
665
- scheduleId: z.ZodString;
685
+ repeat: z.ZodNullable<z.ZodEnum<{
686
+ daily: "daily";
687
+ weekly: "weekly";
688
+ monthly: "monthly";
689
+ yearly: "yearly";
690
+ }>>;
691
+ }, z.core.$strip>;
692
+ }, z.core.$strip>;
693
+ export declare const sExternalAccessRuleProps: z.ZodObject<{
694
+ displayName: z.ZodString;
695
+ appliedTo: z.ZodArray<z.ZodString>;
696
+ permissions: z.ZodArray<z.ZodObject<{
697
+ deviceId: z.ZodString;
698
+ scheduleId: z.ZodString;
699
+ }, z.core.$strip>>;
700
+ groupPermissions: z.ZodArray<z.ZodObject<{
701
+ groupId: z.ZodString;
702
+ scheduleId: z.ZodString;
703
+ }, z.core.$strip>>;
704
+ }, z.core.$strip>;
705
+ export declare const sExternalZoneProps: z.ZodObject<{
706
+ displayName: z.ZodString;
707
+ devices: z.ZodArray<z.ZodString>;
708
+ }, z.core.$strip>;
709
+ export declare const sExternalObjectProps: z.ZodObject<{
710
+ person: z.ZodObject<{
711
+ firstName: z.ZodString;
712
+ lastName: z.ZodString;
713
+ validFrom: z.ZodNullable<z.ZodNumber>;
714
+ validTo: z.ZodNullable<z.ZodNumber>;
715
+ accessSuspended: z.ZodBoolean;
716
+ credentials: z.ZodArray<z.ZodObject<{
717
+ type: z.ZodEnum<{
718
+ card: "card";
719
+ pin: "pin";
720
+ fingerprint: "fingerprint";
721
+ }>;
722
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
666
723
  }, z.core.$strip>>;
667
724
  }, z.core.$strip>;
668
- props: z.ZodObject<{
725
+ schedule: z.ZodObject<{
726
+ displayName: z.ZodString;
727
+ include: z.ZodObject<{
728
+ startDate: z.ZodNullable<z.ZodString>;
729
+ endDate: z.ZodNullable<z.ZodString>;
730
+ timeIntervals: z.ZodArray<z.ZodObject<{
731
+ weekDay: z.ZodEnum<{
732
+ mon: "mon";
733
+ tue: "tue";
734
+ wed: "wed";
735
+ thu: "thu";
736
+ fri: "fri";
737
+ sat: "sat";
738
+ sun: "sun";
739
+ }>;
740
+ from: z.ZodNumber;
741
+ to: z.ZodNumber;
742
+ }, z.core.$strip>>;
743
+ repeat: z.ZodNullable<z.ZodEnum<{
744
+ daily: "daily";
745
+ weekly: "weekly";
746
+ monthly: "monthly";
747
+ yearly: "yearly";
748
+ }>>;
749
+ }, z.core.$strip>;
750
+ }, z.core.$strip>;
751
+ accessRule: z.ZodObject<{
669
752
  displayName: z.ZodString;
670
753
  appliedTo: z.ZodArray<z.ZodString>;
671
754
  permissions: z.ZodArray<z.ZodObject<{
@@ -677,7 +760,12 @@ export declare const sObjectMerge: z.ZodUnion<readonly [z.ZodObject<{
677
760
  scheduleId: z.ZodString;
678
761
  }, z.core.$strip>>;
679
762
  }, z.core.$strip>;
680
- }, z.core.$strip>, z.ZodObject<{
763
+ zone: z.ZodObject<{
764
+ displayName: z.ZodString;
765
+ devices: z.ZodArray<z.ZodString>;
766
+ }, z.core.$strip>;
767
+ }, z.core.$strip>;
768
+ export declare const sObjectMerge: z.ZodUnion<readonly [z.ZodObject<{
681
769
  kind: z.ZodLiteral<"merge">;
682
770
  objectId: z.ZodString;
683
771
  objectKind: z.ZodLiteral<"accessRule">;
@@ -711,11 +799,7 @@ export declare const sObjectMerge: z.ZodUnion<readonly [z.ZodObject<{
711
799
  objectKind: z.ZodLiteral<"schedule">;
712
800
  original: z.ZodObject<{
713
801
  displayName: z.ZodString;
714
- flag: z.ZodNullable<z.ZodEnum<{
715
- never: "never";
716
- always: "always";
717
- }>>;
718
- include: z.ZodNullable<z.ZodObject<{
802
+ include: z.ZodObject<{
719
803
  startDate: z.ZodNullable<z.ZodString>;
720
804
  endDate: z.ZodNullable<z.ZodString>;
721
805
  timeIntervals: z.ZodArray<z.ZodObject<{
@@ -737,8 +821,11 @@ export declare const sObjectMerge: z.ZodUnion<readonly [z.ZodObject<{
737
821
  monthly: "monthly";
738
822
  yearly: "yearly";
739
823
  }>>;
740
- }, z.core.$strip>>;
741
- exclude: z.ZodNullable<z.ZodObject<{
824
+ }, z.core.$strip>;
825
+ }, z.core.$strip>;
826
+ props: z.ZodObject<{
827
+ displayName: z.ZodOptional<z.ZodString>;
828
+ include: z.ZodOptional<z.ZodObject<{
742
829
  startDate: z.ZodNullable<z.ZodString>;
743
830
  endDate: z.ZodNullable<z.ZodString>;
744
831
  timeIntervals: z.ZodArray<z.ZodObject<{
@@ -762,70 +849,76 @@ export declare const sObjectMerge: z.ZodUnion<readonly [z.ZodObject<{
762
849
  }>>;
763
850
  }, z.core.$strip>>;
764
851
  }, z.core.$strip>;
852
+ }, z.core.$strip>, z.ZodObject<{
853
+ kind: z.ZodLiteral<"merge">;
854
+ objectId: z.ZodString;
855
+ objectKind: z.ZodLiteral<"person">;
856
+ original: z.ZodObject<{
857
+ firstName: z.ZodString;
858
+ lastName: z.ZodString;
859
+ validFrom: z.ZodNullable<z.ZodNumber>;
860
+ validTo: z.ZodNullable<z.ZodNumber>;
861
+ accessSuspended: z.ZodBoolean;
862
+ credentials: z.ZodArray<z.ZodObject<{
863
+ type: z.ZodEnum<{
864
+ card: "card";
865
+ pin: "pin";
866
+ fingerprint: "fingerprint";
867
+ }>;
868
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
869
+ }, z.core.$strip>>;
870
+ }, z.core.$strip>;
765
871
  props: z.ZodObject<{
872
+ firstName: z.ZodOptional<z.ZodString>;
873
+ lastName: z.ZodOptional<z.ZodString>;
874
+ validFrom: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
875
+ validTo: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
876
+ accessSuspended: z.ZodOptional<z.ZodBoolean>;
877
+ credentials: z.ZodOptional<z.ZodArray<z.ZodObject<{
878
+ type: z.ZodEnum<{
879
+ card: "card";
880
+ pin: "pin";
881
+ fingerprint: "fingerprint";
882
+ }>;
883
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
884
+ }, z.core.$strip>>>;
885
+ }, z.core.$strip>;
886
+ }, z.core.$strip>, z.ZodObject<{
887
+ kind: z.ZodLiteral<"merge">;
888
+ objectId: z.ZodString;
889
+ objectKind: z.ZodLiteral<"zone">;
890
+ original: z.ZodObject<{
766
891
  displayName: z.ZodString;
767
- flag: z.ZodNullable<z.ZodEnum<{
768
- never: "never";
769
- always: "always";
770
- }>>;
771
- include: z.ZodNullable<z.ZodObject<{
772
- startDate: z.ZodNullable<z.ZodString>;
773
- endDate: z.ZodNullable<z.ZodString>;
774
- timeIntervals: z.ZodArray<z.ZodObject<{
775
- weekDay: z.ZodEnum<{
776
- mon: "mon";
777
- tue: "tue";
778
- wed: "wed";
779
- thu: "thu";
780
- fri: "fri";
781
- sat: "sat";
782
- sun: "sun";
783
- }>;
784
- from: z.ZodNumber;
785
- to: z.ZodNumber;
786
- }, z.core.$strip>>;
787
- repeat: z.ZodNullable<z.ZodEnum<{
788
- daily: "daily";
789
- weekly: "weekly";
790
- monthly: "monthly";
791
- yearly: "yearly";
792
- }>>;
892
+ devices: z.ZodArray<z.ZodString>;
893
+ }, z.core.$strip>;
894
+ props: z.ZodObject<{
895
+ displayName: z.ZodOptional<z.ZodString>;
896
+ devices: z.ZodOptional<z.ZodArray<z.ZodString>>;
897
+ }, z.core.$strip>;
898
+ }, z.core.$strip>]>;
899
+ export declare const sObjectDelete: z.ZodUnion<readonly [z.ZodObject<{
900
+ kind: z.ZodLiteral<"delete">;
901
+ objectId: z.ZodString;
902
+ objectKind: z.ZodLiteral<"accessRule">;
903
+ original: z.ZodObject<{
904
+ displayName: z.ZodString;
905
+ appliedTo: z.ZodArray<z.ZodString>;
906
+ permissions: z.ZodArray<z.ZodObject<{
907
+ deviceId: z.ZodString;
908
+ scheduleId: z.ZodString;
793
909
  }, z.core.$strip>>;
794
- exclude: z.ZodNullable<z.ZodObject<{
795
- startDate: z.ZodNullable<z.ZodString>;
796
- endDate: z.ZodNullable<z.ZodString>;
797
- timeIntervals: z.ZodArray<z.ZodObject<{
798
- weekDay: z.ZodEnum<{
799
- mon: "mon";
800
- tue: "tue";
801
- wed: "wed";
802
- thu: "thu";
803
- fri: "fri";
804
- sat: "sat";
805
- sun: "sun";
806
- }>;
807
- from: z.ZodNumber;
808
- to: z.ZodNumber;
809
- }, z.core.$strip>>;
810
- repeat: z.ZodNullable<z.ZodEnum<{
811
- daily: "daily";
812
- weekly: "weekly";
813
- monthly: "monthly";
814
- yearly: "yearly";
815
- }>>;
910
+ groupPermissions: z.ZodArray<z.ZodObject<{
911
+ groupId: z.ZodString;
912
+ scheduleId: z.ZodString;
816
913
  }, z.core.$strip>>;
817
914
  }, z.core.$strip>;
818
915
  }, z.core.$strip>, z.ZodObject<{
819
- kind: z.ZodLiteral<"merge">;
916
+ kind: z.ZodLiteral<"delete">;
820
917
  objectId: z.ZodString;
821
918
  objectKind: z.ZodLiteral<"schedule">;
822
919
  original: z.ZodObject<{
823
920
  displayName: z.ZodString;
824
- flag: z.ZodNullable<z.ZodEnum<{
825
- never: "never";
826
- always: "always";
827
- }>>;
828
- include: z.ZodNullable<z.ZodObject<{
921
+ include: z.ZodObject<{
829
922
  startDate: z.ZodNullable<z.ZodString>;
830
923
  endDate: z.ZodNullable<z.ZodString>;
831
924
  timeIntervals: z.ZodArray<z.ZodObject<{
@@ -847,38 +940,71 @@ export declare const sObjectMerge: z.ZodUnion<readonly [z.ZodObject<{
847
940
  monthly: "monthly";
848
941
  yearly: "yearly";
849
942
  }>>;
943
+ }, z.core.$strip>;
944
+ }, z.core.$strip>;
945
+ }, z.core.$strip>, z.ZodObject<{
946
+ kind: z.ZodLiteral<"delete">;
947
+ objectId: z.ZodString;
948
+ objectKind: z.ZodLiteral<"person">;
949
+ original: z.ZodObject<{
950
+ firstName: z.ZodString;
951
+ lastName: z.ZodString;
952
+ validFrom: z.ZodNullable<z.ZodNumber>;
953
+ validTo: z.ZodNullable<z.ZodNumber>;
954
+ accessSuspended: z.ZodBoolean;
955
+ credentials: z.ZodArray<z.ZodObject<{
956
+ type: z.ZodEnum<{
957
+ card: "card";
958
+ pin: "pin";
959
+ fingerprint: "fingerprint";
960
+ }>;
961
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
850
962
  }, z.core.$strip>>;
851
- exclude: z.ZodNullable<z.ZodObject<{
852
- startDate: z.ZodNullable<z.ZodString>;
853
- endDate: z.ZodNullable<z.ZodString>;
854
- timeIntervals: z.ZodArray<z.ZodObject<{
855
- weekDay: z.ZodEnum<{
856
- mon: "mon";
857
- tue: "tue";
858
- wed: "wed";
859
- thu: "thu";
860
- fri: "fri";
861
- sat: "sat";
862
- sun: "sun";
863
- }>;
864
- from: z.ZodNumber;
865
- to: z.ZodNumber;
866
- }, z.core.$strip>>;
867
- repeat: z.ZodNullable<z.ZodEnum<{
868
- daily: "daily";
869
- weekly: "weekly";
870
- monthly: "monthly";
871
- yearly: "yearly";
872
- }>>;
963
+ }, z.core.$strip>;
964
+ }, z.core.$strip>, z.ZodObject<{
965
+ kind: z.ZodLiteral<"delete">;
966
+ objectId: z.ZodString;
967
+ objectKind: z.ZodLiteral<"zone">;
968
+ original: z.ZodObject<{
969
+ displayName: z.ZodString;
970
+ devices: z.ZodArray<z.ZodString>;
971
+ }, z.core.$strip>;
972
+ }, z.core.$strip>]>;
973
+ export declare const sAccessMutation: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
974
+ kind: z.ZodLiteral<"merge">;
975
+ objectId: z.ZodString;
976
+ objectKind: z.ZodLiteral<"accessRule">;
977
+ original: z.ZodObject<{
978
+ displayName: z.ZodString;
979
+ appliedTo: z.ZodArray<z.ZodString>;
980
+ permissions: z.ZodArray<z.ZodObject<{
981
+ deviceId: z.ZodString;
982
+ scheduleId: z.ZodString;
983
+ }, z.core.$strip>>;
984
+ groupPermissions: z.ZodArray<z.ZodObject<{
985
+ groupId: z.ZodString;
986
+ scheduleId: z.ZodString;
873
987
  }, z.core.$strip>>;
874
988
  }, z.core.$strip>;
875
989
  props: z.ZodObject<{
876
990
  displayName: z.ZodOptional<z.ZodString>;
877
- flag: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
878
- never: "never";
879
- always: "always";
880
- }>>>;
881
- include: z.ZodOptional<z.ZodNullable<z.ZodObject<{
991
+ appliedTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
992
+ permissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
993
+ deviceId: z.ZodString;
994
+ scheduleId: z.ZodString;
995
+ }, z.core.$strip>>>;
996
+ groupPermissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
997
+ groupId: z.ZodString;
998
+ scheduleId: z.ZodString;
999
+ }, z.core.$strip>>>;
1000
+ }, z.core.$strip>;
1001
+ }, z.core.$strip>, z.ZodObject<{
1002
+ kind: z.ZodLiteral<"merge">;
1003
+ objectId: z.ZodString;
1004
+ objectKind: z.ZodLiteral<"schedule">;
1005
+ original: z.ZodObject<{
1006
+ displayName: z.ZodString;
1007
+ include: z.ZodObject<{
882
1008
  startDate: z.ZodNullable<z.ZodString>;
883
1009
  endDate: z.ZodNullable<z.ZodString>;
884
1010
  timeIntervals: z.ZodArray<z.ZodObject<{
@@ -900,8 +1026,11 @@ export declare const sObjectMerge: z.ZodUnion<readonly [z.ZodObject<{
900
1026
  monthly: "monthly";
901
1027
  yearly: "yearly";
902
1028
  }>>;
903
- }, z.core.$strip>>>;
904
- exclude: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1029
+ }, z.core.$strip>;
1030
+ }, z.core.$strip>;
1031
+ props: z.ZodObject<{
1032
+ displayName: z.ZodOptional<z.ZodString>;
1033
+ include: z.ZodOptional<z.ZodObject<{
905
1034
  startDate: z.ZodNullable<z.ZodString>;
906
1035
  endDate: z.ZodNullable<z.ZodString>;
907
1036
  timeIntervals: z.ZodArray<z.ZodObject<{
@@ -923,7 +1052,7 @@ export declare const sObjectMerge: z.ZodUnion<readonly [z.ZodObject<{
923
1052
  monthly: "monthly";
924
1053
  yearly: "yearly";
925
1054
  }>>;
926
- }, z.core.$strip>>>;
1055
+ }, z.core.$strip>>;
927
1056
  }, z.core.$strip>;
928
1057
  }, z.core.$strip>, z.ZodObject<{
929
1058
  kind: z.ZodLiteral<"merge">;
@@ -932,12 +1061,9 @@ export declare const sObjectMerge: z.ZodUnion<readonly [z.ZodObject<{
932
1061
  original: z.ZodObject<{
933
1062
  firstName: z.ZodString;
934
1063
  lastName: z.ZodString;
935
- position: z.ZodNullable<z.ZodString>;
1064
+ validFrom: z.ZodNullable<z.ZodNumber>;
1065
+ validTo: z.ZodNullable<z.ZodNumber>;
936
1066
  accessSuspended: z.ZodBoolean;
937
- staffMember: z.ZodBoolean;
938
- validFrom: z.ZodNullable<z.ZodString>;
939
- validTo: z.ZodNullable<z.ZodString>;
940
- avatarId: z.ZodNullable<z.ZodString>;
941
1067
  credentials: z.ZodArray<z.ZodObject<{
942
1068
  type: z.ZodEnum<{
943
1069
  card: "card";
@@ -945,69 +1071,14 @@ export declare const sObjectMerge: z.ZodUnion<readonly [z.ZodObject<{
945
1071
  fingerprint: "fingerprint";
946
1072
  }>;
947
1073
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
948
- note: z.ZodNullable<z.ZodString>;
949
1074
  }, z.core.$strip>>;
950
- accessRules: z.ZodArray<z.ZodString>;
951
- customFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
952
- type: z.ZodString;
953
- }, z.core.$strip>;
954
- props: z.ZodObject<{
955
- firstName: z.ZodString;
956
- lastName: z.ZodString;
957
- position: z.ZodNullable<z.ZodString>;
958
- accessSuspended: z.ZodBoolean;
959
- staffMember: z.ZodBoolean;
960
- validFrom: z.ZodNullable<z.ZodString>;
961
- validTo: z.ZodNullable<z.ZodString>;
962
- avatarId: z.ZodNullable<z.ZodString>;
963
- credentials: z.ZodArray<z.ZodObject<{
964
- type: z.ZodEnum<{
965
- card: "card";
966
- pin: "pin";
967
- fingerprint: "fingerprint";
968
- }>;
969
- value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
970
- note: z.ZodNullable<z.ZodString>;
971
- }, z.core.$strip>>;
972
- accessRules: z.ZodArray<z.ZodString>;
973
- customFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
974
- type: z.ZodString;
975
- }, z.core.$strip>;
976
- }, z.core.$strip>, z.ZodObject<{
977
- kind: z.ZodLiteral<"merge">;
978
- objectId: z.ZodString;
979
- objectKind: z.ZodLiteral<"person">;
980
- original: z.ZodObject<{
981
- firstName: z.ZodString;
982
- lastName: z.ZodString;
983
- position: z.ZodNullable<z.ZodString>;
984
- accessSuspended: z.ZodBoolean;
985
- staffMember: z.ZodBoolean;
986
- validFrom: z.ZodNullable<z.ZodString>;
987
- validTo: z.ZodNullable<z.ZodString>;
988
- avatarId: z.ZodNullable<z.ZodString>;
989
- credentials: z.ZodArray<z.ZodObject<{
990
- type: z.ZodEnum<{
991
- card: "card";
992
- pin: "pin";
993
- fingerprint: "fingerprint";
994
- }>;
995
- value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
996
- note: z.ZodNullable<z.ZodString>;
997
- }, z.core.$strip>>;
998
- accessRules: z.ZodArray<z.ZodString>;
999
- customFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
1000
- type: z.ZodString;
1001
1075
  }, z.core.$strip>;
1002
1076
  props: z.ZodObject<{
1003
1077
  firstName: z.ZodOptional<z.ZodString>;
1004
1078
  lastName: z.ZodOptional<z.ZodString>;
1005
- position: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1079
+ validFrom: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1080
+ validTo: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1006
1081
  accessSuspended: z.ZodOptional<z.ZodBoolean>;
1007
- staffMember: z.ZodOptional<z.ZodBoolean>;
1008
- validFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1009
- validTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1010
- avatarId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1011
1082
  credentials: z.ZodOptional<z.ZodArray<z.ZodObject<{
1012
1083
  type: z.ZodEnum<{
1013
1084
  card: "card";
@@ -1015,23 +1086,7 @@ export declare const sObjectMerge: z.ZodUnion<readonly [z.ZodObject<{
1015
1086
  fingerprint: "fingerprint";
1016
1087
  }>;
1017
1088
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1018
- note: z.ZodNullable<z.ZodString>;
1019
1089
  }, z.core.$strip>>>;
1020
- accessRules: z.ZodOptional<z.ZodArray<z.ZodString>>;
1021
- customFields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1022
- type: z.ZodOptional<z.ZodString>;
1023
- }, z.core.$strip>;
1024
- }, z.core.$strip>, z.ZodObject<{
1025
- kind: z.ZodLiteral<"merge">;
1026
- objectId: z.ZodString;
1027
- objectKind: z.ZodLiteral<"zone">;
1028
- original: z.ZodObject<{
1029
- displayName: z.ZodString;
1030
- devices: z.ZodArray<z.ZodString>;
1031
- }, z.core.$strip>;
1032
- props: z.ZodObject<{
1033
- displayName: z.ZodString;
1034
- devices: z.ZodArray<z.ZodString>;
1035
1090
  }, z.core.$strip>;
1036
1091
  }, z.core.$strip>, z.ZodObject<{
1037
1092
  kind: z.ZodLiteral<"merge">;
@@ -1045,8 +1100,7 @@ export declare const sObjectMerge: z.ZodUnion<readonly [z.ZodObject<{
1045
1100
  displayName: z.ZodOptional<z.ZodString>;
1046
1101
  devices: z.ZodOptional<z.ZodArray<z.ZodString>>;
1047
1102
  }, z.core.$strip>;
1048
- }, z.core.$strip>]>;
1049
- export declare const sObjectDelete: z.ZodUnion<readonly [z.ZodObject<{
1103
+ }, z.core.$strip>]>, z.ZodUnion<readonly [z.ZodObject<{
1050
1104
  kind: z.ZodLiteral<"delete">;
1051
1105
  objectId: z.ZodString;
1052
1106
  objectKind: z.ZodLiteral<"accessRule">;
@@ -1068,34 +1122,7 @@ export declare const sObjectDelete: z.ZodUnion<readonly [z.ZodObject<{
1068
1122
  objectKind: z.ZodLiteral<"schedule">;
1069
1123
  original: z.ZodObject<{
1070
1124
  displayName: z.ZodString;
1071
- flag: z.ZodNullable<z.ZodEnum<{
1072
- never: "never";
1073
- always: "always";
1074
- }>>;
1075
- include: z.ZodNullable<z.ZodObject<{
1076
- startDate: z.ZodNullable<z.ZodString>;
1077
- endDate: z.ZodNullable<z.ZodString>;
1078
- timeIntervals: z.ZodArray<z.ZodObject<{
1079
- weekDay: z.ZodEnum<{
1080
- mon: "mon";
1081
- tue: "tue";
1082
- wed: "wed";
1083
- thu: "thu";
1084
- fri: "fri";
1085
- sat: "sat";
1086
- sun: "sun";
1087
- }>;
1088
- from: z.ZodNumber;
1089
- to: z.ZodNumber;
1090
- }, z.core.$strip>>;
1091
- repeat: z.ZodNullable<z.ZodEnum<{
1092
- daily: "daily";
1093
- weekly: "weekly";
1094
- monthly: "monthly";
1095
- yearly: "yearly";
1096
- }>>;
1097
- }, z.core.$strip>>;
1098
- exclude: z.ZodNullable<z.ZodObject<{
1125
+ include: z.ZodObject<{
1099
1126
  startDate: z.ZodNullable<z.ZodString>;
1100
1127
  endDate: z.ZodNullable<z.ZodString>;
1101
1128
  timeIntervals: z.ZodArray<z.ZodObject<{
@@ -1117,7 +1144,7 @@ export declare const sObjectDelete: z.ZodUnion<readonly [z.ZodObject<{
1117
1144
  monthly: "monthly";
1118
1145
  yearly: "yearly";
1119
1146
  }>>;
1120
- }, z.core.$strip>>;
1147
+ }, z.core.$strip>;
1121
1148
  }, z.core.$strip>;
1122
1149
  }, z.core.$strip>, z.ZodObject<{
1123
1150
  kind: z.ZodLiteral<"delete">;
@@ -1126,12 +1153,9 @@ export declare const sObjectDelete: z.ZodUnion<readonly [z.ZodObject<{
1126
1153
  original: z.ZodObject<{
1127
1154
  firstName: z.ZodString;
1128
1155
  lastName: z.ZodString;
1129
- position: z.ZodNullable<z.ZodString>;
1156
+ validFrom: z.ZodNullable<z.ZodNumber>;
1157
+ validTo: z.ZodNullable<z.ZodNumber>;
1130
1158
  accessSuspended: z.ZodBoolean;
1131
- staffMember: z.ZodBoolean;
1132
- validFrom: z.ZodNullable<z.ZodString>;
1133
- validTo: z.ZodNullable<z.ZodString>;
1134
- avatarId: z.ZodNullable<z.ZodString>;
1135
1159
  credentials: z.ZodArray<z.ZodObject<{
1136
1160
  type: z.ZodEnum<{
1137
1161
  card: "card";
@@ -1139,11 +1163,7 @@ export declare const sObjectDelete: z.ZodUnion<readonly [z.ZodObject<{
1139
1163
  fingerprint: "fingerprint";
1140
1164
  }>;
1141
1165
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1142
- note: z.ZodNullable<z.ZodString>;
1143
1166
  }, z.core.$strip>>;
1144
- accessRules: z.ZodArray<z.ZodString>;
1145
- customFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
1146
- type: z.ZodString;
1147
1167
  }, z.core.$strip>;
1148
1168
  }, z.core.$strip>, z.ZodObject<{
1149
1169
  kind: z.ZodLiteral<"delete">;
@@ -1153,941 +1173,49 @@ export declare const sObjectDelete: z.ZodUnion<readonly [z.ZodObject<{
1153
1173
  displayName: z.ZodString;
1154
1174
  devices: z.ZodArray<z.ZodString>;
1155
1175
  }, z.core.$strip>;
1156
- }, z.core.$strip>]>;
1157
- export declare const sAccessMutation: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
1158
- kind: z.ZodLiteral<"merge">;
1159
- objectId: z.ZodString;
1160
- objectKind: z.ZodLiteral<"accessRule">;
1161
- original: z.ZodObject<{
1162
- displayName: z.ZodString;
1163
- appliedTo: z.ZodArray<z.ZodString>;
1164
- permissions: z.ZodArray<z.ZodObject<{
1165
- deviceId: z.ZodString;
1166
- scheduleId: z.ZodString;
1167
- }, z.core.$strip>>;
1168
- groupPermissions: z.ZodArray<z.ZodObject<{
1169
- groupId: z.ZodString;
1170
- scheduleId: z.ZodString;
1171
- }, z.core.$strip>>;
1172
- }, z.core.$strip>;
1173
- props: z.ZodObject<{
1174
- displayName: z.ZodString;
1175
- appliedTo: z.ZodArray<z.ZodString>;
1176
- permissions: z.ZodArray<z.ZodObject<{
1177
- deviceId: z.ZodString;
1178
- scheduleId: z.ZodString;
1179
- }, z.core.$strip>>;
1180
- groupPermissions: z.ZodArray<z.ZodObject<{
1181
- groupId: z.ZodString;
1182
- scheduleId: z.ZodString;
1183
- }, z.core.$strip>>;
1184
- }, z.core.$strip>;
1185
- }, z.core.$strip>, z.ZodObject<{
1186
- kind: z.ZodLiteral<"merge">;
1187
- objectId: z.ZodString;
1188
- objectKind: z.ZodLiteral<"accessRule">;
1189
- original: z.ZodObject<{
1190
- displayName: z.ZodString;
1191
- appliedTo: z.ZodArray<z.ZodString>;
1192
- permissions: z.ZodArray<z.ZodObject<{
1193
- deviceId: z.ZodString;
1194
- scheduleId: z.ZodString;
1195
- }, z.core.$strip>>;
1196
- groupPermissions: z.ZodArray<z.ZodObject<{
1197
- groupId: z.ZodString;
1198
- scheduleId: z.ZodString;
1199
- }, z.core.$strip>>;
1200
- }, z.core.$strip>;
1201
- props: z.ZodObject<{
1202
- displayName: z.ZodOptional<z.ZodString>;
1203
- appliedTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
1204
- permissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1205
- deviceId: z.ZodString;
1206
- scheduleId: z.ZodString;
1207
- }, z.core.$strip>>>;
1208
- groupPermissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1209
- groupId: z.ZodString;
1210
- scheduleId: z.ZodString;
1211
- }, z.core.$strip>>>;
1212
- }, z.core.$strip>;
1213
- }, z.core.$strip>, z.ZodObject<{
1214
- kind: z.ZodLiteral<"merge">;
1215
- objectId: z.ZodString;
1216
- objectKind: z.ZodLiteral<"schedule">;
1217
- original: z.ZodObject<{
1218
- displayName: z.ZodString;
1219
- flag: z.ZodNullable<z.ZodEnum<{
1220
- never: "never";
1221
- always: "always";
1222
- }>>;
1223
- include: z.ZodNullable<z.ZodObject<{
1224
- startDate: z.ZodNullable<z.ZodString>;
1225
- endDate: z.ZodNullable<z.ZodString>;
1226
- timeIntervals: z.ZodArray<z.ZodObject<{
1227
- weekDay: z.ZodEnum<{
1228
- mon: "mon";
1229
- tue: "tue";
1230
- wed: "wed";
1231
- thu: "thu";
1232
- fri: "fri";
1233
- sat: "sat";
1234
- sun: "sun";
1235
- }>;
1236
- from: z.ZodNumber;
1237
- to: z.ZodNumber;
1238
- }, z.core.$strip>>;
1239
- repeat: z.ZodNullable<z.ZodEnum<{
1240
- daily: "daily";
1241
- weekly: "weekly";
1242
- monthly: "monthly";
1243
- yearly: "yearly";
1244
- }>>;
1245
- }, z.core.$strip>>;
1246
- exclude: z.ZodNullable<z.ZodObject<{
1247
- startDate: z.ZodNullable<z.ZodString>;
1248
- endDate: z.ZodNullable<z.ZodString>;
1249
- timeIntervals: z.ZodArray<z.ZodObject<{
1250
- weekDay: z.ZodEnum<{
1251
- mon: "mon";
1252
- tue: "tue";
1253
- wed: "wed";
1254
- thu: "thu";
1255
- fri: "fri";
1256
- sat: "sat";
1257
- sun: "sun";
1258
- }>;
1259
- from: z.ZodNumber;
1260
- to: z.ZodNumber;
1261
- }, z.core.$strip>>;
1262
- repeat: z.ZodNullable<z.ZodEnum<{
1263
- daily: "daily";
1264
- weekly: "weekly";
1265
- monthly: "monthly";
1266
- yearly: "yearly";
1267
- }>>;
1268
- }, z.core.$strip>>;
1269
- }, z.core.$strip>;
1270
- props: z.ZodObject<{
1271
- displayName: z.ZodString;
1272
- flag: z.ZodNullable<z.ZodEnum<{
1273
- never: "never";
1274
- always: "always";
1275
- }>>;
1276
- include: z.ZodNullable<z.ZodObject<{
1277
- startDate: z.ZodNullable<z.ZodString>;
1278
- endDate: z.ZodNullable<z.ZodString>;
1279
- timeIntervals: z.ZodArray<z.ZodObject<{
1280
- weekDay: z.ZodEnum<{
1281
- mon: "mon";
1282
- tue: "tue";
1283
- wed: "wed";
1284
- thu: "thu";
1285
- fri: "fri";
1286
- sat: "sat";
1287
- sun: "sun";
1288
- }>;
1289
- from: z.ZodNumber;
1290
- to: z.ZodNumber;
1176
+ }, z.core.$strip>]>]>;
1177
+ export declare const sDeviceMap: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1178
+ export declare const sRefMap: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
1179
+ export declare const sValidateChangeRq: z.ZodObject<{
1180
+ kind: z.ZodLiteral<"validate-change">;
1181
+ provider: z.ZodString;
1182
+ devices: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1183
+ refMap: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
1184
+ mutations: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
1185
+ kind: z.ZodLiteral<"merge">;
1186
+ objectId: z.ZodString;
1187
+ objectKind: z.ZodLiteral<"accessRule">;
1188
+ original: z.ZodObject<{
1189
+ displayName: z.ZodString;
1190
+ appliedTo: z.ZodArray<z.ZodString>;
1191
+ permissions: z.ZodArray<z.ZodObject<{
1192
+ deviceId: z.ZodString;
1193
+ scheduleId: z.ZodString;
1291
1194
  }, z.core.$strip>>;
1292
- repeat: z.ZodNullable<z.ZodEnum<{
1293
- daily: "daily";
1294
- weekly: "weekly";
1295
- monthly: "monthly";
1296
- yearly: "yearly";
1297
- }>>;
1298
- }, z.core.$strip>>;
1299
- exclude: z.ZodNullable<z.ZodObject<{
1300
- startDate: z.ZodNullable<z.ZodString>;
1301
- endDate: z.ZodNullable<z.ZodString>;
1302
- timeIntervals: z.ZodArray<z.ZodObject<{
1303
- weekDay: z.ZodEnum<{
1304
- mon: "mon";
1305
- tue: "tue";
1306
- wed: "wed";
1307
- thu: "thu";
1308
- fri: "fri";
1309
- sat: "sat";
1310
- sun: "sun";
1311
- }>;
1312
- from: z.ZodNumber;
1313
- to: z.ZodNumber;
1195
+ groupPermissions: z.ZodArray<z.ZodObject<{
1196
+ groupId: z.ZodString;
1197
+ scheduleId: z.ZodString;
1314
1198
  }, z.core.$strip>>;
1315
- repeat: z.ZodNullable<z.ZodEnum<{
1316
- daily: "daily";
1317
- weekly: "weekly";
1318
- monthly: "monthly";
1319
- yearly: "yearly";
1320
- }>>;
1321
- }, z.core.$strip>>;
1322
- }, z.core.$strip>;
1323
- }, z.core.$strip>, z.ZodObject<{
1324
- kind: z.ZodLiteral<"merge">;
1325
- objectId: z.ZodString;
1326
- objectKind: z.ZodLiteral<"schedule">;
1327
- original: z.ZodObject<{
1328
- displayName: z.ZodString;
1329
- flag: z.ZodNullable<z.ZodEnum<{
1330
- never: "never";
1331
- always: "always";
1332
- }>>;
1333
- include: z.ZodNullable<z.ZodObject<{
1334
- startDate: z.ZodNullable<z.ZodString>;
1335
- endDate: z.ZodNullable<z.ZodString>;
1336
- timeIntervals: z.ZodArray<z.ZodObject<{
1337
- weekDay: z.ZodEnum<{
1338
- mon: "mon";
1339
- tue: "tue";
1340
- wed: "wed";
1341
- thu: "thu";
1342
- fri: "fri";
1343
- sat: "sat";
1344
- sun: "sun";
1345
- }>;
1346
- from: z.ZodNumber;
1347
- to: z.ZodNumber;
1348
- }, z.core.$strip>>;
1349
- repeat: z.ZodNullable<z.ZodEnum<{
1350
- daily: "daily";
1351
- weekly: "weekly";
1352
- monthly: "monthly";
1353
- yearly: "yearly";
1354
- }>>;
1355
- }, z.core.$strip>>;
1356
- exclude: z.ZodNullable<z.ZodObject<{
1357
- startDate: z.ZodNullable<z.ZodString>;
1358
- endDate: z.ZodNullable<z.ZodString>;
1359
- timeIntervals: z.ZodArray<z.ZodObject<{
1360
- weekDay: z.ZodEnum<{
1361
- mon: "mon";
1362
- tue: "tue";
1363
- wed: "wed";
1364
- thu: "thu";
1365
- fri: "fri";
1366
- sat: "sat";
1367
- sun: "sun";
1368
- }>;
1369
- from: z.ZodNumber;
1370
- to: z.ZodNumber;
1371
- }, z.core.$strip>>;
1372
- repeat: z.ZodNullable<z.ZodEnum<{
1373
- daily: "daily";
1374
- weekly: "weekly";
1375
- monthly: "monthly";
1376
- yearly: "yearly";
1377
- }>>;
1378
- }, z.core.$strip>>;
1379
- }, z.core.$strip>;
1380
- props: z.ZodObject<{
1381
- displayName: z.ZodOptional<z.ZodString>;
1382
- flag: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1383
- never: "never";
1384
- always: "always";
1385
- }>>>;
1386
- include: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1387
- startDate: z.ZodNullable<z.ZodString>;
1388
- endDate: z.ZodNullable<z.ZodString>;
1389
- timeIntervals: z.ZodArray<z.ZodObject<{
1390
- weekDay: z.ZodEnum<{
1391
- mon: "mon";
1392
- tue: "tue";
1393
- wed: "wed";
1394
- thu: "thu";
1395
- fri: "fri";
1396
- sat: "sat";
1397
- sun: "sun";
1398
- }>;
1399
- from: z.ZodNumber;
1400
- to: z.ZodNumber;
1401
- }, z.core.$strip>>;
1402
- repeat: z.ZodNullable<z.ZodEnum<{
1403
- daily: "daily";
1404
- weekly: "weekly";
1405
- monthly: "monthly";
1406
- yearly: "yearly";
1407
- }>>;
1408
- }, z.core.$strip>>>;
1409
- exclude: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1410
- startDate: z.ZodNullable<z.ZodString>;
1411
- endDate: z.ZodNullable<z.ZodString>;
1412
- timeIntervals: z.ZodArray<z.ZodObject<{
1413
- weekDay: z.ZodEnum<{
1414
- mon: "mon";
1415
- tue: "tue";
1416
- wed: "wed";
1417
- thu: "thu";
1418
- fri: "fri";
1419
- sat: "sat";
1420
- sun: "sun";
1421
- }>;
1422
- from: z.ZodNumber;
1423
- to: z.ZodNumber;
1424
- }, z.core.$strip>>;
1425
- repeat: z.ZodNullable<z.ZodEnum<{
1426
- daily: "daily";
1427
- weekly: "weekly";
1428
- monthly: "monthly";
1429
- yearly: "yearly";
1430
- }>>;
1431
- }, z.core.$strip>>>;
1432
- }, z.core.$strip>;
1433
- }, z.core.$strip>, z.ZodObject<{
1434
- kind: z.ZodLiteral<"merge">;
1435
- objectId: z.ZodString;
1436
- objectKind: z.ZodLiteral<"person">;
1437
- original: z.ZodObject<{
1438
- firstName: z.ZodString;
1439
- lastName: z.ZodString;
1440
- position: z.ZodNullable<z.ZodString>;
1441
- accessSuspended: z.ZodBoolean;
1442
- staffMember: z.ZodBoolean;
1443
- validFrom: z.ZodNullable<z.ZodString>;
1444
- validTo: z.ZodNullable<z.ZodString>;
1445
- avatarId: z.ZodNullable<z.ZodString>;
1446
- credentials: z.ZodArray<z.ZodObject<{
1447
- type: z.ZodEnum<{
1448
- card: "card";
1449
- pin: "pin";
1450
- fingerprint: "fingerprint";
1451
- }>;
1452
- value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1453
- note: z.ZodNullable<z.ZodString>;
1454
- }, z.core.$strip>>;
1455
- accessRules: z.ZodArray<z.ZodString>;
1456
- customFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
1457
- type: z.ZodString;
1458
- }, z.core.$strip>;
1459
- props: z.ZodObject<{
1460
- firstName: z.ZodString;
1461
- lastName: z.ZodString;
1462
- position: z.ZodNullable<z.ZodString>;
1463
- accessSuspended: z.ZodBoolean;
1464
- staffMember: z.ZodBoolean;
1465
- validFrom: z.ZodNullable<z.ZodString>;
1466
- validTo: z.ZodNullable<z.ZodString>;
1467
- avatarId: z.ZodNullable<z.ZodString>;
1468
- credentials: z.ZodArray<z.ZodObject<{
1469
- type: z.ZodEnum<{
1470
- card: "card";
1471
- pin: "pin";
1472
- fingerprint: "fingerprint";
1473
- }>;
1474
- value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1475
- note: z.ZodNullable<z.ZodString>;
1476
- }, z.core.$strip>>;
1477
- accessRules: z.ZodArray<z.ZodString>;
1478
- customFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
1479
- type: z.ZodString;
1480
- }, z.core.$strip>;
1481
- }, z.core.$strip>, z.ZodObject<{
1482
- kind: z.ZodLiteral<"merge">;
1483
- objectId: z.ZodString;
1484
- objectKind: z.ZodLiteral<"person">;
1485
- original: z.ZodObject<{
1486
- firstName: z.ZodString;
1487
- lastName: z.ZodString;
1488
- position: z.ZodNullable<z.ZodString>;
1489
- accessSuspended: z.ZodBoolean;
1490
- staffMember: z.ZodBoolean;
1491
- validFrom: z.ZodNullable<z.ZodString>;
1492
- validTo: z.ZodNullable<z.ZodString>;
1493
- avatarId: z.ZodNullable<z.ZodString>;
1494
- credentials: z.ZodArray<z.ZodObject<{
1495
- type: z.ZodEnum<{
1496
- card: "card";
1497
- pin: "pin";
1498
- fingerprint: "fingerprint";
1499
- }>;
1500
- value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1501
- note: z.ZodNullable<z.ZodString>;
1502
- }, z.core.$strip>>;
1503
- accessRules: z.ZodArray<z.ZodString>;
1504
- customFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
1505
- type: z.ZodString;
1506
- }, z.core.$strip>;
1507
- props: z.ZodObject<{
1508
- firstName: z.ZodOptional<z.ZodString>;
1509
- lastName: z.ZodOptional<z.ZodString>;
1510
- position: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1511
- accessSuspended: z.ZodOptional<z.ZodBoolean>;
1512
- staffMember: z.ZodOptional<z.ZodBoolean>;
1513
- validFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1514
- validTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1515
- avatarId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1516
- credentials: z.ZodOptional<z.ZodArray<z.ZodObject<{
1517
- type: z.ZodEnum<{
1518
- card: "card";
1519
- pin: "pin";
1520
- fingerprint: "fingerprint";
1521
- }>;
1522
- value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1523
- note: z.ZodNullable<z.ZodString>;
1524
- }, z.core.$strip>>>;
1525
- accessRules: z.ZodOptional<z.ZodArray<z.ZodString>>;
1526
- customFields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1527
- type: z.ZodOptional<z.ZodString>;
1528
- }, z.core.$strip>;
1529
- }, z.core.$strip>, z.ZodObject<{
1530
- kind: z.ZodLiteral<"merge">;
1531
- objectId: z.ZodString;
1532
- objectKind: z.ZodLiteral<"zone">;
1533
- original: z.ZodObject<{
1534
- displayName: z.ZodString;
1535
- devices: z.ZodArray<z.ZodString>;
1536
- }, z.core.$strip>;
1537
- props: z.ZodObject<{
1538
- displayName: z.ZodString;
1539
- devices: z.ZodArray<z.ZodString>;
1540
- }, z.core.$strip>;
1541
- }, z.core.$strip>, z.ZodObject<{
1542
- kind: z.ZodLiteral<"merge">;
1543
- objectId: z.ZodString;
1544
- objectKind: z.ZodLiteral<"zone">;
1545
- original: z.ZodObject<{
1546
- displayName: z.ZodString;
1547
- devices: z.ZodArray<z.ZodString>;
1548
- }, z.core.$strip>;
1549
- props: z.ZodObject<{
1550
- displayName: z.ZodOptional<z.ZodString>;
1551
- devices: z.ZodOptional<z.ZodArray<z.ZodString>>;
1552
- }, z.core.$strip>;
1553
- }, z.core.$strip>]>, z.ZodUnion<readonly [z.ZodObject<{
1554
- kind: z.ZodLiteral<"delete">;
1555
- objectId: z.ZodString;
1556
- objectKind: z.ZodLiteral<"accessRule">;
1557
- original: z.ZodObject<{
1558
- displayName: z.ZodString;
1559
- appliedTo: z.ZodArray<z.ZodString>;
1560
- permissions: z.ZodArray<z.ZodObject<{
1561
- deviceId: z.ZodString;
1562
- scheduleId: z.ZodString;
1563
- }, z.core.$strip>>;
1564
- groupPermissions: z.ZodArray<z.ZodObject<{
1565
- groupId: z.ZodString;
1566
- scheduleId: z.ZodString;
1567
- }, z.core.$strip>>;
1568
- }, z.core.$strip>;
1569
- }, z.core.$strip>, z.ZodObject<{
1570
- kind: z.ZodLiteral<"delete">;
1571
- objectId: z.ZodString;
1572
- objectKind: z.ZodLiteral<"schedule">;
1573
- original: z.ZodObject<{
1574
- displayName: z.ZodString;
1575
- flag: z.ZodNullable<z.ZodEnum<{
1576
- never: "never";
1577
- always: "always";
1578
- }>>;
1579
- include: z.ZodNullable<z.ZodObject<{
1580
- startDate: z.ZodNullable<z.ZodString>;
1581
- endDate: z.ZodNullable<z.ZodString>;
1582
- timeIntervals: z.ZodArray<z.ZodObject<{
1583
- weekDay: z.ZodEnum<{
1584
- mon: "mon";
1585
- tue: "tue";
1586
- wed: "wed";
1587
- thu: "thu";
1588
- fri: "fri";
1589
- sat: "sat";
1590
- sun: "sun";
1591
- }>;
1592
- from: z.ZodNumber;
1593
- to: z.ZodNumber;
1594
- }, z.core.$strip>>;
1595
- repeat: z.ZodNullable<z.ZodEnum<{
1596
- daily: "daily";
1597
- weekly: "weekly";
1598
- monthly: "monthly";
1599
- yearly: "yearly";
1600
- }>>;
1601
- }, z.core.$strip>>;
1602
- exclude: z.ZodNullable<z.ZodObject<{
1603
- startDate: z.ZodNullable<z.ZodString>;
1604
- endDate: z.ZodNullable<z.ZodString>;
1605
- timeIntervals: z.ZodArray<z.ZodObject<{
1606
- weekDay: z.ZodEnum<{
1607
- mon: "mon";
1608
- tue: "tue";
1609
- wed: "wed";
1610
- thu: "thu";
1611
- fri: "fri";
1612
- sat: "sat";
1613
- sun: "sun";
1614
- }>;
1615
- from: z.ZodNumber;
1616
- to: z.ZodNumber;
1617
- }, z.core.$strip>>;
1618
- repeat: z.ZodNullable<z.ZodEnum<{
1619
- daily: "daily";
1620
- weekly: "weekly";
1621
- monthly: "monthly";
1622
- yearly: "yearly";
1623
- }>>;
1624
- }, z.core.$strip>>;
1625
- }, z.core.$strip>;
1626
- }, z.core.$strip>, z.ZodObject<{
1627
- kind: z.ZodLiteral<"delete">;
1628
- objectId: z.ZodString;
1629
- objectKind: z.ZodLiteral<"person">;
1630
- original: z.ZodObject<{
1631
- firstName: z.ZodString;
1632
- lastName: z.ZodString;
1633
- position: z.ZodNullable<z.ZodString>;
1634
- accessSuspended: z.ZodBoolean;
1635
- staffMember: z.ZodBoolean;
1636
- validFrom: z.ZodNullable<z.ZodString>;
1637
- validTo: z.ZodNullable<z.ZodString>;
1638
- avatarId: z.ZodNullable<z.ZodString>;
1639
- credentials: z.ZodArray<z.ZodObject<{
1640
- type: z.ZodEnum<{
1641
- card: "card";
1642
- pin: "pin";
1643
- fingerprint: "fingerprint";
1644
- }>;
1645
- value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1646
- note: z.ZodNullable<z.ZodString>;
1647
- }, z.core.$strip>>;
1648
- accessRules: z.ZodArray<z.ZodString>;
1649
- customFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
1650
- type: z.ZodString;
1651
- }, z.core.$strip>;
1652
- }, z.core.$strip>, z.ZodObject<{
1653
- kind: z.ZodLiteral<"delete">;
1654
- objectId: z.ZodString;
1655
- objectKind: z.ZodLiteral<"zone">;
1656
- original: z.ZodObject<{
1657
- displayName: z.ZodString;
1658
- devices: z.ZodArray<z.ZodString>;
1659
- }, z.core.$strip>;
1660
- }, z.core.$strip>]>]>;
1661
- export declare const sDeviceMap: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1662
- export declare const sRefMap: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
1663
- export declare const sValidateChangeRq: z.ZodObject<{
1664
- kind: z.ZodLiteral<"validate-change">;
1665
- provider: z.ZodString;
1666
- devices: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1667
- refMap: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
1668
- mutations: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
1669
- kind: z.ZodLiteral<"merge">;
1670
- objectId: z.ZodString;
1671
- objectKind: z.ZodLiteral<"accessRule">;
1672
- original: z.ZodObject<{
1673
- displayName: z.ZodString;
1674
- appliedTo: z.ZodArray<z.ZodString>;
1675
- permissions: z.ZodArray<z.ZodObject<{
1676
- deviceId: z.ZodString;
1677
- scheduleId: z.ZodString;
1678
- }, z.core.$strip>>;
1679
- groupPermissions: z.ZodArray<z.ZodObject<{
1680
- groupId: z.ZodString;
1681
- scheduleId: z.ZodString;
1682
- }, z.core.$strip>>;
1683
- }, z.core.$strip>;
1684
- props: z.ZodObject<{
1685
- displayName: z.ZodString;
1686
- appliedTo: z.ZodArray<z.ZodString>;
1687
- permissions: z.ZodArray<z.ZodObject<{
1688
- deviceId: z.ZodString;
1689
- scheduleId: z.ZodString;
1690
- }, z.core.$strip>>;
1691
- groupPermissions: z.ZodArray<z.ZodObject<{
1692
- groupId: z.ZodString;
1693
- scheduleId: z.ZodString;
1694
- }, z.core.$strip>>;
1695
- }, z.core.$strip>;
1696
- }, z.core.$strip>, z.ZodObject<{
1697
- kind: z.ZodLiteral<"merge">;
1698
- objectId: z.ZodString;
1699
- objectKind: z.ZodLiteral<"accessRule">;
1700
- original: z.ZodObject<{
1701
- displayName: z.ZodString;
1702
- appliedTo: z.ZodArray<z.ZodString>;
1703
- permissions: z.ZodArray<z.ZodObject<{
1704
- deviceId: z.ZodString;
1705
- scheduleId: z.ZodString;
1706
- }, z.core.$strip>>;
1707
- groupPermissions: z.ZodArray<z.ZodObject<{
1708
- groupId: z.ZodString;
1709
- scheduleId: z.ZodString;
1710
- }, z.core.$strip>>;
1711
- }, z.core.$strip>;
1712
- props: z.ZodObject<{
1713
- displayName: z.ZodOptional<z.ZodString>;
1714
- appliedTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
1715
- permissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1716
- deviceId: z.ZodString;
1717
- scheduleId: z.ZodString;
1718
- }, z.core.$strip>>>;
1719
- groupPermissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1720
- groupId: z.ZodString;
1721
- scheduleId: z.ZodString;
1722
- }, z.core.$strip>>>;
1723
- }, z.core.$strip>;
1724
- }, z.core.$strip>, z.ZodObject<{
1725
- kind: z.ZodLiteral<"merge">;
1726
- objectId: z.ZodString;
1727
- objectKind: z.ZodLiteral<"schedule">;
1728
- original: z.ZodObject<{
1729
- displayName: z.ZodString;
1730
- flag: z.ZodNullable<z.ZodEnum<{
1731
- never: "never";
1732
- always: "always";
1733
- }>>;
1734
- include: z.ZodNullable<z.ZodObject<{
1735
- startDate: z.ZodNullable<z.ZodString>;
1736
- endDate: z.ZodNullable<z.ZodString>;
1737
- timeIntervals: z.ZodArray<z.ZodObject<{
1738
- weekDay: z.ZodEnum<{
1739
- mon: "mon";
1740
- tue: "tue";
1741
- wed: "wed";
1742
- thu: "thu";
1743
- fri: "fri";
1744
- sat: "sat";
1745
- sun: "sun";
1746
- }>;
1747
- from: z.ZodNumber;
1748
- to: z.ZodNumber;
1749
- }, z.core.$strip>>;
1750
- repeat: z.ZodNullable<z.ZodEnum<{
1751
- daily: "daily";
1752
- weekly: "weekly";
1753
- monthly: "monthly";
1754
- yearly: "yearly";
1755
- }>>;
1756
- }, z.core.$strip>>;
1757
- exclude: z.ZodNullable<z.ZodObject<{
1758
- startDate: z.ZodNullable<z.ZodString>;
1759
- endDate: z.ZodNullable<z.ZodString>;
1760
- timeIntervals: z.ZodArray<z.ZodObject<{
1761
- weekDay: z.ZodEnum<{
1762
- mon: "mon";
1763
- tue: "tue";
1764
- wed: "wed";
1765
- thu: "thu";
1766
- fri: "fri";
1767
- sat: "sat";
1768
- sun: "sun";
1769
- }>;
1770
- from: z.ZodNumber;
1771
- to: z.ZodNumber;
1772
- }, z.core.$strip>>;
1773
- repeat: z.ZodNullable<z.ZodEnum<{
1774
- daily: "daily";
1775
- weekly: "weekly";
1776
- monthly: "monthly";
1777
- yearly: "yearly";
1778
- }>>;
1779
- }, z.core.$strip>>;
1780
- }, z.core.$strip>;
1781
- props: z.ZodObject<{
1782
- displayName: z.ZodString;
1783
- flag: z.ZodNullable<z.ZodEnum<{
1784
- never: "never";
1785
- always: "always";
1786
- }>>;
1787
- include: z.ZodNullable<z.ZodObject<{
1788
- startDate: z.ZodNullable<z.ZodString>;
1789
- endDate: z.ZodNullable<z.ZodString>;
1790
- timeIntervals: z.ZodArray<z.ZodObject<{
1791
- weekDay: z.ZodEnum<{
1792
- mon: "mon";
1793
- tue: "tue";
1794
- wed: "wed";
1795
- thu: "thu";
1796
- fri: "fri";
1797
- sat: "sat";
1798
- sun: "sun";
1799
- }>;
1800
- from: z.ZodNumber;
1801
- to: z.ZodNumber;
1802
- }, z.core.$strip>>;
1803
- repeat: z.ZodNullable<z.ZodEnum<{
1804
- daily: "daily";
1805
- weekly: "weekly";
1806
- monthly: "monthly";
1807
- yearly: "yearly";
1808
- }>>;
1809
- }, z.core.$strip>>;
1810
- exclude: z.ZodNullable<z.ZodObject<{
1811
- startDate: z.ZodNullable<z.ZodString>;
1812
- endDate: z.ZodNullable<z.ZodString>;
1813
- timeIntervals: z.ZodArray<z.ZodObject<{
1814
- weekDay: z.ZodEnum<{
1815
- mon: "mon";
1816
- tue: "tue";
1817
- wed: "wed";
1818
- thu: "thu";
1819
- fri: "fri";
1820
- sat: "sat";
1821
- sun: "sun";
1822
- }>;
1823
- from: z.ZodNumber;
1824
- to: z.ZodNumber;
1825
- }, z.core.$strip>>;
1826
- repeat: z.ZodNullable<z.ZodEnum<{
1827
- daily: "daily";
1828
- weekly: "weekly";
1829
- monthly: "monthly";
1830
- yearly: "yearly";
1831
- }>>;
1832
- }, z.core.$strip>>;
1833
- }, z.core.$strip>;
1834
- }, z.core.$strip>, z.ZodObject<{
1835
- kind: z.ZodLiteral<"merge">;
1836
- objectId: z.ZodString;
1837
- objectKind: z.ZodLiteral<"schedule">;
1838
- original: z.ZodObject<{
1839
- displayName: z.ZodString;
1840
- flag: z.ZodNullable<z.ZodEnum<{
1841
- never: "never";
1842
- always: "always";
1843
- }>>;
1844
- include: z.ZodNullable<z.ZodObject<{
1845
- startDate: z.ZodNullable<z.ZodString>;
1846
- endDate: z.ZodNullable<z.ZodString>;
1847
- timeIntervals: z.ZodArray<z.ZodObject<{
1848
- weekDay: z.ZodEnum<{
1849
- mon: "mon";
1850
- tue: "tue";
1851
- wed: "wed";
1852
- thu: "thu";
1853
- fri: "fri";
1854
- sat: "sat";
1855
- sun: "sun";
1856
- }>;
1857
- from: z.ZodNumber;
1858
- to: z.ZodNumber;
1859
- }, z.core.$strip>>;
1860
- repeat: z.ZodNullable<z.ZodEnum<{
1861
- daily: "daily";
1862
- weekly: "weekly";
1863
- monthly: "monthly";
1864
- yearly: "yearly";
1865
- }>>;
1866
- }, z.core.$strip>>;
1867
- exclude: z.ZodNullable<z.ZodObject<{
1868
- startDate: z.ZodNullable<z.ZodString>;
1869
- endDate: z.ZodNullable<z.ZodString>;
1870
- timeIntervals: z.ZodArray<z.ZodObject<{
1871
- weekDay: z.ZodEnum<{
1872
- mon: "mon";
1873
- tue: "tue";
1874
- wed: "wed";
1875
- thu: "thu";
1876
- fri: "fri";
1877
- sat: "sat";
1878
- sun: "sun";
1879
- }>;
1880
- from: z.ZodNumber;
1881
- to: z.ZodNumber;
1882
- }, z.core.$strip>>;
1883
- repeat: z.ZodNullable<z.ZodEnum<{
1884
- daily: "daily";
1885
- weekly: "weekly";
1886
- monthly: "monthly";
1887
- yearly: "yearly";
1888
- }>>;
1889
- }, z.core.$strip>>;
1890
- }, z.core.$strip>;
1891
- props: z.ZodObject<{
1892
- displayName: z.ZodOptional<z.ZodString>;
1893
- flag: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1894
- never: "never";
1895
- always: "always";
1896
- }>>>;
1897
- include: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1898
- startDate: z.ZodNullable<z.ZodString>;
1899
- endDate: z.ZodNullable<z.ZodString>;
1900
- timeIntervals: z.ZodArray<z.ZodObject<{
1901
- weekDay: z.ZodEnum<{
1902
- mon: "mon";
1903
- tue: "tue";
1904
- wed: "wed";
1905
- thu: "thu";
1906
- fri: "fri";
1907
- sat: "sat";
1908
- sun: "sun";
1909
- }>;
1910
- from: z.ZodNumber;
1911
- to: z.ZodNumber;
1912
- }, z.core.$strip>>;
1913
- repeat: z.ZodNullable<z.ZodEnum<{
1914
- daily: "daily";
1915
- weekly: "weekly";
1916
- monthly: "monthly";
1917
- yearly: "yearly";
1918
- }>>;
1919
- }, z.core.$strip>>>;
1920
- exclude: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1921
- startDate: z.ZodNullable<z.ZodString>;
1922
- endDate: z.ZodNullable<z.ZodString>;
1923
- timeIntervals: z.ZodArray<z.ZodObject<{
1924
- weekDay: z.ZodEnum<{
1925
- mon: "mon";
1926
- tue: "tue";
1927
- wed: "wed";
1928
- thu: "thu";
1929
- fri: "fri";
1930
- sat: "sat";
1931
- sun: "sun";
1932
- }>;
1933
- from: z.ZodNumber;
1934
- to: z.ZodNumber;
1935
- }, z.core.$strip>>;
1936
- repeat: z.ZodNullable<z.ZodEnum<{
1937
- daily: "daily";
1938
- weekly: "weekly";
1939
- monthly: "monthly";
1940
- yearly: "yearly";
1941
- }>>;
1942
- }, z.core.$strip>>>;
1943
- }, z.core.$strip>;
1944
- }, z.core.$strip>, z.ZodObject<{
1945
- kind: z.ZodLiteral<"merge">;
1946
- objectId: z.ZodString;
1947
- objectKind: z.ZodLiteral<"person">;
1948
- original: z.ZodObject<{
1949
- firstName: z.ZodString;
1950
- lastName: z.ZodString;
1951
- position: z.ZodNullable<z.ZodString>;
1952
- accessSuspended: z.ZodBoolean;
1953
- staffMember: z.ZodBoolean;
1954
- validFrom: z.ZodNullable<z.ZodString>;
1955
- validTo: z.ZodNullable<z.ZodString>;
1956
- avatarId: z.ZodNullable<z.ZodString>;
1957
- credentials: z.ZodArray<z.ZodObject<{
1958
- type: z.ZodEnum<{
1959
- card: "card";
1960
- pin: "pin";
1961
- fingerprint: "fingerprint";
1962
- }>;
1963
- value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1964
- note: z.ZodNullable<z.ZodString>;
1965
- }, z.core.$strip>>;
1966
- accessRules: z.ZodArray<z.ZodString>;
1967
- customFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
1968
- type: z.ZodString;
1969
- }, z.core.$strip>;
1970
- props: z.ZodObject<{
1971
- firstName: z.ZodString;
1972
- lastName: z.ZodString;
1973
- position: z.ZodNullable<z.ZodString>;
1974
- accessSuspended: z.ZodBoolean;
1975
- staffMember: z.ZodBoolean;
1976
- validFrom: z.ZodNullable<z.ZodString>;
1977
- validTo: z.ZodNullable<z.ZodString>;
1978
- avatarId: z.ZodNullable<z.ZodString>;
1979
- credentials: z.ZodArray<z.ZodObject<{
1980
- type: z.ZodEnum<{
1981
- card: "card";
1982
- pin: "pin";
1983
- fingerprint: "fingerprint";
1984
- }>;
1985
- value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1986
- note: z.ZodNullable<z.ZodString>;
1987
- }, z.core.$strip>>;
1988
- accessRules: z.ZodArray<z.ZodString>;
1989
- customFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
1990
- type: z.ZodString;
1991
- }, z.core.$strip>;
1992
- }, z.core.$strip>, z.ZodObject<{
1993
- kind: z.ZodLiteral<"merge">;
1994
- objectId: z.ZodString;
1995
- objectKind: z.ZodLiteral<"person">;
1996
- original: z.ZodObject<{
1997
- firstName: z.ZodString;
1998
- lastName: z.ZodString;
1999
- position: z.ZodNullable<z.ZodString>;
2000
- accessSuspended: z.ZodBoolean;
2001
- staffMember: z.ZodBoolean;
2002
- validFrom: z.ZodNullable<z.ZodString>;
2003
- validTo: z.ZodNullable<z.ZodString>;
2004
- avatarId: z.ZodNullable<z.ZodString>;
2005
- credentials: z.ZodArray<z.ZodObject<{
2006
- type: z.ZodEnum<{
2007
- card: "card";
2008
- pin: "pin";
2009
- fingerprint: "fingerprint";
2010
- }>;
2011
- value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
2012
- note: z.ZodNullable<z.ZodString>;
2013
- }, z.core.$strip>>;
2014
- accessRules: z.ZodArray<z.ZodString>;
2015
- customFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
2016
- type: z.ZodString;
2017
- }, z.core.$strip>;
2018
- props: z.ZodObject<{
2019
- firstName: z.ZodOptional<z.ZodString>;
2020
- lastName: z.ZodOptional<z.ZodString>;
2021
- position: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2022
- accessSuspended: z.ZodOptional<z.ZodBoolean>;
2023
- staffMember: z.ZodOptional<z.ZodBoolean>;
2024
- validFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2025
- validTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2026
- avatarId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2027
- credentials: z.ZodOptional<z.ZodArray<z.ZodObject<{
2028
- type: z.ZodEnum<{
2029
- card: "card";
2030
- pin: "pin";
2031
- fingerprint: "fingerprint";
2032
- }>;
2033
- value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
2034
- note: z.ZodNullable<z.ZodString>;
2035
- }, z.core.$strip>>>;
2036
- accessRules: z.ZodOptional<z.ZodArray<z.ZodString>>;
2037
- customFields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2038
- type: z.ZodOptional<z.ZodString>;
2039
- }, z.core.$strip>;
2040
- }, z.core.$strip>, z.ZodObject<{
2041
- kind: z.ZodLiteral<"merge">;
2042
- objectId: z.ZodString;
2043
- objectKind: z.ZodLiteral<"zone">;
2044
- original: z.ZodObject<{
2045
- displayName: z.ZodString;
2046
- devices: z.ZodArray<z.ZodString>;
2047
- }, z.core.$strip>;
2048
- props: z.ZodObject<{
2049
- displayName: z.ZodString;
2050
- devices: z.ZodArray<z.ZodString>;
2051
- }, z.core.$strip>;
2052
- }, z.core.$strip>, z.ZodObject<{
2053
- kind: z.ZodLiteral<"merge">;
2054
- objectId: z.ZodString;
2055
- objectKind: z.ZodLiteral<"zone">;
2056
- original: z.ZodObject<{
2057
- displayName: z.ZodString;
2058
- devices: z.ZodArray<z.ZodString>;
2059
1199
  }, z.core.$strip>;
2060
1200
  props: z.ZodObject<{
2061
1201
  displayName: z.ZodOptional<z.ZodString>;
2062
- devices: z.ZodOptional<z.ZodArray<z.ZodString>>;
2063
- }, z.core.$strip>;
2064
- }, z.core.$strip>]>, z.ZodUnion<readonly [z.ZodObject<{
2065
- kind: z.ZodLiteral<"delete">;
2066
- objectId: z.ZodString;
2067
- objectKind: z.ZodLiteral<"accessRule">;
2068
- original: z.ZodObject<{
2069
- displayName: z.ZodString;
2070
- appliedTo: z.ZodArray<z.ZodString>;
2071
- permissions: z.ZodArray<z.ZodObject<{
1202
+ appliedTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
1203
+ permissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2072
1204
  deviceId: z.ZodString;
2073
1205
  scheduleId: z.ZodString;
2074
- }, z.core.$strip>>;
2075
- groupPermissions: z.ZodArray<z.ZodObject<{
1206
+ }, z.core.$strip>>>;
1207
+ groupPermissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2076
1208
  groupId: z.ZodString;
2077
1209
  scheduleId: z.ZodString;
2078
- }, z.core.$strip>>;
1210
+ }, z.core.$strip>>>;
2079
1211
  }, z.core.$strip>;
2080
1212
  }, z.core.$strip>, z.ZodObject<{
2081
- kind: z.ZodLiteral<"delete">;
1213
+ kind: z.ZodLiteral<"merge">;
2082
1214
  objectId: z.ZodString;
2083
1215
  objectKind: z.ZodLiteral<"schedule">;
2084
1216
  original: z.ZodObject<{
2085
1217
  displayName: z.ZodString;
2086
- flag: z.ZodNullable<z.ZodEnum<{
2087
- never: "never";
2088
- always: "always";
2089
- }>>;
2090
- include: z.ZodNullable<z.ZodObject<{
1218
+ include: z.ZodObject<{
2091
1219
  startDate: z.ZodNullable<z.ZodString>;
2092
1220
  endDate: z.ZodNullable<z.ZodString>;
2093
1221
  timeIntervals: z.ZodArray<z.ZodObject<{
@@ -2109,8 +1237,11 @@ export declare const sValidateChangeRq: z.ZodObject<{
2109
1237
  monthly: "monthly";
2110
1238
  yearly: "yearly";
2111
1239
  }>>;
2112
- }, z.core.$strip>>;
2113
- exclude: z.ZodNullable<z.ZodObject<{
1240
+ }, z.core.$strip>;
1241
+ }, z.core.$strip>;
1242
+ props: z.ZodObject<{
1243
+ displayName: z.ZodOptional<z.ZodString>;
1244
+ include: z.ZodOptional<z.ZodObject<{
2114
1245
  startDate: z.ZodNullable<z.ZodString>;
2115
1246
  endDate: z.ZodNullable<z.ZodString>;
2116
1247
  timeIntervals: z.ZodArray<z.ZodObject<{
@@ -2135,18 +1266,15 @@ export declare const sValidateChangeRq: z.ZodObject<{
2135
1266
  }, z.core.$strip>>;
2136
1267
  }, z.core.$strip>;
2137
1268
  }, z.core.$strip>, z.ZodObject<{
2138
- kind: z.ZodLiteral<"delete">;
1269
+ kind: z.ZodLiteral<"merge">;
2139
1270
  objectId: z.ZodString;
2140
1271
  objectKind: z.ZodLiteral<"person">;
2141
1272
  original: z.ZodObject<{
2142
1273
  firstName: z.ZodString;
2143
1274
  lastName: z.ZodString;
2144
- position: z.ZodNullable<z.ZodString>;
1275
+ validFrom: z.ZodNullable<z.ZodNumber>;
1276
+ validTo: z.ZodNullable<z.ZodNumber>;
2145
1277
  accessSuspended: z.ZodBoolean;
2146
- staffMember: z.ZodBoolean;
2147
- validFrom: z.ZodNullable<z.ZodString>;
2148
- validTo: z.ZodNullable<z.ZodString>;
2149
- avatarId: z.ZodNullable<z.ZodString>;
2150
1278
  credentials: z.ZodArray<z.ZodObject<{
2151
1279
  type: z.ZodEnum<{
2152
1280
  card: "card";
@@ -2154,108 +1282,37 @@ export declare const sValidateChangeRq: z.ZodObject<{
2154
1282
  fingerprint: "fingerprint";
2155
1283
  }>;
2156
1284
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
2157
- note: z.ZodNullable<z.ZodString>;
2158
1285
  }, z.core.$strip>>;
2159
- accessRules: z.ZodArray<z.ZodString>;
2160
- customFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
2161
- type: z.ZodString;
1286
+ }, z.core.$strip>;
1287
+ props: z.ZodObject<{
1288
+ firstName: z.ZodOptional<z.ZodString>;
1289
+ lastName: z.ZodOptional<z.ZodString>;
1290
+ validFrom: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1291
+ validTo: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1292
+ accessSuspended: z.ZodOptional<z.ZodBoolean>;
1293
+ credentials: z.ZodOptional<z.ZodArray<z.ZodObject<{
1294
+ type: z.ZodEnum<{
1295
+ card: "card";
1296
+ pin: "pin";
1297
+ fingerprint: "fingerprint";
1298
+ }>;
1299
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1300
+ }, z.core.$strip>>>;
2162
1301
  }, z.core.$strip>;
2163
1302
  }, z.core.$strip>, z.ZodObject<{
2164
- kind: z.ZodLiteral<"delete">;
1303
+ kind: z.ZodLiteral<"merge">;
2165
1304
  objectId: z.ZodString;
2166
1305
  objectKind: z.ZodLiteral<"zone">;
2167
1306
  original: z.ZodObject<{
2168
1307
  displayName: z.ZodString;
2169
1308
  devices: z.ZodArray<z.ZodString>;
2170
1309
  }, z.core.$strip>;
2171
- }, z.core.$strip>]>]>>;
2172
- }, z.core.$strip>;
2173
- export declare const sChangeIssueCode: z.ZodEnum<{
2174
- BAD_REFERENCE: "BAD_REFERENCE";
2175
- NOT_SUPPORTED: "NOT_SUPPORTED";
2176
- NOT_FOUND: "NOT_FOUND";
2177
- NOT_UNIQUE: "NOT_UNIQUE";
2178
- INVALID: "INVALID";
2179
- }>;
2180
- export declare const sChangeIssue: z.ZodObject<{
2181
- objectId: z.ZodOptional<z.ZodString>;
2182
- objectKind: z.ZodOptional<z.ZodEnum<{
2183
- person: "person";
2184
- zone: "zone";
2185
- schedule: "schedule";
2186
- device: "device";
2187
- accessRule: "accessRule";
2188
- }>>;
2189
- code: z.ZodOptional<z.ZodEnum<{
2190
- BAD_REFERENCE: "BAD_REFERENCE";
2191
- NOT_SUPPORTED: "NOT_SUPPORTED";
2192
- NOT_FOUND: "NOT_FOUND";
2193
- NOT_UNIQUE: "NOT_UNIQUE";
2194
- INVALID: "INVALID";
2195
- }>>;
2196
- path: z.ZodOptional<z.ZodString>;
2197
- index: z.ZodOptional<z.ZodNumber>;
2198
- message: z.ZodOptional<z.ZodString>;
2199
- }, z.core.$strip>;
2200
- export declare const sValidateChangeRs: z.ZodObject<{
2201
- requestId: z.ZodString;
2202
- kind: z.ZodLiteral<"validate-change-rs">;
2203
- issues: z.ZodArray<z.ZodObject<{
2204
- objectId: z.ZodOptional<z.ZodString>;
2205
- objectKind: z.ZodOptional<z.ZodEnum<{
2206
- person: "person";
2207
- zone: "zone";
2208
- schedule: "schedule";
2209
- device: "device";
2210
- accessRule: "accessRule";
2211
- }>>;
2212
- code: z.ZodOptional<z.ZodEnum<{
2213
- BAD_REFERENCE: "BAD_REFERENCE";
2214
- NOT_SUPPORTED: "NOT_SUPPORTED";
2215
- NOT_FOUND: "NOT_FOUND";
2216
- NOT_UNIQUE: "NOT_UNIQUE";
2217
- INVALID: "INVALID";
2218
- }>>;
2219
- path: z.ZodOptional<z.ZodString>;
2220
- index: z.ZodOptional<z.ZodNumber>;
2221
- message: z.ZodOptional<z.ZodString>;
2222
- }, z.core.$strip>>;
2223
- }, z.core.$strip>;
2224
- export declare const sApplyChange: z.ZodObject<{
2225
- kind: z.ZodLiteral<"apply-change">;
2226
- provider: z.ZodString;
2227
- devices: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2228
- refMap: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
2229
- mutations: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
2230
- kind: z.ZodLiteral<"merge">;
2231
- objectId: z.ZodString;
2232
- objectKind: z.ZodLiteral<"accessRule">;
2233
- original: z.ZodObject<{
2234
- displayName: z.ZodString;
2235
- appliedTo: z.ZodArray<z.ZodString>;
2236
- permissions: z.ZodArray<z.ZodObject<{
2237
- deviceId: z.ZodString;
2238
- scheduleId: z.ZodString;
2239
- }, z.core.$strip>>;
2240
- groupPermissions: z.ZodArray<z.ZodObject<{
2241
- groupId: z.ZodString;
2242
- scheduleId: z.ZodString;
2243
- }, z.core.$strip>>;
2244
- }, z.core.$strip>;
2245
1310
  props: z.ZodObject<{
2246
- displayName: z.ZodString;
2247
- appliedTo: z.ZodArray<z.ZodString>;
2248
- permissions: z.ZodArray<z.ZodObject<{
2249
- deviceId: z.ZodString;
2250
- scheduleId: z.ZodString;
2251
- }, z.core.$strip>>;
2252
- groupPermissions: z.ZodArray<z.ZodObject<{
2253
- groupId: z.ZodString;
2254
- scheduleId: z.ZodString;
2255
- }, z.core.$strip>>;
1311
+ displayName: z.ZodOptional<z.ZodString>;
1312
+ devices: z.ZodOptional<z.ZodArray<z.ZodString>>;
2256
1313
  }, z.core.$strip>;
2257
- }, z.core.$strip>, z.ZodObject<{
2258
- kind: z.ZodLiteral<"merge">;
1314
+ }, z.core.$strip>]>, z.ZodUnion<readonly [z.ZodObject<{
1315
+ kind: z.ZodLiteral<"delete">;
2259
1316
  objectId: z.ZodString;
2260
1317
  objectKind: z.ZodLiteral<"accessRule">;
2261
1318
  original: z.ZodObject<{
@@ -2265,167 +1322,18 @@ export declare const sApplyChange: z.ZodObject<{
2265
1322
  deviceId: z.ZodString;
2266
1323
  scheduleId: z.ZodString;
2267
1324
  }, z.core.$strip>>;
2268
- groupPermissions: z.ZodArray<z.ZodObject<{
2269
- groupId: z.ZodString;
2270
- scheduleId: z.ZodString;
2271
- }, z.core.$strip>>;
2272
- }, z.core.$strip>;
2273
- props: z.ZodObject<{
2274
- displayName: z.ZodOptional<z.ZodString>;
2275
- appliedTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
2276
- permissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2277
- deviceId: z.ZodString;
2278
- scheduleId: z.ZodString;
2279
- }, z.core.$strip>>>;
2280
- groupPermissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2281
- groupId: z.ZodString;
2282
- scheduleId: z.ZodString;
2283
- }, z.core.$strip>>>;
2284
- }, z.core.$strip>;
2285
- }, z.core.$strip>, z.ZodObject<{
2286
- kind: z.ZodLiteral<"merge">;
2287
- objectId: z.ZodString;
2288
- objectKind: z.ZodLiteral<"schedule">;
2289
- original: z.ZodObject<{
2290
- displayName: z.ZodString;
2291
- flag: z.ZodNullable<z.ZodEnum<{
2292
- never: "never";
2293
- always: "always";
2294
- }>>;
2295
- include: z.ZodNullable<z.ZodObject<{
2296
- startDate: z.ZodNullable<z.ZodString>;
2297
- endDate: z.ZodNullable<z.ZodString>;
2298
- timeIntervals: z.ZodArray<z.ZodObject<{
2299
- weekDay: z.ZodEnum<{
2300
- mon: "mon";
2301
- tue: "tue";
2302
- wed: "wed";
2303
- thu: "thu";
2304
- fri: "fri";
2305
- sat: "sat";
2306
- sun: "sun";
2307
- }>;
2308
- from: z.ZodNumber;
2309
- to: z.ZodNumber;
2310
- }, z.core.$strip>>;
2311
- repeat: z.ZodNullable<z.ZodEnum<{
2312
- daily: "daily";
2313
- weekly: "weekly";
2314
- monthly: "monthly";
2315
- yearly: "yearly";
2316
- }>>;
2317
- }, z.core.$strip>>;
2318
- exclude: z.ZodNullable<z.ZodObject<{
2319
- startDate: z.ZodNullable<z.ZodString>;
2320
- endDate: z.ZodNullable<z.ZodString>;
2321
- timeIntervals: z.ZodArray<z.ZodObject<{
2322
- weekDay: z.ZodEnum<{
2323
- mon: "mon";
2324
- tue: "tue";
2325
- wed: "wed";
2326
- thu: "thu";
2327
- fri: "fri";
2328
- sat: "sat";
2329
- sun: "sun";
2330
- }>;
2331
- from: z.ZodNumber;
2332
- to: z.ZodNumber;
2333
- }, z.core.$strip>>;
2334
- repeat: z.ZodNullable<z.ZodEnum<{
2335
- daily: "daily";
2336
- weekly: "weekly";
2337
- monthly: "monthly";
2338
- yearly: "yearly";
2339
- }>>;
2340
- }, z.core.$strip>>;
2341
- }, z.core.$strip>;
2342
- props: z.ZodObject<{
2343
- displayName: z.ZodString;
2344
- flag: z.ZodNullable<z.ZodEnum<{
2345
- never: "never";
2346
- always: "always";
2347
- }>>;
2348
- include: z.ZodNullable<z.ZodObject<{
2349
- startDate: z.ZodNullable<z.ZodString>;
2350
- endDate: z.ZodNullable<z.ZodString>;
2351
- timeIntervals: z.ZodArray<z.ZodObject<{
2352
- weekDay: z.ZodEnum<{
2353
- mon: "mon";
2354
- tue: "tue";
2355
- wed: "wed";
2356
- thu: "thu";
2357
- fri: "fri";
2358
- sat: "sat";
2359
- sun: "sun";
2360
- }>;
2361
- from: z.ZodNumber;
2362
- to: z.ZodNumber;
2363
- }, z.core.$strip>>;
2364
- repeat: z.ZodNullable<z.ZodEnum<{
2365
- daily: "daily";
2366
- weekly: "weekly";
2367
- monthly: "monthly";
2368
- yearly: "yearly";
2369
- }>>;
2370
- }, z.core.$strip>>;
2371
- exclude: z.ZodNullable<z.ZodObject<{
2372
- startDate: z.ZodNullable<z.ZodString>;
2373
- endDate: z.ZodNullable<z.ZodString>;
2374
- timeIntervals: z.ZodArray<z.ZodObject<{
2375
- weekDay: z.ZodEnum<{
2376
- mon: "mon";
2377
- tue: "tue";
2378
- wed: "wed";
2379
- thu: "thu";
2380
- fri: "fri";
2381
- sat: "sat";
2382
- sun: "sun";
2383
- }>;
2384
- from: z.ZodNumber;
2385
- to: z.ZodNumber;
2386
- }, z.core.$strip>>;
2387
- repeat: z.ZodNullable<z.ZodEnum<{
2388
- daily: "daily";
2389
- weekly: "weekly";
2390
- monthly: "monthly";
2391
- yearly: "yearly";
2392
- }>>;
2393
- }, z.core.$strip>>;
2394
- }, z.core.$strip>;
2395
- }, z.core.$strip>, z.ZodObject<{
2396
- kind: z.ZodLiteral<"merge">;
2397
- objectId: z.ZodString;
2398
- objectKind: z.ZodLiteral<"schedule">;
2399
- original: z.ZodObject<{
2400
- displayName: z.ZodString;
2401
- flag: z.ZodNullable<z.ZodEnum<{
2402
- never: "never";
2403
- always: "always";
2404
- }>>;
2405
- include: z.ZodNullable<z.ZodObject<{
2406
- startDate: z.ZodNullable<z.ZodString>;
2407
- endDate: z.ZodNullable<z.ZodString>;
2408
- timeIntervals: z.ZodArray<z.ZodObject<{
2409
- weekDay: z.ZodEnum<{
2410
- mon: "mon";
2411
- tue: "tue";
2412
- wed: "wed";
2413
- thu: "thu";
2414
- fri: "fri";
2415
- sat: "sat";
2416
- sun: "sun";
2417
- }>;
2418
- from: z.ZodNumber;
2419
- to: z.ZodNumber;
2420
- }, z.core.$strip>>;
2421
- repeat: z.ZodNullable<z.ZodEnum<{
2422
- daily: "daily";
2423
- weekly: "weekly";
2424
- monthly: "monthly";
2425
- yearly: "yearly";
2426
- }>>;
1325
+ groupPermissions: z.ZodArray<z.ZodObject<{
1326
+ groupId: z.ZodString;
1327
+ scheduleId: z.ZodString;
2427
1328
  }, z.core.$strip>>;
2428
- exclude: z.ZodNullable<z.ZodObject<{
1329
+ }, z.core.$strip>;
1330
+ }, z.core.$strip>, z.ZodObject<{
1331
+ kind: z.ZodLiteral<"delete">;
1332
+ objectId: z.ZodString;
1333
+ objectKind: z.ZodLiteral<"schedule">;
1334
+ original: z.ZodObject<{
1335
+ displayName: z.ZodString;
1336
+ include: z.ZodObject<{
2429
1337
  startDate: z.ZodNullable<z.ZodString>;
2430
1338
  endDate: z.ZodNullable<z.ZodString>;
2431
1339
  timeIntervals: z.ZodArray<z.ZodObject<{
@@ -2447,15 +1355,126 @@ export declare const sApplyChange: z.ZodObject<{
2447
1355
  monthly: "monthly";
2448
1356
  yearly: "yearly";
2449
1357
  }>>;
1358
+ }, z.core.$strip>;
1359
+ }, z.core.$strip>;
1360
+ }, z.core.$strip>, z.ZodObject<{
1361
+ kind: z.ZodLiteral<"delete">;
1362
+ objectId: z.ZodString;
1363
+ objectKind: z.ZodLiteral<"person">;
1364
+ original: z.ZodObject<{
1365
+ firstName: z.ZodString;
1366
+ lastName: z.ZodString;
1367
+ validFrom: z.ZodNullable<z.ZodNumber>;
1368
+ validTo: z.ZodNullable<z.ZodNumber>;
1369
+ accessSuspended: z.ZodBoolean;
1370
+ credentials: z.ZodArray<z.ZodObject<{
1371
+ type: z.ZodEnum<{
1372
+ card: "card";
1373
+ pin: "pin";
1374
+ fingerprint: "fingerprint";
1375
+ }>;
1376
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1377
+ }, z.core.$strip>>;
1378
+ }, z.core.$strip>;
1379
+ }, z.core.$strip>, z.ZodObject<{
1380
+ kind: z.ZodLiteral<"delete">;
1381
+ objectId: z.ZodString;
1382
+ objectKind: z.ZodLiteral<"zone">;
1383
+ original: z.ZodObject<{
1384
+ displayName: z.ZodString;
1385
+ devices: z.ZodArray<z.ZodString>;
1386
+ }, z.core.$strip>;
1387
+ }, z.core.$strip>]>]>>;
1388
+ }, z.core.$strip>;
1389
+ export declare const sChangeIssueCode: z.ZodEnum<{
1390
+ BAD_REFERENCE: "BAD_REFERENCE";
1391
+ NOT_SUPPORTED: "NOT_SUPPORTED";
1392
+ NOT_FOUND: "NOT_FOUND";
1393
+ NOT_UNIQUE: "NOT_UNIQUE";
1394
+ INVALID: "INVALID";
1395
+ }>;
1396
+ export declare const sChangeIssue: z.ZodObject<{
1397
+ objectId: z.ZodOptional<z.ZodString>;
1398
+ objectKind: z.ZodOptional<z.ZodEnum<{
1399
+ person: "person";
1400
+ zone: "zone";
1401
+ schedule: "schedule";
1402
+ accessRule: "accessRule";
1403
+ }>>;
1404
+ code: z.ZodOptional<z.ZodEnum<{
1405
+ BAD_REFERENCE: "BAD_REFERENCE";
1406
+ NOT_SUPPORTED: "NOT_SUPPORTED";
1407
+ NOT_FOUND: "NOT_FOUND";
1408
+ NOT_UNIQUE: "NOT_UNIQUE";
1409
+ INVALID: "INVALID";
1410
+ }>>;
1411
+ path: z.ZodOptional<z.ZodString>;
1412
+ index: z.ZodOptional<z.ZodNumber>;
1413
+ message: z.ZodOptional<z.ZodString>;
1414
+ }, z.core.$strip>;
1415
+ export declare const sValidateChangeRs: z.ZodObject<{
1416
+ requestId: z.ZodString;
1417
+ kind: z.ZodLiteral<"validate-change-rs">;
1418
+ issues: z.ZodArray<z.ZodObject<{
1419
+ objectId: z.ZodOptional<z.ZodString>;
1420
+ objectKind: z.ZodOptional<z.ZodEnum<{
1421
+ person: "person";
1422
+ zone: "zone";
1423
+ schedule: "schedule";
1424
+ accessRule: "accessRule";
1425
+ }>>;
1426
+ code: z.ZodOptional<z.ZodEnum<{
1427
+ BAD_REFERENCE: "BAD_REFERENCE";
1428
+ NOT_SUPPORTED: "NOT_SUPPORTED";
1429
+ NOT_FOUND: "NOT_FOUND";
1430
+ NOT_UNIQUE: "NOT_UNIQUE";
1431
+ INVALID: "INVALID";
1432
+ }>>;
1433
+ path: z.ZodOptional<z.ZodString>;
1434
+ index: z.ZodOptional<z.ZodNumber>;
1435
+ message: z.ZodOptional<z.ZodString>;
1436
+ }, z.core.$strip>>;
1437
+ }, z.core.$strip>;
1438
+ export declare const sApplyChange: z.ZodObject<{
1439
+ kind: z.ZodLiteral<"apply-change">;
1440
+ provider: z.ZodString;
1441
+ devices: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1442
+ refMap: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
1443
+ mutations: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
1444
+ kind: z.ZodLiteral<"merge">;
1445
+ objectId: z.ZodString;
1446
+ objectKind: z.ZodLiteral<"accessRule">;
1447
+ original: z.ZodObject<{
1448
+ displayName: z.ZodString;
1449
+ appliedTo: z.ZodArray<z.ZodString>;
1450
+ permissions: z.ZodArray<z.ZodObject<{
1451
+ deviceId: z.ZodString;
1452
+ scheduleId: z.ZodString;
1453
+ }, z.core.$strip>>;
1454
+ groupPermissions: z.ZodArray<z.ZodObject<{
1455
+ groupId: z.ZodString;
1456
+ scheduleId: z.ZodString;
2450
1457
  }, z.core.$strip>>;
2451
1458
  }, z.core.$strip>;
2452
1459
  props: z.ZodObject<{
2453
1460
  displayName: z.ZodOptional<z.ZodString>;
2454
- flag: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2455
- never: "never";
2456
- always: "always";
2457
- }>>>;
2458
- include: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1461
+ appliedTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
1462
+ permissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1463
+ deviceId: z.ZodString;
1464
+ scheduleId: z.ZodString;
1465
+ }, z.core.$strip>>>;
1466
+ groupPermissions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1467
+ groupId: z.ZodString;
1468
+ scheduleId: z.ZodString;
1469
+ }, z.core.$strip>>>;
1470
+ }, z.core.$strip>;
1471
+ }, z.core.$strip>, z.ZodObject<{
1472
+ kind: z.ZodLiteral<"merge">;
1473
+ objectId: z.ZodString;
1474
+ objectKind: z.ZodLiteral<"schedule">;
1475
+ original: z.ZodObject<{
1476
+ displayName: z.ZodString;
1477
+ include: z.ZodObject<{
2459
1478
  startDate: z.ZodNullable<z.ZodString>;
2460
1479
  endDate: z.ZodNullable<z.ZodString>;
2461
1480
  timeIntervals: z.ZodArray<z.ZodObject<{
@@ -2477,8 +1496,11 @@ export declare const sApplyChange: z.ZodObject<{
2477
1496
  monthly: "monthly";
2478
1497
  yearly: "yearly";
2479
1498
  }>>;
2480
- }, z.core.$strip>>>;
2481
- exclude: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1499
+ }, z.core.$strip>;
1500
+ }, z.core.$strip>;
1501
+ props: z.ZodObject<{
1502
+ displayName: z.ZodOptional<z.ZodString>;
1503
+ include: z.ZodOptional<z.ZodObject<{
2482
1504
  startDate: z.ZodNullable<z.ZodString>;
2483
1505
  endDate: z.ZodNullable<z.ZodString>;
2484
1506
  timeIntervals: z.ZodArray<z.ZodObject<{
@@ -2500,55 +1522,7 @@ export declare const sApplyChange: z.ZodObject<{
2500
1522
  monthly: "monthly";
2501
1523
  yearly: "yearly";
2502
1524
  }>>;
2503
- }, z.core.$strip>>>;
2504
- }, z.core.$strip>;
2505
- }, z.core.$strip>, z.ZodObject<{
2506
- kind: z.ZodLiteral<"merge">;
2507
- objectId: z.ZodString;
2508
- objectKind: z.ZodLiteral<"person">;
2509
- original: z.ZodObject<{
2510
- firstName: z.ZodString;
2511
- lastName: z.ZodString;
2512
- position: z.ZodNullable<z.ZodString>;
2513
- accessSuspended: z.ZodBoolean;
2514
- staffMember: z.ZodBoolean;
2515
- validFrom: z.ZodNullable<z.ZodString>;
2516
- validTo: z.ZodNullable<z.ZodString>;
2517
- avatarId: z.ZodNullable<z.ZodString>;
2518
- credentials: z.ZodArray<z.ZodObject<{
2519
- type: z.ZodEnum<{
2520
- card: "card";
2521
- pin: "pin";
2522
- fingerprint: "fingerprint";
2523
- }>;
2524
- value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
2525
- note: z.ZodNullable<z.ZodString>;
2526
- }, z.core.$strip>>;
2527
- accessRules: z.ZodArray<z.ZodString>;
2528
- customFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
2529
- type: z.ZodString;
2530
- }, z.core.$strip>;
2531
- props: z.ZodObject<{
2532
- firstName: z.ZodString;
2533
- lastName: z.ZodString;
2534
- position: z.ZodNullable<z.ZodString>;
2535
- accessSuspended: z.ZodBoolean;
2536
- staffMember: z.ZodBoolean;
2537
- validFrom: z.ZodNullable<z.ZodString>;
2538
- validTo: z.ZodNullable<z.ZodString>;
2539
- avatarId: z.ZodNullable<z.ZodString>;
2540
- credentials: z.ZodArray<z.ZodObject<{
2541
- type: z.ZodEnum<{
2542
- card: "card";
2543
- pin: "pin";
2544
- fingerprint: "fingerprint";
2545
- }>;
2546
- value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
2547
- note: z.ZodNullable<z.ZodString>;
2548
1525
  }, z.core.$strip>>;
2549
- accessRules: z.ZodArray<z.ZodString>;
2550
- customFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
2551
- type: z.ZodString;
2552
1526
  }, z.core.$strip>;
2553
1527
  }, z.core.$strip>, z.ZodObject<{
2554
1528
  kind: z.ZodLiteral<"merge">;
@@ -2557,12 +1531,9 @@ export declare const sApplyChange: z.ZodObject<{
2557
1531
  original: z.ZodObject<{
2558
1532
  firstName: z.ZodString;
2559
1533
  lastName: z.ZodString;
2560
- position: z.ZodNullable<z.ZodString>;
1534
+ validFrom: z.ZodNullable<z.ZodNumber>;
1535
+ validTo: z.ZodNullable<z.ZodNumber>;
2561
1536
  accessSuspended: z.ZodBoolean;
2562
- staffMember: z.ZodBoolean;
2563
- validFrom: z.ZodNullable<z.ZodString>;
2564
- validTo: z.ZodNullable<z.ZodString>;
2565
- avatarId: z.ZodNullable<z.ZodString>;
2566
1537
  credentials: z.ZodArray<z.ZodObject<{
2567
1538
  type: z.ZodEnum<{
2568
1539
  card: "card";
@@ -2570,21 +1541,14 @@ export declare const sApplyChange: z.ZodObject<{
2570
1541
  fingerprint: "fingerprint";
2571
1542
  }>;
2572
1543
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
2573
- note: z.ZodNullable<z.ZodString>;
2574
1544
  }, z.core.$strip>>;
2575
- accessRules: z.ZodArray<z.ZodString>;
2576
- customFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
2577
- type: z.ZodString;
2578
1545
  }, z.core.$strip>;
2579
1546
  props: z.ZodObject<{
2580
1547
  firstName: z.ZodOptional<z.ZodString>;
2581
1548
  lastName: z.ZodOptional<z.ZodString>;
2582
- position: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1549
+ validFrom: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1550
+ validTo: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2583
1551
  accessSuspended: z.ZodOptional<z.ZodBoolean>;
2584
- staffMember: z.ZodOptional<z.ZodBoolean>;
2585
- validFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2586
- validTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2587
- avatarId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2588
1552
  credentials: z.ZodOptional<z.ZodArray<z.ZodObject<{
2589
1553
  type: z.ZodEnum<{
2590
1554
  card: "card";
@@ -2592,23 +1556,7 @@ export declare const sApplyChange: z.ZodObject<{
2592
1556
  fingerprint: "fingerprint";
2593
1557
  }>;
2594
1558
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
2595
- note: z.ZodNullable<z.ZodString>;
2596
1559
  }, z.core.$strip>>>;
2597
- accessRules: z.ZodOptional<z.ZodArray<z.ZodString>>;
2598
- customFields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2599
- type: z.ZodOptional<z.ZodString>;
2600
- }, z.core.$strip>;
2601
- }, z.core.$strip>, z.ZodObject<{
2602
- kind: z.ZodLiteral<"merge">;
2603
- objectId: z.ZodString;
2604
- objectKind: z.ZodLiteral<"zone">;
2605
- original: z.ZodObject<{
2606
- displayName: z.ZodString;
2607
- devices: z.ZodArray<z.ZodString>;
2608
- }, z.core.$strip>;
2609
- props: z.ZodObject<{
2610
- displayName: z.ZodString;
2611
- devices: z.ZodArray<z.ZodString>;
2612
1560
  }, z.core.$strip>;
2613
1561
  }, z.core.$strip>, z.ZodObject<{
2614
1562
  kind: z.ZodLiteral<"merge">;
@@ -2644,34 +1592,7 @@ export declare const sApplyChange: z.ZodObject<{
2644
1592
  objectKind: z.ZodLiteral<"schedule">;
2645
1593
  original: z.ZodObject<{
2646
1594
  displayName: z.ZodString;
2647
- flag: z.ZodNullable<z.ZodEnum<{
2648
- never: "never";
2649
- always: "always";
2650
- }>>;
2651
- include: z.ZodNullable<z.ZodObject<{
2652
- startDate: z.ZodNullable<z.ZodString>;
2653
- endDate: z.ZodNullable<z.ZodString>;
2654
- timeIntervals: z.ZodArray<z.ZodObject<{
2655
- weekDay: z.ZodEnum<{
2656
- mon: "mon";
2657
- tue: "tue";
2658
- wed: "wed";
2659
- thu: "thu";
2660
- fri: "fri";
2661
- sat: "sat";
2662
- sun: "sun";
2663
- }>;
2664
- from: z.ZodNumber;
2665
- to: z.ZodNumber;
2666
- }, z.core.$strip>>;
2667
- repeat: z.ZodNullable<z.ZodEnum<{
2668
- daily: "daily";
2669
- weekly: "weekly";
2670
- monthly: "monthly";
2671
- yearly: "yearly";
2672
- }>>;
2673
- }, z.core.$strip>>;
2674
- exclude: z.ZodNullable<z.ZodObject<{
1595
+ include: z.ZodObject<{
2675
1596
  startDate: z.ZodNullable<z.ZodString>;
2676
1597
  endDate: z.ZodNullable<z.ZodString>;
2677
1598
  timeIntervals: z.ZodArray<z.ZodObject<{
@@ -2693,7 +1614,7 @@ export declare const sApplyChange: z.ZodObject<{
2693
1614
  monthly: "monthly";
2694
1615
  yearly: "yearly";
2695
1616
  }>>;
2696
- }, z.core.$strip>>;
1617
+ }, z.core.$strip>;
2697
1618
  }, z.core.$strip>;
2698
1619
  }, z.core.$strip>, z.ZodObject<{
2699
1620
  kind: z.ZodLiteral<"delete">;
@@ -2702,12 +1623,9 @@ export declare const sApplyChange: z.ZodObject<{
2702
1623
  original: z.ZodObject<{
2703
1624
  firstName: z.ZodString;
2704
1625
  lastName: z.ZodString;
2705
- position: z.ZodNullable<z.ZodString>;
1626
+ validFrom: z.ZodNullable<z.ZodNumber>;
1627
+ validTo: z.ZodNullable<z.ZodNumber>;
2706
1628
  accessSuspended: z.ZodBoolean;
2707
- staffMember: z.ZodBoolean;
2708
- validFrom: z.ZodNullable<z.ZodString>;
2709
- validTo: z.ZodNullable<z.ZodString>;
2710
- avatarId: z.ZodNullable<z.ZodString>;
2711
1629
  credentials: z.ZodArray<z.ZodObject<{
2712
1630
  type: z.ZodEnum<{
2713
1631
  card: "card";
@@ -2715,11 +1633,7 @@ export declare const sApplyChange: z.ZodObject<{
2715
1633
  fingerprint: "fingerprint";
2716
1634
  }>;
2717
1635
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
2718
- note: z.ZodNullable<z.ZodString>;
2719
1636
  }, z.core.$strip>>;
2720
- accessRules: z.ZodArray<z.ZodString>;
2721
- customFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
2722
- type: z.ZodString;
2723
1637
  }, z.core.$strip>;
2724
1638
  }, z.core.$strip>, z.ZodObject<{
2725
1639
  kind: z.ZodLiteral<"delete">;
@@ -2746,6 +1660,91 @@ export declare const sAbortChange: z.ZodObject<{
2746
1660
  provider: z.ZodString;
2747
1661
  policyVersion: z.ZodNumber;
2748
1662
  }, z.core.$strip>;
1663
+ export declare const sDescribeObjectRq: z.ZodObject<{
1664
+ kind: z.ZodLiteral<"describe-object">;
1665
+ provider: z.ZodString;
1666
+ objectAssignedRef: z.ZodString;
1667
+ objectKind: z.ZodEnum<{
1668
+ person: "person";
1669
+ zone: "zone";
1670
+ schedule: "schedule";
1671
+ accessRule: "accessRule";
1672
+ }>;
1673
+ }, z.core.$strip>;
1674
+ export declare const sDescribeObjectRs: z.ZodObject<{
1675
+ requestId: z.ZodString;
1676
+ kind: z.ZodLiteral<"describe-object-rs">;
1677
+ object: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
1678
+ objectKind: z.ZodLiteral<"accessRule">;
1679
+ objectAssignedRef: z.ZodString;
1680
+ data: z.ZodObject<{
1681
+ displayName: z.ZodString;
1682
+ appliedTo: z.ZodArray<z.ZodString>;
1683
+ permissions: z.ZodArray<z.ZodObject<{
1684
+ deviceId: z.ZodString;
1685
+ scheduleId: z.ZodString;
1686
+ }, z.core.$strip>>;
1687
+ groupPermissions: z.ZodArray<z.ZodObject<{
1688
+ groupId: z.ZodString;
1689
+ scheduleId: z.ZodString;
1690
+ }, z.core.$strip>>;
1691
+ }, z.core.$strip>;
1692
+ }, z.core.$strip>, z.ZodObject<{
1693
+ objectKind: z.ZodLiteral<"schedule">;
1694
+ objectAssignedRef: z.ZodString;
1695
+ data: z.ZodObject<{
1696
+ displayName: z.ZodString;
1697
+ include: z.ZodObject<{
1698
+ startDate: z.ZodNullable<z.ZodString>;
1699
+ endDate: z.ZodNullable<z.ZodString>;
1700
+ timeIntervals: z.ZodArray<z.ZodObject<{
1701
+ weekDay: z.ZodEnum<{
1702
+ mon: "mon";
1703
+ tue: "tue";
1704
+ wed: "wed";
1705
+ thu: "thu";
1706
+ fri: "fri";
1707
+ sat: "sat";
1708
+ sun: "sun";
1709
+ }>;
1710
+ from: z.ZodNumber;
1711
+ to: z.ZodNumber;
1712
+ }, z.core.$strip>>;
1713
+ repeat: z.ZodNullable<z.ZodEnum<{
1714
+ daily: "daily";
1715
+ weekly: "weekly";
1716
+ monthly: "monthly";
1717
+ yearly: "yearly";
1718
+ }>>;
1719
+ }, z.core.$strip>;
1720
+ }, z.core.$strip>;
1721
+ }, z.core.$strip>, z.ZodObject<{
1722
+ objectKind: z.ZodLiteral<"person">;
1723
+ data: z.ZodObject<{
1724
+ firstName: z.ZodString;
1725
+ lastName: z.ZodString;
1726
+ validFrom: z.ZodNullable<z.ZodNumber>;
1727
+ validTo: z.ZodNullable<z.ZodNumber>;
1728
+ accessSuspended: z.ZodBoolean;
1729
+ credentials: z.ZodArray<z.ZodObject<{
1730
+ type: z.ZodEnum<{
1731
+ card: "card";
1732
+ pin: "pin";
1733
+ fingerprint: "fingerprint";
1734
+ }>;
1735
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1736
+ }, z.core.$strip>>;
1737
+ }, z.core.$strip>;
1738
+ objectAssignedRef: z.ZodString;
1739
+ }, z.core.$strip>, z.ZodObject<{
1740
+ objectKind: z.ZodLiteral<"zone">;
1741
+ data: z.ZodObject<{
1742
+ displayName: z.ZodString;
1743
+ devices: z.ZodArray<z.ZodString>;
1744
+ }, z.core.$strip>;
1745
+ objectAssignedRef: z.ZodString;
1746
+ }, z.core.$strip>]>>;
1747
+ }, z.core.$strip>;
2749
1748
  export type MessageHeader = z.infer<typeof sMessageHeader>;
2750
1749
  export type Message<TPayload> = MessageHeader & TPayload;
2751
1750
  export type ErrorPayload = z.infer<typeof sErrorPayload>;
@@ -2770,6 +1769,11 @@ export type PushEventRq = z.infer<typeof sPushEventRq>;
2770
1769
  export type PushEventRs = z.infer<typeof sPushEventRs>;
2771
1770
  export type GetAvailableDevicesRq = z.infer<typeof sGetAvailableDevicesRq>;
2772
1771
  export type GetAvailableDevicesRs = z.infer<typeof sGetAvailableDevicesRs>;
1772
+ export type ExternalPersonProps = z.infer<typeof sExternalPersonProps>;
1773
+ export type ExternalScheduleProps = z.infer<typeof sExternalScheduleProps>;
1774
+ export type ExternalAccessRuleProps = z.infer<typeof sExternalAccessRuleProps>;
1775
+ export type ExternalZoneProps = z.infer<typeof sExternalZoneProps>;
1776
+ export type ExternalObjectProps = z.infer<typeof sExternalObjectProps>;
2773
1777
  export type AccessMutation = z.infer<typeof sAccessMutation>;
2774
1778
  export type AccessValidateChangeRq = z.infer<typeof sValidateChangeRq>;
2775
1779
  export type AccessValidateChangeRs = z.infer<typeof sValidateChangeRs>;
@@ -2777,6 +1781,8 @@ export type AccessChangeIssue = z.infer<typeof sChangeIssue>;
2777
1781
  export type AccessApplyChange = z.infer<typeof sApplyChange>;
2778
1782
  export type AccessApplyChangeRs = z.infer<typeof sApplyChangeRs>;
2779
1783
  export type AccessApplyChangeProgress = z.infer<typeof sApplyChangeProgress>;
1784
+ export type DescribeObjectRq = z.infer<typeof sDescribeObjectRq>;
1785
+ export type DescribeObjectRs = z.infer<typeof sDescribeObjectRs>;
2780
1786
  export type AccessAbortChange = z.infer<typeof sAbortChange>;
2781
1787
  export type ConfigurationIssue = z.infer<typeof sConfigurationIssue>;
2782
1788
  export type AccessRefMap = z.infer<typeof sRefMap>;
@@ -2808,10 +1814,12 @@ export type PayloadByKind = {
2808
1814
  'apply-change-rs': AccessApplyChangeRs;
2809
1815
  'apply-change-progress': AccessApplyChangeProgress;
2810
1816
  'abort-change': AccessAbortChange;
1817
+ 'describe-object': DescribeObjectRq;
1818
+ 'describe-object-rs': DescribeObjectRs;
2811
1819
  'error-rs': ErrorPayload;
2812
1820
  };
2813
- export type FromAgent = ErrorPayload | RegisterRq | Unregister | ValidateProviderConfigRs | StartServiceRs | StopServiceRs | RunCommandRs | QueryRs | PushStateUpdateRq | PushEventRq | ProgressUpdate | GetAvailableDevicesRs | AccessValidateChangeRs | AccessApplyChangeRs | AccessApplyChangeProgress;
2814
- export type FromServer = ErrorPayload | RegisterRs | ValidateProviderConfigRq | StartServiceRq | StopServiceRq | RunCommandRq | QueryRq | PushFile | PushStateUpdateRs | PushEventRs | GetAvailableDevicesRq | AccessValidateChangeRq | AccessApplyChange | AccessAbortChange;
1821
+ export type FromAgent = ErrorPayload | RegisterRq | Unregister | ValidateProviderConfigRs | StartServiceRs | StopServiceRs | RunCommandRs | QueryRs | PushStateUpdateRq | PushEventRq | ProgressUpdate | GetAvailableDevicesRs | AccessValidateChangeRs | AccessApplyChangeRs | AccessApplyChangeProgress | DescribeObjectRs;
1822
+ export type FromServer = ErrorPayload | RegisterRs | ValidateProviderConfigRq | StartServiceRq | StopServiceRq | RunCommandRq | QueryRq | PushFile | PushStateUpdateRs | PushEventRs | GetAvailableDevicesRq | AccessValidateChangeRq | AccessApplyChange | AccessAbortChange | DescribeObjectRq;
2815
1823
  export type AnyPayload = FromAgent | FromServer;
2816
1824
  export declare const ReplyKindByRequestKind: {
2817
1825
  register: "register-rs";
@@ -2825,6 +1833,7 @@ export declare const ReplyKindByRequestKind: {
2825
1833
  'get-available-devices': "get-available-devices-rs";
2826
1834
  'validate-change': "validate-change-rs";
2827
1835
  'apply-change': "apply-change-rs";
1836
+ 'describe-object': "describe-object-rs";
2828
1837
  };
2829
1838
  export declare const getAgentMessageIssues: (message: unknown) => string[];
2830
1839
  export declare const isMessageFromAgent: (message: unknown) => message is Message<FromAgent>;