camstreamerlib 4.0.0-beta.91 → 4.0.0-beta.92

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 (59) hide show
  1. package/cjs/CamStreamerAPI.d.ts +841 -27
  2. package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +5828 -654
  3. package/cjs/types/CamStreamerAPI/CamStreamerAPI.js +25 -7
  4. package/cjs/types/CamStreamerAPI/churchSchema.d.ts +202 -0
  5. package/cjs/types/CamStreamerAPI/churchSchema.js +11 -0
  6. package/cjs/types/CamStreamerAPI/daCastSchema.d.ts +202 -0
  7. package/cjs/types/CamStreamerAPI/daCastSchema.js +11 -0
  8. package/cjs/types/CamStreamerAPI/dailymotionSchema.d.ts +202 -0
  9. package/cjs/types/CamStreamerAPI/dailymotionSchema.js +11 -0
  10. package/cjs/types/CamStreamerAPI/hlsPullSchema.d.ts +202 -0
  11. package/cjs/types/CamStreamerAPI/hlsPullSchema.js +11 -0
  12. package/cjs/types/CamStreamerAPI/hlsPushSchema.d.ts +202 -0
  13. package/cjs/types/CamStreamerAPI/hlsPushSchema.js +11 -0
  14. package/cjs/types/CamStreamerAPI/{hlsSchema.d.ts → ibmSchema.d.ts} +4 -4
  15. package/cjs/types/CamStreamerAPI/{hlsSchema.js → ibmSchema.js} +3 -3
  16. package/cjs/types/CamStreamerAPI/index.d.ts +0 -1
  17. package/cjs/types/CamStreamerAPI/index.js +0 -1
  18. package/cjs/types/CamStreamerAPI/microsoftAzureSchema.d.ts +202 -0
  19. package/cjs/types/CamStreamerAPI/microsoftAzureSchema.js +11 -0
  20. package/cjs/types/CamStreamerAPI/microsoftStreamSchema.d.ts +202 -0
  21. package/cjs/types/CamStreamerAPI/microsoftStreamSchema.js +11 -0
  22. package/{types/types/CamStreamerAPI/hlsSchema.d.ts → cjs/types/CamStreamerAPI/srtSchema.d.ts} +4 -4
  23. package/cjs/types/CamStreamerAPI/srtSchema.js +11 -0
  24. package/cjs/types/CamStreamerAPI/twitchSchema.d.ts +202 -0
  25. package/cjs/types/CamStreamerAPI/twitchSchema.js +11 -0
  26. package/cjs/types/CamStreamerAPI/vimeoSchema.d.ts +202 -0
  27. package/cjs/types/CamStreamerAPI/vimeoSchema.js +11 -0
  28. package/cjs/types/CamStreamerAPI/wowzaSchema.d.ts +202 -0
  29. package/cjs/types/CamStreamerAPI/wowzaSchema.js +11 -0
  30. package/esm/types/CamStreamerAPI/CamStreamerAPI.js +24 -5
  31. package/esm/types/CamStreamerAPI/churchSchema.js +5 -0
  32. package/esm/types/CamStreamerAPI/daCastSchema.js +5 -0
  33. package/esm/types/CamStreamerAPI/dailymotionSchema.js +5 -0
  34. package/esm/types/CamStreamerAPI/hlsPullSchema.js +5 -0
  35. package/esm/types/CamStreamerAPI/hlsPushSchema.js +5 -0
  36. package/esm/types/CamStreamerAPI/{hlsSchema.js → ibmSchema.js} +2 -2
  37. package/esm/types/CamStreamerAPI/index.js +0 -1
  38. package/esm/types/CamStreamerAPI/microsoftAzureSchema.js +5 -0
  39. package/esm/types/CamStreamerAPI/microsoftStreamSchema.js +5 -0
  40. package/esm/types/CamStreamerAPI/srtSchema.js +5 -0
  41. package/esm/types/CamStreamerAPI/twitchSchema.js +5 -0
  42. package/esm/types/CamStreamerAPI/vimeoSchema.js +5 -0
  43. package/esm/types/CamStreamerAPI/wowzaSchema.js +5 -0
  44. package/package.json +1 -1
  45. package/types/CamStreamerAPI.d.ts +841 -27
  46. package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +5828 -654
  47. package/types/types/CamStreamerAPI/churchSchema.d.ts +202 -0
  48. package/types/types/CamStreamerAPI/daCastSchema.d.ts +202 -0
  49. package/types/types/CamStreamerAPI/dailymotionSchema.d.ts +202 -0
  50. package/types/types/CamStreamerAPI/hlsPullSchema.d.ts +202 -0
  51. package/types/types/CamStreamerAPI/hlsPushSchema.d.ts +202 -0
  52. package/types/types/CamStreamerAPI/ibmSchema.d.ts +202 -0
  53. package/types/types/CamStreamerAPI/index.d.ts +0 -1
  54. package/types/types/CamStreamerAPI/microsoftAzureSchema.d.ts +202 -0
  55. package/types/types/CamStreamerAPI/microsoftStreamSchema.d.ts +202 -0
  56. package/types/types/CamStreamerAPI/srtSchema.d.ts +202 -0
  57. package/types/types/CamStreamerAPI/twitchSchema.d.ts +202 -0
  58. package/types/types/CamStreamerAPI/vimeoSchema.d.ts +202 -0
  59. package/types/types/CamStreamerAPI/wowzaSchema.d.ts +202 -0
@@ -0,0 +1,202 @@
1
+ import z from 'zod';
2
+ export declare const wowzaSchema: z.ZodObject<{
3
+ id: z.ZodNumber;
4
+ enabled: z.ZodBoolean;
5
+ active: z.ZodBoolean;
6
+ title: z.ZodString;
7
+ trigger: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8
+ type: z.ZodLiteral<"manual">;
9
+ ioPort: z.ZodNullable<z.ZodString>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ type: "manual";
12
+ ioPort: string | null;
13
+ }, {
14
+ type: "manual";
15
+ ioPort: string | null;
16
+ }>, z.ZodObject<{
17
+ type: z.ZodLiteral<"onetime">;
18
+ startTime: z.ZodNumber;
19
+ stopTime: z.ZodNumber;
20
+ }, "strip", z.ZodTypeAny, {
21
+ type: "onetime";
22
+ startTime: number;
23
+ stopTime: number;
24
+ }, {
25
+ type: "onetime";
26
+ startTime: number;
27
+ stopTime: number;
28
+ }>, z.ZodObject<{
29
+ type: z.ZodLiteral<"recurrent">;
30
+ schedule: z.ZodArray<z.ZodObject<{
31
+ start: z.ZodObject<{
32
+ day: z.ZodNumber;
33
+ timeS: z.ZodNumber;
34
+ }, "strip", z.ZodTypeAny, {
35
+ day: number;
36
+ timeS: number;
37
+ }, {
38
+ day: number;
39
+ timeS: number;
40
+ }>;
41
+ stop: z.ZodObject<{
42
+ day: z.ZodNumber;
43
+ timeS: z.ZodNumber;
44
+ }, "strip", z.ZodTypeAny, {
45
+ day: number;
46
+ timeS: number;
47
+ }, {
48
+ day: number;
49
+ timeS: number;
50
+ }>;
51
+ isActive: z.ZodBoolean;
52
+ }, "strip", z.ZodTypeAny, {
53
+ start: {
54
+ day: number;
55
+ timeS: number;
56
+ };
57
+ stop: {
58
+ day: number;
59
+ timeS: number;
60
+ };
61
+ isActive: boolean;
62
+ }, {
63
+ start: {
64
+ day: number;
65
+ timeS: number;
66
+ };
67
+ stop: {
68
+ day: number;
69
+ timeS: number;
70
+ };
71
+ isActive: boolean;
72
+ }>, "many">;
73
+ }, "strip", z.ZodTypeAny, {
74
+ type: "recurrent";
75
+ schedule: {
76
+ start: {
77
+ day: number;
78
+ timeS: number;
79
+ };
80
+ stop: {
81
+ day: number;
82
+ timeS: number;
83
+ };
84
+ isActive: boolean;
85
+ }[];
86
+ }, {
87
+ type: "recurrent";
88
+ schedule: {
89
+ start: {
90
+ day: number;
91
+ timeS: number;
92
+ };
93
+ stop: {
94
+ day: number;
95
+ timeS: number;
96
+ };
97
+ isActive: boolean;
98
+ }[];
99
+ }>]>;
100
+ inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
101
+ internalVapixParameters: z.ZodObject<{
102
+ camera: z.ZodString;
103
+ resolution: z.ZodOptional<z.ZodString>;
104
+ compression: z.ZodOptional<z.ZodNumber>;
105
+ fps: z.ZodOptional<z.ZodNumber>;
106
+ videobitrate: z.ZodOptional<z.ZodNumber>;
107
+ videomaxbitrate: z.ZodOptional<z.ZodNumber>;
108
+ audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
109
+ }, "strip", z.ZodTypeAny, {
110
+ camera: string;
111
+ resolution?: string | undefined;
112
+ compression?: number | undefined;
113
+ audio?: 0 | 1 | undefined;
114
+ fps?: number | undefined;
115
+ videobitrate?: number | undefined;
116
+ videomaxbitrate?: number | undefined;
117
+ }, {
118
+ camera: string;
119
+ resolution?: string | undefined;
120
+ compression?: number | undefined;
121
+ audio?: 0 | 1 | undefined;
122
+ fps?: number | undefined;
123
+ videobitrate?: number | undefined;
124
+ videomaxbitrate?: number | undefined;
125
+ }>;
126
+ } & {
127
+ type: z.ZodLiteral<"wowza">;
128
+ }, "strip", z.ZodTypeAny, {
129
+ type: "wowza";
130
+ enabled: boolean;
131
+ id: number;
132
+ active: boolean;
133
+ title: string;
134
+ trigger: {
135
+ type: "manual";
136
+ ioPort: string | null;
137
+ } | {
138
+ type: "onetime";
139
+ startTime: number;
140
+ stopTime: number;
141
+ } | {
142
+ type: "recurrent";
143
+ schedule: {
144
+ start: {
145
+ day: number;
146
+ timeS: number;
147
+ };
148
+ stop: {
149
+ day: number;
150
+ timeS: number;
151
+ };
152
+ isActive: boolean;
153
+ }[];
154
+ };
155
+ inputType: "RTSP_URL" | "CSw" | "CRS";
156
+ internalVapixParameters: {
157
+ camera: string;
158
+ resolution?: string | undefined;
159
+ compression?: number | undefined;
160
+ audio?: 0 | 1 | undefined;
161
+ fps?: number | undefined;
162
+ videobitrate?: number | undefined;
163
+ videomaxbitrate?: number | undefined;
164
+ };
165
+ }, {
166
+ type: "wowza";
167
+ enabled: boolean;
168
+ id: number;
169
+ active: boolean;
170
+ title: string;
171
+ trigger: {
172
+ type: "manual";
173
+ ioPort: string | null;
174
+ } | {
175
+ type: "onetime";
176
+ startTime: number;
177
+ stopTime: number;
178
+ } | {
179
+ type: "recurrent";
180
+ schedule: {
181
+ start: {
182
+ day: number;
183
+ timeS: number;
184
+ };
185
+ stop: {
186
+ day: number;
187
+ timeS: number;
188
+ };
189
+ isActive: boolean;
190
+ }[];
191
+ };
192
+ inputType: "RTSP_URL" | "CSw" | "CRS";
193
+ internalVapixParameters: {
194
+ camera: string;
195
+ resolution?: string | undefined;
196
+ compression?: number | undefined;
197
+ audio?: 0 | 1 | undefined;
198
+ fps?: number | undefined;
199
+ videobitrate?: number | undefined;
200
+ videomaxbitrate?: number | undefined;
201
+ };
202
+ }>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.wowzaSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const streamCommonTypes_1 = require("./streamCommonTypes");
9
+ exports.wowzaSchema = streamCommonTypes_1.streamCommonSchema.extend({
10
+ type: zod_1.default.literal('wowza'),
11
+ });
@@ -1,27 +1,46 @@
1
1
  import { z } from 'zod';
2
2
  import { facebookSchema } from './facebookSchema';
3
- import { hlsSchema } from './hlsSchema';
4
3
  import { mpegDvbSchema } from './mpegDvbSchema';
5
4
  import { rtmpSchema } from './rtmpSchema';
6
5
  import { sdCardSchema } from './sdCardSchema';
7
6
  import { windySchema } from './windySchema';
8
7
  import { youtubeSchema } from './youtubeSchema';
8
+ import { vimeoSchema } from './vimeoSchema';
9
+ import { twitchSchema } from './twitchSchema';
10
+ import { churchSchema } from './churchSchema';
11
+ import { srtSchema } from './srtSchema';
12
+ import { daCastSchema } from './daCastSchema';
13
+ import { hlsPullSchema } from './hlsPullSchema';
14
+ import { hlsPushSchema } from './hlsPushSchema';
15
+ import { wowzaSchema } from './wowzaSchema';
16
+ import { dailymotionSchema } from './dailymotionSchema';
17
+ import { ibmSchema } from './ibmSchema';
18
+ import { microsoftAzureSchema } from './microsoftAzureSchema';
19
+ import { microsoftStreamSchema } from './microsoftStreamSchema';
9
20
  export const streamSchema = z.discriminatedUnion('type', [
10
21
  facebookSchema,
11
- hlsSchema,
12
22
  mpegDvbSchema,
13
23
  rtmpSchema,
14
24
  sdCardSchema,
15
25
  windySchema,
16
26
  youtubeSchema,
27
+ vimeoSchema,
28
+ twitchSchema,
29
+ churchSchema,
30
+ srtSchema,
31
+ daCastSchema,
32
+ hlsPullSchema,
33
+ hlsPushSchema,
34
+ wowzaSchema,
35
+ dailymotionSchema,
36
+ ibmSchema,
37
+ microsoftAzureSchema,
38
+ microsoftStreamSchema,
17
39
  ]);
18
40
  export const streamListSchema = z.object({ streamList: z.array(streamSchema) });
19
41
  export const isFacebookStream = (stream) => {
20
42
  return stream.type === 'facebook';
21
43
  };
22
- export const isHlsStream = (stream) => {
23
- return stream.type === 'hls';
24
- };
25
44
  export const isMpegDvbStream = (stream) => {
26
45
  return stream.type === 'mpeg_dvb';
27
46
  };
@@ -0,0 +1,5 @@
1
+ import z from 'zod';
2
+ import { streamCommonSchema } from './streamCommonTypes';
3
+ export const churchSchema = streamCommonSchema.extend({
4
+ type: z.literal('church'),
5
+ });
@@ -0,0 +1,5 @@
1
+ import z from 'zod';
2
+ import { streamCommonSchema } from './streamCommonTypes';
3
+ export const daCastSchema = streamCommonSchema.extend({
4
+ type: z.literal('da_cast'),
5
+ });
@@ -0,0 +1,5 @@
1
+ import z from 'zod';
2
+ import { streamCommonSchema } from './streamCommonTypes';
3
+ export const dailymotionSchema = streamCommonSchema.extend({
4
+ type: z.literal('dailymotion'),
5
+ });
@@ -0,0 +1,5 @@
1
+ import z from 'zod';
2
+ import { streamCommonSchema } from './streamCommonTypes';
3
+ export const hlsPullSchema = streamCommonSchema.extend({
4
+ type: z.literal('hls_pull'),
5
+ });
@@ -0,0 +1,5 @@
1
+ import z from 'zod';
2
+ import { streamCommonSchema } from './streamCommonTypes';
3
+ export const hlsPushSchema = streamCommonSchema.extend({
4
+ type: z.literal('hls_push'),
5
+ });
@@ -1,5 +1,5 @@
1
1
  import z from 'zod';
2
2
  import { streamCommonSchema } from './streamCommonTypes';
3
- export const hlsSchema = streamCommonSchema.extend({
4
- type: z.literal('hls'),
3
+ export const ibmSchema = streamCommonSchema.extend({
4
+ type: z.literal('ibm'),
5
5
  });
@@ -1,7 +1,6 @@
1
1
  export * from './CamStreamerAPI';
2
2
  export * from './streamCommonTypes';
3
3
  export * from './facebookSchema';
4
- export * from './hlsSchema';
5
4
  export * from './mpegDvbSchema';
6
5
  export * from './rtmpSchema';
7
6
  export * from './sdCardSchema';
@@ -0,0 +1,5 @@
1
+ import z from 'zod';
2
+ import { streamCommonSchema } from './streamCommonTypes';
3
+ export const microsoftAzureSchema = streamCommonSchema.extend({
4
+ type: z.literal('microsoft_azure'),
5
+ });
@@ -0,0 +1,5 @@
1
+ import z from 'zod';
2
+ import { streamCommonSchema } from './streamCommonTypes';
3
+ export const microsoftStreamSchema = streamCommonSchema.extend({
4
+ type: z.literal('microsoft_stream'),
5
+ });
@@ -0,0 +1,5 @@
1
+ import z from 'zod';
2
+ import { streamCommonSchema } from './streamCommonTypes';
3
+ export const srtSchema = streamCommonSchema.extend({
4
+ type: z.literal('srt'),
5
+ });
@@ -0,0 +1,5 @@
1
+ import z from 'zod';
2
+ import { streamCommonSchema } from './streamCommonTypes';
3
+ export const twitchSchema = streamCommonSchema.extend({
4
+ type: z.literal('twitch'),
5
+ });
@@ -0,0 +1,5 @@
1
+ import z from 'zod';
2
+ import { streamCommonSchema } from './streamCommonTypes';
3
+ export const vimeoSchema = streamCommonSchema.extend({
4
+ type: z.literal('vimeo'),
5
+ });
@@ -0,0 +1,5 @@
1
+ import z from 'zod';
2
+ import { streamCommonSchema } from './streamCommonTypes';
3
+ export const wowzaSchema = streamCommonSchema.extend({
4
+ type: z.literal('wowza'),
5
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "camstreamerlib",
3
- "version": "4.0.0-beta.91",
3
+ "version": "4.0.0-beta.92",
4
4
  "description": "Helper library for CamStreamer ACAP applications.",
5
5
  "prettier": "@camstreamer/prettier-config",
6
6
  "engine": {