camstreamerlib 4.0.0-beta.7 → 4.0.0-beta.9

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 (97) hide show
  1. package/cjs/CamOverlayAPI.d.ts +614 -17
  2. package/cjs/CamOverlayAPI.js +124 -51
  3. package/cjs/CamScripterAPI.d.ts +4 -4
  4. package/cjs/CamScripterAPI.js +2 -8
  5. package/cjs/VapixAPI.d.ts +1 -1
  6. package/cjs/VapixAPI.js +13 -5
  7. package/cjs/errors/errors.d.ts +3 -0
  8. package/cjs/errors/errors.js +8 -1
  9. package/cjs/index.d.ts +3 -0
  10. package/cjs/index.js +5 -1
  11. package/cjs/internal/ProxyClient.d.ts +3 -3
  12. package/cjs/internal/ProxyClient.js +4 -2
  13. package/cjs/internal/common.d.ts +2 -2
  14. package/cjs/models/CamOverlayAPI/accuweatherSchema.d.ts +84 -0
  15. package/cjs/models/CamOverlayAPI/accuweatherSchema.js +48 -0
  16. package/cjs/models/CamOverlayAPI/constants.d.ts +11 -0
  17. package/cjs/models/CamOverlayAPI/constants.js +14 -0
  18. package/cjs/models/CamOverlayAPI/customGraphicsSchema.d.ts +699 -0
  19. package/cjs/models/CamOverlayAPI/customGraphicsSchema.js +73 -0
  20. package/cjs/models/CamOverlayAPI/fileSchema.d.ts +28 -0
  21. package/cjs/models/CamOverlayAPI/fileSchema.js +17 -0
  22. package/cjs/models/CamOverlayAPI/imagesSchema.d.ts +95 -0
  23. package/cjs/models/CamOverlayAPI/imagesSchema.js +10 -0
  24. package/cjs/models/CamOverlayAPI/index.d.ts +13 -0
  25. package/cjs/models/CamOverlayAPI/index.js +29 -0
  26. package/cjs/models/CamOverlayAPI/infotickerSchema.d.ts +96 -0
  27. package/cjs/models/CamOverlayAPI/infotickerSchema.js +27 -0
  28. package/cjs/models/CamOverlayAPI/pipSchema.d.ts +125 -0
  29. package/cjs/models/CamOverlayAPI/pipSchema.js +40 -0
  30. package/cjs/models/CamOverlayAPI/ptzCompassSchema.d.ts +93 -0
  31. package/cjs/models/CamOverlayAPI/ptzCompassSchema.js +26 -0
  32. package/cjs/models/CamOverlayAPI/ptzSchema.d.ts +118 -0
  33. package/cjs/models/CamOverlayAPI/ptzSchema.js +13 -0
  34. package/cjs/models/CamOverlayAPI/screenSharingSchema.d.ts +58 -0
  35. package/cjs/models/CamOverlayAPI/screenSharingSchema.js +9 -0
  36. package/cjs/models/CamOverlayAPI/webCameraSharingSchema.d.ts +58 -0
  37. package/cjs/models/CamOverlayAPI/webCameraSharingSchema.js +9 -0
  38. package/cjs/models/CamOverlayAPI/widgetCommonSchema.d.ts +126 -0
  39. package/cjs/models/CamOverlayAPI/widgetCommonSchema.js +76 -0
  40. package/cjs/models/CamOverlayAPI/widgetsSchema.d.ts +2823 -0
  41. package/cjs/models/CamOverlayAPI/widgetsSchema.js +27 -0
  42. package/cjs/types/CamOverlayAPI.d.ts +315 -175
  43. package/cjs/types/CamOverlayAPI.js +19 -40
  44. package/cjs/types/CamStreamerAPI.d.ts +4 -4
  45. package/cjs/types/CamSwitcherAPI.d.ts +44 -44
  46. package/cjs/types/VapixAPI.d.ts +84 -84
  47. package/cjs/web/DefaultClient.d.ts +7 -4
  48. package/cjs/web/DefaultClient.js +4 -4
  49. package/esm/CamOverlayAPI.d.ts +614 -17
  50. package/esm/CamOverlayAPI.js +124 -51
  51. package/esm/CamScripterAPI.d.ts +4 -4
  52. package/esm/CamScripterAPI.js +3 -9
  53. package/esm/VapixAPI.d.ts +1 -1
  54. package/esm/VapixAPI.js +14 -6
  55. package/esm/errors/errors.d.ts +3 -0
  56. package/esm/errors/errors.js +6 -0
  57. package/esm/index.d.ts +3 -0
  58. package/esm/index.js +3 -0
  59. package/esm/internal/ProxyClient.d.ts +3 -3
  60. package/esm/internal/ProxyClient.js +4 -2
  61. package/esm/internal/common.d.ts +2 -2
  62. package/esm/models/CamOverlayAPI/accuweatherSchema.d.ts +84 -0
  63. package/esm/models/CamOverlayAPI/accuweatherSchema.js +45 -0
  64. package/esm/models/CamOverlayAPI/constants.d.ts +11 -0
  65. package/esm/models/CamOverlayAPI/constants.js +11 -0
  66. package/esm/models/CamOverlayAPI/customGraphicsSchema.d.ts +699 -0
  67. package/esm/models/CamOverlayAPI/customGraphicsSchema.js +70 -0
  68. package/esm/models/CamOverlayAPI/fileSchema.d.ts +28 -0
  69. package/esm/models/CamOverlayAPI/fileSchema.js +14 -0
  70. package/esm/models/CamOverlayAPI/imagesSchema.d.ts +95 -0
  71. package/esm/models/CamOverlayAPI/imagesSchema.js +7 -0
  72. package/esm/models/CamOverlayAPI/index.d.ts +13 -0
  73. package/esm/models/CamOverlayAPI/index.js +13 -0
  74. package/esm/models/CamOverlayAPI/infotickerSchema.d.ts +96 -0
  75. package/esm/models/CamOverlayAPI/infotickerSchema.js +24 -0
  76. package/esm/models/CamOverlayAPI/pipSchema.d.ts +125 -0
  77. package/esm/models/CamOverlayAPI/pipSchema.js +37 -0
  78. package/esm/models/CamOverlayAPI/ptzCompassSchema.d.ts +93 -0
  79. package/esm/models/CamOverlayAPI/ptzCompassSchema.js +23 -0
  80. package/esm/models/CamOverlayAPI/ptzSchema.d.ts +118 -0
  81. package/esm/models/CamOverlayAPI/ptzSchema.js +10 -0
  82. package/esm/models/CamOverlayAPI/screenSharingSchema.d.ts +58 -0
  83. package/esm/models/CamOverlayAPI/screenSharingSchema.js +6 -0
  84. package/esm/models/CamOverlayAPI/webCameraSharingSchema.d.ts +58 -0
  85. package/esm/models/CamOverlayAPI/webCameraSharingSchema.js +6 -0
  86. package/esm/models/CamOverlayAPI/widgetCommonSchema.d.ts +126 -0
  87. package/esm/models/CamOverlayAPI/widgetCommonSchema.js +73 -0
  88. package/esm/models/CamOverlayAPI/widgetsSchema.d.ts +2823 -0
  89. package/esm/models/CamOverlayAPI/widgetsSchema.js +24 -0
  90. package/esm/types/CamOverlayAPI.d.ts +315 -175
  91. package/esm/types/CamOverlayAPI.js +9 -39
  92. package/esm/types/CamStreamerAPI.d.ts +4 -4
  93. package/esm/types/CamSwitcherAPI.d.ts +44 -44
  94. package/esm/types/VapixAPI.d.ts +84 -84
  95. package/esm/web/DefaultClient.d.ts +7 -4
  96. package/esm/web/DefaultClient.js +4 -4
  97. package/package.json +1 -1
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ptzCompassSchema = void 0;
4
+ const constants_1 = require("./constants");
5
+ const widgetCommonSchema_1 = require("./widgetCommonSchema");
6
+ const zod_1 = require("zod");
7
+ exports.ptzCompassSchema = widgetCommonSchema_1.widgetCommonSchema.extend({
8
+ name: zod_1.z.literal(constants_1.allowedWidgetNames.ptzCompass),
9
+ pos_x: zod_1.z.number(),
10
+ pos_y: zod_1.z.number(),
11
+ coordSystem: widgetCommonSchema_1.coordinateSystemSchema,
12
+ scale: zod_1.z.number().nonnegative(),
13
+ type: zod_1.z.union([zod_1.z.literal('compass'), zod_1.z.literal('map'), zod_1.z.literal('image')]),
14
+ image: zod_1.z.union([zod_1.z.string().url(), zod_1.z.literal('')]),
15
+ northPan: zod_1.z.number(),
16
+ cameraPosX: zod_1.z.number(),
17
+ cameraPosY: zod_1.z.number(),
18
+ colorScheme: zod_1.z.enum(['black', 'white', 'orange']),
19
+ generalLng: zod_1.z.number().optional(),
20
+ generalLat: zod_1.z.number().optional(),
21
+ generalZoom: zod_1.z.number().nonnegative().optional(),
22
+ generalMapType: zod_1.z.string().optional(),
23
+ generalIframeWidth: zod_1.z.number().optional(),
24
+ generalIframeHeight: zod_1.z.number().optional(),
25
+ generalAddress: zod_1.z.string().optional(),
26
+ });
@@ -0,0 +1,118 @@
1
+ import { z } from 'zod';
2
+ export declare const ptzSchema: z.ZodObject<{
3
+ id: z.ZodNumber;
4
+ enabled: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
5
+ automationType: z.ZodUnion<[z.ZodLiteral<"time">, z.ZodLiteral<"manual">, z.ZodLiteral<"schedule">, z.ZodType<`input${number}`, z.ZodTypeDef, `input${number}`>]>;
6
+ invertInput: z.ZodOptional<z.ZodBoolean>;
7
+ cameraList: z.ZodArray<z.ZodNumber, "many">;
8
+ camera: z.ZodOptional<z.ZodNumber>;
9
+ schedule: z.ZodOptional<z.ZodString>;
10
+ customName: z.ZodString;
11
+ zIndex: z.ZodOptional<z.ZodNumber>;
12
+ width: z.ZodNumber;
13
+ height: z.ZodNumber;
14
+ } & {
15
+ name: z.ZodLiteral<"ptz">;
16
+ ptz_positions: z.ZodRecord<z.ZodString, z.ZodObject<{
17
+ overlayList: z.ZodArray<z.ZodObject<Omit<{
18
+ active: z.ZodBoolean;
19
+ coordSystem: z.ZodUnion<[z.ZodLiteral<"top_left">, z.ZodLiteral<"top">, z.ZodLiteral<"top_right">, z.ZodLiteral<"left">, z.ZodLiteral<"center">, z.ZodLiteral<"right">, z.ZodLiteral<"bottom_left">, z.ZodLiteral<"bottom">, z.ZodLiteral<"bottom_right">]>;
20
+ pos_x: z.ZodNumber;
21
+ pos_y: z.ZodNumber;
22
+ imgPath: z.ZodString;
23
+ imgName: z.ZodString;
24
+ duration: z.ZodNumber;
25
+ scale: z.ZodNumber;
26
+ fps: z.ZodOptional<z.ZodNumber>;
27
+ }, "active" | "fps">, "strip", z.ZodTypeAny, {
28
+ coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
29
+ pos_x: number;
30
+ pos_y: number;
31
+ imgPath: string;
32
+ imgName: string;
33
+ duration: number;
34
+ scale: number;
35
+ }, {
36
+ coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
37
+ pos_x: number;
38
+ pos_y: number;
39
+ imgPath: string;
40
+ imgName: string;
41
+ duration: number;
42
+ scale: number;
43
+ }>, "many">;
44
+ loop: z.ZodBoolean;
45
+ }, "strip", z.ZodTypeAny, {
46
+ loop: boolean;
47
+ overlayList: {
48
+ coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
49
+ pos_x: number;
50
+ pos_y: number;
51
+ imgPath: string;
52
+ imgName: string;
53
+ duration: number;
54
+ scale: number;
55
+ }[];
56
+ }, {
57
+ loop: boolean;
58
+ overlayList: {
59
+ coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
60
+ pos_x: number;
61
+ pos_y: number;
62
+ imgPath: string;
63
+ imgName: string;
64
+ duration: number;
65
+ scale: number;
66
+ }[];
67
+ }>>;
68
+ }, "strip", z.ZodTypeAny, {
69
+ id: number;
70
+ enabled: 0 | 1;
71
+ automationType: "time" | "manual" | "schedule" | `input${number}`;
72
+ cameraList: number[];
73
+ customName: string;
74
+ width: number;
75
+ height: number;
76
+ name: "ptz";
77
+ ptz_positions: Record<string, {
78
+ loop: boolean;
79
+ overlayList: {
80
+ coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
81
+ pos_x: number;
82
+ pos_y: number;
83
+ imgPath: string;
84
+ imgName: string;
85
+ duration: number;
86
+ scale: number;
87
+ }[];
88
+ }>;
89
+ schedule?: string | undefined;
90
+ invertInput?: boolean | undefined;
91
+ camera?: number | undefined;
92
+ zIndex?: number | undefined;
93
+ }, {
94
+ id: number;
95
+ enabled: 0 | 1;
96
+ automationType: "time" | "manual" | "schedule" | `input${number}`;
97
+ cameraList: number[];
98
+ customName: string;
99
+ width: number;
100
+ height: number;
101
+ name: "ptz";
102
+ ptz_positions: Record<string, {
103
+ loop: boolean;
104
+ overlayList: {
105
+ coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
106
+ pos_x: number;
107
+ pos_y: number;
108
+ imgPath: string;
109
+ imgName: string;
110
+ duration: number;
111
+ scale: number;
112
+ }[];
113
+ }>;
114
+ schedule?: string | undefined;
115
+ invertInput?: boolean | undefined;
116
+ camera?: number | undefined;
117
+ zIndex?: number | undefined;
118
+ }>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ptzSchema = void 0;
4
+ const constants_1 = require("./constants");
5
+ const widgetCommonSchema_1 = require("./widgetCommonSchema");
6
+ const zod_1 = require("zod");
7
+ exports.ptzSchema = widgetCommonSchema_1.widgetCommonSchema.extend({
8
+ name: zod_1.z.literal(constants_1.allowedWidgetNames.ptz),
9
+ ptz_positions: zod_1.z.record(zod_1.z.string(), zod_1.z.object({
10
+ overlayList: zod_1.z.array(widgetCommonSchema_1.overlaySchema.omit({ active: true, fps: true })),
11
+ loop: zod_1.z.boolean(),
12
+ })),
13
+ });
@@ -0,0 +1,58 @@
1
+ import { z } from 'zod';
2
+ export declare const screenSharingSchema: z.ZodObject<{
3
+ id: z.ZodNumber;
4
+ enabled: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
5
+ automationType: z.ZodUnion<[z.ZodLiteral<"time">, z.ZodLiteral<"manual">, z.ZodLiteral<"schedule">, z.ZodType<`input${number}`, z.ZodTypeDef, `input${number}`>]>;
6
+ invertInput: z.ZodOptional<z.ZodBoolean>;
7
+ cameraList: z.ZodArray<z.ZodNumber, "many">;
8
+ camera: z.ZodOptional<z.ZodNumber>;
9
+ schedule: z.ZodOptional<z.ZodString>;
10
+ customName: z.ZodString;
11
+ zIndex: z.ZodOptional<z.ZodNumber>;
12
+ width: z.ZodNumber;
13
+ height: z.ZodNumber;
14
+ } & {
15
+ pos_x: z.ZodNumber;
16
+ pos_y: z.ZodNumber;
17
+ coordSystem: z.ZodUnion<[z.ZodLiteral<"top_left">, z.ZodLiteral<"top">, z.ZodLiteral<"top_right">, z.ZodLiteral<"left">, z.ZodLiteral<"center">, z.ZodLiteral<"right">, z.ZodLiteral<"bottom_left">, z.ZodLiteral<"bottom">, z.ZodLiteral<"bottom_right">]>;
18
+ screenSize: z.ZodNumber;
19
+ fps: z.ZodNumber;
20
+ } & {
21
+ name: z.ZodLiteral<"screenSharing">;
22
+ }, "strip", z.ZodTypeAny, {
23
+ id: number;
24
+ enabled: 0 | 1;
25
+ automationType: "time" | "manual" | "schedule" | `input${number}`;
26
+ cameraList: number[];
27
+ customName: string;
28
+ width: number;
29
+ height: number;
30
+ coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
31
+ pos_x: number;
32
+ pos_y: number;
33
+ fps: number;
34
+ screenSize: number;
35
+ name: "screenSharing";
36
+ schedule?: string | undefined;
37
+ invertInput?: boolean | undefined;
38
+ camera?: number | undefined;
39
+ zIndex?: number | undefined;
40
+ }, {
41
+ id: number;
42
+ enabled: 0 | 1;
43
+ automationType: "time" | "manual" | "schedule" | `input${number}`;
44
+ cameraList: number[];
45
+ customName: string;
46
+ width: number;
47
+ height: number;
48
+ coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
49
+ pos_x: number;
50
+ pos_y: number;
51
+ fps: number;
52
+ screenSize: number;
53
+ name: "screenSharing";
54
+ schedule?: string | undefined;
55
+ invertInput?: boolean | undefined;
56
+ camera?: number | undefined;
57
+ zIndex?: number | undefined;
58
+ }>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.screenSharingSchema = void 0;
4
+ const constants_1 = require("./constants");
5
+ const widgetCommonSchema_1 = require("./widgetCommonSchema");
6
+ const zod_1 = require("zod");
7
+ exports.screenSharingSchema = widgetCommonSchema_1.sharingSchema.extend({
8
+ name: zod_1.z.literal(constants_1.allowedWidgetNames.screenSharing),
9
+ });
@@ -0,0 +1,58 @@
1
+ import { z } from 'zod';
2
+ export declare const webCameraSharingSchema: z.ZodObject<{
3
+ id: z.ZodNumber;
4
+ enabled: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
5
+ automationType: z.ZodUnion<[z.ZodLiteral<"time">, z.ZodLiteral<"manual">, z.ZodLiteral<"schedule">, z.ZodType<`input${number}`, z.ZodTypeDef, `input${number}`>]>;
6
+ invertInput: z.ZodOptional<z.ZodBoolean>;
7
+ cameraList: z.ZodArray<z.ZodNumber, "many">;
8
+ camera: z.ZodOptional<z.ZodNumber>;
9
+ schedule: z.ZodOptional<z.ZodString>;
10
+ customName: z.ZodString;
11
+ zIndex: z.ZodOptional<z.ZodNumber>;
12
+ width: z.ZodNumber;
13
+ height: z.ZodNumber;
14
+ } & {
15
+ pos_x: z.ZodNumber;
16
+ pos_y: z.ZodNumber;
17
+ coordSystem: z.ZodUnion<[z.ZodLiteral<"top_left">, z.ZodLiteral<"top">, z.ZodLiteral<"top_right">, z.ZodLiteral<"left">, z.ZodLiteral<"center">, z.ZodLiteral<"right">, z.ZodLiteral<"bottom_left">, z.ZodLiteral<"bottom">, z.ZodLiteral<"bottom_right">]>;
18
+ screenSize: z.ZodNumber;
19
+ fps: z.ZodNumber;
20
+ } & {
21
+ name: z.ZodLiteral<"web_camera">;
22
+ }, "strip", z.ZodTypeAny, {
23
+ id: number;
24
+ enabled: 0 | 1;
25
+ automationType: "time" | "manual" | "schedule" | `input${number}`;
26
+ cameraList: number[];
27
+ customName: string;
28
+ width: number;
29
+ height: number;
30
+ coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
31
+ pos_x: number;
32
+ pos_y: number;
33
+ fps: number;
34
+ screenSize: number;
35
+ name: "web_camera";
36
+ schedule?: string | undefined;
37
+ invertInput?: boolean | undefined;
38
+ camera?: number | undefined;
39
+ zIndex?: number | undefined;
40
+ }, {
41
+ id: number;
42
+ enabled: 0 | 1;
43
+ automationType: "time" | "manual" | "schedule" | `input${number}`;
44
+ cameraList: number[];
45
+ customName: string;
46
+ width: number;
47
+ height: number;
48
+ coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
49
+ pos_x: number;
50
+ pos_y: number;
51
+ fps: number;
52
+ screenSize: number;
53
+ name: "web_camera";
54
+ schedule?: string | undefined;
55
+ invertInput?: boolean | undefined;
56
+ camera?: number | undefined;
57
+ zIndex?: number | undefined;
58
+ }>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.webCameraSharingSchema = void 0;
4
+ const constants_1 = require("./constants");
5
+ const widgetCommonSchema_1 = require("./widgetCommonSchema");
6
+ const zod_1 = require("zod");
7
+ exports.webCameraSharingSchema = widgetCommonSchema_1.sharingSchema.extend({
8
+ name: zod_1.z.literal(constants_1.allowedWidgetNames.web_camera),
9
+ });
@@ -0,0 +1,126 @@
1
+ import { z } from 'zod';
2
+ export declare const coordinateSystemSchema: z.ZodUnion<[z.ZodLiteral<"top_left">, z.ZodLiteral<"top">, z.ZodLiteral<"top_right">, z.ZodLiteral<"left">, z.ZodLiteral<"center">, z.ZodLiteral<"right">, z.ZodLiteral<"bottom_left">, z.ZodLiteral<"bottom">, z.ZodLiteral<"bottom_right">]>;
3
+ export declare const languageSchema: z.ZodUnion<[z.ZodLiteral<"en-us">, z.ZodLiteral<"fr-fr">, z.ZodLiteral<"ja-jp">, z.ZodLiteral<"pt-pt">, z.ZodLiteral<"es-es">, z.ZodLiteral<"de-de">, z.ZodLiteral<"ko-kr">, z.ZodLiteral<"zh-hk">, z.ZodLiteral<"zh-cn">, z.ZodLiteral<"nl-nl">, z.ZodLiteral<"cs-cz">, z.ZodLiteral<"ru-ru">, z.ZodLiteral<"sv-se">]>;
4
+ export declare const widgetCommonSchema: z.ZodObject<{
5
+ id: z.ZodNumber;
6
+ enabled: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
7
+ automationType: z.ZodUnion<[z.ZodLiteral<"time">, z.ZodLiteral<"manual">, z.ZodLiteral<"schedule">, z.ZodType<`input${number}`, z.ZodTypeDef, `input${number}`>]>;
8
+ invertInput: z.ZodOptional<z.ZodBoolean>;
9
+ cameraList: z.ZodArray<z.ZodNumber, "many">;
10
+ camera: z.ZodOptional<z.ZodNumber>;
11
+ schedule: z.ZodOptional<z.ZodString>;
12
+ customName: z.ZodString;
13
+ zIndex: z.ZodOptional<z.ZodNumber>;
14
+ width: z.ZodNumber;
15
+ height: z.ZodNumber;
16
+ }, "strip", z.ZodTypeAny, {
17
+ id: number;
18
+ enabled: 0 | 1;
19
+ automationType: "time" | "manual" | "schedule" | `input${number}`;
20
+ cameraList: number[];
21
+ customName: string;
22
+ width: number;
23
+ height: number;
24
+ schedule?: string | undefined;
25
+ invertInput?: boolean | undefined;
26
+ camera?: number | undefined;
27
+ zIndex?: number | undefined;
28
+ }, {
29
+ id: number;
30
+ enabled: 0 | 1;
31
+ automationType: "time" | "manual" | "schedule" | `input${number}`;
32
+ cameraList: number[];
33
+ customName: string;
34
+ width: number;
35
+ height: number;
36
+ schedule?: string | undefined;
37
+ invertInput?: boolean | undefined;
38
+ camera?: number | undefined;
39
+ zIndex?: number | undefined;
40
+ }>;
41
+ export declare const fontSchema: z.ZodUnion<[z.ZodLiteral<"classic">, z.ZodLiteral<"digital">, z.ZodType<string, z.ZodTypeDef, string>]>;
42
+ export declare const weatherUnitSchema: z.ZodUnion<[z.ZodLiteral<"Metric">, z.ZodLiteral<"Imperial">]>;
43
+ export declare const overlaySchema: z.ZodObject<{
44
+ active: z.ZodBoolean;
45
+ coordSystem: z.ZodUnion<[z.ZodLiteral<"top_left">, z.ZodLiteral<"top">, z.ZodLiteral<"top_right">, z.ZodLiteral<"left">, z.ZodLiteral<"center">, z.ZodLiteral<"right">, z.ZodLiteral<"bottom_left">, z.ZodLiteral<"bottom">, z.ZodLiteral<"bottom_right">]>;
46
+ pos_x: z.ZodNumber;
47
+ pos_y: z.ZodNumber;
48
+ imgPath: z.ZodString;
49
+ imgName: z.ZodString;
50
+ duration: z.ZodNumber;
51
+ scale: z.ZodNumber;
52
+ fps: z.ZodOptional<z.ZodNumber>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ active: boolean;
55
+ coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
56
+ pos_x: number;
57
+ pos_y: number;
58
+ imgPath: string;
59
+ imgName: string;
60
+ duration: number;
61
+ scale: number;
62
+ fps?: number | undefined;
63
+ }, {
64
+ active: boolean;
65
+ coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
66
+ pos_x: number;
67
+ pos_y: number;
68
+ imgPath: string;
69
+ imgName: string;
70
+ duration: number;
71
+ scale: number;
72
+ fps?: number | undefined;
73
+ }>;
74
+ export declare const sharingSchema: z.ZodObject<{
75
+ id: z.ZodNumber;
76
+ enabled: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
77
+ automationType: z.ZodUnion<[z.ZodLiteral<"time">, z.ZodLiteral<"manual">, z.ZodLiteral<"schedule">, z.ZodType<`input${number}`, z.ZodTypeDef, `input${number}`>]>;
78
+ invertInput: z.ZodOptional<z.ZodBoolean>;
79
+ cameraList: z.ZodArray<z.ZodNumber, "many">;
80
+ camera: z.ZodOptional<z.ZodNumber>;
81
+ schedule: z.ZodOptional<z.ZodString>;
82
+ customName: z.ZodString;
83
+ zIndex: z.ZodOptional<z.ZodNumber>;
84
+ width: z.ZodNumber;
85
+ height: z.ZodNumber;
86
+ } & {
87
+ pos_x: z.ZodNumber;
88
+ pos_y: z.ZodNumber;
89
+ coordSystem: z.ZodUnion<[z.ZodLiteral<"top_left">, z.ZodLiteral<"top">, z.ZodLiteral<"top_right">, z.ZodLiteral<"left">, z.ZodLiteral<"center">, z.ZodLiteral<"right">, z.ZodLiteral<"bottom_left">, z.ZodLiteral<"bottom">, z.ZodLiteral<"bottom_right">]>;
90
+ screenSize: z.ZodNumber;
91
+ fps: z.ZodNumber;
92
+ }, "strip", z.ZodTypeAny, {
93
+ id: number;
94
+ enabled: 0 | 1;
95
+ automationType: "time" | "manual" | "schedule" | `input${number}`;
96
+ cameraList: number[];
97
+ customName: string;
98
+ width: number;
99
+ height: number;
100
+ coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
101
+ pos_x: number;
102
+ pos_y: number;
103
+ fps: number;
104
+ screenSize: number;
105
+ schedule?: string | undefined;
106
+ invertInput?: boolean | undefined;
107
+ camera?: number | undefined;
108
+ zIndex?: number | undefined;
109
+ }, {
110
+ id: number;
111
+ enabled: 0 | 1;
112
+ automationType: "time" | "manual" | "schedule" | `input${number}`;
113
+ cameraList: number[];
114
+ customName: string;
115
+ width: number;
116
+ height: number;
117
+ coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
118
+ pos_x: number;
119
+ pos_y: number;
120
+ fps: number;
121
+ screenSize: number;
122
+ schedule?: string | undefined;
123
+ invertInput?: boolean | undefined;
124
+ camera?: number | undefined;
125
+ zIndex?: number | undefined;
126
+ }>;
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sharingSchema = exports.overlaySchema = exports.weatherUnitSchema = exports.fontSchema = exports.widgetCommonSchema = exports.languageSchema = exports.coordinateSystemSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.coordinateSystemSchema = zod_1.z.union([
6
+ zod_1.z.literal('top_left'),
7
+ zod_1.z.literal('top'),
8
+ zod_1.z.literal('top_right'),
9
+ zod_1.z.literal('left'),
10
+ zod_1.z.literal('center'),
11
+ zod_1.z.literal('right'),
12
+ zod_1.z.literal('bottom_left'),
13
+ zod_1.z.literal('bottom'),
14
+ zod_1.z.literal('bottom_right'),
15
+ ]);
16
+ exports.languageSchema = zod_1.z.union([
17
+ zod_1.z.literal('en-us'),
18
+ zod_1.z.literal('fr-fr'),
19
+ zod_1.z.literal('ja-jp'),
20
+ zod_1.z.literal('pt-pt'),
21
+ zod_1.z.literal('es-es'),
22
+ zod_1.z.literal('de-de'),
23
+ zod_1.z.literal('ko-kr'),
24
+ zod_1.z.literal('zh-hk'),
25
+ zod_1.z.literal('zh-cn'),
26
+ zod_1.z.literal('nl-nl'),
27
+ zod_1.z.literal('cs-cz'),
28
+ zod_1.z.literal('ru-ru'),
29
+ zod_1.z.literal('sv-se'),
30
+ ]);
31
+ exports.widgetCommonSchema = zod_1.z.object({
32
+ id: zod_1.z.number().nonnegative(),
33
+ enabled: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
34
+ automationType: zod_1.z.union([
35
+ zod_1.z.literal('time'),
36
+ zod_1.z.literal('manual'),
37
+ zod_1.z.literal('schedule'),
38
+ zod_1.z.custom((val) => {
39
+ return typeof val === 'string' ? /^input\d+$/.test(val) : false;
40
+ }),
41
+ ]),
42
+ invertInput: zod_1.z.boolean().optional(),
43
+ cameraList: zod_1.z.array(zod_1.z.number()),
44
+ camera: zod_1.z.number().nonnegative().optional(),
45
+ schedule: zod_1.z.string().optional(),
46
+ customName: zod_1.z.string(),
47
+ zIndex: zod_1.z.number().optional(),
48
+ width: zod_1.z.number().nonnegative(),
49
+ height: zod_1.z.number().nonnegative(),
50
+ });
51
+ exports.fontSchema = zod_1.z.union([
52
+ zod_1.z.literal('classic'),
53
+ zod_1.z.literal('digital'),
54
+ zod_1.z.custom((val) => {
55
+ return typeof val === 'string';
56
+ }),
57
+ ]);
58
+ exports.weatherUnitSchema = zod_1.z.union([zod_1.z.literal('Metric'), zod_1.z.literal('Imperial')]);
59
+ exports.overlaySchema = zod_1.z.object({
60
+ active: zod_1.z.boolean(),
61
+ coordSystem: exports.coordinateSystemSchema,
62
+ pos_x: zod_1.z.number(),
63
+ pos_y: zod_1.z.number(),
64
+ imgPath: zod_1.z.string(),
65
+ imgName: zod_1.z.string(),
66
+ duration: zod_1.z.number(),
67
+ scale: zod_1.z.number(),
68
+ fps: zod_1.z.number().optional(),
69
+ });
70
+ exports.sharingSchema = exports.widgetCommonSchema.extend({
71
+ pos_x: zod_1.z.number().nonnegative(),
72
+ pos_y: zod_1.z.number().nonnegative(),
73
+ coordSystem: exports.coordinateSystemSchema,
74
+ screenSize: zod_1.z.number().positive(),
75
+ fps: zod_1.z.number(),
76
+ });