camstreamerlib 4.0.0-beta.37 → 4.0.0-beta.39
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/README.md +38 -27
- package/cjs/CamOverlayAPI.js +42 -75
- package/cjs/CamScripterAPI.js +30 -24
- package/cjs/CamStreamerAPI.js +30 -33
- package/cjs/CamSwitcherAPI.js +57 -52
- package/cjs/PlaneTrackerAPI.js +55 -66
- package/cjs/VapixAPI.js +23 -22
- package/cjs/{CamOverlayDrawingAPI.js → node/CamOverlayDrawingAPI.js} +1 -1
- package/cjs/{CamOverlayPainter → node/CamOverlayPainter}/Painter.js +4 -14
- package/cjs/{CamScripterAPICameraEventsGenerator.js → node/CamScripterAPICameraEventsGenerator.js} +1 -1
- package/cjs/{VapixEvents.js → node/VapixEvents.js} +1 -1
- package/cjs/node/events/GenetecAgent.js +5 -27
- package/cjs/node/index.js +17 -0
- package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +2 -2
- package/cjs/types/CamOverlayAPI/scoreBoardSchema.js +6 -1
- package/cjs/types/CamOverlayPainter.js +12 -0
- package/cjs/types/CamScripterAPICameraEventsGenerator.js +2 -0
- package/cjs/types/CamSwitcherAPI.js +38 -1
- package/cjs/types/GenetecAgent.js +31 -0
- package/cjs/types/PlaneTrackerAPI.js +277 -0
- package/cjs/types/VapixAPI.js +20 -2
- package/cjs/types/VapixEvents.js +2 -0
- package/esm/CamOverlayAPI.js +43 -76
- package/esm/CamScripterAPI.js +30 -24
- package/esm/CamStreamerAPI.js +30 -30
- package/esm/CamSwitcherAPI.js +58 -53
- package/esm/PlaneTrackerAPI.js +56 -67
- package/esm/VapixAPI.js +24 -23
- package/esm/{CamOverlayDrawingAPI.js → node/CamOverlayDrawingAPI.js} +1 -1
- package/esm/{CamOverlayPainter → node/CamOverlayPainter}/Painter.js +1 -11
- package/esm/{CamScripterAPICameraEventsGenerator.js → node/CamScripterAPICameraEventsGenerator.js} +1 -1
- package/esm/{VapixEvents.js → node/VapixEvents.js} +1 -1
- package/esm/node/events/GenetecAgent.js +1 -23
- package/esm/node/index.js +10 -0
- package/esm/types/CamOverlayAPI/CamOverlayAPI.js +1 -1
- package/esm/types/CamOverlayAPI/scoreBoardSchema.js +6 -1
- package/esm/types/CamOverlayPainter.js +11 -1
- package/esm/types/CamSwitcherAPI.js +38 -1
- package/esm/types/GenetecAgent.js +28 -0
- package/esm/types/PlaneTrackerAPI.js +276 -1
- package/esm/types/VapixAPI.js +19 -1
- package/esm/types/VapixEvents.js +1 -0
- package/package.json +1 -1
- package/types/CamOverlayAPI.d.ts +24 -14
- package/types/CamScripterAPI.d.ts +34 -9
- package/types/CamStreamerAPI.d.ts +27 -5
- package/types/CamSwitcherAPI.d.ts +136 -23
- package/types/PlaneTrackerAPI.d.ts +201 -20
- package/types/VapixAPI.d.ts +46 -12
- package/types/bin/CreatePackage.d.ts +1 -0
- package/types/{CamOverlayDrawingAPI.d.ts → node/CamOverlayDrawingAPI.d.ts} +1 -1
- package/types/{CamOverlayPainter → node/CamOverlayPainter}/Frame.d.ts +2 -2
- package/types/{CamOverlayPainter → node/CamOverlayPainter}/Painter.d.ts +2 -13
- package/types/{CamOverlayPainter → node/CamOverlayPainter}/ResourceManager.d.ts +1 -1
- package/types/node/CamScripterAPICameraEventsGenerator.d.ts +31 -0
- package/types/node/VapixEvents.d.ts +16 -0
- package/types/node/events/GenetecAgent.d.ts +1 -144
- package/types/node/index.d.ts +10 -0
- package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +38 -38
- package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +13 -13
- package/types/types/CamOverlayDrawingAPI.d.ts +3 -13
- package/types/types/CamOverlayPainter.d.ts +12 -10
- package/types/types/CamScripterAPICameraEventsGenerator.d.ts +45 -0
- package/types/types/CamStreamerAPI.d.ts +2 -2
- package/types/types/CamSwitcherAPI.d.ts +111 -30
- package/types/types/GenetecAgent.d.ts +174 -0
- package/types/types/PlaneTrackerAPI.d.ts +859 -0
- package/types/types/VapixAPI.d.ts +54 -8
- package/types/types/VapixEvents.d.ts +15 -0
- package/types/types/common.d.ts +1 -0
- package/types/CamScripterAPICameraEventsGenerator.d.ts +0 -74
- package/types/VapixEvents.d.ts +0 -43
- /package/cjs/{CreatePackage.js → bin/CreatePackage.js} +0 -0
- /package/cjs/{CamOverlayPainter → node/CamOverlayPainter}/Frame.js +0 -0
- /package/cjs/{CamOverlayPainter → node/CamOverlayPainter}/ResourceManager.js +0 -0
- /package/esm/{CreatePackage.js → bin/CreatePackage.js} +0 -0
- /package/esm/{CamOverlayPainter → node/CamOverlayPainter}/Frame.js +0 -0
- /package/esm/{CamOverlayPainter → node/CamOverlayPainter}/ResourceManager.js +0 -0
- /package/{types/CreatePackage.d.ts → esm/types/CamScripterAPICameraEventsGenerator.js} +0 -0
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
import { CamOverlayDrawingAPI } from '../CamOverlayDrawingAPI';
|
|
2
|
-
import { COORD } from '../CamOverlayPainter/Painter';
|
|
1
|
+
import { CamOverlayDrawingAPI } from '../node/CamOverlayDrawingAPI';
|
|
3
2
|
import { TAlign, TCairoCreateResponse, TUploadImageResponse } from './CamOverlayDrawingAPI';
|
|
3
|
+
export declare const COORD: {
|
|
4
|
+
readonly top_left: readonly [-1, -1];
|
|
5
|
+
readonly center_left: readonly [-1, 0];
|
|
6
|
+
readonly bottom_left: readonly [-1, 1];
|
|
7
|
+
readonly top_center: readonly [0, -1];
|
|
8
|
+
readonly center: readonly [0, 0];
|
|
9
|
+
readonly bottom_center: readonly [0, 1];
|
|
10
|
+
readonly top_right: readonly [1, -1];
|
|
11
|
+
readonly center_right: readonly [1, 0];
|
|
12
|
+
readonly bottom_right: readonly [1, 1];
|
|
13
|
+
};
|
|
4
14
|
export type TRgb = [number, number, number];
|
|
5
15
|
export type TRgba = [number, number, number, number];
|
|
6
16
|
export type TTmf = 'TFM_OVERFLOW' | 'TFM_SCALE' | 'TFM_TRUNCATE';
|
|
@@ -53,14 +63,6 @@ export type TBorder = {
|
|
|
53
63
|
borderWidth: number;
|
|
54
64
|
borderColor: TRgba;
|
|
55
65
|
};
|
|
56
|
-
export interface Frame {
|
|
57
|
-
on(event: 'open', listener: () => void): this;
|
|
58
|
-
on(event: 'close', listener: () => void): this;
|
|
59
|
-
on(event: 'layoutChanged', listener: () => void): this;
|
|
60
|
-
emit(event: 'open'): boolean;
|
|
61
|
-
emit(event: 'close'): boolean;
|
|
62
|
-
emit(event: 'layoutChanged'): boolean;
|
|
63
|
-
}
|
|
64
66
|
export type TCoAlignment = keyof typeof COORD;
|
|
65
67
|
export type TPainterOptions = TFrameOptions & {
|
|
66
68
|
screenWidth: number;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export type TDeclaration = {
|
|
2
|
+
type?: '' | 'SOURCE' | 'DATA';
|
|
3
|
+
namespace: string;
|
|
4
|
+
key: string;
|
|
5
|
+
value: string | boolean | number;
|
|
6
|
+
value_type: 'STRING' | 'INT' | 'BOOL' | 'DOUBLE';
|
|
7
|
+
key_nice_name?: string;
|
|
8
|
+
value_nice_name?: string;
|
|
9
|
+
};
|
|
10
|
+
export type TEventDeclaration = {
|
|
11
|
+
declaration_id: string;
|
|
12
|
+
stateless: boolean;
|
|
13
|
+
declaration: TDeclaration[];
|
|
14
|
+
};
|
|
15
|
+
export type TEventUndeclaration = {
|
|
16
|
+
declaration_id: string;
|
|
17
|
+
};
|
|
18
|
+
export type TEventData = {
|
|
19
|
+
namespace: string;
|
|
20
|
+
key: string;
|
|
21
|
+
value: string | boolean | number;
|
|
22
|
+
value_type: 'STRING' | 'INT' | 'BOOL' | 'DOUBLE';
|
|
23
|
+
};
|
|
24
|
+
export type TCamScripterEvent = {
|
|
25
|
+
declaration_id: string;
|
|
26
|
+
event_data: TEventData[];
|
|
27
|
+
};
|
|
28
|
+
export type TCamScripterResponse = {
|
|
29
|
+
call_id: number;
|
|
30
|
+
message: string;
|
|
31
|
+
};
|
|
32
|
+
export type TCamScripterErrorResponse = {
|
|
33
|
+
error: string;
|
|
34
|
+
call_id?: number;
|
|
35
|
+
};
|
|
36
|
+
export type TCamScripterMessage = {
|
|
37
|
+
call_id: number;
|
|
38
|
+
command: string;
|
|
39
|
+
data: unknown;
|
|
40
|
+
};
|
|
41
|
+
export type TAsyncMessage = {
|
|
42
|
+
resolve: (value: TCamScripterResponse) => void;
|
|
43
|
+
reject: (reason?: any) => void;
|
|
44
|
+
sentTimestamp: number;
|
|
45
|
+
};
|
|
@@ -100,7 +100,7 @@ export declare const streamSchema: z.ZodObject<{
|
|
|
100
100
|
internalVapixParameters: string;
|
|
101
101
|
userVapixParameters: string;
|
|
102
102
|
outputParameters: string;
|
|
103
|
-
outputType: "video" | "
|
|
103
|
+
outputType: "video" | "none" | "images";
|
|
104
104
|
mediaServerUrl: string;
|
|
105
105
|
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
106
106
|
inputUrl: string;
|
|
@@ -122,7 +122,7 @@ export declare const streamSchema: z.ZodObject<{
|
|
|
122
122
|
internalVapixParameters: string;
|
|
123
123
|
userVapixParameters: string;
|
|
124
124
|
outputParameters: string;
|
|
125
|
-
outputType: "video" | "
|
|
125
|
+
outputType: "video" | "none" | "images";
|
|
126
126
|
mediaServerUrl: string;
|
|
127
127
|
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
128
128
|
inputUrl: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { TH264Profile, TAudioChannelCount, TKeyboardShortcut } from './common';
|
|
3
2
|
declare const channelTypeSchema: z.ZodUnion<[z.ZodLiteral<"audio">, z.ZodLiteral<"video">, z.ZodLiteral<"av">]>;
|
|
4
3
|
export type TChannelType = z.infer<typeof channelTypeSchema>;
|
|
5
4
|
declare const playlistPlayTypeSchema: z.ZodUnion<[z.ZodLiteral<"PLAY_ALL">, z.ZodLiteral<"PLAY_ALL_LOOP">, z.ZodLiteral<"PLAY_ALL_SHUFFLED">, z.ZodLiteral<"PLAY_ALL_LOOP_SHUFFLED">, z.ZodLiteral<"PLAY_ONE_RANDOM">]>;
|
|
@@ -773,40 +772,122 @@ export declare const clipListSchema: z.ZodObject<{
|
|
|
773
772
|
}>;
|
|
774
773
|
}>;
|
|
775
774
|
export type TClipList = z.infer<typeof clipListSchema>['clip_list'];
|
|
776
|
-
export
|
|
777
|
-
export type
|
|
778
|
-
|
|
775
|
+
export declare const bitrateModeSchema: z.ZodUnion<[z.ZodLiteral<"VBR">, z.ZodLiteral<"MBR">, z.ZodLiteral<"ABR">]>;
|
|
776
|
+
export type TBitrateMode = z.infer<typeof bitrateModeSchema>;
|
|
777
|
+
export declare const bitrateVapixParamsSchema: z.ZodObject<{
|
|
778
|
+
bitrateMode: z.ZodUnion<[z.ZodLiteral<"VBR">, z.ZodLiteral<"MBR">, z.ZodLiteral<"ABR">]>;
|
|
779
|
+
maximumBitRate: z.ZodNumber;
|
|
780
|
+
retentionTime: z.ZodNumber;
|
|
781
|
+
bitRateLimit: z.ZodNumber;
|
|
782
|
+
}, "strip", z.ZodTypeAny, {
|
|
783
|
+
bitrateMode: "VBR" | "MBR" | "ABR";
|
|
779
784
|
maximumBitRate: number;
|
|
780
785
|
retentionTime: number;
|
|
781
786
|
bitRateLimit: number;
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
787
|
+
}, {
|
|
788
|
+
bitrateMode: "VBR" | "MBR" | "ABR";
|
|
789
|
+
maximumBitRate: number;
|
|
790
|
+
retentionTime: number;
|
|
791
|
+
bitRateLimit: number;
|
|
792
|
+
}>;
|
|
793
|
+
export type TBitrateVapixParams = z.infer<typeof bitrateVapixParamsSchema>;
|
|
794
|
+
export declare const cameraOptionsSchema: z.ZodObject<{
|
|
795
|
+
bitrateMode: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"VBR">, z.ZodLiteral<"MBR">, z.ZodLiteral<"ABR">]>>;
|
|
796
|
+
maximumBitRate: z.ZodOptional<z.ZodNumber>;
|
|
797
|
+
retentionTime: z.ZodOptional<z.ZodNumber>;
|
|
798
|
+
bitRateLimit: z.ZodOptional<z.ZodNumber>;
|
|
799
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
800
|
+
h264Profile: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"high">, z.ZodLiteral<"main">, z.ZodLiteral<"baseline">]>>;
|
|
801
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
802
|
+
compression: z.ZodOptional<z.ZodNumber>;
|
|
803
|
+
govLength: z.ZodOptional<z.ZodNumber>;
|
|
804
|
+
bitrateVapixParams: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
805
|
+
audioSampleRate: z.ZodOptional<z.ZodNumber>;
|
|
806
|
+
audioChannelCount: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
807
|
+
keyboard: z.ZodOptional<z.ZodObject<{
|
|
808
|
+
fromSource: z.ZodNullable<z.ZodString>;
|
|
809
|
+
none: z.ZodNullable<z.ZodString>;
|
|
810
|
+
}, "strip", z.ZodTypeAny, {
|
|
811
|
+
fromSource: string | null;
|
|
812
|
+
none: string | null;
|
|
813
|
+
}, {
|
|
814
|
+
fromSource: string | null;
|
|
815
|
+
none: string | null;
|
|
816
|
+
}>>;
|
|
817
|
+
}, "strip", z.ZodTypeAny, {
|
|
818
|
+
resolution?: string | undefined;
|
|
819
|
+
compression?: number | undefined;
|
|
820
|
+
keyboard?: {
|
|
821
|
+
fromSource: string | null;
|
|
822
|
+
none: string | null;
|
|
823
|
+
} | undefined;
|
|
824
|
+
fps?: number | undefined;
|
|
825
|
+
bitrateMode?: "VBR" | "MBR" | "ABR" | undefined;
|
|
826
|
+
maximumBitRate?: number | undefined;
|
|
827
|
+
retentionTime?: number | undefined;
|
|
828
|
+
bitRateLimit?: number | undefined;
|
|
829
|
+
h264Profile?: "high" | "main" | "baseline" | undefined;
|
|
830
|
+
govLength?: number | undefined;
|
|
831
|
+
bitrateVapixParams?: string | null | undefined;
|
|
832
|
+
audioSampleRate?: number | undefined;
|
|
833
|
+
audioChannelCount?: 1 | 2 | undefined;
|
|
834
|
+
}, {
|
|
835
|
+
resolution?: string | undefined;
|
|
836
|
+
compression?: number | undefined;
|
|
837
|
+
keyboard?: {
|
|
838
|
+
fromSource: string | null;
|
|
839
|
+
none: string | null;
|
|
840
|
+
} | undefined;
|
|
841
|
+
fps?: number | undefined;
|
|
842
|
+
bitrateMode?: "VBR" | "MBR" | "ABR" | undefined;
|
|
843
|
+
maximumBitRate?: number | undefined;
|
|
844
|
+
retentionTime?: number | undefined;
|
|
845
|
+
bitRateLimit?: number | undefined;
|
|
846
|
+
h264Profile?: "high" | "main" | "baseline" | undefined;
|
|
847
|
+
govLength?: number | undefined;
|
|
848
|
+
bitrateVapixParams?: string | null | undefined;
|
|
849
|
+
audioSampleRate?: number | undefined;
|
|
850
|
+
audioChannelCount?: 1 | 2 | undefined;
|
|
851
|
+
}>;
|
|
852
|
+
export type TCameraOptions = z.infer<typeof cameraOptionsSchema>;
|
|
853
|
+
export declare const globalAudioSettingsTypeSchema: z.ZodUnion<[z.ZodLiteral<"fromSource">, z.ZodLiteral<"source">]>;
|
|
854
|
+
export declare const globalAudioSettingsSchema: z.ZodObject<{
|
|
855
|
+
type: z.ZodUnion<[z.ZodLiteral<"fromSource">, z.ZodLiteral<"source">]>;
|
|
856
|
+
source: z.ZodString;
|
|
857
|
+
storage: z.ZodOptional<z.ZodString>;
|
|
858
|
+
}, "strip", z.ZodTypeAny, {
|
|
859
|
+
type: "fromSource" | "source";
|
|
800
860
|
source: string;
|
|
801
|
-
storage?: string;
|
|
802
|
-
}
|
|
861
|
+
storage?: string | undefined;
|
|
862
|
+
}, {
|
|
863
|
+
type: "fromSource" | "source";
|
|
864
|
+
source: string;
|
|
865
|
+
storage?: string | undefined;
|
|
866
|
+
}>;
|
|
867
|
+
export type TGlobalAudioSettingsType = z.infer<typeof globalAudioSettingsTypeSchema>;
|
|
868
|
+
export type TGlobalAudioSettings = z.infer<typeof globalAudioSettingsSchema>;
|
|
803
869
|
export type TAudioMixerSource = 'microphone' | 'secondary';
|
|
804
|
-
export
|
|
805
|
-
type:
|
|
806
|
-
streamName
|
|
807
|
-
clipName
|
|
808
|
-
storage:
|
|
870
|
+
export declare const secondaryAudioSettingsSchema: z.ZodObject<{
|
|
871
|
+
type: z.ZodUnion<[z.ZodLiteral<"CLIP">, z.ZodLiteral<"STREAM">, z.ZodLiteral<"NONE">]>;
|
|
872
|
+
streamName: z.ZodOptional<z.ZodString>;
|
|
873
|
+
clipName: z.ZodOptional<z.ZodString>;
|
|
874
|
+
storage: z.ZodUnion<[z.ZodLiteral<"SD_DISK">, z.ZodLiteral<"FLASH">]>;
|
|
875
|
+
secondaryAudioLevel: z.ZodNumber;
|
|
876
|
+
masterAudioLevel: z.ZodNumber;
|
|
877
|
+
}, "strip", z.ZodTypeAny, {
|
|
878
|
+
type: "CLIP" | "STREAM" | "NONE";
|
|
879
|
+
storage: "SD_DISK" | "FLASH";
|
|
809
880
|
secondaryAudioLevel: number;
|
|
810
881
|
masterAudioLevel: number;
|
|
811
|
-
|
|
882
|
+
streamName?: string | undefined;
|
|
883
|
+
clipName?: string | undefined;
|
|
884
|
+
}, {
|
|
885
|
+
type: "CLIP" | "STREAM" | "NONE";
|
|
886
|
+
storage: "SD_DISK" | "FLASH";
|
|
887
|
+
secondaryAudioLevel: number;
|
|
888
|
+
masterAudioLevel: number;
|
|
889
|
+
streamName?: string | undefined;
|
|
890
|
+
clipName?: string | undefined;
|
|
891
|
+
}>;
|
|
892
|
+
export type TSecondaryAudioSettings = z.infer<typeof secondaryAudioSettingsSchema>;
|
|
812
893
|
export {};
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const successResponseSchema: z.ZodObject<{
|
|
3
|
+
Rsp: z.ZodObject<{
|
|
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
|
+
}>;
|
|
19
|
+
export declare const cameraGuidsResponseSchema: z.ZodObject<{
|
|
20
|
+
Rsp: z.ZodObject<{
|
|
21
|
+
Status: z.ZodLiteral<"Ok">;
|
|
22
|
+
Result: z.ZodArray<z.ZodObject<{
|
|
23
|
+
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
|
+
}>;
|
|
55
|
+
export type TCameraGuidsResponse = z.infer<typeof cameraGuidsResponseSchema>;
|
|
56
|
+
export declare const cameraDetailSchema: z.ZodObject<{
|
|
57
|
+
Guid: z.ZodOptional<z.ZodString>;
|
|
58
|
+
Name: z.ZodOptional<z.ZodString>;
|
|
59
|
+
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
|
+
}>;
|
|
69
|
+
export declare const cameraDetailsResponseSchema: z.ZodObject<{
|
|
70
|
+
Rsp: z.ZodObject<{
|
|
71
|
+
Status: z.ZodLiteral<"Ok">;
|
|
72
|
+
Result: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
73
|
+
Guid: z.ZodOptional<z.ZodString>;
|
|
74
|
+
Name: z.ZodOptional<z.ZodString>;
|
|
75
|
+
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<{
|
|
85
|
+
Guid: z.ZodOptional<z.ZodString>;
|
|
86
|
+
Name: z.ZodOptional<z.ZodString>;
|
|
87
|
+
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
|
+
}>;
|
|
147
|
+
export type TCameraDetailsResponse = z.infer<typeof cameraDetailsResponseSchema>;
|
|
148
|
+
export type TCameraDetail = z.infer<typeof cameraDetailSchema>;
|
|
149
|
+
export declare const cameraListSchema: z.ZodArray<z.ZodObject<{
|
|
150
|
+
index: z.ZodNumber;
|
|
151
|
+
value: z.ZodString;
|
|
152
|
+
label: z.ZodString;
|
|
153
|
+
}, "strip", z.ZodTypeAny, {
|
|
154
|
+
value: string;
|
|
155
|
+
index: number;
|
|
156
|
+
label: string;
|
|
157
|
+
}, {
|
|
158
|
+
value: string;
|
|
159
|
+
index: number;
|
|
160
|
+
label: string;
|
|
161
|
+
}>, "many">;
|
|
162
|
+
export type TCameraList = z.infer<typeof cameraListSchema>;
|
|
163
|
+
export type TParams = Array<'Guid' | 'Name' | 'EntityType'>;
|
|
164
|
+
export type TProtocol = 'http' | 'https' | 'https_insecure';
|
|
165
|
+
export type GenetecAgentOptions = {
|
|
166
|
+
protocol?: TProtocol;
|
|
167
|
+
ip?: string;
|
|
168
|
+
port?: number;
|
|
169
|
+
baseUri?: string;
|
|
170
|
+
user?: string;
|
|
171
|
+
pass?: string;
|
|
172
|
+
appId?: string;
|
|
173
|
+
timeout?: number;
|
|
174
|
+
};
|