camstreamerlib 4.0.36 → 5.0.0-20ab5c4

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 (138) hide show
  1. package/README.md +39 -2
  2. package/cjs/CamOverlayAPI.d.ts +204 -204
  3. package/cjs/CamStreamerAPI.d.ts +311 -311
  4. package/cjs/CamStreamerAPI.js +1 -1
  5. package/cjs/CamSwitcherAPI.d.ts +32 -31
  6. package/cjs/CamSwitcherAPI.js +2 -0
  7. package/cjs/PlaneTrackerAPI.d.ts +27 -27
  8. package/cjs/VapixAPI.d.ts +15 -15
  9. package/cjs/VapixAPI.js +2 -2
  10. package/cjs/bin/CreatePackage.js +17 -7
  11. package/cjs/errors/errors.d.ts +1 -1
  12. package/cjs/errors/errors.js +2 -2
  13. package/cjs/internal/transformers.d.ts +4 -4
  14. package/cjs/internal/utils.js +3 -3
  15. package/cjs/internal/versionCompare.d.ts +2 -2
  16. package/cjs/node/CamOverlayDrawingAPI.d.ts +0 -3
  17. package/cjs/node/CamOverlayPainter/Frame.d.ts +0 -1
  18. package/cjs/node/CamOverlayPainter/ResourceManager.d.ts +2 -2
  19. package/cjs/node/CamOverlayPainter/ResourceManager.js +17 -7
  20. package/cjs/node/CamScripterAPICameraEventsGenerator.d.ts +0 -1
  21. package/cjs/node/DefaultClient.d.ts +0 -2
  22. package/cjs/node/Digest.js +17 -7
  23. package/cjs/node/HttpRequestSender.d.ts +0 -2
  24. package/cjs/node/HttpRequestSender.test.js +17 -7
  25. package/cjs/node/HttpServer.d.ts +0 -2
  26. package/cjs/node/HttpServer.js +17 -7
  27. package/cjs/node/VapixEvents.js +1 -1
  28. package/cjs/node/WsClient.js +1 -1
  29. package/cjs/node/events/AxisCameraStationEvents.js +2 -1
  30. package/cjs/types/CamOverlayAPI/CamOverlayAPI.d.ts +320 -4097
  31. package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +2 -2
  32. package/cjs/types/CamOverlayAPI/accuweatherSchema.d.ts +12 -67
  33. package/cjs/types/CamOverlayAPI/customGraphicsSchema.d.ts +40 -572
  34. package/cjs/types/CamOverlayAPI/htmlOverlaySchema.d.ts +6 -59
  35. package/cjs/types/CamOverlayAPI/htmlOverlaySchema.js +1 -1
  36. package/cjs/types/CamOverlayAPI/imagesSchema.d.ts +6 -75
  37. package/cjs/types/CamOverlayAPI/infotickerSchema.d.ts +11 -74
  38. package/cjs/types/CamOverlayAPI/pipSchema.d.ts +12 -97
  39. package/cjs/types/CamOverlayAPI/pipSchema.js +2 -2
  40. package/cjs/types/CamOverlayAPI/ptzCompassSchema.d.ts +12 -71
  41. package/cjs/types/CamOverlayAPI/ptzCompassSchema.js +1 -1
  42. package/cjs/types/CamOverlayAPI/ptzSchema.d.ts +8 -99
  43. package/cjs/types/CamOverlayAPI/scoreBoardSchema.d.ts +20 -254
  44. package/cjs/types/CamOverlayAPI/screenSharingSchema.d.ts +5 -43
  45. package/cjs/types/CamOverlayAPI/serviceCommonTypes.d.ts +15 -94
  46. package/cjs/types/CamOverlayAPI/webCameraSharingSchema.d.ts +5 -43
  47. package/cjs/types/CamScripterAPI.d.ts +11 -81
  48. package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +1095 -24193
  49. package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +32 -509
  50. package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +8 -143
  51. package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +32 -493
  52. package/cjs/types/CamStreamerAPI/streamsSchema.d.ts +425 -7786
  53. package/cjs/types/CamStreamerAPI/windySchema.d.ts +36 -476
  54. package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +32 -487
  55. package/cjs/types/CamStreamerAPI/youtubeSchema.js +1 -1
  56. package/cjs/types/CamSwitcherAPI.d.ts +75 -700
  57. package/cjs/types/CamSwitcherAPI.js +1 -0
  58. package/cjs/types/GenetecAgent.d.ts +12 -132
  59. package/cjs/types/MilestoneAgent.d.ts +4 -46
  60. package/cjs/types/PlaneTrackerAPI.d.ts +266 -1188
  61. package/cjs/types/PlaneTrackerAPI.js +16 -6
  62. package/cjs/types/PlaneTrackerAPI.test.js +27 -0
  63. package/cjs/types/VapixAPI.d.ts +129 -1653
  64. package/cjs/types/VapixAPI.js +1 -1
  65. package/cjs/types/common.d.ts +11 -35
  66. package/cjs/types/common.js +1 -1
  67. package/cjs/types/ws/CamOverlayEvents.d.ts +9 -69
  68. package/cjs/types/ws/CamStreamerEvents.d.ts +19 -217
  69. package/cjs/types/ws/CamSwitcherEvents.d.ts +46 -452
  70. package/cjs/types/ws/PlaneTrackerEvents.d.ts +361 -3522
  71. package/cjs/types/ws/PlaneTrackerEvents.js +1 -1
  72. package/cjs/web/WsClient.js +1 -1
  73. package/esm/CamStreamerAPI.js +1 -1
  74. package/esm/CamSwitcherAPI.js +2 -0
  75. package/esm/VapixAPI.js +2 -2
  76. package/esm/errors/errors.js +2 -2
  77. package/esm/node/VapixEvents.js +1 -1
  78. package/esm/node/WsClient.js +1 -1
  79. package/esm/node/events/AxisCameraStationEvents.js +2 -1
  80. package/esm/types/CamOverlayAPI/CamOverlayAPI.js +2 -2
  81. package/esm/types/CamOverlayAPI/htmlOverlaySchema.js +1 -1
  82. package/esm/types/CamOverlayAPI/pipSchema.js +2 -2
  83. package/esm/types/CamOverlayAPI/ptzCompassSchema.js +1 -1
  84. package/esm/types/CamStreamerAPI/youtubeSchema.js +1 -1
  85. package/esm/types/CamSwitcherAPI.js +1 -0
  86. package/esm/types/PlaneTrackerAPI.js +16 -6
  87. package/esm/types/PlaneTrackerAPI.test.js +27 -0
  88. package/esm/types/VapixAPI.js +1 -1
  89. package/esm/types/common.js +1 -1
  90. package/esm/types/ws/PlaneTrackerEvents.js +1 -1
  91. package/esm/web/WsClient.js +1 -1
  92. package/package.json +106 -107
  93. package/types/CamOverlayAPI.d.ts +204 -204
  94. package/types/CamStreamerAPI.d.ts +311 -311
  95. package/types/CamSwitcherAPI.d.ts +32 -31
  96. package/types/PlaneTrackerAPI.d.ts +27 -27
  97. package/types/VapixAPI.d.ts +15 -15
  98. package/types/errors/errors.d.ts +1 -1
  99. package/types/internal/transformers.d.ts +4 -4
  100. package/types/internal/versionCompare.d.ts +2 -2
  101. package/types/node/CamOverlayDrawingAPI.d.ts +0 -3
  102. package/types/node/CamOverlayPainter/Frame.d.ts +0 -1
  103. package/types/node/CamOverlayPainter/ResourceManager.d.ts +2 -2
  104. package/types/node/CamScripterAPICameraEventsGenerator.d.ts +0 -1
  105. package/types/node/DefaultClient.d.ts +0 -2
  106. package/types/node/HttpRequestSender.d.ts +0 -2
  107. package/types/node/HttpServer.d.ts +0 -2
  108. package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +320 -4097
  109. package/types/types/CamOverlayAPI/accuweatherSchema.d.ts +12 -67
  110. package/types/types/CamOverlayAPI/customGraphicsSchema.d.ts +40 -572
  111. package/types/types/CamOverlayAPI/htmlOverlaySchema.d.ts +6 -59
  112. package/types/types/CamOverlayAPI/imagesSchema.d.ts +6 -75
  113. package/types/types/CamOverlayAPI/infotickerSchema.d.ts +11 -74
  114. package/types/types/CamOverlayAPI/pipSchema.d.ts +12 -97
  115. package/types/types/CamOverlayAPI/ptzCompassSchema.d.ts +12 -71
  116. package/types/types/CamOverlayAPI/ptzSchema.d.ts +8 -99
  117. package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +20 -254
  118. package/types/types/CamOverlayAPI/screenSharingSchema.d.ts +5 -43
  119. package/types/types/CamOverlayAPI/serviceCommonTypes.d.ts +15 -94
  120. package/types/types/CamOverlayAPI/webCameraSharingSchema.d.ts +5 -43
  121. package/types/types/CamScripterAPI.d.ts +11 -81
  122. package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +1095 -24193
  123. package/types/types/CamStreamerAPI/facebookSchema.d.ts +32 -509
  124. package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +8 -143
  125. package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +32 -493
  126. package/types/types/CamStreamerAPI/streamsSchema.d.ts +425 -7786
  127. package/types/types/CamStreamerAPI/windySchema.d.ts +36 -476
  128. package/types/types/CamStreamerAPI/youtubeSchema.d.ts +32 -487
  129. package/types/types/CamSwitcherAPI.d.ts +75 -700
  130. package/types/types/GenetecAgent.d.ts +12 -132
  131. package/types/types/MilestoneAgent.d.ts +4 -46
  132. package/types/types/PlaneTrackerAPI.d.ts +266 -1188
  133. package/types/types/VapixAPI.d.ts +129 -1653
  134. package/types/types/common.d.ts +11 -35
  135. package/types/types/ws/CamOverlayEvents.d.ts +9 -69
  136. package/types/types/ws/CamStreamerEvents.d.ts +19 -217
  137. package/types/types/ws/CamSwitcherEvents.d.ts +46 -452
  138. package/types/types/ws/PlaneTrackerEvents.d.ts +361 -3522
@@ -2,163 +2,43 @@ import { z } from 'zod';
2
2
  export declare const successResponseSchema: z.ZodObject<{
3
3
  Rsp: z.ZodObject<{
4
4
  Status: z.ZodLiteral<"Ok">;
5
- }, "strip", z.ZodTypeAny, {
6
- Status: "Ok";
7
- }, {
8
- Status: "Ok";
9
- }>;
10
- }, "strip", z.ZodTypeAny, {
11
- Rsp: {
12
- Status: "Ok";
13
- };
14
- }, {
15
- Rsp: {
16
- Status: "Ok";
17
- };
18
- }>;
5
+ }, z.core.$strip>;
6
+ }, z.core.$strip>;
19
7
  export declare const cameraGuidsResponseSchema: z.ZodObject<{
20
8
  Rsp: z.ZodObject<{
21
9
  Status: z.ZodLiteral<"Ok">;
22
10
  Result: z.ZodArray<z.ZodObject<{
23
11
  Guid: z.ZodString;
24
- }, "strip", z.ZodTypeAny, {
25
- Guid: string;
26
- }, {
27
- Guid: string;
28
- }>, "many">;
29
- }, "strip", z.ZodTypeAny, {
30
- Status: "Ok";
31
- Result: {
32
- Guid: string;
33
- }[];
34
- }, {
35
- Status: "Ok";
36
- Result: {
37
- Guid: string;
38
- }[];
39
- }>;
40
- }, "strip", z.ZodTypeAny, {
41
- Rsp: {
42
- Status: "Ok";
43
- Result: {
44
- Guid: string;
45
- }[];
46
- };
47
- }, {
48
- Rsp: {
49
- Status: "Ok";
50
- Result: {
51
- Guid: string;
52
- }[];
53
- };
54
- }>;
12
+ }, z.core.$strip>>;
13
+ }, z.core.$strip>;
14
+ }, z.core.$strip>;
55
15
  export type TCameraGuidsResponse = z.infer<typeof cameraGuidsResponseSchema>;
56
16
  export declare const cameraDetailSchema: z.ZodObject<{
57
17
  Guid: z.ZodOptional<z.ZodString>;
58
18
  Name: z.ZodOptional<z.ZodString>;
59
19
  EntityType: z.ZodOptional<z.ZodString>;
60
- }, "strip", z.ZodTypeAny, {
61
- Name?: string | undefined;
62
- Guid?: string | undefined;
63
- EntityType?: string | undefined;
64
- }, {
65
- Name?: string | undefined;
66
- Guid?: string | undefined;
67
- EntityType?: string | undefined;
68
- }>;
20
+ }, z.core.$strip>;
69
21
  export declare const cameraDetailsResponseSchema: z.ZodObject<{
70
22
  Rsp: z.ZodObject<{
71
23
  Status: z.ZodLiteral<"Ok">;
72
- Result: z.ZodUnion<[z.ZodArray<z.ZodObject<{
24
+ Result: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
73
25
  Guid: z.ZodOptional<z.ZodString>;
74
26
  Name: z.ZodOptional<z.ZodString>;
75
27
  EntityType: z.ZodOptional<z.ZodString>;
76
- }, "strip", z.ZodTypeAny, {
77
- Name?: string | undefined;
78
- Guid?: string | undefined;
79
- EntityType?: string | undefined;
80
- }, {
81
- Name?: string | undefined;
82
- Guid?: string | undefined;
83
- EntityType?: string | undefined;
84
- }>, "many">, z.ZodObject<{
28
+ }, z.core.$strip>>, z.ZodObject<{
85
29
  Guid: z.ZodOptional<z.ZodString>;
86
30
  Name: z.ZodOptional<z.ZodString>;
87
31
  EntityType: z.ZodOptional<z.ZodString>;
88
- }, "strip", z.ZodTypeAny, {
89
- Name?: string | undefined;
90
- Guid?: string | undefined;
91
- EntityType?: string | undefined;
92
- }, {
93
- Name?: string | undefined;
94
- Guid?: string | undefined;
95
- EntityType?: string | undefined;
96
- }>]>;
97
- }, "strip", z.ZodTypeAny, {
98
- Status: "Ok";
99
- Result: {
100
- Name?: string | undefined;
101
- Guid?: string | undefined;
102
- EntityType?: string | undefined;
103
- } | {
104
- Name?: string | undefined;
105
- Guid?: string | undefined;
106
- EntityType?: string | undefined;
107
- }[];
108
- }, {
109
- Status: "Ok";
110
- Result: {
111
- Name?: string | undefined;
112
- Guid?: string | undefined;
113
- EntityType?: string | undefined;
114
- } | {
115
- Name?: string | undefined;
116
- Guid?: string | undefined;
117
- EntityType?: string | undefined;
118
- }[];
119
- }>;
120
- }, "strip", z.ZodTypeAny, {
121
- Rsp: {
122
- Status: "Ok";
123
- Result: {
124
- Name?: string | undefined;
125
- Guid?: string | undefined;
126
- EntityType?: string | undefined;
127
- } | {
128
- Name?: string | undefined;
129
- Guid?: string | undefined;
130
- EntityType?: string | undefined;
131
- }[];
132
- };
133
- }, {
134
- Rsp: {
135
- Status: "Ok";
136
- Result: {
137
- Name?: string | undefined;
138
- Guid?: string | undefined;
139
- EntityType?: string | undefined;
140
- } | {
141
- Name?: string | undefined;
142
- Guid?: string | undefined;
143
- EntityType?: string | undefined;
144
- }[];
145
- };
146
- }>;
32
+ }, z.core.$strip>]>;
33
+ }, z.core.$strip>;
34
+ }, z.core.$strip>;
147
35
  export type TCameraDetailsResponse = z.infer<typeof cameraDetailsResponseSchema>;
148
36
  export type TCameraDetail = z.infer<typeof cameraDetailSchema>;
149
37
  export declare const cameraListSchema: z.ZodArray<z.ZodObject<{
150
38
  index: z.ZodNumber;
151
39
  value: z.ZodString;
152
40
  label: z.ZodString;
153
- }, "strip", z.ZodTypeAny, {
154
- value: string;
155
- label: string;
156
- index: number;
157
- }, {
158
- value: string;
159
- label: string;
160
- index: number;
161
- }>, "many">;
41
+ }, z.core.$strip>>;
162
42
  export type TCameraList = z.infer<typeof cameraListSchema>;
163
43
  export type TParams = Array<'Guid' | 'Name' | 'EntityType'>;
164
44
  export type TProtocol = 'http' | 'https' | 'https_insecure';
@@ -11,32 +11,14 @@ export declare const tokenResponseSchema: z.ZodObject<{
11
11
  access_token: z.ZodString;
12
12
  expires_in: z.ZodNumber;
13
13
  token_type: z.ZodString;
14
- }, "strip", z.ZodTypeAny, {
15
- access_token: string;
16
- expires_in: number;
17
- token_type: string;
18
- }, {
19
- access_token: string;
20
- expires_in: number;
21
- token_type: string;
22
- }>;
14
+ }, z.core.$strip>;
23
15
  export type TTokenResponse = z.infer<typeof tokenResponseSchema>;
24
16
  export declare const milestoneCameraSchema: z.ZodObject<{
25
17
  id: z.ZodString;
26
18
  name: z.ZodOptional<z.ZodString>;
27
19
  displayName: z.ZodOptional<z.ZodString>;
28
20
  enabled: z.ZodOptional<z.ZodBoolean>;
29
- }, "strip", z.ZodTypeAny, {
30
- id: string;
31
- name?: string | undefined;
32
- enabled?: boolean | undefined;
33
- displayName?: string | undefined;
34
- }, {
35
- id: string;
36
- name?: string | undefined;
37
- enabled?: boolean | undefined;
38
- displayName?: string | undefined;
39
- }>;
21
+ }, z.core.$strip>;
40
22
  export type TMilestoneCamera = z.infer<typeof milestoneCameraSchema>;
41
23
  export declare const camerasResponseSchema: z.ZodObject<{
42
24
  array: z.ZodArray<z.ZodObject<{
@@ -44,32 +26,8 @@ export declare const camerasResponseSchema: z.ZodObject<{
44
26
  name: z.ZodOptional<z.ZodString>;
45
27
  displayName: z.ZodOptional<z.ZodString>;
46
28
  enabled: z.ZodOptional<z.ZodBoolean>;
47
- }, "strip", z.ZodTypeAny, {
48
- id: string;
49
- name?: string | undefined;
50
- enabled?: boolean | undefined;
51
- displayName?: string | undefined;
52
- }, {
53
- id: string;
54
- name?: string | undefined;
55
- enabled?: boolean | undefined;
56
- displayName?: string | undefined;
57
- }>, "many">;
58
- }, "strip", z.ZodTypeAny, {
59
- array: {
60
- id: string;
61
- name?: string | undefined;
62
- enabled?: boolean | undefined;
63
- displayName?: string | undefined;
64
- }[];
65
- }, {
66
- array: {
67
- id: string;
68
- name?: string | undefined;
69
- enabled?: boolean | undefined;
70
- displayName?: string | undefined;
71
- }[];
72
- }>;
29
+ }, z.core.$strip>>;
30
+ }, z.core.$strip>;
73
31
  export type TCamerasResponse = z.infer<typeof camerasResponseSchema>;
74
32
  export type TBookmark = {
75
33
  header: string;