@awarevue/api-types 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,261 @@
1
1
  import { z } from 'zod';
2
+ export declare const sAgentDeviceInfo: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
3
+ name: z.ZodString;
4
+ foreignRef: z.ZodString;
5
+ provider: z.ZodString;
6
+ providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ name: string;
9
+ foreignRef: string;
10
+ provider: string;
11
+ providerMetadata: {} & {
12
+ [k: string]: unknown;
13
+ };
14
+ }, {
15
+ name: string;
16
+ foreignRef: string;
17
+ provider: string;
18
+ providerMetadata: {} & {
19
+ [k: string]: unknown;
20
+ };
21
+ }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
22
+ type: z.ZodLiteral<"alarm">;
23
+ }, "strip", z.ZodTypeAny, {
24
+ type: "alarm";
25
+ }, {
26
+ type: "alarm";
27
+ }>, z.ZodObject<{
28
+ lensType: z.ZodEnum<["flat", "fisheye"]>;
29
+ mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
30
+ ptzCapable: z.ZodBoolean;
31
+ ptzPanSpeed: z.ZodNumber;
32
+ ptzTiltSpeed: z.ZodNumber;
33
+ ptzZoomSpeed: z.ZodNumber;
34
+ recordingCapable: z.ZodBoolean;
35
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
36
+ kind: z.ZodString;
37
+ }, "strip", z.ZodTypeAny, {
38
+ kind: string;
39
+ }, {
40
+ kind: string;
41
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
42
+ streams: z.ZodArray<z.ZodObject<{
43
+ id: z.ZodString;
44
+ displayName: z.ZodString;
45
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ id: string;
48
+ displayName: string;
49
+ externalPlayerUrl: string | null;
50
+ }, {
51
+ id: string;
52
+ displayName: string;
53
+ externalPlayerUrl: string | null;
54
+ }>, "many">;
55
+ defaultStreamId: z.ZodString;
56
+ } & {
57
+ type: z.ZodLiteral<"camera">;
58
+ }, "strip", z.ZodTypeAny, {
59
+ type: "camera";
60
+ streams: {
61
+ id: string;
62
+ displayName: string;
63
+ externalPlayerUrl: string | null;
64
+ }[];
65
+ lensType: "flat" | "fisheye";
66
+ mountPoint: "wall" | "ceiling" | "floor";
67
+ ptzCapable: boolean;
68
+ ptzPanSpeed: number;
69
+ ptzTiltSpeed: number;
70
+ ptzZoomSpeed: number;
71
+ recordingCapable: boolean;
72
+ webrtcPlaybackSource: ({
73
+ kind: string;
74
+ } & Record<string, unknown>) | null;
75
+ defaultStreamId: string;
76
+ }, {
77
+ type: "camera";
78
+ streams: {
79
+ id: string;
80
+ displayName: string;
81
+ externalPlayerUrl: string | null;
82
+ }[];
83
+ lensType: "flat" | "fisheye";
84
+ mountPoint: "wall" | "ceiling" | "floor";
85
+ ptzCapable: boolean;
86
+ ptzPanSpeed: number;
87
+ ptzTiltSpeed: number;
88
+ ptzZoomSpeed: number;
89
+ recordingCapable: boolean;
90
+ webrtcPlaybackSource: ({
91
+ kind: string;
92
+ } & Record<string, unknown>) | null;
93
+ defaultStreamId: string;
94
+ }>, z.ZodObject<{
95
+ canReportOpenState: z.ZodBoolean;
96
+ canReportLockState: z.ZodBoolean;
97
+ canControlLock: z.ZodBoolean;
98
+ canRelease: z.ZodBoolean;
99
+ } & {
100
+ type: z.ZodLiteral<"door">;
101
+ }, "strip", z.ZodTypeAny, {
102
+ type: "door";
103
+ canReportOpenState: boolean;
104
+ canReportLockState: boolean;
105
+ canControlLock: boolean;
106
+ canRelease: boolean;
107
+ }, {
108
+ type: "door";
109
+ canReportOpenState: boolean;
110
+ canReportLockState: boolean;
111
+ canControlLock: boolean;
112
+ canRelease: boolean;
113
+ }>, z.ZodObject<{
114
+ inputs: z.ZodArray<z.ZodString, "many">;
115
+ outputs: z.ZodArray<z.ZodString, "many">;
116
+ } & {
117
+ type: z.ZodLiteral<"io-board">;
118
+ }, "strip", z.ZodTypeAny, {
119
+ type: "io-board";
120
+ inputs: string[];
121
+ outputs: string[];
122
+ }, {
123
+ type: "io-board";
124
+ inputs: string[];
125
+ outputs: string[];
126
+ }>, z.ZodObject<{
127
+ type: z.ZodLiteral<"camera-lift">;
128
+ }, "strip", z.ZodTypeAny, {
129
+ type: "camera-lift";
130
+ }, {
131
+ type: "camera-lift";
132
+ }>, z.ZodObject<{
133
+ type: z.ZodLiteral<"motion-sensor">;
134
+ }, "strip", z.ZodTypeAny, {
135
+ type: "motion-sensor";
136
+ }, {
137
+ type: "motion-sensor";
138
+ }>, z.ZodObject<{
139
+ type: z.ZodLiteral<"panic-button">;
140
+ }, "strip", z.ZodTypeAny, {
141
+ type: "panic-button";
142
+ }, {
143
+ type: "panic-button";
144
+ }>, z.ZodObject<{
145
+ sipUri: z.ZodString;
146
+ sipUser: z.ZodString;
147
+ sipPassword: z.ZodString;
148
+ sipRealm: z.ZodString;
149
+ remoteExtension: z.ZodString;
150
+ } & {
151
+ type: z.ZodLiteral<"intercom-terminal">;
152
+ }, "strip", z.ZodTypeAny, {
153
+ type: "intercom-terminal";
154
+ sipUri: string;
155
+ sipUser: string;
156
+ sipPassword: string;
157
+ sipRealm: string;
158
+ remoteExtension: string;
159
+ }, {
160
+ type: "intercom-terminal";
161
+ sipUri: string;
162
+ sipUser: string;
163
+ sipPassword: string;
164
+ sipRealm: string;
165
+ remoteExtension: string;
166
+ }>, z.ZodObject<{
167
+ sipWsUrl: z.ZodString;
168
+ } & {
169
+ type: z.ZodLiteral<"pbx">;
170
+ }, "strip", z.ZodTypeAny, {
171
+ type: "pbx";
172
+ sipWsUrl: string;
173
+ }, {
174
+ type: "pbx";
175
+ sipWsUrl: string;
176
+ }>, z.ZodObject<{
177
+ type: z.ZodLiteral<"server">;
178
+ }, "strip", z.ZodTypeAny, {
179
+ type: "server";
180
+ }, {
181
+ type: "server";
182
+ }>, z.ZodObject<{
183
+ type: z.ZodLiteral<"intercom-operator">;
184
+ }, "strip", z.ZodTypeAny, {
185
+ type: "intercom-operator";
186
+ }, {
187
+ type: "intercom-operator";
188
+ }>, z.ZodObject<{
189
+ type: z.ZodLiteral<"device-gateway">;
190
+ }, "strip", z.ZodTypeAny, {
191
+ type: "device-gateway";
192
+ }, {
193
+ type: "device-gateway";
194
+ }>, z.ZodObject<{
195
+ type: z.ZodLiteral<"presence-tracker">;
196
+ }, "strip", z.ZodTypeAny, {
197
+ type: "presence-tracker";
198
+ }, {
199
+ type: "presence-tracker";
200
+ }>, z.ZodObject<{
201
+ type: z.ZodLiteral<"reader">;
202
+ }, "strip", z.ZodTypeAny, {
203
+ type: "reader";
204
+ }, {
205
+ type: "reader";
206
+ }>, z.ZodObject<{
207
+ type: z.ZodLiteral<"display">;
208
+ }, "strip", z.ZodTypeAny, {
209
+ type: "display";
210
+ }, {
211
+ type: "display";
212
+ }>]>>, z.ZodObject<{
213
+ presets: z.ZodArray<z.ZodObject<{
214
+ id: z.ZodString;
215
+ name: z.ZodString;
216
+ params: z.ZodUnknown;
217
+ isDefault: z.ZodBoolean;
218
+ assignedRef: z.ZodNullable<z.ZodString>;
219
+ createdOn: z.ZodString;
220
+ lastModifiedOn: z.ZodString;
221
+ }, "strip", z.ZodTypeAny, {
222
+ name: string;
223
+ id: string;
224
+ isDefault: boolean;
225
+ assignedRef: string | null;
226
+ createdOn: string;
227
+ lastModifiedOn: string;
228
+ params?: unknown;
229
+ }, {
230
+ name: string;
231
+ id: string;
232
+ isDefault: boolean;
233
+ assignedRef: string | null;
234
+ createdOn: string;
235
+ lastModifiedOn: string;
236
+ params?: unknown;
237
+ }>, "many">;
238
+ }, "strip", z.ZodTypeAny, {
239
+ presets: {
240
+ name: string;
241
+ id: string;
242
+ isDefault: boolean;
243
+ assignedRef: string | null;
244
+ createdOn: string;
245
+ lastModifiedOn: string;
246
+ params?: unknown;
247
+ }[];
248
+ }, {
249
+ presets: {
250
+ name: string;
251
+ id: string;
252
+ isDefault: boolean;
253
+ assignedRef: string | null;
254
+ createdOn: string;
255
+ lastModifiedOn: string;
256
+ params?: unknown;
257
+ }[];
258
+ }>>;
2
259
  export declare const sMessageHeader: z.ZodObject<{
3
260
  version: z.ZodNumber;
4
261
  id: z.ZodString;
@@ -535,7 +792,7 @@ export declare const sStopServiceRs: z.ZodIntersection<z.ZodObject<{
535
792
  }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>>;
536
793
  export declare const sRunCommandRq: z.ZodObject<{
537
794
  kind: z.ZodLiteral<"command">;
538
- device: z.ZodObject<{
795
+ device: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
539
796
  name: z.ZodString;
540
797
  foreignRef: z.ZodString;
541
798
  provider: z.ZodString;
@@ -554,94 +811,840 @@ export declare const sRunCommandRq: z.ZodObject<{
554
811
  providerMetadata: {} & {
555
812
  [k: string]: unknown;
556
813
  };
557
- }>;
558
- command: z.ZodString;
559
- batchId: z.ZodOptional<z.ZodString>;
560
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
561
- }, "strip", z.ZodTypeAny, {
562
- command: string;
563
- kind: "command";
564
- device: {
565
- name: string;
566
- foreignRef: string;
567
- provider: string;
568
- providerMetadata: {} & {
569
- [k: string]: unknown;
570
- };
571
- };
572
- params?: Record<string, unknown> | undefined;
573
- batchId?: string | undefined;
574
- }, {
575
- command: string;
576
- kind: "command";
577
- device: {
578
- name: string;
579
- foreignRef: string;
580
- provider: string;
581
- providerMetadata: {} & {
582
- [k: string]: unknown;
583
- };
584
- };
585
- params?: Record<string, unknown> | undefined;
586
- batchId?: string | undefined;
587
- }>;
588
- export declare const sRunCommandRs: z.ZodIntersection<z.ZodObject<{
589
- requestId: z.ZodString;
590
- kind: z.ZodLiteral<"command-rs">;
591
- }, "strip", z.ZodTypeAny, {
592
- kind: "command-rs";
593
- requestId: string;
594
- }, {
595
- kind: "command-rs";
596
- requestId: string;
597
- }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>>;
598
- export declare const sQueryRq: z.ZodObject<{
599
- kind: z.ZodLiteral<"query">;
600
- query: z.ZodString;
601
- device: z.ZodObject<{
602
- name: z.ZodString;
603
- foreignRef: z.ZodString;
604
- provider: z.ZodString;
605
- providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
814
+ }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
815
+ type: z.ZodLiteral<"alarm">;
606
816
  }, "strip", z.ZodTypeAny, {
607
- name: string;
608
- foreignRef: string;
609
- provider: string;
610
- providerMetadata: {} & {
611
- [k: string]: unknown;
612
- };
817
+ type: "alarm";
613
818
  }, {
614
- name: string;
615
- foreignRef: string;
616
- provider: string;
617
- providerMetadata: {} & {
618
- [k: string]: unknown;
619
- };
620
- }>;
621
- args: z.ZodUnknown;
622
- replyUrl: z.ZodOptional<z.ZodString>;
623
- }, "strip", z.ZodTypeAny, {
624
- kind: "query";
625
- device: {
626
- name: string;
627
- foreignRef: string;
628
- provider: string;
629
- providerMetadata: {} & {
630
- [k: string]: unknown;
631
- };
632
- };
633
- query: string;
634
- args?: unknown;
635
- replyUrl?: string | undefined;
636
- }, {
637
- kind: "query";
638
- device: {
639
- name: string;
640
- foreignRef: string;
641
- provider: string;
642
- providerMetadata: {} & {
643
- [k: string]: unknown;
644
- };
819
+ type: "alarm";
820
+ }>, z.ZodObject<{
821
+ lensType: z.ZodEnum<["flat", "fisheye"]>;
822
+ mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
823
+ ptzCapable: z.ZodBoolean;
824
+ ptzPanSpeed: z.ZodNumber;
825
+ ptzTiltSpeed: z.ZodNumber;
826
+ ptzZoomSpeed: z.ZodNumber;
827
+ recordingCapable: z.ZodBoolean;
828
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
829
+ kind: z.ZodString;
830
+ }, "strip", z.ZodTypeAny, {
831
+ kind: string;
832
+ }, {
833
+ kind: string;
834
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
835
+ streams: z.ZodArray<z.ZodObject<{
836
+ id: z.ZodString;
837
+ displayName: z.ZodString;
838
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
839
+ }, "strip", z.ZodTypeAny, {
840
+ id: string;
841
+ displayName: string;
842
+ externalPlayerUrl: string | null;
843
+ }, {
844
+ id: string;
845
+ displayName: string;
846
+ externalPlayerUrl: string | null;
847
+ }>, "many">;
848
+ defaultStreamId: z.ZodString;
849
+ } & {
850
+ type: z.ZodLiteral<"camera">;
851
+ }, "strip", z.ZodTypeAny, {
852
+ type: "camera";
853
+ streams: {
854
+ id: string;
855
+ displayName: string;
856
+ externalPlayerUrl: string | null;
857
+ }[];
858
+ lensType: "flat" | "fisheye";
859
+ mountPoint: "wall" | "ceiling" | "floor";
860
+ ptzCapable: boolean;
861
+ ptzPanSpeed: number;
862
+ ptzTiltSpeed: number;
863
+ ptzZoomSpeed: number;
864
+ recordingCapable: boolean;
865
+ webrtcPlaybackSource: ({
866
+ kind: string;
867
+ } & Record<string, unknown>) | null;
868
+ defaultStreamId: string;
869
+ }, {
870
+ type: "camera";
871
+ streams: {
872
+ id: string;
873
+ displayName: string;
874
+ externalPlayerUrl: string | null;
875
+ }[];
876
+ lensType: "flat" | "fisheye";
877
+ mountPoint: "wall" | "ceiling" | "floor";
878
+ ptzCapable: boolean;
879
+ ptzPanSpeed: number;
880
+ ptzTiltSpeed: number;
881
+ ptzZoomSpeed: number;
882
+ recordingCapable: boolean;
883
+ webrtcPlaybackSource: ({
884
+ kind: string;
885
+ } & Record<string, unknown>) | null;
886
+ defaultStreamId: string;
887
+ }>, z.ZodObject<{
888
+ canReportOpenState: z.ZodBoolean;
889
+ canReportLockState: z.ZodBoolean;
890
+ canControlLock: z.ZodBoolean;
891
+ canRelease: z.ZodBoolean;
892
+ } & {
893
+ type: z.ZodLiteral<"door">;
894
+ }, "strip", z.ZodTypeAny, {
895
+ type: "door";
896
+ canReportOpenState: boolean;
897
+ canReportLockState: boolean;
898
+ canControlLock: boolean;
899
+ canRelease: boolean;
900
+ }, {
901
+ type: "door";
902
+ canReportOpenState: boolean;
903
+ canReportLockState: boolean;
904
+ canControlLock: boolean;
905
+ canRelease: boolean;
906
+ }>, z.ZodObject<{
907
+ inputs: z.ZodArray<z.ZodString, "many">;
908
+ outputs: z.ZodArray<z.ZodString, "many">;
909
+ } & {
910
+ type: z.ZodLiteral<"io-board">;
911
+ }, "strip", z.ZodTypeAny, {
912
+ type: "io-board";
913
+ inputs: string[];
914
+ outputs: string[];
915
+ }, {
916
+ type: "io-board";
917
+ inputs: string[];
918
+ outputs: string[];
919
+ }>, z.ZodObject<{
920
+ type: z.ZodLiteral<"camera-lift">;
921
+ }, "strip", z.ZodTypeAny, {
922
+ type: "camera-lift";
923
+ }, {
924
+ type: "camera-lift";
925
+ }>, z.ZodObject<{
926
+ type: z.ZodLiteral<"motion-sensor">;
927
+ }, "strip", z.ZodTypeAny, {
928
+ type: "motion-sensor";
929
+ }, {
930
+ type: "motion-sensor";
931
+ }>, z.ZodObject<{
932
+ type: z.ZodLiteral<"panic-button">;
933
+ }, "strip", z.ZodTypeAny, {
934
+ type: "panic-button";
935
+ }, {
936
+ type: "panic-button";
937
+ }>, z.ZodObject<{
938
+ sipUri: z.ZodString;
939
+ sipUser: z.ZodString;
940
+ sipPassword: z.ZodString;
941
+ sipRealm: z.ZodString;
942
+ remoteExtension: z.ZodString;
943
+ } & {
944
+ type: z.ZodLiteral<"intercom-terminal">;
945
+ }, "strip", z.ZodTypeAny, {
946
+ type: "intercom-terminal";
947
+ sipUri: string;
948
+ sipUser: string;
949
+ sipPassword: string;
950
+ sipRealm: string;
951
+ remoteExtension: string;
952
+ }, {
953
+ type: "intercom-terminal";
954
+ sipUri: string;
955
+ sipUser: string;
956
+ sipPassword: string;
957
+ sipRealm: string;
958
+ remoteExtension: string;
959
+ }>, z.ZodObject<{
960
+ sipWsUrl: z.ZodString;
961
+ } & {
962
+ type: z.ZodLiteral<"pbx">;
963
+ }, "strip", z.ZodTypeAny, {
964
+ type: "pbx";
965
+ sipWsUrl: string;
966
+ }, {
967
+ type: "pbx";
968
+ sipWsUrl: string;
969
+ }>, z.ZodObject<{
970
+ type: z.ZodLiteral<"server">;
971
+ }, "strip", z.ZodTypeAny, {
972
+ type: "server";
973
+ }, {
974
+ type: "server";
975
+ }>, z.ZodObject<{
976
+ type: z.ZodLiteral<"intercom-operator">;
977
+ }, "strip", z.ZodTypeAny, {
978
+ type: "intercom-operator";
979
+ }, {
980
+ type: "intercom-operator";
981
+ }>, z.ZodObject<{
982
+ type: z.ZodLiteral<"device-gateway">;
983
+ }, "strip", z.ZodTypeAny, {
984
+ type: "device-gateway";
985
+ }, {
986
+ type: "device-gateway";
987
+ }>, z.ZodObject<{
988
+ type: z.ZodLiteral<"presence-tracker">;
989
+ }, "strip", z.ZodTypeAny, {
990
+ type: "presence-tracker";
991
+ }, {
992
+ type: "presence-tracker";
993
+ }>, z.ZodObject<{
994
+ type: z.ZodLiteral<"reader">;
995
+ }, "strip", z.ZodTypeAny, {
996
+ type: "reader";
997
+ }, {
998
+ type: "reader";
999
+ }>, z.ZodObject<{
1000
+ type: z.ZodLiteral<"display">;
1001
+ }, "strip", z.ZodTypeAny, {
1002
+ type: "display";
1003
+ }, {
1004
+ type: "display";
1005
+ }>]>>, z.ZodObject<{
1006
+ presets: z.ZodArray<z.ZodObject<{
1007
+ id: z.ZodString;
1008
+ name: z.ZodString;
1009
+ params: z.ZodUnknown;
1010
+ isDefault: z.ZodBoolean;
1011
+ assignedRef: z.ZodNullable<z.ZodString>;
1012
+ createdOn: z.ZodString;
1013
+ lastModifiedOn: z.ZodString;
1014
+ }, "strip", z.ZodTypeAny, {
1015
+ name: string;
1016
+ id: string;
1017
+ isDefault: boolean;
1018
+ assignedRef: string | null;
1019
+ createdOn: string;
1020
+ lastModifiedOn: string;
1021
+ params?: unknown;
1022
+ }, {
1023
+ name: string;
1024
+ id: string;
1025
+ isDefault: boolean;
1026
+ assignedRef: string | null;
1027
+ createdOn: string;
1028
+ lastModifiedOn: string;
1029
+ params?: unknown;
1030
+ }>, "many">;
1031
+ }, "strip", z.ZodTypeAny, {
1032
+ presets: {
1033
+ name: string;
1034
+ id: string;
1035
+ isDefault: boolean;
1036
+ assignedRef: string | null;
1037
+ createdOn: string;
1038
+ lastModifiedOn: string;
1039
+ params?: unknown;
1040
+ }[];
1041
+ }, {
1042
+ presets: {
1043
+ name: string;
1044
+ id: string;
1045
+ isDefault: boolean;
1046
+ assignedRef: string | null;
1047
+ createdOn: string;
1048
+ lastModifiedOn: string;
1049
+ params?: unknown;
1050
+ }[];
1051
+ }>>;
1052
+ command: z.ZodString;
1053
+ batchId: z.ZodOptional<z.ZodString>;
1054
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1055
+ }, "strip", z.ZodTypeAny, {
1056
+ command: string;
1057
+ kind: "command";
1058
+ device: ({
1059
+ name: string;
1060
+ foreignRef: string;
1061
+ provider: string;
1062
+ providerMetadata: {} & {
1063
+ [k: string]: unknown;
1064
+ };
1065
+ } & ({
1066
+ type: "alarm";
1067
+ } | {
1068
+ type: "camera";
1069
+ streams: {
1070
+ id: string;
1071
+ displayName: string;
1072
+ externalPlayerUrl: string | null;
1073
+ }[];
1074
+ lensType: "flat" | "fisheye";
1075
+ mountPoint: "wall" | "ceiling" | "floor";
1076
+ ptzCapable: boolean;
1077
+ ptzPanSpeed: number;
1078
+ ptzTiltSpeed: number;
1079
+ ptzZoomSpeed: number;
1080
+ recordingCapable: boolean;
1081
+ webrtcPlaybackSource: ({
1082
+ kind: string;
1083
+ } & Record<string, unknown>) | null;
1084
+ defaultStreamId: string;
1085
+ } | {
1086
+ type: "door";
1087
+ canReportOpenState: boolean;
1088
+ canReportLockState: boolean;
1089
+ canControlLock: boolean;
1090
+ canRelease: boolean;
1091
+ } | {
1092
+ type: "io-board";
1093
+ inputs: string[];
1094
+ outputs: string[];
1095
+ } | {
1096
+ type: "camera-lift";
1097
+ } | {
1098
+ type: "motion-sensor";
1099
+ } | {
1100
+ type: "panic-button";
1101
+ } | {
1102
+ type: "intercom-terminal";
1103
+ sipUri: string;
1104
+ sipUser: string;
1105
+ sipPassword: string;
1106
+ sipRealm: string;
1107
+ remoteExtension: string;
1108
+ } | {
1109
+ type: "pbx";
1110
+ sipWsUrl: string;
1111
+ } | {
1112
+ type: "server";
1113
+ } | {
1114
+ type: "intercom-operator";
1115
+ } | {
1116
+ type: "device-gateway";
1117
+ } | {
1118
+ type: "presence-tracker";
1119
+ } | {
1120
+ type: "reader";
1121
+ } | {
1122
+ type: "display";
1123
+ })) & {
1124
+ presets: {
1125
+ name: string;
1126
+ id: string;
1127
+ isDefault: boolean;
1128
+ assignedRef: string | null;
1129
+ createdOn: string;
1130
+ lastModifiedOn: string;
1131
+ params?: unknown;
1132
+ }[];
1133
+ };
1134
+ params?: Record<string, unknown> | undefined;
1135
+ batchId?: string | undefined;
1136
+ }, {
1137
+ command: string;
1138
+ kind: "command";
1139
+ device: ({
1140
+ name: string;
1141
+ foreignRef: string;
1142
+ provider: string;
1143
+ providerMetadata: {} & {
1144
+ [k: string]: unknown;
1145
+ };
1146
+ } & ({
1147
+ type: "alarm";
1148
+ } | {
1149
+ type: "camera";
1150
+ streams: {
1151
+ id: string;
1152
+ displayName: string;
1153
+ externalPlayerUrl: string | null;
1154
+ }[];
1155
+ lensType: "flat" | "fisheye";
1156
+ mountPoint: "wall" | "ceiling" | "floor";
1157
+ ptzCapable: boolean;
1158
+ ptzPanSpeed: number;
1159
+ ptzTiltSpeed: number;
1160
+ ptzZoomSpeed: number;
1161
+ recordingCapable: boolean;
1162
+ webrtcPlaybackSource: ({
1163
+ kind: string;
1164
+ } & Record<string, unknown>) | null;
1165
+ defaultStreamId: string;
1166
+ } | {
1167
+ type: "door";
1168
+ canReportOpenState: boolean;
1169
+ canReportLockState: boolean;
1170
+ canControlLock: boolean;
1171
+ canRelease: boolean;
1172
+ } | {
1173
+ type: "io-board";
1174
+ inputs: string[];
1175
+ outputs: string[];
1176
+ } | {
1177
+ type: "camera-lift";
1178
+ } | {
1179
+ type: "motion-sensor";
1180
+ } | {
1181
+ type: "panic-button";
1182
+ } | {
1183
+ type: "intercom-terminal";
1184
+ sipUri: string;
1185
+ sipUser: string;
1186
+ sipPassword: string;
1187
+ sipRealm: string;
1188
+ remoteExtension: string;
1189
+ } | {
1190
+ type: "pbx";
1191
+ sipWsUrl: string;
1192
+ } | {
1193
+ type: "server";
1194
+ } | {
1195
+ type: "intercom-operator";
1196
+ } | {
1197
+ type: "device-gateway";
1198
+ } | {
1199
+ type: "presence-tracker";
1200
+ } | {
1201
+ type: "reader";
1202
+ } | {
1203
+ type: "display";
1204
+ })) & {
1205
+ presets: {
1206
+ name: string;
1207
+ id: string;
1208
+ isDefault: boolean;
1209
+ assignedRef: string | null;
1210
+ createdOn: string;
1211
+ lastModifiedOn: string;
1212
+ params?: unknown;
1213
+ }[];
1214
+ };
1215
+ params?: Record<string, unknown> | undefined;
1216
+ batchId?: string | undefined;
1217
+ }>;
1218
+ export declare const sRunCommandRs: z.ZodIntersection<z.ZodObject<{
1219
+ requestId: z.ZodString;
1220
+ kind: z.ZodLiteral<"command-rs">;
1221
+ }, "strip", z.ZodTypeAny, {
1222
+ kind: "command-rs";
1223
+ requestId: string;
1224
+ }, {
1225
+ kind: "command-rs";
1226
+ requestId: string;
1227
+ }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>>;
1228
+ export declare const sQueryRq: z.ZodObject<{
1229
+ kind: z.ZodLiteral<"query">;
1230
+ query: z.ZodString;
1231
+ device: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
1232
+ name: z.ZodString;
1233
+ foreignRef: z.ZodString;
1234
+ provider: z.ZodString;
1235
+ providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
1236
+ }, "strip", z.ZodTypeAny, {
1237
+ name: string;
1238
+ foreignRef: string;
1239
+ provider: string;
1240
+ providerMetadata: {} & {
1241
+ [k: string]: unknown;
1242
+ };
1243
+ }, {
1244
+ name: string;
1245
+ foreignRef: string;
1246
+ provider: string;
1247
+ providerMetadata: {} & {
1248
+ [k: string]: unknown;
1249
+ };
1250
+ }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1251
+ type: z.ZodLiteral<"alarm">;
1252
+ }, "strip", z.ZodTypeAny, {
1253
+ type: "alarm";
1254
+ }, {
1255
+ type: "alarm";
1256
+ }>, z.ZodObject<{
1257
+ lensType: z.ZodEnum<["flat", "fisheye"]>;
1258
+ mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
1259
+ ptzCapable: z.ZodBoolean;
1260
+ ptzPanSpeed: z.ZodNumber;
1261
+ ptzTiltSpeed: z.ZodNumber;
1262
+ ptzZoomSpeed: z.ZodNumber;
1263
+ recordingCapable: z.ZodBoolean;
1264
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
1265
+ kind: z.ZodString;
1266
+ }, "strip", z.ZodTypeAny, {
1267
+ kind: string;
1268
+ }, {
1269
+ kind: string;
1270
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1271
+ streams: z.ZodArray<z.ZodObject<{
1272
+ id: z.ZodString;
1273
+ displayName: z.ZodString;
1274
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
1275
+ }, "strip", z.ZodTypeAny, {
1276
+ id: string;
1277
+ displayName: string;
1278
+ externalPlayerUrl: string | null;
1279
+ }, {
1280
+ id: string;
1281
+ displayName: string;
1282
+ externalPlayerUrl: string | null;
1283
+ }>, "many">;
1284
+ defaultStreamId: z.ZodString;
1285
+ } & {
1286
+ type: z.ZodLiteral<"camera">;
1287
+ }, "strip", z.ZodTypeAny, {
1288
+ type: "camera";
1289
+ streams: {
1290
+ id: string;
1291
+ displayName: string;
1292
+ externalPlayerUrl: string | null;
1293
+ }[];
1294
+ lensType: "flat" | "fisheye";
1295
+ mountPoint: "wall" | "ceiling" | "floor";
1296
+ ptzCapable: boolean;
1297
+ ptzPanSpeed: number;
1298
+ ptzTiltSpeed: number;
1299
+ ptzZoomSpeed: number;
1300
+ recordingCapable: boolean;
1301
+ webrtcPlaybackSource: ({
1302
+ kind: string;
1303
+ } & Record<string, unknown>) | null;
1304
+ defaultStreamId: string;
1305
+ }, {
1306
+ type: "camera";
1307
+ streams: {
1308
+ id: string;
1309
+ displayName: string;
1310
+ externalPlayerUrl: string | null;
1311
+ }[];
1312
+ lensType: "flat" | "fisheye";
1313
+ mountPoint: "wall" | "ceiling" | "floor";
1314
+ ptzCapable: boolean;
1315
+ ptzPanSpeed: number;
1316
+ ptzTiltSpeed: number;
1317
+ ptzZoomSpeed: number;
1318
+ recordingCapable: boolean;
1319
+ webrtcPlaybackSource: ({
1320
+ kind: string;
1321
+ } & Record<string, unknown>) | null;
1322
+ defaultStreamId: string;
1323
+ }>, z.ZodObject<{
1324
+ canReportOpenState: z.ZodBoolean;
1325
+ canReportLockState: z.ZodBoolean;
1326
+ canControlLock: z.ZodBoolean;
1327
+ canRelease: z.ZodBoolean;
1328
+ } & {
1329
+ type: z.ZodLiteral<"door">;
1330
+ }, "strip", z.ZodTypeAny, {
1331
+ type: "door";
1332
+ canReportOpenState: boolean;
1333
+ canReportLockState: boolean;
1334
+ canControlLock: boolean;
1335
+ canRelease: boolean;
1336
+ }, {
1337
+ type: "door";
1338
+ canReportOpenState: boolean;
1339
+ canReportLockState: boolean;
1340
+ canControlLock: boolean;
1341
+ canRelease: boolean;
1342
+ }>, z.ZodObject<{
1343
+ inputs: z.ZodArray<z.ZodString, "many">;
1344
+ outputs: z.ZodArray<z.ZodString, "many">;
1345
+ } & {
1346
+ type: z.ZodLiteral<"io-board">;
1347
+ }, "strip", z.ZodTypeAny, {
1348
+ type: "io-board";
1349
+ inputs: string[];
1350
+ outputs: string[];
1351
+ }, {
1352
+ type: "io-board";
1353
+ inputs: string[];
1354
+ outputs: string[];
1355
+ }>, z.ZodObject<{
1356
+ type: z.ZodLiteral<"camera-lift">;
1357
+ }, "strip", z.ZodTypeAny, {
1358
+ type: "camera-lift";
1359
+ }, {
1360
+ type: "camera-lift";
1361
+ }>, z.ZodObject<{
1362
+ type: z.ZodLiteral<"motion-sensor">;
1363
+ }, "strip", z.ZodTypeAny, {
1364
+ type: "motion-sensor";
1365
+ }, {
1366
+ type: "motion-sensor";
1367
+ }>, z.ZodObject<{
1368
+ type: z.ZodLiteral<"panic-button">;
1369
+ }, "strip", z.ZodTypeAny, {
1370
+ type: "panic-button";
1371
+ }, {
1372
+ type: "panic-button";
1373
+ }>, z.ZodObject<{
1374
+ sipUri: z.ZodString;
1375
+ sipUser: z.ZodString;
1376
+ sipPassword: z.ZodString;
1377
+ sipRealm: z.ZodString;
1378
+ remoteExtension: z.ZodString;
1379
+ } & {
1380
+ type: z.ZodLiteral<"intercom-terminal">;
1381
+ }, "strip", z.ZodTypeAny, {
1382
+ type: "intercom-terminal";
1383
+ sipUri: string;
1384
+ sipUser: string;
1385
+ sipPassword: string;
1386
+ sipRealm: string;
1387
+ remoteExtension: string;
1388
+ }, {
1389
+ type: "intercom-terminal";
1390
+ sipUri: string;
1391
+ sipUser: string;
1392
+ sipPassword: string;
1393
+ sipRealm: string;
1394
+ remoteExtension: string;
1395
+ }>, z.ZodObject<{
1396
+ sipWsUrl: z.ZodString;
1397
+ } & {
1398
+ type: z.ZodLiteral<"pbx">;
1399
+ }, "strip", z.ZodTypeAny, {
1400
+ type: "pbx";
1401
+ sipWsUrl: string;
1402
+ }, {
1403
+ type: "pbx";
1404
+ sipWsUrl: string;
1405
+ }>, z.ZodObject<{
1406
+ type: z.ZodLiteral<"server">;
1407
+ }, "strip", z.ZodTypeAny, {
1408
+ type: "server";
1409
+ }, {
1410
+ type: "server";
1411
+ }>, z.ZodObject<{
1412
+ type: z.ZodLiteral<"intercom-operator">;
1413
+ }, "strip", z.ZodTypeAny, {
1414
+ type: "intercom-operator";
1415
+ }, {
1416
+ type: "intercom-operator";
1417
+ }>, z.ZodObject<{
1418
+ type: z.ZodLiteral<"device-gateway">;
1419
+ }, "strip", z.ZodTypeAny, {
1420
+ type: "device-gateway";
1421
+ }, {
1422
+ type: "device-gateway";
1423
+ }>, z.ZodObject<{
1424
+ type: z.ZodLiteral<"presence-tracker">;
1425
+ }, "strip", z.ZodTypeAny, {
1426
+ type: "presence-tracker";
1427
+ }, {
1428
+ type: "presence-tracker";
1429
+ }>, z.ZodObject<{
1430
+ type: z.ZodLiteral<"reader">;
1431
+ }, "strip", z.ZodTypeAny, {
1432
+ type: "reader";
1433
+ }, {
1434
+ type: "reader";
1435
+ }>, z.ZodObject<{
1436
+ type: z.ZodLiteral<"display">;
1437
+ }, "strip", z.ZodTypeAny, {
1438
+ type: "display";
1439
+ }, {
1440
+ type: "display";
1441
+ }>]>>, z.ZodObject<{
1442
+ presets: z.ZodArray<z.ZodObject<{
1443
+ id: z.ZodString;
1444
+ name: z.ZodString;
1445
+ params: z.ZodUnknown;
1446
+ isDefault: z.ZodBoolean;
1447
+ assignedRef: z.ZodNullable<z.ZodString>;
1448
+ createdOn: z.ZodString;
1449
+ lastModifiedOn: z.ZodString;
1450
+ }, "strip", z.ZodTypeAny, {
1451
+ name: string;
1452
+ id: string;
1453
+ isDefault: boolean;
1454
+ assignedRef: string | null;
1455
+ createdOn: string;
1456
+ lastModifiedOn: string;
1457
+ params?: unknown;
1458
+ }, {
1459
+ name: string;
1460
+ id: string;
1461
+ isDefault: boolean;
1462
+ assignedRef: string | null;
1463
+ createdOn: string;
1464
+ lastModifiedOn: string;
1465
+ params?: unknown;
1466
+ }>, "many">;
1467
+ }, "strip", z.ZodTypeAny, {
1468
+ presets: {
1469
+ name: string;
1470
+ id: string;
1471
+ isDefault: boolean;
1472
+ assignedRef: string | null;
1473
+ createdOn: string;
1474
+ lastModifiedOn: string;
1475
+ params?: unknown;
1476
+ }[];
1477
+ }, {
1478
+ presets: {
1479
+ name: string;
1480
+ id: string;
1481
+ isDefault: boolean;
1482
+ assignedRef: string | null;
1483
+ createdOn: string;
1484
+ lastModifiedOn: string;
1485
+ params?: unknown;
1486
+ }[];
1487
+ }>>;
1488
+ args: z.ZodUnknown;
1489
+ replyUrl: z.ZodOptional<z.ZodString>;
1490
+ }, "strip", z.ZodTypeAny, {
1491
+ kind: "query";
1492
+ device: ({
1493
+ name: string;
1494
+ foreignRef: string;
1495
+ provider: string;
1496
+ providerMetadata: {} & {
1497
+ [k: string]: unknown;
1498
+ };
1499
+ } & ({
1500
+ type: "alarm";
1501
+ } | {
1502
+ type: "camera";
1503
+ streams: {
1504
+ id: string;
1505
+ displayName: string;
1506
+ externalPlayerUrl: string | null;
1507
+ }[];
1508
+ lensType: "flat" | "fisheye";
1509
+ mountPoint: "wall" | "ceiling" | "floor";
1510
+ ptzCapable: boolean;
1511
+ ptzPanSpeed: number;
1512
+ ptzTiltSpeed: number;
1513
+ ptzZoomSpeed: number;
1514
+ recordingCapable: boolean;
1515
+ webrtcPlaybackSource: ({
1516
+ kind: string;
1517
+ } & Record<string, unknown>) | null;
1518
+ defaultStreamId: string;
1519
+ } | {
1520
+ type: "door";
1521
+ canReportOpenState: boolean;
1522
+ canReportLockState: boolean;
1523
+ canControlLock: boolean;
1524
+ canRelease: boolean;
1525
+ } | {
1526
+ type: "io-board";
1527
+ inputs: string[];
1528
+ outputs: string[];
1529
+ } | {
1530
+ type: "camera-lift";
1531
+ } | {
1532
+ type: "motion-sensor";
1533
+ } | {
1534
+ type: "panic-button";
1535
+ } | {
1536
+ type: "intercom-terminal";
1537
+ sipUri: string;
1538
+ sipUser: string;
1539
+ sipPassword: string;
1540
+ sipRealm: string;
1541
+ remoteExtension: string;
1542
+ } | {
1543
+ type: "pbx";
1544
+ sipWsUrl: string;
1545
+ } | {
1546
+ type: "server";
1547
+ } | {
1548
+ type: "intercom-operator";
1549
+ } | {
1550
+ type: "device-gateway";
1551
+ } | {
1552
+ type: "presence-tracker";
1553
+ } | {
1554
+ type: "reader";
1555
+ } | {
1556
+ type: "display";
1557
+ })) & {
1558
+ presets: {
1559
+ name: string;
1560
+ id: string;
1561
+ isDefault: boolean;
1562
+ assignedRef: string | null;
1563
+ createdOn: string;
1564
+ lastModifiedOn: string;
1565
+ params?: unknown;
1566
+ }[];
1567
+ };
1568
+ query: string;
1569
+ args?: unknown;
1570
+ replyUrl?: string | undefined;
1571
+ }, {
1572
+ kind: "query";
1573
+ device: ({
1574
+ name: string;
1575
+ foreignRef: string;
1576
+ provider: string;
1577
+ providerMetadata: {} & {
1578
+ [k: string]: unknown;
1579
+ };
1580
+ } & ({
1581
+ type: "alarm";
1582
+ } | {
1583
+ type: "camera";
1584
+ streams: {
1585
+ id: string;
1586
+ displayName: string;
1587
+ externalPlayerUrl: string | null;
1588
+ }[];
1589
+ lensType: "flat" | "fisheye";
1590
+ mountPoint: "wall" | "ceiling" | "floor";
1591
+ ptzCapable: boolean;
1592
+ ptzPanSpeed: number;
1593
+ ptzTiltSpeed: number;
1594
+ ptzZoomSpeed: number;
1595
+ recordingCapable: boolean;
1596
+ webrtcPlaybackSource: ({
1597
+ kind: string;
1598
+ } & Record<string, unknown>) | null;
1599
+ defaultStreamId: string;
1600
+ } | {
1601
+ type: "door";
1602
+ canReportOpenState: boolean;
1603
+ canReportLockState: boolean;
1604
+ canControlLock: boolean;
1605
+ canRelease: boolean;
1606
+ } | {
1607
+ type: "io-board";
1608
+ inputs: string[];
1609
+ outputs: string[];
1610
+ } | {
1611
+ type: "camera-lift";
1612
+ } | {
1613
+ type: "motion-sensor";
1614
+ } | {
1615
+ type: "panic-button";
1616
+ } | {
1617
+ type: "intercom-terminal";
1618
+ sipUri: string;
1619
+ sipUser: string;
1620
+ sipPassword: string;
1621
+ sipRealm: string;
1622
+ remoteExtension: string;
1623
+ } | {
1624
+ type: "pbx";
1625
+ sipWsUrl: string;
1626
+ } | {
1627
+ type: "server";
1628
+ } | {
1629
+ type: "intercom-operator";
1630
+ } | {
1631
+ type: "device-gateway";
1632
+ } | {
1633
+ type: "presence-tracker";
1634
+ } | {
1635
+ type: "reader";
1636
+ } | {
1637
+ type: "display";
1638
+ })) & {
1639
+ presets: {
1640
+ name: string;
1641
+ id: string;
1642
+ isDefault: boolean;
1643
+ assignedRef: string | null;
1644
+ createdOn: string;
1645
+ lastModifiedOn: string;
1646
+ params?: unknown;
1647
+ }[];
645
1648
  };
646
1649
  query: string;
647
1650
  args?: unknown;
@@ -8627,6 +9630,7 @@ export declare const sAbortChange: z.ZodObject<{
8627
9630
  provider: string;
8628
9631
  policyVersion: number;
8629
9632
  }>;
9633
+ export type AgentDeviceInfo = z.infer<typeof sAgentDeviceInfo>;
8630
9634
  export type MessageHeader = z.infer<typeof sMessageHeader>;
8631
9635
  export type Message<TPayload> = MessageHeader & TPayload;
8632
9636
  export type ErrorPayload = z.infer<typeof sErrorPayload>;
@@ -1,11 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isMessageFromAgent = exports.getAgentMessageIssues = exports.sAbortChange = exports.sApplyChangeProgress = exports.sApplyChangeRs = exports.sApplyChange = exports.sValidateChangeRs = exports.sChangeIssue = exports.sChangeIssueCode = exports.sValidateChangeRq = exports.sRefMap = exports.sDeviceMap = exports.sAccessMutation = exports.sObjectDelete = exports.sObjectMerge = exports.sGetAvailableDevicesRs = exports.sGetAvailableDevicesRq = exports.sPushEventRs = exports.sPushEventRq = exports.sPushStateUpdateRs = exports.sPushStateUpdateRq = exports.sQueryRs = exports.sQueryRq = exports.sRunCommandRs = exports.sRunCommandRq = exports.sStopServiceRs = exports.sStopServiceRq = exports.sStartServiceRs = exports.sStartServiceRq = exports.sValidateProviderConfigRs = exports.sConfigurationIssue = exports.sValidateProviderConfigRq = exports.sUnregister = exports.sRegisterRs = exports.sRegisterRq = exports.sAccessControlCapabilityReport = exports.sTokenSpecs = exports.sAccessObjectKind = exports.sProviderSpecs = exports.sUiHint = exports.sUiWidgetHint = exports.sUiOrderHint = exports.sErrorPayload = exports.sResponsePayload = exports.sMessageWithPayload = exports.sMessageHeader = void 0;
3
+ exports.isMessageFromAgent = exports.getAgentMessageIssues = exports.sAbortChange = exports.sApplyChangeProgress = exports.sApplyChangeRs = exports.sApplyChange = exports.sValidateChangeRs = exports.sChangeIssue = exports.sChangeIssueCode = exports.sValidateChangeRq = exports.sRefMap = exports.sDeviceMap = exports.sAccessMutation = exports.sObjectDelete = exports.sObjectMerge = exports.sGetAvailableDevicesRs = exports.sGetAvailableDevicesRq = exports.sPushEventRs = exports.sPushEventRq = exports.sPushStateUpdateRs = exports.sPushStateUpdateRq = exports.sQueryRs = exports.sQueryRq = exports.sRunCommandRs = exports.sRunCommandRq = exports.sStopServiceRs = exports.sStopServiceRq = exports.sStartServiceRs = exports.sStartServiceRq = exports.sValidateProviderConfigRs = exports.sConfigurationIssue = exports.sValidateProviderConfigRq = exports.sUnregister = exports.sRegisterRs = exports.sRegisterRq = exports.sAccessControlCapabilityReport = exports.sTokenSpecs = exports.sAccessObjectKind = exports.sProviderSpecs = exports.sUiHint = exports.sUiWidgetHint = exports.sUiOrderHint = exports.sErrorPayload = exports.sResponsePayload = exports.sMessageWithPayload = exports.sMessageHeader = exports.sAgentDeviceInfo = void 0;
4
4
  const device_1 = require("../device");
5
5
  const device_import_1 = require("../device-import");
6
6
  const credential_1 = require("../access-control/credential");
7
7
  const zod_1 = require("zod");
8
8
  const access_control_1 = require("../access-control");
9
+ exports.sAgentDeviceInfo = device_1.sForeignDeviceInfo.and(device_1.sAnyDeviceSpecs).and(zod_1.z.object({
10
+ presets: zod_1.z.array(device_1.sPresetDto),
11
+ }));
9
12
  // PROTOCOL ENVELOPE
10
13
  exports.sMessageHeader = zod_1.z.object({
11
14
  version: zod_1.z.number().describe('Protocol version'),
@@ -132,7 +135,7 @@ exports.sStopServiceRs = (0, exports.sResponsePayload)(zod_1.z.literal('stop-rs'
132
135
  exports.sRunCommandRq = zod_1.z
133
136
  .object({
134
137
  kind: zod_1.z.literal('command'),
135
- device: device_1.sForeignDeviceInfo,
138
+ device: exports.sAgentDeviceInfo,
136
139
  command: zod_1.z.string().nonempty(),
137
140
  batchId: zod_1.z
138
141
  .string()
@@ -146,7 +149,7 @@ exports.sRunCommandRs = (0, exports.sResponsePayload)(zod_1.z.literal('command-r
146
149
  exports.sQueryRq = zod_1.z.object({
147
150
  kind: zod_1.z.literal('query'),
148
151
  query: zod_1.z.string().nonempty(),
149
- device: device_1.sForeignDeviceInfo,
152
+ device: exports.sAgentDeviceInfo,
150
153
  args: zod_1.z.unknown().describe('Query arguments, depends on the query type'),
151
154
  replyUrl: zod_1.z
152
155
  .string()
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Common types between backend, agent(s) and frontend(s)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Common types between backend, agent(s) and frontend(s)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",