camstreamerlib 4.0.0-beta.32 → 4.0.0-beta.34

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 (155) hide show
  1. package/cjs/CamOverlayAPI.js +2 -2
  2. package/cjs/CamStreamerAPI.js +54 -11
  3. package/cjs/CamSwitcherAPI.js +7 -7
  4. package/cjs/CamSwitcherEvents.js +4 -60
  5. package/cjs/PlaneTrackerAPI.js +52 -52
  6. package/cjs/VapixAPI.js +10 -7
  7. package/cjs/index.js +2 -11
  8. package/cjs/internal/ProxyClient.js +6 -6
  9. package/cjs/internal/WsEvents.js +72 -0
  10. package/cjs/node/DefaultClient.js +4 -4
  11. package/cjs/node/HttpRequestSender.js +1 -1
  12. package/cjs/node/WsClient.js +1 -1
  13. package/cjs/{events → node/events}/AxisCameraStationEvents.js +4 -4
  14. package/cjs/{events → node/events}/GenetecAgent.js +43 -32
  15. package/cjs/node/index.js +5 -8
  16. package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +14 -1
  17. package/cjs/types/CamOverlayAPI/scoreBoardSchema.js +127 -0
  18. package/cjs/types/CamStreamerAPI.js +30 -3
  19. package/esm/CamOverlayAPI.js +2 -2
  20. package/esm/CamStreamerAPI.js +53 -11
  21. package/esm/CamSwitcherAPI.js +7 -7
  22. package/esm/CamSwitcherEvents.js +5 -61
  23. package/esm/PlaneTrackerAPI.js +52 -52
  24. package/esm/VapixAPI.js +10 -7
  25. package/esm/index.js +1 -6
  26. package/esm/internal/ProxyClient.js +6 -6
  27. package/esm/internal/WsEvents.js +68 -0
  28. package/esm/node/DefaultClient.js +4 -4
  29. package/esm/node/HttpRequestSender.js +1 -1
  30. package/esm/node/WsClient.js +1 -1
  31. package/esm/{events → node/events}/AxisCameraStationEvents.js +3 -3
  32. package/esm/{events → node/events}/GenetecAgent.js +41 -30
  33. package/esm/node/index.js +5 -4
  34. package/esm/types/CamOverlayAPI/CamOverlayAPI.js +9 -0
  35. package/esm/types/CamOverlayAPI/scoreBoardSchema.js +124 -0
  36. package/esm/types/CamStreamerAPI.js +29 -2
  37. package/package.json +22 -2
  38. package/{cjs → types}/CamOverlayAPI.d.ts +3 -5
  39. package/{esm → types}/CamScripterAPI.d.ts +4 -4
  40. package/types/CamStreamerAPI.d.ts +48 -0
  41. package/{esm → types}/CamSwitcherAPI.d.ts +8 -8
  42. package/types/CamSwitcherEvents.d.ts +8 -0
  43. package/types/PlaneTrackerAPI.d.ts +43 -0
  44. package/{cjs → types}/VapixAPI.d.ts +11 -7
  45. package/{cjs → types}/index.d.ts +1 -6
  46. package/{esm → types}/internal/ProxyClient.d.ts +4 -4
  47. package/types/internal/WsEvents.d.ts +41 -0
  48. package/{esm → types}/internal/types.d.ts +12 -9
  49. package/{cjs → types}/node/DefaultClient.d.ts +6 -4
  50. package/{esm → types/node}/events/AxisCameraStationEvents.d.ts +4 -4
  51. package/{esm → types/node}/events/GenetecAgent.d.ts +14 -32
  52. package/types/node/index.d.ts +5 -0
  53. package/{cjs → types}/types/CamOverlayAPI/CamOverlayAPI.d.ts +1071 -7
  54. package/{esm → types}/types/CamOverlayAPI/infotickerSchema.d.ts +2 -2
  55. package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +357 -0
  56. package/types/types/CamStreamerAPI.d.ts +274 -0
  57. package/types/web/DefaultClient.d.ts +6 -0
  58. package/cjs/CamScripterAPI.d.ts +0 -37
  59. package/cjs/CamStreamerAPI.d.ts +0 -19
  60. package/cjs/CamSwitcherAPI.d.ts +0 -54
  61. package/cjs/CamSwitcherEvents.d.ts +0 -18
  62. package/cjs/PlaneTrackerAPI.d.ts +0 -43
  63. package/cjs/events/AxisCameraStationEvents.d.ts +0 -12
  64. package/cjs/events/GenetecAgent.d.ts +0 -177
  65. package/cjs/internal/ProxyClient.d.ts +0 -10
  66. package/cjs/internal/types.d.ts +0 -42
  67. package/cjs/node/index.d.ts +0 -4
  68. package/cjs/types/CamOverlayAPI/infotickerSchema.d.ts +0 -96
  69. package/cjs/types/CamStreamerAPI.d.ts +0 -150
  70. package/cjs/web/DefaultClient.d.ts +0 -6
  71. package/esm/CamOverlayAPI.d.ts +0 -41
  72. package/esm/CamOverlayDrawingAPI.d.ts +0 -41
  73. package/esm/CamOverlayPainter/Frame.d.ts +0 -67
  74. package/esm/CamOverlayPainter/Painter.d.ts +0 -43
  75. package/esm/CamOverlayPainter/ResourceManager.d.ts +0 -15
  76. package/esm/CamScripterAPICameraEventsGenerator.d.ts +0 -74
  77. package/esm/CamStreamerAPI.d.ts +0 -19
  78. package/esm/CamSwitcherEvents.d.ts +0 -18
  79. package/esm/CreatePackage.d.ts +0 -1
  80. package/esm/PlaneTrackerAPI.d.ts +0 -43
  81. package/esm/VapixAPI.d.ts +0 -80
  82. package/esm/VapixEvents.d.ts +0 -43
  83. package/esm/errors/errors.d.ts +0 -37
  84. package/esm/index.d.ts +0 -23
  85. package/esm/internal/Digest.d.ts +0 -4
  86. package/esm/internal/constants.d.ts +0 -1
  87. package/esm/internal/transformers.d.ts +0 -5
  88. package/esm/internal/utils.d.ts +0 -14
  89. package/esm/internal/versionCompare.d.ts +0 -6
  90. package/esm/node/DefaultClient.d.ts +0 -14
  91. package/esm/node/HttpRequestSender.d.ts +0 -29
  92. package/esm/node/HttpServer.d.ts +0 -21
  93. package/esm/node/WsClient.d.ts +0 -40
  94. package/esm/node/index.d.ts +0 -4
  95. package/esm/types/CamOverlayAPI/CamOverlayAPI.d.ts +0 -3260
  96. package/esm/types/CamOverlayAPI/accuweatherSchema.d.ts +0 -84
  97. package/esm/types/CamOverlayAPI/customGraphicsSchema.d.ts +0 -700
  98. package/esm/types/CamOverlayAPI/imagesSchema.d.ts +0 -95
  99. package/esm/types/CamOverlayAPI/index.d.ts +0 -11
  100. package/esm/types/CamOverlayAPI/pipSchema.d.ts +0 -125
  101. package/esm/types/CamOverlayAPI/ptzCompassSchema.d.ts +0 -93
  102. package/esm/types/CamOverlayAPI/ptzSchema.d.ts +0 -118
  103. package/esm/types/CamOverlayAPI/screenSharingSchema.d.ts +0 -58
  104. package/esm/types/CamOverlayAPI/webCameraSharingSchema.d.ts +0 -58
  105. package/esm/types/CamOverlayAPI/widgetCommonTypes.d.ts +0 -141
  106. package/esm/types/CamOverlayDrawingAPI.d.ts +0 -58
  107. package/esm/types/CamOverlayPainter.d.ts +0 -74
  108. package/esm/types/CamScripterAPI.d.ts +0 -132
  109. package/esm/types/CamStreamerAPI.d.ts +0 -150
  110. package/esm/types/CamSwitcherAPI.d.ts +0 -812
  111. package/esm/types/CamSwitcherEvents.d.ts +0 -568
  112. package/esm/types/PlaneTrackerAPI.d.ts +0 -8
  113. package/esm/types/VapixAPI.d.ts +0 -1819
  114. package/esm/types/common.d.ts +0 -46
  115. package/esm/web/DefaultClient.d.ts +0 -6
  116. package/esm/web/WsClient.d.ts +0 -13
  117. package/esm/web/index.d.ts +0 -2
  118. /package/cjs/{internal → node}/Digest.js +0 -0
  119. /package/esm/{internal → node}/Digest.js +0 -0
  120. /package/{cjs → types}/CamOverlayDrawingAPI.d.ts +0 -0
  121. /package/{cjs → types}/CamOverlayPainter/Frame.d.ts +0 -0
  122. /package/{cjs → types}/CamOverlayPainter/Painter.d.ts +0 -0
  123. /package/{cjs → types}/CamOverlayPainter/ResourceManager.d.ts +0 -0
  124. /package/{cjs → types}/CamScripterAPICameraEventsGenerator.d.ts +0 -0
  125. /package/{cjs → types}/CreatePackage.d.ts +0 -0
  126. /package/{cjs → types}/VapixEvents.d.ts +0 -0
  127. /package/{cjs → types}/errors/errors.d.ts +0 -0
  128. /package/{cjs → types}/internal/constants.d.ts +0 -0
  129. /package/{cjs → types}/internal/transformers.d.ts +0 -0
  130. /package/{cjs → types}/internal/utils.d.ts +0 -0
  131. /package/{cjs → types}/internal/versionCompare.d.ts +0 -0
  132. /package/{cjs/internal → types/node}/Digest.d.ts +0 -0
  133. /package/{cjs → types}/node/HttpRequestSender.d.ts +0 -0
  134. /package/{cjs → types}/node/HttpServer.d.ts +0 -0
  135. /package/{cjs → types}/node/WsClient.d.ts +0 -0
  136. /package/{cjs → types}/types/CamOverlayAPI/accuweatherSchema.d.ts +0 -0
  137. /package/{cjs → types}/types/CamOverlayAPI/customGraphicsSchema.d.ts +0 -0
  138. /package/{cjs → types}/types/CamOverlayAPI/imagesSchema.d.ts +0 -0
  139. /package/{cjs → types}/types/CamOverlayAPI/index.d.ts +0 -0
  140. /package/{cjs → types}/types/CamOverlayAPI/pipSchema.d.ts +0 -0
  141. /package/{cjs → types}/types/CamOverlayAPI/ptzCompassSchema.d.ts +0 -0
  142. /package/{cjs → types}/types/CamOverlayAPI/ptzSchema.d.ts +0 -0
  143. /package/{cjs → types}/types/CamOverlayAPI/screenSharingSchema.d.ts +0 -0
  144. /package/{cjs → types}/types/CamOverlayAPI/webCameraSharingSchema.d.ts +0 -0
  145. /package/{cjs → types}/types/CamOverlayAPI/widgetCommonTypes.d.ts +0 -0
  146. /package/{cjs → types}/types/CamOverlayDrawingAPI.d.ts +0 -0
  147. /package/{cjs → types}/types/CamOverlayPainter.d.ts +0 -0
  148. /package/{cjs → types}/types/CamScripterAPI.d.ts +0 -0
  149. /package/{cjs → types}/types/CamSwitcherAPI.d.ts +0 -0
  150. /package/{cjs → types}/types/CamSwitcherEvents.d.ts +0 -0
  151. /package/{cjs → types}/types/PlaneTrackerAPI.d.ts +0 -0
  152. /package/{cjs → types}/types/VapixAPI.d.ts +0 -0
  153. /package/{cjs → types}/types/common.d.ts +0 -0
  154. /package/{cjs → types}/web/WsClient.d.ts +0 -0
  155. /package/{cjs → types}/web/index.d.ts +0 -0
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  declare const cameraGuidsResponseSchema: z.ZodObject<{
3
3
  Rsp: z.ZodObject<{
4
- Status: z.ZodString;
4
+ Status: z.ZodLiteral<"Ok">;
5
5
  Result: z.ZodArray<z.ZodObject<{
6
6
  Guid: z.ZodString;
7
7
  }, "strip", z.ZodTypeAny, {
@@ -10,51 +10,33 @@ declare const cameraGuidsResponseSchema: z.ZodObject<{
10
10
  Guid: string;
11
11
  }>, "many">;
12
12
  }, "strip", z.ZodTypeAny, {
13
- Status: string;
13
+ Status: "Ok";
14
14
  Result: {
15
15
  Guid: string;
16
16
  }[];
17
17
  }, {
18
- Status: string;
18
+ Status: "Ok";
19
19
  Result: {
20
20
  Guid: string;
21
21
  }[];
22
22
  }>;
23
23
  }, "strip", z.ZodTypeAny, {
24
24
  Rsp: {
25
- Status: string;
25
+ Status: "Ok";
26
26
  Result: {
27
27
  Guid: string;
28
28
  }[];
29
29
  };
30
30
  }, {
31
31
  Rsp: {
32
- Status: string;
32
+ Status: "Ok";
33
33
  Result: {
34
34
  Guid: string;
35
35
  }[];
36
36
  };
37
37
  }>;
38
38
  export type TCameraGuidsResponse = z.infer<typeof cameraGuidsResponseSchema>;
39
- declare const connectionResponseSchema: z.ZodObject<{
40
- Rsp: z.ZodObject<{
41
- Status: z.ZodString;
42
- }, "strip", z.ZodTypeAny, {
43
- Status: string;
44
- }, {
45
- Status: string;
46
- }>;
47
- }, "strip", z.ZodTypeAny, {
48
- Rsp: {
49
- Status: string;
50
- };
51
- }, {
52
- Rsp: {
53
- Status: string;
54
- };
55
- }>;
56
- export type TConnectionResponse = z.infer<typeof connectionResponseSchema>;
57
- export declare const cameraDetailSchema: z.ZodObject<{
39
+ declare const cameraDetailSchema: z.ZodObject<{
58
40
  Guid: z.ZodOptional<z.ZodString>;
59
41
  Name: z.ZodOptional<z.ZodString>;
60
42
  EntityType: z.ZodOptional<z.ZodString>;
@@ -67,9 +49,9 @@ export declare const cameraDetailSchema: z.ZodObject<{
67
49
  Guid?: string | undefined;
68
50
  EntityType?: string | undefined;
69
51
  }>;
70
- export declare const cameraDetailsResponseSchema: z.ZodObject<{
52
+ declare const cameraDetailsResponseSchema: z.ZodObject<{
71
53
  Rsp: z.ZodObject<{
72
- Status: z.ZodString;
54
+ Status: z.ZodLiteral<"Ok">;
73
55
  Result: z.ZodUnion<[z.ZodArray<z.ZodObject<{
74
56
  Guid: z.ZodOptional<z.ZodString>;
75
57
  Name: z.ZodOptional<z.ZodString>;
@@ -96,7 +78,7 @@ export declare const cameraDetailsResponseSchema: z.ZodObject<{
96
78
  EntityType?: string | undefined;
97
79
  }>]>;
98
80
  }, "strip", z.ZodTypeAny, {
99
- Status: string;
81
+ Status: "Ok";
100
82
  Result: {
101
83
  Name?: string | undefined;
102
84
  Guid?: string | undefined;
@@ -107,7 +89,7 @@ export declare const cameraDetailsResponseSchema: z.ZodObject<{
107
89
  EntityType?: string | undefined;
108
90
  }[];
109
91
  }, {
110
- Status: string;
92
+ Status: "Ok";
111
93
  Result: {
112
94
  Name?: string | undefined;
113
95
  Guid?: string | undefined;
@@ -120,7 +102,7 @@ export declare const cameraDetailsResponseSchema: z.ZodObject<{
120
102
  }>;
121
103
  }, "strip", z.ZodTypeAny, {
122
104
  Rsp: {
123
- Status: string;
105
+ Status: "Ok";
124
106
  Result: {
125
107
  Name?: string | undefined;
126
108
  Guid?: string | undefined;
@@ -133,7 +115,7 @@ export declare const cameraDetailsResponseSchema: z.ZodObject<{
133
115
  };
134
116
  }, {
135
117
  Rsp: {
136
- Status: string;
118
+ Status: "Ok";
137
119
  Result: {
138
120
  Name?: string | undefined;
139
121
  Guid?: string | undefined;
@@ -164,12 +146,12 @@ export declare class GenetecAgent {
164
146
  private baseUrl;
165
147
  private credentials;
166
148
  constructor(options?: GenetecAgentOptions);
167
- checkConnection(): Promise<TConnectionResponse>;
149
+ checkConnection(): Promise<void>;
168
150
  getAllCameraGuids(): Promise<TCameraGuidsResponse>;
169
151
  getCameraDetails(guids: {
170
152
  Guid: string;
171
153
  }[], parameters: TParams): Promise<TCameraDetail[]>;
172
- sendBookmark(guids: string[], bookmarkText: string): Promise<Response>;
154
+ sendBookmark(guids: string[], bookmarkText: string): Promise<void>;
173
155
  private getRequestOptions;
174
156
  private getTimeStamp;
175
157
  private fetchWithTimeout;
@@ -0,0 +1,5 @@
1
+ export * from './DefaultClient';
2
+ export * from './WsClient';
3
+ export * from './HttpServer';
4
+ export * from './events/AxisCameraStationEvents';
5
+ export * from './events/GenetecAgent';