@awarevue/api-types 2.0.74 → 2.0.76

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.
@@ -2575,7 +2575,52 @@ export declare const sObjectMerge: z.ZodUnion<[z.ZodObject<{
2575
2575
  kind: z.ZodLiteral<"merge">;
2576
2576
  objectId: z.ZodString;
2577
2577
  objectKind: z.ZodLiteral<"accessRule">;
2578
- original: z.ZodNull;
2578
+ original: z.ZodObject<{
2579
+ displayName: z.ZodString;
2580
+ appliedTo: z.ZodArray<z.ZodString, "many">;
2581
+ permissions: z.ZodArray<z.ZodObject<{
2582
+ deviceId: z.ZodString;
2583
+ scheduleId: z.ZodString;
2584
+ }, "strip", z.ZodTypeAny, {
2585
+ deviceId: string;
2586
+ scheduleId: string;
2587
+ }, {
2588
+ deviceId: string;
2589
+ scheduleId: string;
2590
+ }>, "many">;
2591
+ groupPermissions: z.ZodArray<z.ZodObject<{
2592
+ groupId: z.ZodString;
2593
+ scheduleId: z.ZodString;
2594
+ }, "strip", z.ZodTypeAny, {
2595
+ scheduleId: string;
2596
+ groupId: string;
2597
+ }, {
2598
+ scheduleId: string;
2599
+ groupId: string;
2600
+ }>, "many">;
2601
+ }, "strip", z.ZodTypeAny, {
2602
+ displayName: string;
2603
+ appliedTo: string[];
2604
+ permissions: {
2605
+ deviceId: string;
2606
+ scheduleId: string;
2607
+ }[];
2608
+ groupPermissions: {
2609
+ scheduleId: string;
2610
+ groupId: string;
2611
+ }[];
2612
+ }, {
2613
+ displayName: string;
2614
+ appliedTo: string[];
2615
+ permissions: {
2616
+ deviceId: string;
2617
+ scheduleId: string;
2618
+ }[];
2619
+ groupPermissions: {
2620
+ scheduleId: string;
2621
+ groupId: string;
2622
+ }[];
2623
+ }>;
2579
2624
  props: z.ZodObject<{
2580
2625
  displayName: z.ZodString;
2581
2626
  appliedTo: z.ZodArray<z.ZodString, "many">;
@@ -2626,7 +2671,18 @@ export declare const sObjectMerge: z.ZodUnion<[z.ZodObject<{
2626
2671
  kind: "merge";
2627
2672
  objectKind: "accessRule";
2628
2673
  objectId: string;
2629
- original: null;
2674
+ original: {
2675
+ displayName: string;
2676
+ appliedTo: string[];
2677
+ permissions: {
2678
+ deviceId: string;
2679
+ scheduleId: string;
2680
+ }[];
2681
+ groupPermissions: {
2682
+ scheduleId: string;
2683
+ groupId: string;
2684
+ }[];
2685
+ };
2630
2686
  props: {
2631
2687
  displayName: string;
2632
2688
  appliedTo: string[];
@@ -2643,7 +2699,18 @@ export declare const sObjectMerge: z.ZodUnion<[z.ZodObject<{
2643
2699
  kind: "merge";
2644
2700
  objectKind: "accessRule";
2645
2701
  objectId: string;
2646
- original: null;
2702
+ original: {
2703
+ displayName: string;
2704
+ appliedTo: string[];
2705
+ permissions: {
2706
+ deviceId: string;
2707
+ scheduleId: string;
2708
+ }[];
2709
+ groupPermissions: {
2710
+ scheduleId: string;
2711
+ groupId: string;
2712
+ }[];
2713
+ };
2647
2714
  props: {
2648
2715
  displayName: string;
2649
2716
  appliedTo: string[];
@@ -2812,7 +2879,128 @@ export declare const sObjectMerge: z.ZodUnion<[z.ZodObject<{
2812
2879
  kind: z.ZodLiteral<"merge">;
2813
2880
  objectId: z.ZodString;
2814
2881
  objectKind: z.ZodLiteral<"schedule">;
2815
- original: z.ZodNull;
2882
+ original: z.ZodObject<{
2883
+ displayName: z.ZodString;
2884
+ flag: z.ZodNullable<z.ZodEnum<["always", "never"]>>;
2885
+ include: z.ZodNullable<z.ZodObject<{
2886
+ startDate: z.ZodNullable<z.ZodString>;
2887
+ endDate: z.ZodNullable<z.ZodString>;
2888
+ timeIntervals: z.ZodArray<z.ZodObject<{
2889
+ weekDay: z.ZodEnum<["mon", "tue", "wed", "thu", "fri", "sat", "sun"]>;
2890
+ from: z.ZodNumber;
2891
+ to: z.ZodNumber;
2892
+ }, "strip", z.ZodTypeAny, {
2893
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
2894
+ from: number;
2895
+ to: number;
2896
+ }, {
2897
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
2898
+ from: number;
2899
+ to: number;
2900
+ }>, "many">;
2901
+ repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
2902
+ }, "strip", z.ZodTypeAny, {
2903
+ startDate: string | null;
2904
+ endDate: string | null;
2905
+ timeIntervals: {
2906
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
2907
+ from: number;
2908
+ to: number;
2909
+ }[];
2910
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
2911
+ }, {
2912
+ startDate: string | null;
2913
+ endDate: string | null;
2914
+ timeIntervals: {
2915
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
2916
+ from: number;
2917
+ to: number;
2918
+ }[];
2919
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
2920
+ }>>;
2921
+ exclude: z.ZodNullable<z.ZodObject<{
2922
+ startDate: z.ZodNullable<z.ZodString>;
2923
+ endDate: z.ZodNullable<z.ZodString>;
2924
+ timeIntervals: z.ZodArray<z.ZodObject<{
2925
+ weekDay: z.ZodEnum<["mon", "tue", "wed", "thu", "fri", "sat", "sun"]>;
2926
+ from: z.ZodNumber;
2927
+ to: z.ZodNumber;
2928
+ }, "strip", z.ZodTypeAny, {
2929
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
2930
+ from: number;
2931
+ to: number;
2932
+ }, {
2933
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
2934
+ from: number;
2935
+ to: number;
2936
+ }>, "many">;
2937
+ repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
2938
+ }, "strip", z.ZodTypeAny, {
2939
+ startDate: string | null;
2940
+ endDate: string | null;
2941
+ timeIntervals: {
2942
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
2943
+ from: number;
2944
+ to: number;
2945
+ }[];
2946
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
2947
+ }, {
2948
+ startDate: string | null;
2949
+ endDate: string | null;
2950
+ timeIntervals: {
2951
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
2952
+ from: number;
2953
+ to: number;
2954
+ }[];
2955
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
2956
+ }>>;
2957
+ }, "strip", z.ZodTypeAny, {
2958
+ displayName: string;
2959
+ include: {
2960
+ startDate: string | null;
2961
+ endDate: string | null;
2962
+ timeIntervals: {
2963
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
2964
+ from: number;
2965
+ to: number;
2966
+ }[];
2967
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
2968
+ } | null;
2969
+ exclude: {
2970
+ startDate: string | null;
2971
+ endDate: string | null;
2972
+ timeIntervals: {
2973
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
2974
+ from: number;
2975
+ to: number;
2976
+ }[];
2977
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
2978
+ } | null;
2979
+ flag: "never" | "always" | null;
2980
+ }, {
2981
+ displayName: string;
2982
+ include: {
2983
+ startDate: string | null;
2984
+ endDate: string | null;
2985
+ timeIntervals: {
2986
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
2987
+ from: number;
2988
+ to: number;
2989
+ }[];
2990
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
2991
+ } | null;
2992
+ exclude: {
2993
+ startDate: string | null;
2994
+ endDate: string | null;
2995
+ timeIntervals: {
2996
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
2997
+ from: number;
2998
+ to: number;
2999
+ }[];
3000
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
3001
+ } | null;
3002
+ flag: "never" | "always" | null;
3003
+ }>;
2816
3004
  props: z.ZodObject<{
2817
3005
  displayName: z.ZodString;
2818
3006
  flag: z.ZodNullable<z.ZodEnum<["always", "never"]>>;
@@ -2939,7 +3127,30 @@ export declare const sObjectMerge: z.ZodUnion<[z.ZodObject<{
2939
3127
  kind: "merge";
2940
3128
  objectKind: "schedule";
2941
3129
  objectId: string;
2942
- original: null;
3130
+ original: {
3131
+ displayName: string;
3132
+ include: {
3133
+ startDate: string | null;
3134
+ endDate: string | null;
3135
+ timeIntervals: {
3136
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
3137
+ from: number;
3138
+ to: number;
3139
+ }[];
3140
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
3141
+ } | null;
3142
+ exclude: {
3143
+ startDate: string | null;
3144
+ endDate: string | null;
3145
+ timeIntervals: {
3146
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
3147
+ from: number;
3148
+ to: number;
3149
+ }[];
3150
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
3151
+ } | null;
3152
+ flag: "never" | "always" | null;
3153
+ };
2943
3154
  props: {
2944
3155
  displayName: string;
2945
3156
  include: {
@@ -2968,7 +3179,30 @@ export declare const sObjectMerge: z.ZodUnion<[z.ZodObject<{
2968
3179
  kind: "merge";
2969
3180
  objectKind: "schedule";
2970
3181
  objectId: string;
2971
- original: null;
3182
+ original: {
3183
+ displayName: string;
3184
+ include: {
3185
+ startDate: string | null;
3186
+ endDate: string | null;
3187
+ timeIntervals: {
3188
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
3189
+ from: number;
3190
+ to: number;
3191
+ }[];
3192
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
3193
+ } | null;
3194
+ exclude: {
3195
+ startDate: string | null;
3196
+ endDate: string | null;
3197
+ timeIntervals: {
3198
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
3199
+ from: number;
3200
+ to: number;
3201
+ }[];
3202
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
3203
+ } | null;
3204
+ flag: "never" | "always" | null;
3205
+ };
2972
3206
  props: {
2973
3207
  displayName: string;
2974
3208
  include: {
@@ -3349,8 +3583,7 @@ export declare const sObjectMerge: z.ZodUnion<[z.ZodObject<{
3349
3583
  kind: z.ZodLiteral<"merge">;
3350
3584
  objectId: z.ZodString;
3351
3585
  objectKind: z.ZodLiteral<"person">;
3352
- original: z.ZodNull;
3353
- props: z.ZodObject<{
3586
+ original: z.ZodObject<{
3354
3587
  firstName: z.ZodString;
3355
3588
  lastName: z.ZodString;
3356
3589
  position: z.ZodNullable<z.ZodString>;
@@ -3410,21 +3643,98 @@ export declare const sObjectMerge: z.ZodUnion<[z.ZodObject<{
3410
3643
  accessRules: string[];
3411
3644
  customFields: Record<string, string> | null;
3412
3645
  }>;
3413
- }, "strip", z.ZodTypeAny, {
3414
- kind: "merge";
3415
- objectKind: "person";
3416
- objectId: string;
3417
- original: null;
3418
- props: {
3419
- type: string;
3420
- firstName: string;
3421
- lastName: string;
3422
- avatarId: string | null;
3423
- position: string | null;
3424
- accessSuspended: boolean;
3425
- staffMember: boolean;
3426
- validFrom: string | null;
3427
- validTo: string | null;
3646
+ props: z.ZodObject<{
3647
+ firstName: z.ZodString;
3648
+ lastName: z.ZodString;
3649
+ position: z.ZodNullable<z.ZodString>;
3650
+ accessSuspended: z.ZodBoolean;
3651
+ staffMember: z.ZodBoolean;
3652
+ validFrom: z.ZodNullable<z.ZodString>;
3653
+ validTo: z.ZodNullable<z.ZodString>;
3654
+ avatarId: z.ZodNullable<z.ZodString>;
3655
+ credentials: z.ZodArray<z.ZodObject<{
3656
+ type: z.ZodEnum<["card", "pin", "fingerprint"]>;
3657
+ value: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
3658
+ note: z.ZodNullable<z.ZodString>;
3659
+ }, "strip", z.ZodTypeAny, {
3660
+ value: string | Record<string, unknown>;
3661
+ type: "card" | "pin" | "fingerprint";
3662
+ note: string | null;
3663
+ }, {
3664
+ value: string | Record<string, unknown>;
3665
+ type: "card" | "pin" | "fingerprint";
3666
+ note: string | null;
3667
+ }>, "many">;
3668
+ accessRules: z.ZodArray<z.ZodString, "many">;
3669
+ customFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
3670
+ type: z.ZodString;
3671
+ }, "strip", z.ZodTypeAny, {
3672
+ type: string;
3673
+ firstName: string;
3674
+ lastName: string;
3675
+ avatarId: string | null;
3676
+ position: string | null;
3677
+ accessSuspended: boolean;
3678
+ staffMember: boolean;
3679
+ validFrom: string | null;
3680
+ validTo: string | null;
3681
+ credentials: {
3682
+ value: string | Record<string, unknown>;
3683
+ type: "card" | "pin" | "fingerprint";
3684
+ note: string | null;
3685
+ }[];
3686
+ accessRules: string[];
3687
+ customFields: Record<string, string> | null;
3688
+ }, {
3689
+ type: string;
3690
+ firstName: string;
3691
+ lastName: string;
3692
+ avatarId: string | null;
3693
+ position: string | null;
3694
+ accessSuspended: boolean;
3695
+ staffMember: boolean;
3696
+ validFrom: string | null;
3697
+ validTo: string | null;
3698
+ credentials: {
3699
+ value: string | Record<string, unknown>;
3700
+ type: "card" | "pin" | "fingerprint";
3701
+ note: string | null;
3702
+ }[];
3703
+ accessRules: string[];
3704
+ customFields: Record<string, string> | null;
3705
+ }>;
3706
+ }, "strip", z.ZodTypeAny, {
3707
+ kind: "merge";
3708
+ objectKind: "person";
3709
+ objectId: string;
3710
+ original: {
3711
+ type: string;
3712
+ firstName: string;
3713
+ lastName: string;
3714
+ avatarId: string | null;
3715
+ position: string | null;
3716
+ accessSuspended: boolean;
3717
+ staffMember: boolean;
3718
+ validFrom: string | null;
3719
+ validTo: string | null;
3720
+ credentials: {
3721
+ value: string | Record<string, unknown>;
3722
+ type: "card" | "pin" | "fingerprint";
3723
+ note: string | null;
3724
+ }[];
3725
+ accessRules: string[];
3726
+ customFields: Record<string, string> | null;
3727
+ };
3728
+ props: {
3729
+ type: string;
3730
+ firstName: string;
3731
+ lastName: string;
3732
+ avatarId: string | null;
3733
+ position: string | null;
3734
+ accessSuspended: boolean;
3735
+ staffMember: boolean;
3736
+ validFrom: string | null;
3737
+ validTo: string | null;
3428
3738
  credentials: {
3429
3739
  value: string | Record<string, unknown>;
3430
3740
  type: "card" | "pin" | "fingerprint";
@@ -3437,7 +3747,24 @@ export declare const sObjectMerge: z.ZodUnion<[z.ZodObject<{
3437
3747
  kind: "merge";
3438
3748
  objectKind: "person";
3439
3749
  objectId: string;
3440
- original: null;
3750
+ original: {
3751
+ type: string;
3752
+ firstName: string;
3753
+ lastName: string;
3754
+ avatarId: string | null;
3755
+ position: string | null;
3756
+ accessSuspended: boolean;
3757
+ staffMember: boolean;
3758
+ validFrom: string | null;
3759
+ validTo: string | null;
3760
+ credentials: {
3761
+ value: string | Record<string, unknown>;
3762
+ type: "card" | "pin" | "fingerprint";
3763
+ note: string | null;
3764
+ }[];
3765
+ accessRules: string[];
3766
+ customFields: Record<string, string> | null;
3767
+ };
3441
3768
  props: {
3442
3769
  type: string;
3443
3770
  firstName: string;
@@ -3664,7 +3991,16 @@ export declare const sObjectMerge: z.ZodUnion<[z.ZodObject<{
3664
3991
  kind: z.ZodLiteral<"merge">;
3665
3992
  objectId: z.ZodString;
3666
3993
  objectKind: z.ZodLiteral<"zone">;
3667
- original: z.ZodNull;
3994
+ original: z.ZodObject<{
3995
+ displayName: z.ZodString;
3996
+ devices: z.ZodArray<z.ZodString, "many">;
3997
+ }, "strip", z.ZodTypeAny, {
3998
+ displayName: string;
3999
+ devices: string[];
4000
+ }, {
4001
+ displayName: string;
4002
+ devices: string[];
4003
+ }>;
3668
4004
  props: z.ZodObject<{
3669
4005
  displayName: z.ZodString;
3670
4006
  devices: z.ZodArray<z.ZodString, "many">;
@@ -3679,7 +4015,10 @@ export declare const sObjectMerge: z.ZodUnion<[z.ZodObject<{
3679
4015
  kind: "merge";
3680
4016
  objectKind: "zone";
3681
4017
  objectId: string;
3682
- original: null;
4018
+ original: {
4019
+ displayName: string;
4020
+ devices: string[];
4021
+ };
3683
4022
  props: {
3684
4023
  displayName: string;
3685
4024
  devices: string[];
@@ -3688,7 +4027,10 @@ export declare const sObjectMerge: z.ZodUnion<[z.ZodObject<{
3688
4027
  kind: "merge";
3689
4028
  objectKind: "zone";
3690
4029
  objectId: string;
3691
- original: null;
4030
+ original: {
4031
+ displayName: string;
4032
+ devices: string[];
4033
+ };
3692
4034
  props: {
3693
4035
  displayName: string;
3694
4036
  devices: string[];
@@ -4149,7 +4491,52 @@ export declare const sAccessMutation: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
4149
4491
  kind: z.ZodLiteral<"merge">;
4150
4492
  objectId: z.ZodString;
4151
4493
  objectKind: z.ZodLiteral<"accessRule">;
4152
- original: z.ZodNull;
4494
+ original: z.ZodObject<{
4495
+ displayName: z.ZodString;
4496
+ appliedTo: z.ZodArray<z.ZodString, "many">;
4497
+ permissions: z.ZodArray<z.ZodObject<{
4498
+ deviceId: z.ZodString;
4499
+ scheduleId: z.ZodString;
4500
+ }, "strip", z.ZodTypeAny, {
4501
+ deviceId: string;
4502
+ scheduleId: string;
4503
+ }, {
4504
+ deviceId: string;
4505
+ scheduleId: string;
4506
+ }>, "many">;
4507
+ groupPermissions: z.ZodArray<z.ZodObject<{
4508
+ groupId: z.ZodString;
4509
+ scheduleId: z.ZodString;
4510
+ }, "strip", z.ZodTypeAny, {
4511
+ scheduleId: string;
4512
+ groupId: string;
4513
+ }, {
4514
+ scheduleId: string;
4515
+ groupId: string;
4516
+ }>, "many">;
4517
+ }, "strip", z.ZodTypeAny, {
4518
+ displayName: string;
4519
+ appliedTo: string[];
4520
+ permissions: {
4521
+ deviceId: string;
4522
+ scheduleId: string;
4523
+ }[];
4524
+ groupPermissions: {
4525
+ scheduleId: string;
4526
+ groupId: string;
4527
+ }[];
4528
+ }, {
4529
+ displayName: string;
4530
+ appliedTo: string[];
4531
+ permissions: {
4532
+ deviceId: string;
4533
+ scheduleId: string;
4534
+ }[];
4535
+ groupPermissions: {
4536
+ scheduleId: string;
4537
+ groupId: string;
4538
+ }[];
4539
+ }>;
4153
4540
  props: z.ZodObject<{
4154
4541
  displayName: z.ZodString;
4155
4542
  appliedTo: z.ZodArray<z.ZodString, "many">;
@@ -4200,7 +4587,18 @@ export declare const sAccessMutation: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
4200
4587
  kind: "merge";
4201
4588
  objectKind: "accessRule";
4202
4589
  objectId: string;
4203
- original: null;
4590
+ original: {
4591
+ displayName: string;
4592
+ appliedTo: string[];
4593
+ permissions: {
4594
+ deviceId: string;
4595
+ scheduleId: string;
4596
+ }[];
4597
+ groupPermissions: {
4598
+ scheduleId: string;
4599
+ groupId: string;
4600
+ }[];
4601
+ };
4204
4602
  props: {
4205
4603
  displayName: string;
4206
4604
  appliedTo: string[];
@@ -4217,7 +4615,18 @@ export declare const sAccessMutation: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
4217
4615
  kind: "merge";
4218
4616
  objectKind: "accessRule";
4219
4617
  objectId: string;
4220
- original: null;
4618
+ original: {
4619
+ displayName: string;
4620
+ appliedTo: string[];
4621
+ permissions: {
4622
+ deviceId: string;
4623
+ scheduleId: string;
4624
+ }[];
4625
+ groupPermissions: {
4626
+ scheduleId: string;
4627
+ groupId: string;
4628
+ }[];
4629
+ };
4221
4630
  props: {
4222
4631
  displayName: string;
4223
4632
  appliedTo: string[];
@@ -4386,8 +4795,7 @@ export declare const sAccessMutation: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
4386
4795
  kind: z.ZodLiteral<"merge">;
4387
4796
  objectId: z.ZodString;
4388
4797
  objectKind: z.ZodLiteral<"schedule">;
4389
- original: z.ZodNull;
4390
- props: z.ZodObject<{
4798
+ original: z.ZodObject<{
4391
4799
  displayName: z.ZodString;
4392
4800
  flag: z.ZodNullable<z.ZodEnum<["always", "never"]>>;
4393
4801
  include: z.ZodNullable<z.ZodObject<{
@@ -4509,43 +4917,27 @@ export declare const sAccessMutation: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
4509
4917
  } | null;
4510
4918
  flag: "never" | "always" | null;
4511
4919
  }>;
4512
- }, "strip", z.ZodTypeAny, {
4513
- kind: "merge";
4514
- objectKind: "schedule";
4515
- objectId: string;
4516
- original: null;
4517
- props: {
4518
- displayName: string;
4519
- include: {
4520
- startDate: string | null;
4521
- endDate: string | null;
4522
- timeIntervals: {
4920
+ props: z.ZodObject<{
4921
+ displayName: z.ZodString;
4922
+ flag: z.ZodNullable<z.ZodEnum<["always", "never"]>>;
4923
+ include: z.ZodNullable<z.ZodObject<{
4924
+ startDate: z.ZodNullable<z.ZodString>;
4925
+ endDate: z.ZodNullable<z.ZodString>;
4926
+ timeIntervals: z.ZodArray<z.ZodObject<{
4927
+ weekDay: z.ZodEnum<["mon", "tue", "wed", "thu", "fri", "sat", "sun"]>;
4928
+ from: z.ZodNumber;
4929
+ to: z.ZodNumber;
4930
+ }, "strip", z.ZodTypeAny, {
4523
4931
  weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
4524
4932
  from: number;
4525
4933
  to: number;
4526
- }[];
4527
- repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
4528
- } | null;
4529
- exclude: {
4530
- startDate: string | null;
4531
- endDate: string | null;
4532
- timeIntervals: {
4934
+ }, {
4533
4935
  weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
4534
4936
  from: number;
4535
4937
  to: number;
4536
- }[];
4537
- repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
4538
- } | null;
4539
- flag: "never" | "always" | null;
4540
- };
4541
- }, {
4542
- kind: "merge";
4543
- objectKind: "schedule";
4544
- objectId: string;
4545
- original: null;
4546
- props: {
4547
- displayName: string;
4548
- include: {
4938
+ }>, "many">;
4939
+ repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
4940
+ }, "strip", z.ZodTypeAny, {
4549
4941
  startDate: string | null;
4550
4942
  endDate: string | null;
4551
4943
  timeIntervals: {
@@ -4554,8 +4946,7 @@ export declare const sAccessMutation: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
4554
4946
  to: number;
4555
4947
  }[];
4556
4948
  repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
4557
- } | null;
4558
- exclude: {
4949
+ }, {
4559
4950
  startDate: string | null;
4560
4951
  endDate: string | null;
4561
4952
  timeIntervals: {
@@ -4564,15 +4955,200 @@ export declare const sAccessMutation: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
4564
4955
  to: number;
4565
4956
  }[];
4566
4957
  repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
4567
- } | null;
4568
- flag: "never" | "always" | null;
4569
- };
4570
- }>, z.ZodObject<{
4571
- kind: z.ZodLiteral<"merge">;
4572
- objectId: z.ZodString;
4573
- objectKind: z.ZodLiteral<"schedule">;
4574
- original: z.ZodObject<{
4575
- displayName: z.ZodString;
4958
+ }>>;
4959
+ exclude: z.ZodNullable<z.ZodObject<{
4960
+ startDate: z.ZodNullable<z.ZodString>;
4961
+ endDate: z.ZodNullable<z.ZodString>;
4962
+ timeIntervals: z.ZodArray<z.ZodObject<{
4963
+ weekDay: z.ZodEnum<["mon", "tue", "wed", "thu", "fri", "sat", "sun"]>;
4964
+ from: z.ZodNumber;
4965
+ to: z.ZodNumber;
4966
+ }, "strip", z.ZodTypeAny, {
4967
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
4968
+ from: number;
4969
+ to: number;
4970
+ }, {
4971
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
4972
+ from: number;
4973
+ to: number;
4974
+ }>, "many">;
4975
+ repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
4976
+ }, "strip", z.ZodTypeAny, {
4977
+ startDate: string | null;
4978
+ endDate: string | null;
4979
+ timeIntervals: {
4980
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
4981
+ from: number;
4982
+ to: number;
4983
+ }[];
4984
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
4985
+ }, {
4986
+ startDate: string | null;
4987
+ endDate: string | null;
4988
+ timeIntervals: {
4989
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
4990
+ from: number;
4991
+ to: number;
4992
+ }[];
4993
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
4994
+ }>>;
4995
+ }, "strip", z.ZodTypeAny, {
4996
+ displayName: string;
4997
+ include: {
4998
+ startDate: string | null;
4999
+ endDate: string | null;
5000
+ timeIntervals: {
5001
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
5002
+ from: number;
5003
+ to: number;
5004
+ }[];
5005
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
5006
+ } | null;
5007
+ exclude: {
5008
+ startDate: string | null;
5009
+ endDate: string | null;
5010
+ timeIntervals: {
5011
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
5012
+ from: number;
5013
+ to: number;
5014
+ }[];
5015
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
5016
+ } | null;
5017
+ flag: "never" | "always" | null;
5018
+ }, {
5019
+ displayName: string;
5020
+ include: {
5021
+ startDate: string | null;
5022
+ endDate: string | null;
5023
+ timeIntervals: {
5024
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
5025
+ from: number;
5026
+ to: number;
5027
+ }[];
5028
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
5029
+ } | null;
5030
+ exclude: {
5031
+ startDate: string | null;
5032
+ endDate: string | null;
5033
+ timeIntervals: {
5034
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
5035
+ from: number;
5036
+ to: number;
5037
+ }[];
5038
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
5039
+ } | null;
5040
+ flag: "never" | "always" | null;
5041
+ }>;
5042
+ }, "strip", z.ZodTypeAny, {
5043
+ kind: "merge";
5044
+ objectKind: "schedule";
5045
+ objectId: string;
5046
+ original: {
5047
+ displayName: string;
5048
+ include: {
5049
+ startDate: string | null;
5050
+ endDate: string | null;
5051
+ timeIntervals: {
5052
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
5053
+ from: number;
5054
+ to: number;
5055
+ }[];
5056
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
5057
+ } | null;
5058
+ exclude: {
5059
+ startDate: string | null;
5060
+ endDate: string | null;
5061
+ timeIntervals: {
5062
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
5063
+ from: number;
5064
+ to: number;
5065
+ }[];
5066
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
5067
+ } | null;
5068
+ flag: "never" | "always" | null;
5069
+ };
5070
+ props: {
5071
+ displayName: string;
5072
+ include: {
5073
+ startDate: string | null;
5074
+ endDate: string | null;
5075
+ timeIntervals: {
5076
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
5077
+ from: number;
5078
+ to: number;
5079
+ }[];
5080
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
5081
+ } | null;
5082
+ exclude: {
5083
+ startDate: string | null;
5084
+ endDate: string | null;
5085
+ timeIntervals: {
5086
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
5087
+ from: number;
5088
+ to: number;
5089
+ }[];
5090
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
5091
+ } | null;
5092
+ flag: "never" | "always" | null;
5093
+ };
5094
+ }, {
5095
+ kind: "merge";
5096
+ objectKind: "schedule";
5097
+ objectId: string;
5098
+ original: {
5099
+ displayName: string;
5100
+ include: {
5101
+ startDate: string | null;
5102
+ endDate: string | null;
5103
+ timeIntervals: {
5104
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
5105
+ from: number;
5106
+ to: number;
5107
+ }[];
5108
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
5109
+ } | null;
5110
+ exclude: {
5111
+ startDate: string | null;
5112
+ endDate: string | null;
5113
+ timeIntervals: {
5114
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
5115
+ from: number;
5116
+ to: number;
5117
+ }[];
5118
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
5119
+ } | null;
5120
+ flag: "never" | "always" | null;
5121
+ };
5122
+ props: {
5123
+ displayName: string;
5124
+ include: {
5125
+ startDate: string | null;
5126
+ endDate: string | null;
5127
+ timeIntervals: {
5128
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
5129
+ from: number;
5130
+ to: number;
5131
+ }[];
5132
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
5133
+ } | null;
5134
+ exclude: {
5135
+ startDate: string | null;
5136
+ endDate: string | null;
5137
+ timeIntervals: {
5138
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
5139
+ from: number;
5140
+ to: number;
5141
+ }[];
5142
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
5143
+ } | null;
5144
+ flag: "never" | "always" | null;
5145
+ };
5146
+ }>, z.ZodObject<{
5147
+ kind: z.ZodLiteral<"merge">;
5148
+ objectId: z.ZodString;
5149
+ objectKind: z.ZodLiteral<"schedule">;
5150
+ original: z.ZodObject<{
5151
+ displayName: z.ZodString;
4576
5152
  flag: z.ZodNullable<z.ZodEnum<["always", "never"]>>;
4577
5153
  include: z.ZodNullable<z.ZodObject<{
4578
5154
  startDate: z.ZodNullable<z.ZodString>;
@@ -4923,7 +5499,66 @@ export declare const sAccessMutation: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
4923
5499
  kind: z.ZodLiteral<"merge">;
4924
5500
  objectId: z.ZodString;
4925
5501
  objectKind: z.ZodLiteral<"person">;
4926
- original: z.ZodNull;
5502
+ original: z.ZodObject<{
5503
+ firstName: z.ZodString;
5504
+ lastName: z.ZodString;
5505
+ position: z.ZodNullable<z.ZodString>;
5506
+ accessSuspended: z.ZodBoolean;
5507
+ staffMember: z.ZodBoolean;
5508
+ validFrom: z.ZodNullable<z.ZodString>;
5509
+ validTo: z.ZodNullable<z.ZodString>;
5510
+ avatarId: z.ZodNullable<z.ZodString>;
5511
+ credentials: z.ZodArray<z.ZodObject<{
5512
+ type: z.ZodEnum<["card", "pin", "fingerprint"]>;
5513
+ value: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
5514
+ note: z.ZodNullable<z.ZodString>;
5515
+ }, "strip", z.ZodTypeAny, {
5516
+ value: string | Record<string, unknown>;
5517
+ type: "card" | "pin" | "fingerprint";
5518
+ note: string | null;
5519
+ }, {
5520
+ value: string | Record<string, unknown>;
5521
+ type: "card" | "pin" | "fingerprint";
5522
+ note: string | null;
5523
+ }>, "many">;
5524
+ accessRules: z.ZodArray<z.ZodString, "many">;
5525
+ customFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
5526
+ type: z.ZodString;
5527
+ }, "strip", z.ZodTypeAny, {
5528
+ type: string;
5529
+ firstName: string;
5530
+ lastName: string;
5531
+ avatarId: string | null;
5532
+ position: string | null;
5533
+ accessSuspended: boolean;
5534
+ staffMember: boolean;
5535
+ validFrom: string | null;
5536
+ validTo: string | null;
5537
+ credentials: {
5538
+ value: string | Record<string, unknown>;
5539
+ type: "card" | "pin" | "fingerprint";
5540
+ note: string | null;
5541
+ }[];
5542
+ accessRules: string[];
5543
+ customFields: Record<string, string> | null;
5544
+ }, {
5545
+ type: string;
5546
+ firstName: string;
5547
+ lastName: string;
5548
+ avatarId: string | null;
5549
+ position: string | null;
5550
+ accessSuspended: boolean;
5551
+ staffMember: boolean;
5552
+ validFrom: string | null;
5553
+ validTo: string | null;
5554
+ credentials: {
5555
+ value: string | Record<string, unknown>;
5556
+ type: "card" | "pin" | "fingerprint";
5557
+ note: string | null;
5558
+ }[];
5559
+ accessRules: string[];
5560
+ customFields: Record<string, string> | null;
5561
+ }>;
4927
5562
  props: z.ZodObject<{
4928
5563
  firstName: z.ZodString;
4929
5564
  lastName: z.ZodString;
@@ -4988,8 +5623,47 @@ export declare const sAccessMutation: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
4988
5623
  kind: "merge";
4989
5624
  objectKind: "person";
4990
5625
  objectId: string;
4991
- original: null;
4992
- props: {
5626
+ original: {
5627
+ type: string;
5628
+ firstName: string;
5629
+ lastName: string;
5630
+ avatarId: string | null;
5631
+ position: string | null;
5632
+ accessSuspended: boolean;
5633
+ staffMember: boolean;
5634
+ validFrom: string | null;
5635
+ validTo: string | null;
5636
+ credentials: {
5637
+ value: string | Record<string, unknown>;
5638
+ type: "card" | "pin" | "fingerprint";
5639
+ note: string | null;
5640
+ }[];
5641
+ accessRules: string[];
5642
+ customFields: Record<string, string> | null;
5643
+ };
5644
+ props: {
5645
+ type: string;
5646
+ firstName: string;
5647
+ lastName: string;
5648
+ avatarId: string | null;
5649
+ position: string | null;
5650
+ accessSuspended: boolean;
5651
+ staffMember: boolean;
5652
+ validFrom: string | null;
5653
+ validTo: string | null;
5654
+ credentials: {
5655
+ value: string | Record<string, unknown>;
5656
+ type: "card" | "pin" | "fingerprint";
5657
+ note: string | null;
5658
+ }[];
5659
+ accessRules: string[];
5660
+ customFields: Record<string, string> | null;
5661
+ };
5662
+ }, {
5663
+ kind: "merge";
5664
+ objectKind: "person";
5665
+ objectId: string;
5666
+ original: {
4993
5667
  type: string;
4994
5668
  firstName: string;
4995
5669
  lastName: string;
@@ -5007,11 +5681,6 @@ export declare const sAccessMutation: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
5007
5681
  accessRules: string[];
5008
5682
  customFields: Record<string, string> | null;
5009
5683
  };
5010
- }, {
5011
- kind: "merge";
5012
- objectKind: "person";
5013
- objectId: string;
5014
- original: null;
5015
5684
  props: {
5016
5685
  type: string;
5017
5686
  firstName: string;
@@ -5238,7 +5907,16 @@ export declare const sAccessMutation: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
5238
5907
  kind: z.ZodLiteral<"merge">;
5239
5908
  objectId: z.ZodString;
5240
5909
  objectKind: z.ZodLiteral<"zone">;
5241
- original: z.ZodNull;
5910
+ original: z.ZodObject<{
5911
+ displayName: z.ZodString;
5912
+ devices: z.ZodArray<z.ZodString, "many">;
5913
+ }, "strip", z.ZodTypeAny, {
5914
+ displayName: string;
5915
+ devices: string[];
5916
+ }, {
5917
+ displayName: string;
5918
+ devices: string[];
5919
+ }>;
5242
5920
  props: z.ZodObject<{
5243
5921
  displayName: z.ZodString;
5244
5922
  devices: z.ZodArray<z.ZodString, "many">;
@@ -5253,7 +5931,10 @@ export declare const sAccessMutation: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
5253
5931
  kind: "merge";
5254
5932
  objectKind: "zone";
5255
5933
  objectId: string;
5256
- original: null;
5934
+ original: {
5935
+ displayName: string;
5936
+ devices: string[];
5937
+ };
5257
5938
  props: {
5258
5939
  displayName: string;
5259
5940
  devices: string[];
@@ -5262,7 +5943,10 @@ export declare const sAccessMutation: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
5262
5943
  kind: "merge";
5263
5944
  objectKind: "zone";
5264
5945
  objectId: string;
5265
- original: null;
5946
+ original: {
5947
+ displayName: string;
5948
+ devices: string[];
5949
+ };
5266
5950
  props: {
5267
5951
  displayName: string;
5268
5952
  devices: string[];
@@ -5729,7 +6413,52 @@ export declare const sValidateChangeRq: z.ZodObject<{
5729
6413
  kind: z.ZodLiteral<"merge">;
5730
6414
  objectId: z.ZodString;
5731
6415
  objectKind: z.ZodLiteral<"accessRule">;
5732
- original: z.ZodNull;
6416
+ original: z.ZodObject<{
6417
+ displayName: z.ZodString;
6418
+ appliedTo: z.ZodArray<z.ZodString, "many">;
6419
+ permissions: z.ZodArray<z.ZodObject<{
6420
+ deviceId: z.ZodString;
6421
+ scheduleId: z.ZodString;
6422
+ }, "strip", z.ZodTypeAny, {
6423
+ deviceId: string;
6424
+ scheduleId: string;
6425
+ }, {
6426
+ deviceId: string;
6427
+ scheduleId: string;
6428
+ }>, "many">;
6429
+ groupPermissions: z.ZodArray<z.ZodObject<{
6430
+ groupId: z.ZodString;
6431
+ scheduleId: z.ZodString;
6432
+ }, "strip", z.ZodTypeAny, {
6433
+ scheduleId: string;
6434
+ groupId: string;
6435
+ }, {
6436
+ scheduleId: string;
6437
+ groupId: string;
6438
+ }>, "many">;
6439
+ }, "strip", z.ZodTypeAny, {
6440
+ displayName: string;
6441
+ appliedTo: string[];
6442
+ permissions: {
6443
+ deviceId: string;
6444
+ scheduleId: string;
6445
+ }[];
6446
+ groupPermissions: {
6447
+ scheduleId: string;
6448
+ groupId: string;
6449
+ }[];
6450
+ }, {
6451
+ displayName: string;
6452
+ appliedTo: string[];
6453
+ permissions: {
6454
+ deviceId: string;
6455
+ scheduleId: string;
6456
+ }[];
6457
+ groupPermissions: {
6458
+ scheduleId: string;
6459
+ groupId: string;
6460
+ }[];
6461
+ }>;
5733
6462
  props: z.ZodObject<{
5734
6463
  displayName: z.ZodString;
5735
6464
  appliedTo: z.ZodArray<z.ZodString, "many">;
@@ -5780,7 +6509,18 @@ export declare const sValidateChangeRq: z.ZodObject<{
5780
6509
  kind: "merge";
5781
6510
  objectKind: "accessRule";
5782
6511
  objectId: string;
5783
- original: null;
6512
+ original: {
6513
+ displayName: string;
6514
+ appliedTo: string[];
6515
+ permissions: {
6516
+ deviceId: string;
6517
+ scheduleId: string;
6518
+ }[];
6519
+ groupPermissions: {
6520
+ scheduleId: string;
6521
+ groupId: string;
6522
+ }[];
6523
+ };
5784
6524
  props: {
5785
6525
  displayName: string;
5786
6526
  appliedTo: string[];
@@ -5797,7 +6537,18 @@ export declare const sValidateChangeRq: z.ZodObject<{
5797
6537
  kind: "merge";
5798
6538
  objectKind: "accessRule";
5799
6539
  objectId: string;
5800
- original: null;
6540
+ original: {
6541
+ displayName: string;
6542
+ appliedTo: string[];
6543
+ permissions: {
6544
+ deviceId: string;
6545
+ scheduleId: string;
6546
+ }[];
6547
+ groupPermissions: {
6548
+ scheduleId: string;
6549
+ groupId: string;
6550
+ }[];
6551
+ };
5801
6552
  props: {
5802
6553
  displayName: string;
5803
6554
  appliedTo: string[];
@@ -5966,7 +6717,128 @@ export declare const sValidateChangeRq: z.ZodObject<{
5966
6717
  kind: z.ZodLiteral<"merge">;
5967
6718
  objectId: z.ZodString;
5968
6719
  objectKind: z.ZodLiteral<"schedule">;
5969
- original: z.ZodNull;
6720
+ original: z.ZodObject<{
6721
+ displayName: z.ZodString;
6722
+ flag: z.ZodNullable<z.ZodEnum<["always", "never"]>>;
6723
+ include: z.ZodNullable<z.ZodObject<{
6724
+ startDate: z.ZodNullable<z.ZodString>;
6725
+ endDate: z.ZodNullable<z.ZodString>;
6726
+ timeIntervals: z.ZodArray<z.ZodObject<{
6727
+ weekDay: z.ZodEnum<["mon", "tue", "wed", "thu", "fri", "sat", "sun"]>;
6728
+ from: z.ZodNumber;
6729
+ to: z.ZodNumber;
6730
+ }, "strip", z.ZodTypeAny, {
6731
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
6732
+ from: number;
6733
+ to: number;
6734
+ }, {
6735
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
6736
+ from: number;
6737
+ to: number;
6738
+ }>, "many">;
6739
+ repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
6740
+ }, "strip", z.ZodTypeAny, {
6741
+ startDate: string | null;
6742
+ endDate: string | null;
6743
+ timeIntervals: {
6744
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
6745
+ from: number;
6746
+ to: number;
6747
+ }[];
6748
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
6749
+ }, {
6750
+ startDate: string | null;
6751
+ endDate: string | null;
6752
+ timeIntervals: {
6753
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
6754
+ from: number;
6755
+ to: number;
6756
+ }[];
6757
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
6758
+ }>>;
6759
+ exclude: z.ZodNullable<z.ZodObject<{
6760
+ startDate: z.ZodNullable<z.ZodString>;
6761
+ endDate: z.ZodNullable<z.ZodString>;
6762
+ timeIntervals: z.ZodArray<z.ZodObject<{
6763
+ weekDay: z.ZodEnum<["mon", "tue", "wed", "thu", "fri", "sat", "sun"]>;
6764
+ from: z.ZodNumber;
6765
+ to: z.ZodNumber;
6766
+ }, "strip", z.ZodTypeAny, {
6767
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
6768
+ from: number;
6769
+ to: number;
6770
+ }, {
6771
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
6772
+ from: number;
6773
+ to: number;
6774
+ }>, "many">;
6775
+ repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
6776
+ }, "strip", z.ZodTypeAny, {
6777
+ startDate: string | null;
6778
+ endDate: string | null;
6779
+ timeIntervals: {
6780
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
6781
+ from: number;
6782
+ to: number;
6783
+ }[];
6784
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
6785
+ }, {
6786
+ startDate: string | null;
6787
+ endDate: string | null;
6788
+ timeIntervals: {
6789
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
6790
+ from: number;
6791
+ to: number;
6792
+ }[];
6793
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
6794
+ }>>;
6795
+ }, "strip", z.ZodTypeAny, {
6796
+ displayName: string;
6797
+ include: {
6798
+ startDate: string | null;
6799
+ endDate: string | null;
6800
+ timeIntervals: {
6801
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
6802
+ from: number;
6803
+ to: number;
6804
+ }[];
6805
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
6806
+ } | null;
6807
+ exclude: {
6808
+ startDate: string | null;
6809
+ endDate: string | null;
6810
+ timeIntervals: {
6811
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
6812
+ from: number;
6813
+ to: number;
6814
+ }[];
6815
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
6816
+ } | null;
6817
+ flag: "never" | "always" | null;
6818
+ }, {
6819
+ displayName: string;
6820
+ include: {
6821
+ startDate: string | null;
6822
+ endDate: string | null;
6823
+ timeIntervals: {
6824
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
6825
+ from: number;
6826
+ to: number;
6827
+ }[];
6828
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
6829
+ } | null;
6830
+ exclude: {
6831
+ startDate: string | null;
6832
+ endDate: string | null;
6833
+ timeIntervals: {
6834
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
6835
+ from: number;
6836
+ to: number;
6837
+ }[];
6838
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
6839
+ } | null;
6840
+ flag: "never" | "always" | null;
6841
+ }>;
5970
6842
  props: z.ZodObject<{
5971
6843
  displayName: z.ZodString;
5972
6844
  flag: z.ZodNullable<z.ZodEnum<["always", "never"]>>;
@@ -6021,9 +6893,53 @@ export declare const sValidateChangeRq: z.ZodObject<{
6021
6893
  weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
6022
6894
  from: number;
6023
6895
  to: number;
6024
- }>, "many">;
6025
- repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
6026
- }, "strip", z.ZodTypeAny, {
6896
+ }>, "many">;
6897
+ repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
6898
+ }, "strip", z.ZodTypeAny, {
6899
+ startDate: string | null;
6900
+ endDate: string | null;
6901
+ timeIntervals: {
6902
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
6903
+ from: number;
6904
+ to: number;
6905
+ }[];
6906
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
6907
+ }, {
6908
+ startDate: string | null;
6909
+ endDate: string | null;
6910
+ timeIntervals: {
6911
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
6912
+ from: number;
6913
+ to: number;
6914
+ }[];
6915
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
6916
+ }>>;
6917
+ }, "strip", z.ZodTypeAny, {
6918
+ displayName: string;
6919
+ include: {
6920
+ startDate: string | null;
6921
+ endDate: string | null;
6922
+ timeIntervals: {
6923
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
6924
+ from: number;
6925
+ to: number;
6926
+ }[];
6927
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
6928
+ } | null;
6929
+ exclude: {
6930
+ startDate: string | null;
6931
+ endDate: string | null;
6932
+ timeIntervals: {
6933
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
6934
+ from: number;
6935
+ to: number;
6936
+ }[];
6937
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
6938
+ } | null;
6939
+ flag: "never" | "always" | null;
6940
+ }, {
6941
+ displayName: string;
6942
+ include: {
6027
6943
  startDate: string | null;
6028
6944
  endDate: string | null;
6029
6945
  timeIntervals: {
@@ -6032,7 +6948,8 @@ export declare const sValidateChangeRq: z.ZodObject<{
6032
6948
  to: number;
6033
6949
  }[];
6034
6950
  repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
6035
- }, {
6951
+ } | null;
6952
+ exclude: {
6036
6953
  startDate: string | null;
6037
6954
  endDate: string | null;
6038
6955
  timeIntervals: {
@@ -6041,8 +6958,14 @@ export declare const sValidateChangeRq: z.ZodObject<{
6041
6958
  to: number;
6042
6959
  }[];
6043
6960
  repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
6044
- }>>;
6045
- }, "strip", z.ZodTypeAny, {
6961
+ } | null;
6962
+ flag: "never" | "always" | null;
6963
+ }>;
6964
+ }, "strip", z.ZodTypeAny, {
6965
+ kind: "merge";
6966
+ objectKind: "schedule";
6967
+ objectId: string;
6968
+ original: {
6046
6969
  displayName: string;
6047
6970
  include: {
6048
6971
  startDate: string | null;
@@ -6065,7 +6988,8 @@ export declare const sValidateChangeRq: z.ZodObject<{
6065
6988
  repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
6066
6989
  } | null;
6067
6990
  flag: "never" | "always" | null;
6068
- }, {
6991
+ };
6992
+ props: {
6069
6993
  displayName: string;
6070
6994
  include: {
6071
6995
  startDate: string | null;
@@ -6088,13 +7012,12 @@ export declare const sValidateChangeRq: z.ZodObject<{
6088
7012
  repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
6089
7013
  } | null;
6090
7014
  flag: "never" | "always" | null;
6091
- }>;
6092
- }, "strip", z.ZodTypeAny, {
7015
+ };
7016
+ }, {
6093
7017
  kind: "merge";
6094
7018
  objectKind: "schedule";
6095
7019
  objectId: string;
6096
- original: null;
6097
- props: {
7020
+ original: {
6098
7021
  displayName: string;
6099
7022
  include: {
6100
7023
  startDate: string | null;
@@ -6118,11 +7041,6 @@ export declare const sValidateChangeRq: z.ZodObject<{
6118
7041
  } | null;
6119
7042
  flag: "never" | "always" | null;
6120
7043
  };
6121
- }, {
6122
- kind: "merge";
6123
- objectKind: "schedule";
6124
- objectId: string;
6125
- original: null;
6126
7044
  props: {
6127
7045
  displayName: string;
6128
7046
  include: {
@@ -6503,7 +7421,66 @@ export declare const sValidateChangeRq: z.ZodObject<{
6503
7421
  kind: z.ZodLiteral<"merge">;
6504
7422
  objectId: z.ZodString;
6505
7423
  objectKind: z.ZodLiteral<"person">;
6506
- original: z.ZodNull;
7424
+ original: z.ZodObject<{
7425
+ firstName: z.ZodString;
7426
+ lastName: z.ZodString;
7427
+ position: z.ZodNullable<z.ZodString>;
7428
+ accessSuspended: z.ZodBoolean;
7429
+ staffMember: z.ZodBoolean;
7430
+ validFrom: z.ZodNullable<z.ZodString>;
7431
+ validTo: z.ZodNullable<z.ZodString>;
7432
+ avatarId: z.ZodNullable<z.ZodString>;
7433
+ credentials: z.ZodArray<z.ZodObject<{
7434
+ type: z.ZodEnum<["card", "pin", "fingerprint"]>;
7435
+ value: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
7436
+ note: z.ZodNullable<z.ZodString>;
7437
+ }, "strip", z.ZodTypeAny, {
7438
+ value: string | Record<string, unknown>;
7439
+ type: "card" | "pin" | "fingerprint";
7440
+ note: string | null;
7441
+ }, {
7442
+ value: string | Record<string, unknown>;
7443
+ type: "card" | "pin" | "fingerprint";
7444
+ note: string | null;
7445
+ }>, "many">;
7446
+ accessRules: z.ZodArray<z.ZodString, "many">;
7447
+ customFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
7448
+ type: z.ZodString;
7449
+ }, "strip", z.ZodTypeAny, {
7450
+ type: string;
7451
+ firstName: string;
7452
+ lastName: string;
7453
+ avatarId: string | null;
7454
+ position: string | null;
7455
+ accessSuspended: boolean;
7456
+ staffMember: boolean;
7457
+ validFrom: string | null;
7458
+ validTo: string | null;
7459
+ credentials: {
7460
+ value: string | Record<string, unknown>;
7461
+ type: "card" | "pin" | "fingerprint";
7462
+ note: string | null;
7463
+ }[];
7464
+ accessRules: string[];
7465
+ customFields: Record<string, string> | null;
7466
+ }, {
7467
+ type: string;
7468
+ firstName: string;
7469
+ lastName: string;
7470
+ avatarId: string | null;
7471
+ position: string | null;
7472
+ accessSuspended: boolean;
7473
+ staffMember: boolean;
7474
+ validFrom: string | null;
7475
+ validTo: string | null;
7476
+ credentials: {
7477
+ value: string | Record<string, unknown>;
7478
+ type: "card" | "pin" | "fingerprint";
7479
+ note: string | null;
7480
+ }[];
7481
+ accessRules: string[];
7482
+ customFields: Record<string, string> | null;
7483
+ }>;
6507
7484
  props: z.ZodObject<{
6508
7485
  firstName: z.ZodString;
6509
7486
  lastName: z.ZodString;
@@ -6568,7 +7545,24 @@ export declare const sValidateChangeRq: z.ZodObject<{
6568
7545
  kind: "merge";
6569
7546
  objectKind: "person";
6570
7547
  objectId: string;
6571
- original: null;
7548
+ original: {
7549
+ type: string;
7550
+ firstName: string;
7551
+ lastName: string;
7552
+ avatarId: string | null;
7553
+ position: string | null;
7554
+ accessSuspended: boolean;
7555
+ staffMember: boolean;
7556
+ validFrom: string | null;
7557
+ validTo: string | null;
7558
+ credentials: {
7559
+ value: string | Record<string, unknown>;
7560
+ type: "card" | "pin" | "fingerprint";
7561
+ note: string | null;
7562
+ }[];
7563
+ accessRules: string[];
7564
+ customFields: Record<string, string> | null;
7565
+ };
6572
7566
  props: {
6573
7567
  type: string;
6574
7568
  firstName: string;
@@ -6591,7 +7585,24 @@ export declare const sValidateChangeRq: z.ZodObject<{
6591
7585
  kind: "merge";
6592
7586
  objectKind: "person";
6593
7587
  objectId: string;
6594
- original: null;
7588
+ original: {
7589
+ type: string;
7590
+ firstName: string;
7591
+ lastName: string;
7592
+ avatarId: string | null;
7593
+ position: string | null;
7594
+ accessSuspended: boolean;
7595
+ staffMember: boolean;
7596
+ validFrom: string | null;
7597
+ validTo: string | null;
7598
+ credentials: {
7599
+ value: string | Record<string, unknown>;
7600
+ type: "card" | "pin" | "fingerprint";
7601
+ note: string | null;
7602
+ }[];
7603
+ accessRules: string[];
7604
+ customFields: Record<string, string> | null;
7605
+ };
6595
7606
  props: {
6596
7607
  type: string;
6597
7608
  firstName: string;
@@ -6818,7 +7829,16 @@ export declare const sValidateChangeRq: z.ZodObject<{
6818
7829
  kind: z.ZodLiteral<"merge">;
6819
7830
  objectId: z.ZodString;
6820
7831
  objectKind: z.ZodLiteral<"zone">;
6821
- original: z.ZodNull;
7832
+ original: z.ZodObject<{
7833
+ displayName: z.ZodString;
7834
+ devices: z.ZodArray<z.ZodString, "many">;
7835
+ }, "strip", z.ZodTypeAny, {
7836
+ displayName: string;
7837
+ devices: string[];
7838
+ }, {
7839
+ displayName: string;
7840
+ devices: string[];
7841
+ }>;
6822
7842
  props: z.ZodObject<{
6823
7843
  displayName: z.ZodString;
6824
7844
  devices: z.ZodArray<z.ZodString, "many">;
@@ -6833,7 +7853,10 @@ export declare const sValidateChangeRq: z.ZodObject<{
6833
7853
  kind: "merge";
6834
7854
  objectKind: "zone";
6835
7855
  objectId: string;
6836
- original: null;
7856
+ original: {
7857
+ displayName: string;
7858
+ devices: string[];
7859
+ };
6837
7860
  props: {
6838
7861
  displayName: string;
6839
7862
  devices: string[];
@@ -6842,7 +7865,10 @@ export declare const sValidateChangeRq: z.ZodObject<{
6842
7865
  kind: "merge";
6843
7866
  objectKind: "zone";
6844
7867
  objectId: string;
6845
- original: null;
7868
+ original: {
7869
+ displayName: string;
7870
+ devices: string[];
7871
+ };
6846
7872
  props: {
6847
7873
  displayName: string;
6848
7874
  devices: string[];
@@ -7307,7 +8333,18 @@ export declare const sValidateChangeRq: z.ZodObject<{
7307
8333
  kind: "merge";
7308
8334
  objectKind: "accessRule";
7309
8335
  objectId: string;
7310
- original: null;
8336
+ original: {
8337
+ displayName: string;
8338
+ appliedTo: string[];
8339
+ permissions: {
8340
+ deviceId: string;
8341
+ scheduleId: string;
8342
+ }[];
8343
+ groupPermissions: {
8344
+ scheduleId: string;
8345
+ groupId: string;
8346
+ }[];
8347
+ };
7311
8348
  props: {
7312
8349
  displayName: string;
7313
8350
  appliedTo: string[];
@@ -7352,7 +8389,30 @@ export declare const sValidateChangeRq: z.ZodObject<{
7352
8389
  kind: "merge";
7353
8390
  objectKind: "schedule";
7354
8391
  objectId: string;
7355
- original: null;
8392
+ original: {
8393
+ displayName: string;
8394
+ include: {
8395
+ startDate: string | null;
8396
+ endDate: string | null;
8397
+ timeIntervals: {
8398
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
8399
+ from: number;
8400
+ to: number;
8401
+ }[];
8402
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
8403
+ } | null;
8404
+ exclude: {
8405
+ startDate: string | null;
8406
+ endDate: string | null;
8407
+ timeIntervals: {
8408
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
8409
+ from: number;
8410
+ to: number;
8411
+ }[];
8412
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
8413
+ } | null;
8414
+ flag: "never" | "always" | null;
8415
+ };
7356
8416
  props: {
7357
8417
  displayName: string;
7358
8418
  include: {
@@ -7433,7 +8493,24 @@ export declare const sValidateChangeRq: z.ZodObject<{
7433
8493
  kind: "merge";
7434
8494
  objectKind: "person";
7435
8495
  objectId: string;
7436
- original: null;
8496
+ original: {
8497
+ type: string;
8498
+ firstName: string;
8499
+ lastName: string;
8500
+ avatarId: string | null;
8501
+ position: string | null;
8502
+ accessSuspended: boolean;
8503
+ staffMember: boolean;
8504
+ validFrom: string | null;
8505
+ validTo: string | null;
8506
+ credentials: {
8507
+ value: string | Record<string, unknown>;
8508
+ type: "card" | "pin" | "fingerprint";
8509
+ note: string | null;
8510
+ }[];
8511
+ accessRules: string[];
8512
+ customFields: Record<string, string> | null;
8513
+ };
7437
8514
  props: {
7438
8515
  type: string;
7439
8516
  firstName: string;
@@ -7496,7 +8573,10 @@ export declare const sValidateChangeRq: z.ZodObject<{
7496
8573
  kind: "merge";
7497
8574
  objectKind: "zone";
7498
8575
  objectId: string;
7499
- original: null;
8576
+ original: {
8577
+ displayName: string;
8578
+ devices: string[];
8579
+ };
7500
8580
  props: {
7501
8581
  displayName: string;
7502
8582
  devices: string[];
@@ -7597,7 +8677,18 @@ export declare const sValidateChangeRq: z.ZodObject<{
7597
8677
  kind: "merge";
7598
8678
  objectKind: "accessRule";
7599
8679
  objectId: string;
7600
- original: null;
8680
+ original: {
8681
+ displayName: string;
8682
+ appliedTo: string[];
8683
+ permissions: {
8684
+ deviceId: string;
8685
+ scheduleId: string;
8686
+ }[];
8687
+ groupPermissions: {
8688
+ scheduleId: string;
8689
+ groupId: string;
8690
+ }[];
8691
+ };
7601
8692
  props: {
7602
8693
  displayName: string;
7603
8694
  appliedTo: string[];
@@ -7642,7 +8733,30 @@ export declare const sValidateChangeRq: z.ZodObject<{
7642
8733
  kind: "merge";
7643
8734
  objectKind: "schedule";
7644
8735
  objectId: string;
7645
- original: null;
8736
+ original: {
8737
+ displayName: string;
8738
+ include: {
8739
+ startDate: string | null;
8740
+ endDate: string | null;
8741
+ timeIntervals: {
8742
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
8743
+ from: number;
8744
+ to: number;
8745
+ }[];
8746
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
8747
+ } | null;
8748
+ exclude: {
8749
+ startDate: string | null;
8750
+ endDate: string | null;
8751
+ timeIntervals: {
8752
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
8753
+ from: number;
8754
+ to: number;
8755
+ }[];
8756
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
8757
+ } | null;
8758
+ flag: "never" | "always" | null;
8759
+ };
7646
8760
  props: {
7647
8761
  displayName: string;
7648
8762
  include: {
@@ -7719,11 +8833,28 @@ export declare const sValidateChangeRq: z.ZodObject<{
7719
8833
  } | null | undefined;
7720
8834
  flag?: "never" | "always" | null | undefined;
7721
8835
  };
7722
- } | {
7723
- kind: "merge";
7724
- objectKind: "person";
7725
- objectId: string;
7726
- original: null;
8836
+ } | {
8837
+ kind: "merge";
8838
+ objectKind: "person";
8839
+ objectId: string;
8840
+ original: {
8841
+ type: string;
8842
+ firstName: string;
8843
+ lastName: string;
8844
+ avatarId: string | null;
8845
+ position: string | null;
8846
+ accessSuspended: boolean;
8847
+ staffMember: boolean;
8848
+ validFrom: string | null;
8849
+ validTo: string | null;
8850
+ credentials: {
8851
+ value: string | Record<string, unknown>;
8852
+ type: "card" | "pin" | "fingerprint";
8853
+ note: string | null;
8854
+ }[];
8855
+ accessRules: string[];
8856
+ customFields: Record<string, string> | null;
8857
+ };
7727
8858
  props: {
7728
8859
  type: string;
7729
8860
  firstName: string;
@@ -7786,7 +8917,10 @@ export declare const sValidateChangeRq: z.ZodObject<{
7786
8917
  kind: "merge";
7787
8918
  objectKind: "zone";
7788
8919
  objectId: string;
7789
- original: null;
8920
+ original: {
8921
+ displayName: string;
8922
+ devices: string[];
8923
+ };
7790
8924
  props: {
7791
8925
  displayName: string;
7792
8926
  devices: string[];
@@ -7962,7 +9096,52 @@ export declare const sApplyChange: z.ZodObject<{
7962
9096
  kind: z.ZodLiteral<"merge">;
7963
9097
  objectId: z.ZodString;
7964
9098
  objectKind: z.ZodLiteral<"accessRule">;
7965
- original: z.ZodNull;
9099
+ original: z.ZodObject<{
9100
+ displayName: z.ZodString;
9101
+ appliedTo: z.ZodArray<z.ZodString, "many">;
9102
+ permissions: z.ZodArray<z.ZodObject<{
9103
+ deviceId: z.ZodString;
9104
+ scheduleId: z.ZodString;
9105
+ }, "strip", z.ZodTypeAny, {
9106
+ deviceId: string;
9107
+ scheduleId: string;
9108
+ }, {
9109
+ deviceId: string;
9110
+ scheduleId: string;
9111
+ }>, "many">;
9112
+ groupPermissions: z.ZodArray<z.ZodObject<{
9113
+ groupId: z.ZodString;
9114
+ scheduleId: z.ZodString;
9115
+ }, "strip", z.ZodTypeAny, {
9116
+ scheduleId: string;
9117
+ groupId: string;
9118
+ }, {
9119
+ scheduleId: string;
9120
+ groupId: string;
9121
+ }>, "many">;
9122
+ }, "strip", z.ZodTypeAny, {
9123
+ displayName: string;
9124
+ appliedTo: string[];
9125
+ permissions: {
9126
+ deviceId: string;
9127
+ scheduleId: string;
9128
+ }[];
9129
+ groupPermissions: {
9130
+ scheduleId: string;
9131
+ groupId: string;
9132
+ }[];
9133
+ }, {
9134
+ displayName: string;
9135
+ appliedTo: string[];
9136
+ permissions: {
9137
+ deviceId: string;
9138
+ scheduleId: string;
9139
+ }[];
9140
+ groupPermissions: {
9141
+ scheduleId: string;
9142
+ groupId: string;
9143
+ }[];
9144
+ }>;
7966
9145
  props: z.ZodObject<{
7967
9146
  displayName: z.ZodString;
7968
9147
  appliedTo: z.ZodArray<z.ZodString, "many">;
@@ -8013,7 +9192,18 @@ export declare const sApplyChange: z.ZodObject<{
8013
9192
  kind: "merge";
8014
9193
  objectKind: "accessRule";
8015
9194
  objectId: string;
8016
- original: null;
9195
+ original: {
9196
+ displayName: string;
9197
+ appliedTo: string[];
9198
+ permissions: {
9199
+ deviceId: string;
9200
+ scheduleId: string;
9201
+ }[];
9202
+ groupPermissions: {
9203
+ scheduleId: string;
9204
+ groupId: string;
9205
+ }[];
9206
+ };
8017
9207
  props: {
8018
9208
  displayName: string;
8019
9209
  appliedTo: string[];
@@ -8030,7 +9220,18 @@ export declare const sApplyChange: z.ZodObject<{
8030
9220
  kind: "merge";
8031
9221
  objectKind: "accessRule";
8032
9222
  objectId: string;
8033
- original: null;
9223
+ original: {
9224
+ displayName: string;
9225
+ appliedTo: string[];
9226
+ permissions: {
9227
+ deviceId: string;
9228
+ scheduleId: string;
9229
+ }[];
9230
+ groupPermissions: {
9231
+ scheduleId: string;
9232
+ groupId: string;
9233
+ }[];
9234
+ };
8034
9235
  props: {
8035
9236
  displayName: string;
8036
9237
  appliedTo: string[];
@@ -8199,7 +9400,128 @@ export declare const sApplyChange: z.ZodObject<{
8199
9400
  kind: z.ZodLiteral<"merge">;
8200
9401
  objectId: z.ZodString;
8201
9402
  objectKind: z.ZodLiteral<"schedule">;
8202
- original: z.ZodNull;
9403
+ original: z.ZodObject<{
9404
+ displayName: z.ZodString;
9405
+ flag: z.ZodNullable<z.ZodEnum<["always", "never"]>>;
9406
+ include: z.ZodNullable<z.ZodObject<{
9407
+ startDate: z.ZodNullable<z.ZodString>;
9408
+ endDate: z.ZodNullable<z.ZodString>;
9409
+ timeIntervals: z.ZodArray<z.ZodObject<{
9410
+ weekDay: z.ZodEnum<["mon", "tue", "wed", "thu", "fri", "sat", "sun"]>;
9411
+ from: z.ZodNumber;
9412
+ to: z.ZodNumber;
9413
+ }, "strip", z.ZodTypeAny, {
9414
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
9415
+ from: number;
9416
+ to: number;
9417
+ }, {
9418
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
9419
+ from: number;
9420
+ to: number;
9421
+ }>, "many">;
9422
+ repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
9423
+ }, "strip", z.ZodTypeAny, {
9424
+ startDate: string | null;
9425
+ endDate: string | null;
9426
+ timeIntervals: {
9427
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
9428
+ from: number;
9429
+ to: number;
9430
+ }[];
9431
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
9432
+ }, {
9433
+ startDate: string | null;
9434
+ endDate: string | null;
9435
+ timeIntervals: {
9436
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
9437
+ from: number;
9438
+ to: number;
9439
+ }[];
9440
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
9441
+ }>>;
9442
+ exclude: z.ZodNullable<z.ZodObject<{
9443
+ startDate: z.ZodNullable<z.ZodString>;
9444
+ endDate: z.ZodNullable<z.ZodString>;
9445
+ timeIntervals: z.ZodArray<z.ZodObject<{
9446
+ weekDay: z.ZodEnum<["mon", "tue", "wed", "thu", "fri", "sat", "sun"]>;
9447
+ from: z.ZodNumber;
9448
+ to: z.ZodNumber;
9449
+ }, "strip", z.ZodTypeAny, {
9450
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
9451
+ from: number;
9452
+ to: number;
9453
+ }, {
9454
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
9455
+ from: number;
9456
+ to: number;
9457
+ }>, "many">;
9458
+ repeat: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "yearly"]>>;
9459
+ }, "strip", z.ZodTypeAny, {
9460
+ startDate: string | null;
9461
+ endDate: string | null;
9462
+ timeIntervals: {
9463
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
9464
+ from: number;
9465
+ to: number;
9466
+ }[];
9467
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
9468
+ }, {
9469
+ startDate: string | null;
9470
+ endDate: string | null;
9471
+ timeIntervals: {
9472
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
9473
+ from: number;
9474
+ to: number;
9475
+ }[];
9476
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
9477
+ }>>;
9478
+ }, "strip", z.ZodTypeAny, {
9479
+ displayName: string;
9480
+ include: {
9481
+ startDate: string | null;
9482
+ endDate: string | null;
9483
+ timeIntervals: {
9484
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
9485
+ from: number;
9486
+ to: number;
9487
+ }[];
9488
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
9489
+ } | null;
9490
+ exclude: {
9491
+ startDate: string | null;
9492
+ endDate: string | null;
9493
+ timeIntervals: {
9494
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
9495
+ from: number;
9496
+ to: number;
9497
+ }[];
9498
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
9499
+ } | null;
9500
+ flag: "never" | "always" | null;
9501
+ }, {
9502
+ displayName: string;
9503
+ include: {
9504
+ startDate: string | null;
9505
+ endDate: string | null;
9506
+ timeIntervals: {
9507
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
9508
+ from: number;
9509
+ to: number;
9510
+ }[];
9511
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
9512
+ } | null;
9513
+ exclude: {
9514
+ startDate: string | null;
9515
+ endDate: string | null;
9516
+ timeIntervals: {
9517
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
9518
+ from: number;
9519
+ to: number;
9520
+ }[];
9521
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
9522
+ } | null;
9523
+ flag: "never" | "always" | null;
9524
+ }>;
8203
9525
  props: z.ZodObject<{
8204
9526
  displayName: z.ZodString;
8205
9527
  flag: z.ZodNullable<z.ZodEnum<["always", "never"]>>;
@@ -8265,7 +9587,52 @@ export declare const sApplyChange: z.ZodObject<{
8265
9587
  to: number;
8266
9588
  }[];
8267
9589
  repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
8268
- }, {
9590
+ }, {
9591
+ startDate: string | null;
9592
+ endDate: string | null;
9593
+ timeIntervals: {
9594
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
9595
+ from: number;
9596
+ to: number;
9597
+ }[];
9598
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
9599
+ }>>;
9600
+ }, "strip", z.ZodTypeAny, {
9601
+ displayName: string;
9602
+ include: {
9603
+ startDate: string | null;
9604
+ endDate: string | null;
9605
+ timeIntervals: {
9606
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
9607
+ from: number;
9608
+ to: number;
9609
+ }[];
9610
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
9611
+ } | null;
9612
+ exclude: {
9613
+ startDate: string | null;
9614
+ endDate: string | null;
9615
+ timeIntervals: {
9616
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
9617
+ from: number;
9618
+ to: number;
9619
+ }[];
9620
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
9621
+ } | null;
9622
+ flag: "never" | "always" | null;
9623
+ }, {
9624
+ displayName: string;
9625
+ include: {
9626
+ startDate: string | null;
9627
+ endDate: string | null;
9628
+ timeIntervals: {
9629
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
9630
+ from: number;
9631
+ to: number;
9632
+ }[];
9633
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
9634
+ } | null;
9635
+ exclude: {
8269
9636
  startDate: string | null;
8270
9637
  endDate: string | null;
8271
9638
  timeIntervals: {
@@ -8274,8 +9641,14 @@ export declare const sApplyChange: z.ZodObject<{
8274
9641
  to: number;
8275
9642
  }[];
8276
9643
  repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
8277
- }>>;
8278
- }, "strip", z.ZodTypeAny, {
9644
+ } | null;
9645
+ flag: "never" | "always" | null;
9646
+ }>;
9647
+ }, "strip", z.ZodTypeAny, {
9648
+ kind: "merge";
9649
+ objectKind: "schedule";
9650
+ objectId: string;
9651
+ original: {
8279
9652
  displayName: string;
8280
9653
  include: {
8281
9654
  startDate: string | null;
@@ -8298,7 +9671,8 @@ export declare const sApplyChange: z.ZodObject<{
8298
9671
  repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
8299
9672
  } | null;
8300
9673
  flag: "never" | "always" | null;
8301
- }, {
9674
+ };
9675
+ props: {
8302
9676
  displayName: string;
8303
9677
  include: {
8304
9678
  startDate: string | null;
@@ -8321,13 +9695,12 @@ export declare const sApplyChange: z.ZodObject<{
8321
9695
  repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
8322
9696
  } | null;
8323
9697
  flag: "never" | "always" | null;
8324
- }>;
8325
- }, "strip", z.ZodTypeAny, {
9698
+ };
9699
+ }, {
8326
9700
  kind: "merge";
8327
9701
  objectKind: "schedule";
8328
9702
  objectId: string;
8329
- original: null;
8330
- props: {
9703
+ original: {
8331
9704
  displayName: string;
8332
9705
  include: {
8333
9706
  startDate: string | null;
@@ -8351,11 +9724,6 @@ export declare const sApplyChange: z.ZodObject<{
8351
9724
  } | null;
8352
9725
  flag: "never" | "always" | null;
8353
9726
  };
8354
- }, {
8355
- kind: "merge";
8356
- objectKind: "schedule";
8357
- objectId: string;
8358
- original: null;
8359
9727
  props: {
8360
9728
  displayName: string;
8361
9729
  include: {
@@ -8736,7 +10104,66 @@ export declare const sApplyChange: z.ZodObject<{
8736
10104
  kind: z.ZodLiteral<"merge">;
8737
10105
  objectId: z.ZodString;
8738
10106
  objectKind: z.ZodLiteral<"person">;
8739
- original: z.ZodNull;
10107
+ original: z.ZodObject<{
10108
+ firstName: z.ZodString;
10109
+ lastName: z.ZodString;
10110
+ position: z.ZodNullable<z.ZodString>;
10111
+ accessSuspended: z.ZodBoolean;
10112
+ staffMember: z.ZodBoolean;
10113
+ validFrom: z.ZodNullable<z.ZodString>;
10114
+ validTo: z.ZodNullable<z.ZodString>;
10115
+ avatarId: z.ZodNullable<z.ZodString>;
10116
+ credentials: z.ZodArray<z.ZodObject<{
10117
+ type: z.ZodEnum<["card", "pin", "fingerprint"]>;
10118
+ value: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
10119
+ note: z.ZodNullable<z.ZodString>;
10120
+ }, "strip", z.ZodTypeAny, {
10121
+ value: string | Record<string, unknown>;
10122
+ type: "card" | "pin" | "fingerprint";
10123
+ note: string | null;
10124
+ }, {
10125
+ value: string | Record<string, unknown>;
10126
+ type: "card" | "pin" | "fingerprint";
10127
+ note: string | null;
10128
+ }>, "many">;
10129
+ accessRules: z.ZodArray<z.ZodString, "many">;
10130
+ customFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
10131
+ type: z.ZodString;
10132
+ }, "strip", z.ZodTypeAny, {
10133
+ type: string;
10134
+ firstName: string;
10135
+ lastName: string;
10136
+ avatarId: string | null;
10137
+ position: string | null;
10138
+ accessSuspended: boolean;
10139
+ staffMember: boolean;
10140
+ validFrom: string | null;
10141
+ validTo: string | null;
10142
+ credentials: {
10143
+ value: string | Record<string, unknown>;
10144
+ type: "card" | "pin" | "fingerprint";
10145
+ note: string | null;
10146
+ }[];
10147
+ accessRules: string[];
10148
+ customFields: Record<string, string> | null;
10149
+ }, {
10150
+ type: string;
10151
+ firstName: string;
10152
+ lastName: string;
10153
+ avatarId: string | null;
10154
+ position: string | null;
10155
+ accessSuspended: boolean;
10156
+ staffMember: boolean;
10157
+ validFrom: string | null;
10158
+ validTo: string | null;
10159
+ credentials: {
10160
+ value: string | Record<string, unknown>;
10161
+ type: "card" | "pin" | "fingerprint";
10162
+ note: string | null;
10163
+ }[];
10164
+ accessRules: string[];
10165
+ customFields: Record<string, string> | null;
10166
+ }>;
8740
10167
  props: z.ZodObject<{
8741
10168
  firstName: z.ZodString;
8742
10169
  lastName: z.ZodString;
@@ -8801,7 +10228,24 @@ export declare const sApplyChange: z.ZodObject<{
8801
10228
  kind: "merge";
8802
10229
  objectKind: "person";
8803
10230
  objectId: string;
8804
- original: null;
10231
+ original: {
10232
+ type: string;
10233
+ firstName: string;
10234
+ lastName: string;
10235
+ avatarId: string | null;
10236
+ position: string | null;
10237
+ accessSuspended: boolean;
10238
+ staffMember: boolean;
10239
+ validFrom: string | null;
10240
+ validTo: string | null;
10241
+ credentials: {
10242
+ value: string | Record<string, unknown>;
10243
+ type: "card" | "pin" | "fingerprint";
10244
+ note: string | null;
10245
+ }[];
10246
+ accessRules: string[];
10247
+ customFields: Record<string, string> | null;
10248
+ };
8805
10249
  props: {
8806
10250
  type: string;
8807
10251
  firstName: string;
@@ -8824,7 +10268,24 @@ export declare const sApplyChange: z.ZodObject<{
8824
10268
  kind: "merge";
8825
10269
  objectKind: "person";
8826
10270
  objectId: string;
8827
- original: null;
10271
+ original: {
10272
+ type: string;
10273
+ firstName: string;
10274
+ lastName: string;
10275
+ avatarId: string | null;
10276
+ position: string | null;
10277
+ accessSuspended: boolean;
10278
+ staffMember: boolean;
10279
+ validFrom: string | null;
10280
+ validTo: string | null;
10281
+ credentials: {
10282
+ value: string | Record<string, unknown>;
10283
+ type: "card" | "pin" | "fingerprint";
10284
+ note: string | null;
10285
+ }[];
10286
+ accessRules: string[];
10287
+ customFields: Record<string, string> | null;
10288
+ };
8828
10289
  props: {
8829
10290
  type: string;
8830
10291
  firstName: string;
@@ -9051,7 +10512,16 @@ export declare const sApplyChange: z.ZodObject<{
9051
10512
  kind: z.ZodLiteral<"merge">;
9052
10513
  objectId: z.ZodString;
9053
10514
  objectKind: z.ZodLiteral<"zone">;
9054
- original: z.ZodNull;
10515
+ original: z.ZodObject<{
10516
+ displayName: z.ZodString;
10517
+ devices: z.ZodArray<z.ZodString, "many">;
10518
+ }, "strip", z.ZodTypeAny, {
10519
+ displayName: string;
10520
+ devices: string[];
10521
+ }, {
10522
+ displayName: string;
10523
+ devices: string[];
10524
+ }>;
9055
10525
  props: z.ZodObject<{
9056
10526
  displayName: z.ZodString;
9057
10527
  devices: z.ZodArray<z.ZodString, "many">;
@@ -9066,7 +10536,10 @@ export declare const sApplyChange: z.ZodObject<{
9066
10536
  kind: "merge";
9067
10537
  objectKind: "zone";
9068
10538
  objectId: string;
9069
- original: null;
10539
+ original: {
10540
+ displayName: string;
10541
+ devices: string[];
10542
+ };
9070
10543
  props: {
9071
10544
  displayName: string;
9072
10545
  devices: string[];
@@ -9075,7 +10548,10 @@ export declare const sApplyChange: z.ZodObject<{
9075
10548
  kind: "merge";
9076
10549
  objectKind: "zone";
9077
10550
  objectId: string;
9078
- original: null;
10551
+ original: {
10552
+ displayName: string;
10553
+ devices: string[];
10554
+ };
9079
10555
  props: {
9080
10556
  displayName: string;
9081
10557
  devices: string[];
@@ -9540,7 +11016,18 @@ export declare const sApplyChange: z.ZodObject<{
9540
11016
  kind: "merge";
9541
11017
  objectKind: "accessRule";
9542
11018
  objectId: string;
9543
- original: null;
11019
+ original: {
11020
+ displayName: string;
11021
+ appliedTo: string[];
11022
+ permissions: {
11023
+ deviceId: string;
11024
+ scheduleId: string;
11025
+ }[];
11026
+ groupPermissions: {
11027
+ scheduleId: string;
11028
+ groupId: string;
11029
+ }[];
11030
+ };
9544
11031
  props: {
9545
11032
  displayName: string;
9546
11033
  appliedTo: string[];
@@ -9585,7 +11072,30 @@ export declare const sApplyChange: z.ZodObject<{
9585
11072
  kind: "merge";
9586
11073
  objectKind: "schedule";
9587
11074
  objectId: string;
9588
- original: null;
11075
+ original: {
11076
+ displayName: string;
11077
+ include: {
11078
+ startDate: string | null;
11079
+ endDate: string | null;
11080
+ timeIntervals: {
11081
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
11082
+ from: number;
11083
+ to: number;
11084
+ }[];
11085
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
11086
+ } | null;
11087
+ exclude: {
11088
+ startDate: string | null;
11089
+ endDate: string | null;
11090
+ timeIntervals: {
11091
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
11092
+ from: number;
11093
+ to: number;
11094
+ }[];
11095
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
11096
+ } | null;
11097
+ flag: "never" | "always" | null;
11098
+ };
9589
11099
  props: {
9590
11100
  displayName: string;
9591
11101
  include: {
@@ -9666,7 +11176,24 @@ export declare const sApplyChange: z.ZodObject<{
9666
11176
  kind: "merge";
9667
11177
  objectKind: "person";
9668
11178
  objectId: string;
9669
- original: null;
11179
+ original: {
11180
+ type: string;
11181
+ firstName: string;
11182
+ lastName: string;
11183
+ avatarId: string | null;
11184
+ position: string | null;
11185
+ accessSuspended: boolean;
11186
+ staffMember: boolean;
11187
+ validFrom: string | null;
11188
+ validTo: string | null;
11189
+ credentials: {
11190
+ value: string | Record<string, unknown>;
11191
+ type: "card" | "pin" | "fingerprint";
11192
+ note: string | null;
11193
+ }[];
11194
+ accessRules: string[];
11195
+ customFields: Record<string, string> | null;
11196
+ };
9670
11197
  props: {
9671
11198
  type: string;
9672
11199
  firstName: string;
@@ -9729,7 +11256,10 @@ export declare const sApplyChange: z.ZodObject<{
9729
11256
  kind: "merge";
9730
11257
  objectKind: "zone";
9731
11258
  objectId: string;
9732
- original: null;
11259
+ original: {
11260
+ displayName: string;
11261
+ devices: string[];
11262
+ };
9733
11263
  props: {
9734
11264
  displayName: string;
9735
11265
  devices: string[];
@@ -9830,7 +11360,18 @@ export declare const sApplyChange: z.ZodObject<{
9830
11360
  kind: "merge";
9831
11361
  objectKind: "accessRule";
9832
11362
  objectId: string;
9833
- original: null;
11363
+ original: {
11364
+ displayName: string;
11365
+ appliedTo: string[];
11366
+ permissions: {
11367
+ deviceId: string;
11368
+ scheduleId: string;
11369
+ }[];
11370
+ groupPermissions: {
11371
+ scheduleId: string;
11372
+ groupId: string;
11373
+ }[];
11374
+ };
9834
11375
  props: {
9835
11376
  displayName: string;
9836
11377
  appliedTo: string[];
@@ -9875,7 +11416,30 @@ export declare const sApplyChange: z.ZodObject<{
9875
11416
  kind: "merge";
9876
11417
  objectKind: "schedule";
9877
11418
  objectId: string;
9878
- original: null;
11419
+ original: {
11420
+ displayName: string;
11421
+ include: {
11422
+ startDate: string | null;
11423
+ endDate: string | null;
11424
+ timeIntervals: {
11425
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
11426
+ from: number;
11427
+ to: number;
11428
+ }[];
11429
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
11430
+ } | null;
11431
+ exclude: {
11432
+ startDate: string | null;
11433
+ endDate: string | null;
11434
+ timeIntervals: {
11435
+ weekDay: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
11436
+ from: number;
11437
+ to: number;
11438
+ }[];
11439
+ repeat: "daily" | "weekly" | "monthly" | "yearly" | null;
11440
+ } | null;
11441
+ flag: "never" | "always" | null;
11442
+ };
9879
11443
  props: {
9880
11444
  displayName: string;
9881
11445
  include: {
@@ -9956,7 +11520,24 @@ export declare const sApplyChange: z.ZodObject<{
9956
11520
  kind: "merge";
9957
11521
  objectKind: "person";
9958
11522
  objectId: string;
9959
- original: null;
11523
+ original: {
11524
+ type: string;
11525
+ firstName: string;
11526
+ lastName: string;
11527
+ avatarId: string | null;
11528
+ position: string | null;
11529
+ accessSuspended: boolean;
11530
+ staffMember: boolean;
11531
+ validFrom: string | null;
11532
+ validTo: string | null;
11533
+ credentials: {
11534
+ value: string | Record<string, unknown>;
11535
+ type: "card" | "pin" | "fingerprint";
11536
+ note: string | null;
11537
+ }[];
11538
+ accessRules: string[];
11539
+ customFields: Record<string, string> | null;
11540
+ };
9960
11541
  props: {
9961
11542
  type: string;
9962
11543
  firstName: string;
@@ -10019,7 +11600,10 @@ export declare const sApplyChange: z.ZodObject<{
10019
11600
  kind: "merge";
10020
11601
  objectKind: "zone";
10021
11602
  objectId: string;
10022
- original: null;
11603
+ original: {
11604
+ displayName: string;
11605
+ devices: string[];
11606
+ };
10023
11607
  props: {
10024
11608
  displayName: string;
10025
11609
  devices: string[];