camstreamerlib 4.0.0-beta.3 → 4.0.0-beta.30

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.
Files changed (192) hide show
  1. package/README.md +8 -2
  2. package/cjs/CamOverlayAPI.d.ts +47 -26
  3. package/cjs/CamOverlayAPI.js +171 -88
  4. package/cjs/CamOverlayDrawingAPI.d.ts +2 -47
  5. package/cjs/CamOverlayDrawingAPI.js +6 -3
  6. package/cjs/CamOverlayPainter/Frame.d.ts +8 -37
  7. package/cjs/CamOverlayPainter/Frame.js +33 -0
  8. package/cjs/CamOverlayPainter/Painter.d.ts +16 -10
  9. package/cjs/CamOverlayPainter/Painter.js +6 -5
  10. package/cjs/CamOverlayPainter/ResourceManager.d.ts +3 -2
  11. package/cjs/CamOverlayPainter/ResourceManager.js +8 -11
  12. package/cjs/CamScripterAPI.d.ts +33 -16
  13. package/cjs/CamScripterAPI.js +50 -41
  14. package/cjs/CamScripterAPICameraEventsGenerator.d.ts +1 -1
  15. package/cjs/CamScripterAPICameraEventsGenerator.js +6 -3
  16. package/cjs/CamStreamerAPI.d.ts +16 -14
  17. package/cjs/CamStreamerAPI.js +32 -32
  18. package/cjs/CamSwitcherAPI.d.ts +42 -37
  19. package/cjs/CamSwitcherAPI.js +123 -114
  20. package/cjs/CamSwitcherEvents.d.ts +1 -1
  21. package/cjs/PlaneTrackerAPI.d.ts +42 -0
  22. package/cjs/PlaneTrackerAPI.js +211 -0
  23. package/cjs/VapixAPI.d.ts +56 -43
  24. package/cjs/VapixAPI.js +305 -216
  25. package/cjs/VapixEvents.d.ts +1 -1
  26. package/cjs/VapixEvents.js +3 -3
  27. package/cjs/errors/errors.d.ts +3 -0
  28. package/cjs/errors/errors.js +8 -1
  29. package/cjs/events/AxisCameraStationEvents.d.ts +5 -4
  30. package/cjs/events/AxisCameraStationEvents.js +23 -18
  31. package/cjs/events/GenetecAgent.d.ts +6 -3
  32. package/cjs/events/GenetecAgent.js +30 -19
  33. package/cjs/index.d.ts +14 -1
  34. package/cjs/index.js +23 -2
  35. package/cjs/internal/Digest.js +6 -6
  36. package/cjs/internal/ProxyClient.d.ts +8 -9
  37. package/cjs/internal/ProxyClient.js +25 -29
  38. package/cjs/internal/types.d.ts +42 -0
  39. package/cjs/internal/types.js +2 -0
  40. package/cjs/internal/utils.d.ts +4 -1
  41. package/cjs/internal/utils.js +22 -3
  42. package/cjs/internal/versionCompare.d.ts +2 -2
  43. package/cjs/node/DefaultClient.d.ts +5 -6
  44. package/cjs/node/DefaultClient.js +12 -14
  45. package/cjs/node/HttpRequestSender.d.ts +1 -0
  46. package/cjs/node/HttpRequestSender.js +13 -3
  47. package/cjs/node/HttpServer.js +1 -1
  48. package/cjs/node/WsClient.d.ts +2 -1
  49. package/cjs/node/WsEventClient.d.ts +1 -1
  50. package/cjs/node/index.d.ts +2 -0
  51. package/cjs/node/index.js +18 -1
  52. package/cjs/types/CamOverlayAPI/CamOverlayAPI.d.ts +3073 -0
  53. package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +127 -0
  54. package/cjs/types/CamOverlayAPI/accuweatherSchema.d.ts +114 -0
  55. package/cjs/types/CamOverlayAPI/accuweatherSchema.js +50 -0
  56. package/cjs/types/CamOverlayAPI/customGraphicsSchema.d.ts +783 -0
  57. package/cjs/types/CamOverlayAPI/customGraphicsSchema.js +75 -0
  58. package/cjs/types/CamOverlayAPI/imagesSchema.d.ts +122 -0
  59. package/cjs/types/CamOverlayAPI/imagesSchema.js +12 -0
  60. package/cjs/types/CamOverlayAPI/index.d.ts +9 -0
  61. package/cjs/types/CamOverlayAPI/index.js +25 -0
  62. package/cjs/types/CamOverlayAPI/infotickerSchema.d.ts +130 -0
  63. package/cjs/types/CamOverlayAPI/infotickerSchema.js +29 -0
  64. package/cjs/types/CamOverlayAPI/pipSchema.d.ts +166 -0
  65. package/cjs/types/CamOverlayAPI/pipSchema.js +42 -0
  66. package/cjs/types/CamOverlayAPI/ptzCompassSchema.d.ts +126 -0
  67. package/cjs/types/CamOverlayAPI/ptzCompassSchema.js +28 -0
  68. package/cjs/types/CamOverlayAPI/ptzSchema.d.ts +146 -0
  69. package/cjs/types/CamOverlayAPI/ptzSchema.js +15 -0
  70. package/cjs/types/CamOverlayAPI/screenSharingSchema.d.ts +79 -0
  71. package/cjs/types/CamOverlayAPI/screenSharingSchema.js +11 -0
  72. package/cjs/types/CamOverlayAPI/webCameraSharingSchema.d.ts +79 -0
  73. package/cjs/types/CamOverlayAPI/webCameraSharingSchema.js +11 -0
  74. package/cjs/types/CamOverlayDrawingAPI.d.ts +58 -0
  75. package/cjs/types/CamOverlayDrawingAPI.js +2 -0
  76. package/cjs/types/CamOverlayPainter.d.ts +74 -0
  77. package/cjs/types/CamOverlayPainter.js +2 -0
  78. package/cjs/types/CamScripterAPI.d.ts +82 -17
  79. package/cjs/types/CamScripterAPI.js +22 -7
  80. package/cjs/types/CamStreamerAPI.d.ts +16 -5
  81. package/cjs/types/CamStreamerAPI.js +5 -1
  82. package/cjs/types/CamSwitcherAPI.d.ts +5 -5
  83. package/cjs/types/CamSwitcherEvents.d.ts +77 -0
  84. package/cjs/types/CamSwitcherEvents.js +8 -0
  85. package/cjs/types/PlaneTrackerAPI.d.ts +8 -0
  86. package/cjs/types/PlaneTrackerAPI.js +2 -0
  87. package/cjs/types/VapixAPI.d.ts +636 -519
  88. package/cjs/types/VapixAPI.js +62 -24
  89. package/cjs/types/common.d.ts +14 -5
  90. package/cjs/web/DefaultClient.d.ts +5 -5
  91. package/cjs/web/DefaultClient.js +22 -10
  92. package/cjs/web/WsClient.js +2 -2
  93. package/esm/CamOverlayAPI.d.ts +47 -26
  94. package/esm/CamOverlayAPI.js +169 -86
  95. package/esm/CamOverlayDrawingAPI.d.ts +2 -47
  96. package/esm/CamOverlayDrawingAPI.js +6 -3
  97. package/esm/CamOverlayPainter/Frame.d.ts +8 -37
  98. package/esm/CamOverlayPainter/Frame.js +33 -0
  99. package/esm/CamOverlayPainter/Painter.d.ts +16 -10
  100. package/esm/CamOverlayPainter/Painter.js +5 -3
  101. package/esm/CamOverlayPainter/ResourceManager.d.ts +3 -2
  102. package/esm/CamOverlayPainter/ResourceManager.js +7 -11
  103. package/esm/CamScripterAPI.d.ts +33 -16
  104. package/esm/CamScripterAPI.js +46 -37
  105. package/esm/CamScripterAPICameraEventsGenerator.d.ts +1 -1
  106. package/esm/CamScripterAPICameraEventsGenerator.js +6 -3
  107. package/esm/CamStreamerAPI.d.ts +16 -14
  108. package/esm/CamStreamerAPI.js +32 -32
  109. package/esm/CamSwitcherAPI.d.ts +42 -37
  110. package/esm/CamSwitcherAPI.js +116 -107
  111. package/esm/CamSwitcherEvents.d.ts +1 -1
  112. package/esm/PlaneTrackerAPI.d.ts +42 -0
  113. package/esm/PlaneTrackerAPI.js +207 -0
  114. package/esm/VapixAPI.d.ts +56 -43
  115. package/esm/VapixAPI.js +297 -208
  116. package/esm/VapixEvents.d.ts +1 -1
  117. package/esm/VapixEvents.js +3 -3
  118. package/esm/errors/errors.d.ts +3 -0
  119. package/esm/errors/errors.js +6 -0
  120. package/esm/events/AxisCameraStationEvents.d.ts +5 -4
  121. package/esm/events/AxisCameraStationEvents.js +18 -13
  122. package/esm/events/GenetecAgent.d.ts +6 -3
  123. package/esm/events/GenetecAgent.js +20 -9
  124. package/esm/index.d.ts +14 -1
  125. package/esm/index.js +14 -1
  126. package/esm/internal/Digest.js +6 -6
  127. package/esm/internal/ProxyClient.d.ts +8 -9
  128. package/esm/internal/ProxyClient.js +25 -29
  129. package/esm/internal/types.d.ts +42 -0
  130. package/esm/internal/types.js +1 -0
  131. package/esm/internal/utils.d.ts +4 -1
  132. package/esm/internal/utils.js +17 -1
  133. package/esm/internal/versionCompare.d.ts +2 -2
  134. package/esm/node/DefaultClient.d.ts +5 -6
  135. package/esm/node/DefaultClient.js +12 -14
  136. package/esm/node/HttpRequestSender.d.ts +1 -0
  137. package/esm/node/HttpRequestSender.js +13 -3
  138. package/esm/node/HttpServer.js +1 -1
  139. package/esm/node/WsClient.d.ts +2 -1
  140. package/esm/node/WsEventClient.d.ts +1 -1
  141. package/esm/node/index.d.ts +2 -0
  142. package/esm/node/index.js +2 -0
  143. package/esm/types/CamOverlayAPI/CamOverlayAPI.d.ts +3073 -0
  144. package/esm/types/CamOverlayAPI/CamOverlayAPI.js +124 -0
  145. package/esm/types/CamOverlayAPI/accuweatherSchema.d.ts +114 -0
  146. package/esm/types/CamOverlayAPI/accuweatherSchema.js +46 -0
  147. package/esm/types/CamOverlayAPI/customGraphicsSchema.d.ts +783 -0
  148. package/esm/types/CamOverlayAPI/customGraphicsSchema.js +71 -0
  149. package/esm/types/CamOverlayAPI/imagesSchema.d.ts +122 -0
  150. package/esm/types/CamOverlayAPI/imagesSchema.js +8 -0
  151. package/esm/types/CamOverlayAPI/index.d.ts +9 -0
  152. package/esm/types/CamOverlayAPI/index.js +9 -0
  153. package/esm/types/CamOverlayAPI/infotickerSchema.d.ts +130 -0
  154. package/esm/types/CamOverlayAPI/infotickerSchema.js +25 -0
  155. package/esm/types/CamOverlayAPI/pipSchema.d.ts +166 -0
  156. package/esm/types/CamOverlayAPI/pipSchema.js +38 -0
  157. package/esm/types/CamOverlayAPI/ptzCompassSchema.d.ts +126 -0
  158. package/esm/types/CamOverlayAPI/ptzCompassSchema.js +24 -0
  159. package/esm/types/CamOverlayAPI/ptzSchema.d.ts +146 -0
  160. package/esm/types/CamOverlayAPI/ptzSchema.js +11 -0
  161. package/esm/types/CamOverlayAPI/screenSharingSchema.d.ts +79 -0
  162. package/esm/types/CamOverlayAPI/screenSharingSchema.js +7 -0
  163. package/esm/types/CamOverlayAPI/webCameraSharingSchema.d.ts +79 -0
  164. package/esm/types/CamOverlayAPI/webCameraSharingSchema.js +7 -0
  165. package/esm/types/CamOverlayDrawingAPI.d.ts +58 -0
  166. package/esm/types/CamOverlayDrawingAPI.js +1 -0
  167. package/esm/types/CamOverlayPainter.d.ts +74 -0
  168. package/esm/types/CamOverlayPainter.js +1 -0
  169. package/esm/types/CamScripterAPI.d.ts +82 -17
  170. package/esm/types/CamScripterAPI.js +21 -6
  171. package/esm/types/CamStreamerAPI.d.ts +16 -5
  172. package/esm/types/CamStreamerAPI.js +4 -0
  173. package/esm/types/CamSwitcherAPI.d.ts +5 -5
  174. package/esm/types/CamSwitcherEvents.d.ts +77 -0
  175. package/esm/types/CamSwitcherEvents.js +8 -0
  176. package/esm/types/PlaneTrackerAPI.d.ts +8 -0
  177. package/esm/types/PlaneTrackerAPI.js +1 -0
  178. package/esm/types/VapixAPI.d.ts +636 -519
  179. package/esm/types/VapixAPI.js +61 -23
  180. package/esm/types/common.d.ts +14 -5
  181. package/esm/web/DefaultClient.d.ts +5 -5
  182. package/esm/web/DefaultClient.js +22 -10
  183. package/esm/web/WsClient.js +2 -2
  184. package/package.json +9 -8
  185. package/cjs/internal/common.d.ts +0 -39
  186. package/cjs/internal/common.js +0 -27
  187. package/cjs/types/CamOverlayAPI.d.ts +0 -188
  188. package/cjs/types/CamOverlayAPI.js +0 -47
  189. package/esm/internal/common.d.ts +0 -39
  190. package/esm/internal/common.js +0 -20
  191. package/esm/types/CamOverlayAPI.d.ts +0 -188
  192. package/esm/types/CamOverlayAPI.js +0 -44
@@ -1,188 +0,0 @@
1
- import { HttpOptions } from '../internal/common';
2
- import { z } from 'zod';
3
- export type CamOverlayOptions = HttpOptions;
4
- export type TFileType = 'image' | 'font';
5
- export type TCoordinates = 'top_left' | 'top_right' | 'top' | 'bottom_left' | 'bottom_right' | 'bottom' | 'left' | 'right' | 'center' | '';
6
- export declare const serviceSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
7
- export type TService = z.infer<typeof serviceSchema>;
8
- export type TServiceList = {
9
- services: TService[];
10
- };
11
- export declare const fieldSchema: z.ZodObject<{
12
- field_name: z.ZodString;
13
- text: z.ZodString;
14
- color: z.ZodOptional<z.ZodString>;
15
- }, "strip", z.ZodTypeAny, {
16
- field_name: string;
17
- text: string;
18
- color?: string | undefined;
19
- }, {
20
- field_name: string;
21
- text: string;
22
- color?: string | undefined;
23
- }>;
24
- export type TField = z.infer<typeof fieldSchema>;
25
- export declare const fileSchema: z.ZodObject<{
26
- name: z.ZodString;
27
- path: z.ZodString;
28
- storage: z.ZodString;
29
- }, "strip", z.ZodTypeAny, {
30
- path: string;
31
- name: string;
32
- storage: string;
33
- }, {
34
- path: string;
35
- name: string;
36
- storage: string;
37
- }>;
38
- export type TFile = z.infer<typeof fileSchema>;
39
- export declare const fileListSchema: z.ZodArray<z.ZodObject<{
40
- name: z.ZodString;
41
- path: z.ZodString;
42
- storage: z.ZodString;
43
- }, "strip", z.ZodTypeAny, {
44
- path: string;
45
- name: string;
46
- storage: string;
47
- }, {
48
- path: string;
49
- name: string;
50
- storage: string;
51
- }>, "many">;
52
- export type TFileList = z.infer<typeof fileListSchema>;
53
- export declare enum ImageType {
54
- PNG = 0,
55
- JPEG = 1
56
- }
57
- export declare const fontStorageSchema: z.ZodTuple<[z.ZodObject<{
58
- type: z.ZodLiteral<"SD0">;
59
- state: z.ZodLiteral<"SD Card">;
60
- }, "strip", z.ZodTypeAny, {
61
- type: "SD0";
62
- state: "SD Card";
63
- }, {
64
- type: "SD0";
65
- state: "SD Card";
66
- }>, z.ZodObject<{
67
- type: z.ZodLiteral<"flash">;
68
- state: z.ZodString;
69
- }, "strip", z.ZodTypeAny, {
70
- type: "flash";
71
- state: string;
72
- }, {
73
- type: "flash";
74
- state: string;
75
- }>], null>;
76
- export type TFontStorage = z.infer<typeof fontStorageSchema>;
77
- export declare const imageStorageSchema: z.ZodTuple<[z.ZodObject<{
78
- type: z.ZodLiteral<"SD0">;
79
- state: z.ZodLiteral<"SD Card">;
80
- }, "strip", z.ZodTypeAny, {
81
- type: "SD0";
82
- state: "SD Card";
83
- }, {
84
- type: "SD0";
85
- state: "SD Card";
86
- }>, z.ZodObject<{
87
- type: z.ZodLiteral<"flash">;
88
- state: z.ZodString;
89
- }, "strip", z.ZodTypeAny, {
90
- type: "flash";
91
- state: string;
92
- }, {
93
- type: "flash";
94
- state: string;
95
- }>, z.ZodObject<{
96
- type: z.ZodLiteral<"samba">;
97
- state: z.ZodLiteral<"Microsoft Network Share">;
98
- }, "strip", z.ZodTypeAny, {
99
- type: "samba";
100
- state: "Microsoft Network Share";
101
- }, {
102
- type: "samba";
103
- state: "Microsoft Network Share";
104
- }>, z.ZodObject<{
105
- type: z.ZodLiteral<"url">;
106
- state: z.ZodLiteral<"URL">;
107
- }, "strip", z.ZodTypeAny, {
108
- type: "url";
109
- state: "URL";
110
- }, {
111
- type: "url";
112
- state: "URL";
113
- }>, z.ZodObject<{
114
- type: z.ZodLiteral<"ftp">;
115
- state: z.ZodLiteral<"FTP">;
116
- }, "strip", z.ZodTypeAny, {
117
- type: "ftp";
118
- state: "FTP";
119
- }, {
120
- type: "ftp";
121
- state: "FTP";
122
- }>], null>;
123
- export type TImageStorage = z.infer<typeof imageStorageSchema>;
124
- export declare const storageSchema: z.ZodUnion<[z.ZodTuple<[z.ZodObject<{
125
- type: z.ZodLiteral<"SD0">;
126
- state: z.ZodLiteral<"SD Card">;
127
- }, "strip", z.ZodTypeAny, {
128
- type: "SD0";
129
- state: "SD Card";
130
- }, {
131
- type: "SD0";
132
- state: "SD Card";
133
- }>, z.ZodObject<{
134
- type: z.ZodLiteral<"flash">;
135
- state: z.ZodString;
136
- }, "strip", z.ZodTypeAny, {
137
- type: "flash";
138
- state: string;
139
- }, {
140
- type: "flash";
141
- state: string;
142
- }>], null>, z.ZodTuple<[z.ZodObject<{
143
- type: z.ZodLiteral<"SD0">;
144
- state: z.ZodLiteral<"SD Card">;
145
- }, "strip", z.ZodTypeAny, {
146
- type: "SD0";
147
- state: "SD Card";
148
- }, {
149
- type: "SD0";
150
- state: "SD Card";
151
- }>, z.ZodObject<{
152
- type: z.ZodLiteral<"flash">;
153
- state: z.ZodString;
154
- }, "strip", z.ZodTypeAny, {
155
- type: "flash";
156
- state: string;
157
- }, {
158
- type: "flash";
159
- state: string;
160
- }>, z.ZodObject<{
161
- type: z.ZodLiteral<"samba">;
162
- state: z.ZodLiteral<"Microsoft Network Share">;
163
- }, "strip", z.ZodTypeAny, {
164
- type: "samba";
165
- state: "Microsoft Network Share";
166
- }, {
167
- type: "samba";
168
- state: "Microsoft Network Share";
169
- }>, z.ZodObject<{
170
- type: z.ZodLiteral<"url">;
171
- state: z.ZodLiteral<"URL">;
172
- }, "strip", z.ZodTypeAny, {
173
- type: "url";
174
- state: "URL";
175
- }, {
176
- type: "url";
177
- state: "URL";
178
- }>, z.ZodObject<{
179
- type: z.ZodLiteral<"ftp">;
180
- state: z.ZodLiteral<"FTP">;
181
- }, "strip", z.ZodTypeAny, {
182
- type: "ftp";
183
- state: "FTP";
184
- }, {
185
- type: "ftp";
186
- state: "FTP";
187
- }>], null>]>;
188
- export type TStorage = z.infer<typeof storageSchema>;
@@ -1,44 +0,0 @@
1
- import { z } from 'zod';
2
- export const serviceSchema = z.record(z.string(), z.any());
3
- export const fieldSchema = z.object({
4
- field_name: z.string(),
5
- text: z.string(),
6
- color: z.string().optional(),
7
- });
8
- export const fileSchema = z.object({
9
- name: z.string(),
10
- path: z.string(),
11
- storage: z.string(),
12
- });
13
- export const fileListSchema = z.array(fileSchema);
14
- export var ImageType;
15
- (function (ImageType) {
16
- ImageType[ImageType["PNG"] = 0] = "PNG";
17
- ImageType[ImageType["JPEG"] = 1] = "JPEG";
18
- })(ImageType || (ImageType = {}));
19
- export const fontStorageSchema = z.tuple([
20
- z.object({
21
- type: z.literal('SD0'),
22
- state: z.literal('SD Card'),
23
- }),
24
- z.object({
25
- type: z.literal('flash'),
26
- state: z.string(),
27
- }),
28
- ]);
29
- export const imageStorageSchema = z.tuple([
30
- ...fontStorageSchema.items,
31
- z.object({
32
- type: z.literal('samba'),
33
- state: z.literal('Microsoft Network Share'),
34
- }),
35
- z.object({
36
- type: z.literal('url'),
37
- state: z.literal('URL'),
38
- }),
39
- z.object({
40
- type: z.literal('ftp'),
41
- state: z.literal('FTP'),
42
- }),
43
- ]);
44
- export const storageSchema = z.union([fontStorageSchema, imageStorageSchema]);