@awarevue/api-types 1.1.12 → 1.1.14
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.
- package/dist/agent-communication/protocol.d.ts +504 -4
- package/dist/agent-communication/protocol.js +11 -6
- package/dist/agent-communication/queries.d.ts +20 -0
- package/dist/device/any-device.d.ts +139 -5
- package/dist/device/any-device.js +8 -1
- package/dist/device/index.d.ts +1 -0
- package/dist/device/index.js +1 -0
- package/dist/device/recorder.d.ts +12 -0
- package/dist/device/recorder.js +9 -0
- package/dist/device-import.d.ts +36 -0
- package/dist/objects.d.ts +3 -1
- package/dist/objects.js +2 -0
- package/dist/package.json +1 -1
- package/dist/permissions.d.ts +3 -3
- package/dist/permissions.js +1 -0
- package/dist/user.d.ts +12 -12
- package/package.json +1 -1
|
@@ -227,6 +227,12 @@ export declare const sAgentDeviceInfo: z.ZodIntersection<z.ZodIntersection<z.Zod
|
|
|
227
227
|
type: "display";
|
|
228
228
|
}, {
|
|
229
229
|
type: "display";
|
|
230
|
+
}>, z.ZodObject<{
|
|
231
|
+
type: z.ZodLiteral<"recorder">;
|
|
232
|
+
}, "strip", z.ZodTypeAny, {
|
|
233
|
+
type: "recorder";
|
|
234
|
+
}, {
|
|
235
|
+
type: "recorder";
|
|
230
236
|
}>]>>, z.ZodObject<{
|
|
231
237
|
presets: z.ZodArray<z.ZodObject<{
|
|
232
238
|
id: z.ZodString;
|
|
@@ -1038,6 +1044,12 @@ export declare const sRunCommandRq: z.ZodObject<{
|
|
|
1038
1044
|
type: "display";
|
|
1039
1045
|
}, {
|
|
1040
1046
|
type: "display";
|
|
1047
|
+
}>, z.ZodObject<{
|
|
1048
|
+
type: z.ZodLiteral<"recorder">;
|
|
1049
|
+
}, "strip", z.ZodTypeAny, {
|
|
1050
|
+
type: "recorder";
|
|
1051
|
+
}, {
|
|
1052
|
+
type: "recorder";
|
|
1041
1053
|
}>]>>, z.ZodObject<{
|
|
1042
1054
|
presets: z.ZodArray<z.ZodObject<{
|
|
1043
1055
|
id: z.ZodString;
|
|
@@ -1162,6 +1174,8 @@ export declare const sRunCommandRq: z.ZodObject<{
|
|
|
1162
1174
|
type: "reader";
|
|
1163
1175
|
} | {
|
|
1164
1176
|
type: "display";
|
|
1177
|
+
} | {
|
|
1178
|
+
type: "recorder";
|
|
1165
1179
|
})) & {
|
|
1166
1180
|
presets: {
|
|
1167
1181
|
name: string;
|
|
@@ -1249,6 +1263,8 @@ export declare const sRunCommandRq: z.ZodObject<{
|
|
|
1249
1263
|
type: "reader";
|
|
1250
1264
|
} | {
|
|
1251
1265
|
type: "display";
|
|
1266
|
+
} | {
|
|
1267
|
+
type: "recorder";
|
|
1252
1268
|
})) & {
|
|
1253
1269
|
presets: {
|
|
1254
1270
|
name: string;
|
|
@@ -1504,6 +1520,12 @@ export declare const sQueryRq: z.ZodObject<{
|
|
|
1504
1520
|
type: "display";
|
|
1505
1521
|
}, {
|
|
1506
1522
|
type: "display";
|
|
1523
|
+
}>, z.ZodObject<{
|
|
1524
|
+
type: z.ZodLiteral<"recorder">;
|
|
1525
|
+
}, "strip", z.ZodTypeAny, {
|
|
1526
|
+
type: "recorder";
|
|
1527
|
+
}, {
|
|
1528
|
+
type: "recorder";
|
|
1507
1529
|
}>]>>, z.ZodObject<{
|
|
1508
1530
|
presets: z.ZodArray<z.ZodObject<{
|
|
1509
1531
|
id: z.ZodString;
|
|
@@ -1552,7 +1574,6 @@ export declare const sQueryRq: z.ZodObject<{
|
|
|
1552
1574
|
}[];
|
|
1553
1575
|
}>>;
|
|
1554
1576
|
args: z.ZodUnknown;
|
|
1555
|
-
replyUrl: z.ZodOptional<z.ZodString>;
|
|
1556
1577
|
}, "strip", z.ZodTypeAny, {
|
|
1557
1578
|
kind: "query";
|
|
1558
1579
|
device: ({
|
|
@@ -1626,6 +1647,8 @@ export declare const sQueryRq: z.ZodObject<{
|
|
|
1626
1647
|
type: "reader";
|
|
1627
1648
|
} | {
|
|
1628
1649
|
type: "display";
|
|
1650
|
+
} | {
|
|
1651
|
+
type: "recorder";
|
|
1629
1652
|
})) & {
|
|
1630
1653
|
presets: {
|
|
1631
1654
|
name: string;
|
|
@@ -1639,7 +1662,6 @@ export declare const sQueryRq: z.ZodObject<{
|
|
|
1639
1662
|
};
|
|
1640
1663
|
query: string;
|
|
1641
1664
|
args?: unknown;
|
|
1642
|
-
replyUrl?: string | undefined;
|
|
1643
1665
|
}, {
|
|
1644
1666
|
kind: "query";
|
|
1645
1667
|
device: ({
|
|
@@ -1713,6 +1735,8 @@ export declare const sQueryRq: z.ZodObject<{
|
|
|
1713
1735
|
type: "reader";
|
|
1714
1736
|
} | {
|
|
1715
1737
|
type: "display";
|
|
1738
|
+
} | {
|
|
1739
|
+
type: "recorder";
|
|
1716
1740
|
})) & {
|
|
1717
1741
|
presets: {
|
|
1718
1742
|
name: string;
|
|
@@ -1726,7 +1750,6 @@ export declare const sQueryRq: z.ZodObject<{
|
|
|
1726
1750
|
};
|
|
1727
1751
|
query: string;
|
|
1728
1752
|
args?: unknown;
|
|
1729
|
-
replyUrl?: string | undefined;
|
|
1730
1753
|
}>;
|
|
1731
1754
|
export declare const sQueryRs: z.ZodIntersection<z.ZodObject<{
|
|
1732
1755
|
requestId: z.ZodString;
|
|
@@ -1744,6 +1767,471 @@ export declare const sQueryRs: z.ZodIntersection<z.ZodObject<{
|
|
|
1744
1767
|
}, {
|
|
1745
1768
|
result?: unknown;
|
|
1746
1769
|
}>>;
|
|
1770
|
+
export declare const sPushFile: z.ZodObject<{
|
|
1771
|
+
kind: z.ZodLiteral<"push-file">;
|
|
1772
|
+
query: z.ZodString;
|
|
1773
|
+
device: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
1774
|
+
name: z.ZodString;
|
|
1775
|
+
foreignRef: z.ZodString;
|
|
1776
|
+
provider: z.ZodString;
|
|
1777
|
+
providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
|
|
1778
|
+
}, "strip", z.ZodTypeAny, {
|
|
1779
|
+
name: string;
|
|
1780
|
+
foreignRef: string;
|
|
1781
|
+
provider: string;
|
|
1782
|
+
providerMetadata: {} & {
|
|
1783
|
+
[k: string]: unknown;
|
|
1784
|
+
};
|
|
1785
|
+
}, {
|
|
1786
|
+
name: string;
|
|
1787
|
+
foreignRef: string;
|
|
1788
|
+
provider: string;
|
|
1789
|
+
providerMetadata: {} & {
|
|
1790
|
+
[k: string]: unknown;
|
|
1791
|
+
};
|
|
1792
|
+
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1793
|
+
type: z.ZodLiteral<"alarm">;
|
|
1794
|
+
}, "strip", z.ZodTypeAny, {
|
|
1795
|
+
type: "alarm";
|
|
1796
|
+
}, {
|
|
1797
|
+
type: "alarm";
|
|
1798
|
+
}>, z.ZodObject<{
|
|
1799
|
+
lensType: z.ZodEnum<["flat", "fisheye"]>;
|
|
1800
|
+
mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
|
|
1801
|
+
ptzCapable: z.ZodBoolean;
|
|
1802
|
+
ptzPanSpeed: z.ZodNumber;
|
|
1803
|
+
ptzTiltSpeed: z.ZodNumber;
|
|
1804
|
+
ptzZoomSpeed: z.ZodNumber;
|
|
1805
|
+
panMin: z.ZodNumber;
|
|
1806
|
+
panMax: z.ZodNumber;
|
|
1807
|
+
tiltMin: z.ZodNumber;
|
|
1808
|
+
tiltMax: z.ZodNumber;
|
|
1809
|
+
zoomMin: z.ZodNumber;
|
|
1810
|
+
zoomMax: z.ZodNumber;
|
|
1811
|
+
recordingCapable: z.ZodBoolean;
|
|
1812
|
+
webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
|
|
1813
|
+
kind: z.ZodString;
|
|
1814
|
+
}, "strip", z.ZodTypeAny, {
|
|
1815
|
+
kind: string;
|
|
1816
|
+
}, {
|
|
1817
|
+
kind: string;
|
|
1818
|
+
}>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1819
|
+
streams: z.ZodArray<z.ZodObject<{
|
|
1820
|
+
id: z.ZodString;
|
|
1821
|
+
displayName: z.ZodString;
|
|
1822
|
+
externalPlayerUrl: z.ZodNullable<z.ZodString>;
|
|
1823
|
+
}, "strip", z.ZodTypeAny, {
|
|
1824
|
+
id: string;
|
|
1825
|
+
displayName: string;
|
|
1826
|
+
externalPlayerUrl: string | null;
|
|
1827
|
+
}, {
|
|
1828
|
+
id: string;
|
|
1829
|
+
displayName: string;
|
|
1830
|
+
externalPlayerUrl: string | null;
|
|
1831
|
+
}>, "many">;
|
|
1832
|
+
defaultStreamId: z.ZodString;
|
|
1833
|
+
} & {
|
|
1834
|
+
type: z.ZodLiteral<"camera">;
|
|
1835
|
+
}, "strip", z.ZodTypeAny, {
|
|
1836
|
+
type: "camera";
|
|
1837
|
+
streams: {
|
|
1838
|
+
id: string;
|
|
1839
|
+
displayName: string;
|
|
1840
|
+
externalPlayerUrl: string | null;
|
|
1841
|
+
}[];
|
|
1842
|
+
lensType: "flat" | "fisheye";
|
|
1843
|
+
mountPoint: "wall" | "ceiling" | "floor";
|
|
1844
|
+
ptzCapable: boolean;
|
|
1845
|
+
ptzPanSpeed: number;
|
|
1846
|
+
ptzTiltSpeed: number;
|
|
1847
|
+
ptzZoomSpeed: number;
|
|
1848
|
+
panMin: number;
|
|
1849
|
+
panMax: number;
|
|
1850
|
+
tiltMin: number;
|
|
1851
|
+
tiltMax: number;
|
|
1852
|
+
zoomMin: number;
|
|
1853
|
+
zoomMax: number;
|
|
1854
|
+
recordingCapable: boolean;
|
|
1855
|
+
webrtcPlaybackSource: ({
|
|
1856
|
+
kind: string;
|
|
1857
|
+
} & Record<string, unknown>) | null;
|
|
1858
|
+
defaultStreamId: string;
|
|
1859
|
+
}, {
|
|
1860
|
+
type: "camera";
|
|
1861
|
+
streams: {
|
|
1862
|
+
id: string;
|
|
1863
|
+
displayName: string;
|
|
1864
|
+
externalPlayerUrl: string | null;
|
|
1865
|
+
}[];
|
|
1866
|
+
lensType: "flat" | "fisheye";
|
|
1867
|
+
mountPoint: "wall" | "ceiling" | "floor";
|
|
1868
|
+
ptzCapable: boolean;
|
|
1869
|
+
ptzPanSpeed: number;
|
|
1870
|
+
ptzTiltSpeed: number;
|
|
1871
|
+
ptzZoomSpeed: number;
|
|
1872
|
+
panMin: number;
|
|
1873
|
+
panMax: number;
|
|
1874
|
+
tiltMin: number;
|
|
1875
|
+
tiltMax: number;
|
|
1876
|
+
zoomMin: number;
|
|
1877
|
+
zoomMax: number;
|
|
1878
|
+
recordingCapable: boolean;
|
|
1879
|
+
webrtcPlaybackSource: ({
|
|
1880
|
+
kind: string;
|
|
1881
|
+
} & Record<string, unknown>) | null;
|
|
1882
|
+
defaultStreamId: string;
|
|
1883
|
+
}>, z.ZodObject<{
|
|
1884
|
+
canReportOpenState: z.ZodBoolean;
|
|
1885
|
+
canReportLockState: z.ZodBoolean;
|
|
1886
|
+
canControlLock: z.ZodBoolean;
|
|
1887
|
+
canRelease: z.ZodBoolean;
|
|
1888
|
+
} & {
|
|
1889
|
+
type: z.ZodLiteral<"door">;
|
|
1890
|
+
}, "strip", z.ZodTypeAny, {
|
|
1891
|
+
type: "door";
|
|
1892
|
+
canReportOpenState: boolean;
|
|
1893
|
+
canReportLockState: boolean;
|
|
1894
|
+
canControlLock: boolean;
|
|
1895
|
+
canRelease: boolean;
|
|
1896
|
+
}, {
|
|
1897
|
+
type: "door";
|
|
1898
|
+
canReportOpenState: boolean;
|
|
1899
|
+
canReportLockState: boolean;
|
|
1900
|
+
canControlLock: boolean;
|
|
1901
|
+
canRelease: boolean;
|
|
1902
|
+
}>, z.ZodObject<{
|
|
1903
|
+
inputs: z.ZodArray<z.ZodString, "many">;
|
|
1904
|
+
outputs: z.ZodArray<z.ZodString, "many">;
|
|
1905
|
+
} & {
|
|
1906
|
+
type: z.ZodLiteral<"io-board">;
|
|
1907
|
+
}, "strip", z.ZodTypeAny, {
|
|
1908
|
+
type: "io-board";
|
|
1909
|
+
inputs: string[];
|
|
1910
|
+
outputs: string[];
|
|
1911
|
+
}, {
|
|
1912
|
+
type: "io-board";
|
|
1913
|
+
inputs: string[];
|
|
1914
|
+
outputs: string[];
|
|
1915
|
+
}>, z.ZodObject<{
|
|
1916
|
+
type: z.ZodLiteral<"camera-lift">;
|
|
1917
|
+
}, "strip", z.ZodTypeAny, {
|
|
1918
|
+
type: "camera-lift";
|
|
1919
|
+
}, {
|
|
1920
|
+
type: "camera-lift";
|
|
1921
|
+
}>, z.ZodObject<{
|
|
1922
|
+
type: z.ZodLiteral<"motion-sensor">;
|
|
1923
|
+
}, "strip", z.ZodTypeAny, {
|
|
1924
|
+
type: "motion-sensor";
|
|
1925
|
+
}, {
|
|
1926
|
+
type: "motion-sensor";
|
|
1927
|
+
}>, z.ZodObject<{
|
|
1928
|
+
type: z.ZodLiteral<"panic-button">;
|
|
1929
|
+
}, "strip", z.ZodTypeAny, {
|
|
1930
|
+
type: "panic-button";
|
|
1931
|
+
}, {
|
|
1932
|
+
type: "panic-button";
|
|
1933
|
+
}>, z.ZodObject<{
|
|
1934
|
+
sipUri: z.ZodString;
|
|
1935
|
+
sipUser: z.ZodString;
|
|
1936
|
+
sipPassword: z.ZodString;
|
|
1937
|
+
sipRealm: z.ZodString;
|
|
1938
|
+
remoteExtension: z.ZodString;
|
|
1939
|
+
} & {
|
|
1940
|
+
type: z.ZodLiteral<"intercom-terminal">;
|
|
1941
|
+
}, "strip", z.ZodTypeAny, {
|
|
1942
|
+
type: "intercom-terminal";
|
|
1943
|
+
sipUri: string;
|
|
1944
|
+
sipUser: string;
|
|
1945
|
+
sipPassword: string;
|
|
1946
|
+
sipRealm: string;
|
|
1947
|
+
remoteExtension: string;
|
|
1948
|
+
}, {
|
|
1949
|
+
type: "intercom-terminal";
|
|
1950
|
+
sipUri: string;
|
|
1951
|
+
sipUser: string;
|
|
1952
|
+
sipPassword: string;
|
|
1953
|
+
sipRealm: string;
|
|
1954
|
+
remoteExtension: string;
|
|
1955
|
+
}>, z.ZodObject<{
|
|
1956
|
+
sipWsUrl: z.ZodString;
|
|
1957
|
+
} & {
|
|
1958
|
+
type: z.ZodLiteral<"pbx">;
|
|
1959
|
+
}, "strip", z.ZodTypeAny, {
|
|
1960
|
+
type: "pbx";
|
|
1961
|
+
sipWsUrl: string;
|
|
1962
|
+
}, {
|
|
1963
|
+
type: "pbx";
|
|
1964
|
+
sipWsUrl: string;
|
|
1965
|
+
}>, z.ZodObject<{
|
|
1966
|
+
type: z.ZodLiteral<"server">;
|
|
1967
|
+
}, "strip", z.ZodTypeAny, {
|
|
1968
|
+
type: "server";
|
|
1969
|
+
}, {
|
|
1970
|
+
type: "server";
|
|
1971
|
+
}>, z.ZodObject<{
|
|
1972
|
+
type: z.ZodLiteral<"intercom-operator">;
|
|
1973
|
+
}, "strip", z.ZodTypeAny, {
|
|
1974
|
+
type: "intercom-operator";
|
|
1975
|
+
}, {
|
|
1976
|
+
type: "intercom-operator";
|
|
1977
|
+
}>, z.ZodObject<{
|
|
1978
|
+
type: z.ZodLiteral<"device-gateway">;
|
|
1979
|
+
}, "strip", z.ZodTypeAny, {
|
|
1980
|
+
type: "device-gateway";
|
|
1981
|
+
}, {
|
|
1982
|
+
type: "device-gateway";
|
|
1983
|
+
}>, z.ZodObject<{
|
|
1984
|
+
type: z.ZodLiteral<"presence-tracker">;
|
|
1985
|
+
}, "strip", z.ZodTypeAny, {
|
|
1986
|
+
type: "presence-tracker";
|
|
1987
|
+
}, {
|
|
1988
|
+
type: "presence-tracker";
|
|
1989
|
+
}>, z.ZodObject<{
|
|
1990
|
+
type: z.ZodLiteral<"reader">;
|
|
1991
|
+
}, "strip", z.ZodTypeAny, {
|
|
1992
|
+
type: "reader";
|
|
1993
|
+
}, {
|
|
1994
|
+
type: "reader";
|
|
1995
|
+
}>, z.ZodObject<{
|
|
1996
|
+
type: z.ZodLiteral<"display">;
|
|
1997
|
+
}, "strip", z.ZodTypeAny, {
|
|
1998
|
+
type: "display";
|
|
1999
|
+
}, {
|
|
2000
|
+
type: "display";
|
|
2001
|
+
}>, z.ZodObject<{
|
|
2002
|
+
type: z.ZodLiteral<"recorder">;
|
|
2003
|
+
}, "strip", z.ZodTypeAny, {
|
|
2004
|
+
type: "recorder";
|
|
2005
|
+
}, {
|
|
2006
|
+
type: "recorder";
|
|
2007
|
+
}>]>>, z.ZodObject<{
|
|
2008
|
+
presets: z.ZodArray<z.ZodObject<{
|
|
2009
|
+
id: z.ZodString;
|
|
2010
|
+
name: z.ZodString;
|
|
2011
|
+
params: z.ZodUnknown;
|
|
2012
|
+
isDefault: z.ZodBoolean;
|
|
2013
|
+
assignedRef: z.ZodNullable<z.ZodString>;
|
|
2014
|
+
createdOn: z.ZodString;
|
|
2015
|
+
lastModifiedOn: z.ZodString;
|
|
2016
|
+
}, "strip", z.ZodTypeAny, {
|
|
2017
|
+
name: string;
|
|
2018
|
+
id: string;
|
|
2019
|
+
isDefault: boolean;
|
|
2020
|
+
assignedRef: string | null;
|
|
2021
|
+
createdOn: string;
|
|
2022
|
+
lastModifiedOn: string;
|
|
2023
|
+
params?: unknown;
|
|
2024
|
+
}, {
|
|
2025
|
+
name: string;
|
|
2026
|
+
id: string;
|
|
2027
|
+
isDefault: boolean;
|
|
2028
|
+
assignedRef: string | null;
|
|
2029
|
+
createdOn: string;
|
|
2030
|
+
lastModifiedOn: string;
|
|
2031
|
+
params?: unknown;
|
|
2032
|
+
}>, "many">;
|
|
2033
|
+
}, "strip", z.ZodTypeAny, {
|
|
2034
|
+
presets: {
|
|
2035
|
+
name: string;
|
|
2036
|
+
id: string;
|
|
2037
|
+
isDefault: boolean;
|
|
2038
|
+
assignedRef: string | null;
|
|
2039
|
+
createdOn: string;
|
|
2040
|
+
lastModifiedOn: string;
|
|
2041
|
+
params?: unknown;
|
|
2042
|
+
}[];
|
|
2043
|
+
}, {
|
|
2044
|
+
presets: {
|
|
2045
|
+
name: string;
|
|
2046
|
+
id: string;
|
|
2047
|
+
isDefault: boolean;
|
|
2048
|
+
assignedRef: string | null;
|
|
2049
|
+
createdOn: string;
|
|
2050
|
+
lastModifiedOn: string;
|
|
2051
|
+
params?: unknown;
|
|
2052
|
+
}[];
|
|
2053
|
+
}>>;
|
|
2054
|
+
args: z.ZodUnknown;
|
|
2055
|
+
url: z.ZodString;
|
|
2056
|
+
}, "strip", z.ZodTypeAny, {
|
|
2057
|
+
url: string;
|
|
2058
|
+
kind: "push-file";
|
|
2059
|
+
device: ({
|
|
2060
|
+
name: string;
|
|
2061
|
+
foreignRef: string;
|
|
2062
|
+
provider: string;
|
|
2063
|
+
providerMetadata: {} & {
|
|
2064
|
+
[k: string]: unknown;
|
|
2065
|
+
};
|
|
2066
|
+
} & ({
|
|
2067
|
+
type: "alarm";
|
|
2068
|
+
} | {
|
|
2069
|
+
type: "camera";
|
|
2070
|
+
streams: {
|
|
2071
|
+
id: string;
|
|
2072
|
+
displayName: string;
|
|
2073
|
+
externalPlayerUrl: string | null;
|
|
2074
|
+
}[];
|
|
2075
|
+
lensType: "flat" | "fisheye";
|
|
2076
|
+
mountPoint: "wall" | "ceiling" | "floor";
|
|
2077
|
+
ptzCapable: boolean;
|
|
2078
|
+
ptzPanSpeed: number;
|
|
2079
|
+
ptzTiltSpeed: number;
|
|
2080
|
+
ptzZoomSpeed: number;
|
|
2081
|
+
panMin: number;
|
|
2082
|
+
panMax: number;
|
|
2083
|
+
tiltMin: number;
|
|
2084
|
+
tiltMax: number;
|
|
2085
|
+
zoomMin: number;
|
|
2086
|
+
zoomMax: number;
|
|
2087
|
+
recordingCapable: boolean;
|
|
2088
|
+
webrtcPlaybackSource: ({
|
|
2089
|
+
kind: string;
|
|
2090
|
+
} & Record<string, unknown>) | null;
|
|
2091
|
+
defaultStreamId: string;
|
|
2092
|
+
} | {
|
|
2093
|
+
type: "door";
|
|
2094
|
+
canReportOpenState: boolean;
|
|
2095
|
+
canReportLockState: boolean;
|
|
2096
|
+
canControlLock: boolean;
|
|
2097
|
+
canRelease: boolean;
|
|
2098
|
+
} | {
|
|
2099
|
+
type: "io-board";
|
|
2100
|
+
inputs: string[];
|
|
2101
|
+
outputs: string[];
|
|
2102
|
+
} | {
|
|
2103
|
+
type: "camera-lift";
|
|
2104
|
+
} | {
|
|
2105
|
+
type: "motion-sensor";
|
|
2106
|
+
} | {
|
|
2107
|
+
type: "panic-button";
|
|
2108
|
+
} | {
|
|
2109
|
+
type: "intercom-terminal";
|
|
2110
|
+
sipUri: string;
|
|
2111
|
+
sipUser: string;
|
|
2112
|
+
sipPassword: string;
|
|
2113
|
+
sipRealm: string;
|
|
2114
|
+
remoteExtension: string;
|
|
2115
|
+
} | {
|
|
2116
|
+
type: "pbx";
|
|
2117
|
+
sipWsUrl: string;
|
|
2118
|
+
} | {
|
|
2119
|
+
type: "server";
|
|
2120
|
+
} | {
|
|
2121
|
+
type: "intercom-operator";
|
|
2122
|
+
} | {
|
|
2123
|
+
type: "device-gateway";
|
|
2124
|
+
} | {
|
|
2125
|
+
type: "presence-tracker";
|
|
2126
|
+
} | {
|
|
2127
|
+
type: "reader";
|
|
2128
|
+
} | {
|
|
2129
|
+
type: "display";
|
|
2130
|
+
} | {
|
|
2131
|
+
type: "recorder";
|
|
2132
|
+
})) & {
|
|
2133
|
+
presets: {
|
|
2134
|
+
name: string;
|
|
2135
|
+
id: string;
|
|
2136
|
+
isDefault: boolean;
|
|
2137
|
+
assignedRef: string | null;
|
|
2138
|
+
createdOn: string;
|
|
2139
|
+
lastModifiedOn: string;
|
|
2140
|
+
params?: unknown;
|
|
2141
|
+
}[];
|
|
2142
|
+
};
|
|
2143
|
+
query: string;
|
|
2144
|
+
args?: unknown;
|
|
2145
|
+
}, {
|
|
2146
|
+
url: string;
|
|
2147
|
+
kind: "push-file";
|
|
2148
|
+
device: ({
|
|
2149
|
+
name: string;
|
|
2150
|
+
foreignRef: string;
|
|
2151
|
+
provider: string;
|
|
2152
|
+
providerMetadata: {} & {
|
|
2153
|
+
[k: string]: unknown;
|
|
2154
|
+
};
|
|
2155
|
+
} & ({
|
|
2156
|
+
type: "alarm";
|
|
2157
|
+
} | {
|
|
2158
|
+
type: "camera";
|
|
2159
|
+
streams: {
|
|
2160
|
+
id: string;
|
|
2161
|
+
displayName: string;
|
|
2162
|
+
externalPlayerUrl: string | null;
|
|
2163
|
+
}[];
|
|
2164
|
+
lensType: "flat" | "fisheye";
|
|
2165
|
+
mountPoint: "wall" | "ceiling" | "floor";
|
|
2166
|
+
ptzCapable: boolean;
|
|
2167
|
+
ptzPanSpeed: number;
|
|
2168
|
+
ptzTiltSpeed: number;
|
|
2169
|
+
ptzZoomSpeed: number;
|
|
2170
|
+
panMin: number;
|
|
2171
|
+
panMax: number;
|
|
2172
|
+
tiltMin: number;
|
|
2173
|
+
tiltMax: number;
|
|
2174
|
+
zoomMin: number;
|
|
2175
|
+
zoomMax: number;
|
|
2176
|
+
recordingCapable: boolean;
|
|
2177
|
+
webrtcPlaybackSource: ({
|
|
2178
|
+
kind: string;
|
|
2179
|
+
} & Record<string, unknown>) | null;
|
|
2180
|
+
defaultStreamId: string;
|
|
2181
|
+
} | {
|
|
2182
|
+
type: "door";
|
|
2183
|
+
canReportOpenState: boolean;
|
|
2184
|
+
canReportLockState: boolean;
|
|
2185
|
+
canControlLock: boolean;
|
|
2186
|
+
canRelease: boolean;
|
|
2187
|
+
} | {
|
|
2188
|
+
type: "io-board";
|
|
2189
|
+
inputs: string[];
|
|
2190
|
+
outputs: string[];
|
|
2191
|
+
} | {
|
|
2192
|
+
type: "camera-lift";
|
|
2193
|
+
} | {
|
|
2194
|
+
type: "motion-sensor";
|
|
2195
|
+
} | {
|
|
2196
|
+
type: "panic-button";
|
|
2197
|
+
} | {
|
|
2198
|
+
type: "intercom-terminal";
|
|
2199
|
+
sipUri: string;
|
|
2200
|
+
sipUser: string;
|
|
2201
|
+
sipPassword: string;
|
|
2202
|
+
sipRealm: string;
|
|
2203
|
+
remoteExtension: string;
|
|
2204
|
+
} | {
|
|
2205
|
+
type: "pbx";
|
|
2206
|
+
sipWsUrl: string;
|
|
2207
|
+
} | {
|
|
2208
|
+
type: "server";
|
|
2209
|
+
} | {
|
|
2210
|
+
type: "intercom-operator";
|
|
2211
|
+
} | {
|
|
2212
|
+
type: "device-gateway";
|
|
2213
|
+
} | {
|
|
2214
|
+
type: "presence-tracker";
|
|
2215
|
+
} | {
|
|
2216
|
+
type: "reader";
|
|
2217
|
+
} | {
|
|
2218
|
+
type: "display";
|
|
2219
|
+
} | {
|
|
2220
|
+
type: "recorder";
|
|
2221
|
+
})) & {
|
|
2222
|
+
presets: {
|
|
2223
|
+
name: string;
|
|
2224
|
+
id: string;
|
|
2225
|
+
isDefault: boolean;
|
|
2226
|
+
assignedRef: string | null;
|
|
2227
|
+
createdOn: string;
|
|
2228
|
+
lastModifiedOn: string;
|
|
2229
|
+
params?: unknown;
|
|
2230
|
+
}[];
|
|
2231
|
+
};
|
|
2232
|
+
query: string;
|
|
2233
|
+
args?: unknown;
|
|
2234
|
+
}>;
|
|
1747
2235
|
export declare const sPushStateUpdateRq: z.ZodObject<{
|
|
1748
2236
|
kind: z.ZodLiteral<"state">;
|
|
1749
2237
|
foreignRef: z.ZodString;
|
|
@@ -2059,6 +2547,12 @@ export declare const sGetAvailableDevicesRs: z.ZodIntersection<z.ZodObject<{
|
|
|
2059
2547
|
type: "display";
|
|
2060
2548
|
}, {
|
|
2061
2549
|
type: "display";
|
|
2550
|
+
}>, z.ZodObject<{
|
|
2551
|
+
type: z.ZodLiteral<"recorder">;
|
|
2552
|
+
}, "strip", z.ZodTypeAny, {
|
|
2553
|
+
type: "recorder";
|
|
2554
|
+
}, {
|
|
2555
|
+
type: "recorder";
|
|
2062
2556
|
}>]>>, "many">;
|
|
2063
2557
|
relations: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
2064
2558
|
leftId: z.ZodString;
|
|
@@ -2153,6 +2647,8 @@ export declare const sGetAvailableDevicesRs: z.ZodIntersection<z.ZodObject<{
|
|
|
2153
2647
|
type: "reader";
|
|
2154
2648
|
} | {
|
|
2155
2649
|
type: "display";
|
|
2650
|
+
} | {
|
|
2651
|
+
type: "recorder";
|
|
2156
2652
|
}))[];
|
|
2157
2653
|
relations: ({
|
|
2158
2654
|
kind: "parent" | "attachedTo" | "child" | "holds" | "isHeldBy" | "observes" | "isObservedBy" | "sendsInputTo" | "receivesInputFrom" | "sendsOutputTo" | "receivesOutputFrom" | "unlocks" | "isUnlockedBy" | "controls" | "isControlledBy";
|
|
@@ -2237,6 +2733,8 @@ export declare const sGetAvailableDevicesRs: z.ZodIntersection<z.ZodObject<{
|
|
|
2237
2733
|
type: "reader";
|
|
2238
2734
|
} | {
|
|
2239
2735
|
type: "display";
|
|
2736
|
+
} | {
|
|
2737
|
+
type: "recorder";
|
|
2240
2738
|
}))[];
|
|
2241
2739
|
relations: ({
|
|
2242
2740
|
kind: "parent" | "attachedTo" | "child" | "holds" | "isHeldBy" | "observes" | "isObservedBy" | "sendsInputTo" | "receivesInputFrom" | "sendsOutputTo" | "receivesOutputFrom" | "unlocks" | "isUnlockedBy" | "controls" | "isControlledBy";
|
|
@@ -9851,6 +10349,7 @@ export type RunCommandRq = z.infer<typeof sRunCommandRq>;
|
|
|
9851
10349
|
export type RunCommandRs = z.infer<typeof sRunCommandRs>;
|
|
9852
10350
|
export type QueryRq = z.infer<typeof sQueryRq>;
|
|
9853
10351
|
export type QueryRs = z.infer<typeof sQueryRs>;
|
|
10352
|
+
export type PushFile = z.infer<typeof sPushFile>;
|
|
9854
10353
|
export type PushStateUpdateRq = z.infer<typeof sPushStateUpdateRq>;
|
|
9855
10354
|
export type PushStateUpdateRs = z.infer<typeof sPushStateUpdateRs>;
|
|
9856
10355
|
export type PushEventRq = z.infer<typeof sPushEventRq>;
|
|
@@ -9888,6 +10387,7 @@ export type PayloadByKind = {
|
|
|
9888
10387
|
'command-rs': RunCommandRs;
|
|
9889
10388
|
query: QueryRq;
|
|
9890
10389
|
'query-rs': QueryRs;
|
|
10390
|
+
'push-file': PushFile;
|
|
9891
10391
|
state: PushStateUpdateRq;
|
|
9892
10392
|
'state-rs': PushStateUpdateRs;
|
|
9893
10393
|
event: PushEventRq;
|
|
@@ -9903,7 +10403,7 @@ export type PayloadByKind = {
|
|
|
9903
10403
|
'error-rs': ErrorPayload;
|
|
9904
10404
|
};
|
|
9905
10405
|
export type FromAgent = ErrorPayload | RegisterRq | Unregister | ValidateProviderConfigRs | StartServiceRs | StopServiceRs | RunCommandRs | QueryRs | PushStateUpdateRq | PushEventRq | GetAvailableDevicesRs | AccessValidateChangeRs | AccessApplyChangeRs | AccessApplyChangeProgress;
|
|
9906
|
-
export type FromServer = ErrorPayload | RegisterRs | ValidateProviderConfigRq | StartServiceRq | StopServiceRq | RunCommandRq | QueryRq | PushStateUpdateRs | PushEventRs | GetAvailableDevicesRq | AccessValidateChangeRq | AccessApplyChange | AccessAbortChange;
|
|
10406
|
+
export type FromServer = ErrorPayload | RegisterRs | ValidateProviderConfigRq | StartServiceRq | StopServiceRq | RunCommandRq | QueryRq | PushFile | PushStateUpdateRs | PushEventRs | GetAvailableDevicesRq | AccessValidateChangeRq | AccessApplyChange | AccessAbortChange;
|
|
9907
10407
|
export type AnyPayload = FromAgent | FromServer;
|
|
9908
10408
|
export declare const getAgentMessageIssues: (message: unknown) => string[];
|
|
9909
10409
|
export declare const isMessageFromAgent: (message: unknown) => message is Message<FromAgent>;
|
|
@@ -1,6 +1,6 @@
|
|
|
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 = exports.sAgentDeviceInfo = 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.sPushFile = 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");
|
|
@@ -151,15 +151,20 @@ exports.sQueryRq = zod_1.z.object({
|
|
|
151
151
|
query: zod_1.z.string().nonempty(),
|
|
152
152
|
device: exports.sAgentDeviceInfo,
|
|
153
153
|
args: zod_1.z.unknown().describe('Query arguments, depends on the query type'),
|
|
154
|
-
replyUrl: zod_1.z
|
|
155
|
-
.string()
|
|
156
|
-
.nonempty()
|
|
157
|
-
.optional()
|
|
158
|
-
.describe('URL to optionally POST the query response to. The default is to reply via query-rs'),
|
|
159
154
|
});
|
|
160
155
|
exports.sQueryRs = (0, exports.sResponsePayload)(zod_1.z.literal('query-rs'), zod_1.z.object({
|
|
161
156
|
result: zod_1.z.unknown().describe('Query result, depends on the query type'),
|
|
162
157
|
})).describe('Response for a query');
|
|
158
|
+
// FILE PUSH INSTRUCTIONS
|
|
159
|
+
exports.sPushFile = zod_1.z
|
|
160
|
+
.object({
|
|
161
|
+
kind: zod_1.z.literal('push-file'),
|
|
162
|
+
query: zod_1.z.string().nonempty(),
|
|
163
|
+
device: exports.sAgentDeviceInfo,
|
|
164
|
+
args: zod_1.z.unknown().describe('Query arguments, depends on the query type'),
|
|
165
|
+
url: zod_1.z.string().nonempty().describe('URL to pull the file from'),
|
|
166
|
+
})
|
|
167
|
+
.describe('Instruction to push a file from an agent to file relay');
|
|
163
168
|
// PUSH DEVICE STATE UPDATE
|
|
164
169
|
exports.sPushStateUpdateRq = zod_1.z
|
|
165
170
|
.object({
|