camstreamerlib 4.0.0-beta.115 → 4.0.0-beta.116

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 (115) hide show
  1. package/cjs/CamStreamerAPI.d.ts +1155 -485
  2. package/cjs/CamStreamerAPI.js +4 -4
  3. package/cjs/VapixAPI.d.ts +1 -1
  4. package/cjs/errors/errors.d.ts +2 -2
  5. package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +8076 -2678
  6. package/cjs/types/CamStreamerAPI/CamStreamerAPI.js +39 -55
  7. package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +183 -55
  8. package/cjs/types/CamStreamerAPI/facebookSchema.js +6 -10
  9. package/cjs/types/CamStreamerAPI/index.d.ts +1 -5
  10. package/cjs/types/CamStreamerAPI/index.js +1 -5
  11. package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +39 -39
  12. package/cjs/types/CamStreamerAPI/oldStreamSchema.js +1 -1
  13. package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +224 -341
  14. package/cjs/types/CamStreamerAPI/streamCommonTypes.js +89 -75
  15. package/cjs/types/CamStreamerAPI/streamsSchema.d.ts +7333 -0
  16. package/cjs/types/CamStreamerAPI/streamsSchema.js +63 -0
  17. package/cjs/types/CamStreamerAPI/windySchema.d.ts +159 -45
  18. package/cjs/types/CamStreamerAPI/windySchema.js +1 -1
  19. package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +159 -54
  20. package/cjs/types/CamStreamerAPI/youtubeSchema.js +1 -4
  21. package/cjs/types/VapixAPI.d.ts +10 -10
  22. package/cjs/types/ws/CamStreamerEvents.d.ts +33 -33
  23. package/cjs/types/ws/CamStreamerEvents.js +3 -3
  24. package/esm/CamStreamerAPI.js +4 -4
  25. package/esm/types/CamStreamerAPI/CamStreamerAPI.js +22 -38
  26. package/esm/types/CamStreamerAPI/facebookSchema.js +5 -9
  27. package/esm/types/CamStreamerAPI/index.js +1 -5
  28. package/esm/types/CamStreamerAPI/oldStreamSchema.js +1 -1
  29. package/esm/types/CamStreamerAPI/streamCommonTypes.js +88 -74
  30. package/esm/types/CamStreamerAPI/streamsSchema.js +57 -0
  31. package/esm/types/CamStreamerAPI/windySchema.js +1 -1
  32. package/esm/types/CamStreamerAPI/youtubeSchema.js +1 -4
  33. package/esm/types/ws/CamStreamerEvents.js +3 -3
  34. package/package.json +1 -1
  35. package/types/CamStreamerAPI.d.ts +1155 -485
  36. package/types/VapixAPI.d.ts +1 -1
  37. package/types/errors/errors.d.ts +2 -2
  38. package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +8076 -2678
  39. package/types/types/CamStreamerAPI/facebookSchema.d.ts +183 -55
  40. package/types/types/CamStreamerAPI/index.d.ts +1 -5
  41. package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +39 -39
  42. package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +224 -341
  43. package/types/types/CamStreamerAPI/streamsSchema.d.ts +7333 -0
  44. package/types/types/CamStreamerAPI/windySchema.d.ts +159 -45
  45. package/types/types/CamStreamerAPI/youtubeSchema.d.ts +159 -54
  46. package/types/types/VapixAPI.d.ts +10 -10
  47. package/types/types/ws/CamStreamerEvents.d.ts +33 -33
  48. package/cjs/types/CamStreamerAPI/churchSchema.d.ts +0 -293
  49. package/cjs/types/CamStreamerAPI/churchSchema.js +0 -11
  50. package/cjs/types/CamStreamerAPI/daCastSchema.d.ts +0 -293
  51. package/cjs/types/CamStreamerAPI/daCastSchema.js +0 -11
  52. package/cjs/types/CamStreamerAPI/dailymotionSchema.d.ts +0 -293
  53. package/cjs/types/CamStreamerAPI/dailymotionSchema.js +0 -11
  54. package/cjs/types/CamStreamerAPI/gameChangerSchema.d.ts +0 -312
  55. package/cjs/types/CamStreamerAPI/gameChangerSchema.js +0 -11
  56. package/cjs/types/CamStreamerAPI/hlsPullSchema.d.ts +0 -293
  57. package/cjs/types/CamStreamerAPI/hlsPullSchema.js +0 -11
  58. package/cjs/types/CamStreamerAPI/hlsPushSchema.d.ts +0 -293
  59. package/cjs/types/CamStreamerAPI/hlsPushSchema.js +0 -11
  60. package/cjs/types/CamStreamerAPI/ibmSchema.d.ts +0 -293
  61. package/cjs/types/CamStreamerAPI/ibmSchema.js +0 -11
  62. package/cjs/types/CamStreamerAPI/microsoftAzureSchema.d.ts +0 -293
  63. package/cjs/types/CamStreamerAPI/microsoftAzureSchema.js +0 -11
  64. package/cjs/types/CamStreamerAPI/microsoftStreamSchema.d.ts +0 -293
  65. package/cjs/types/CamStreamerAPI/microsoftStreamSchema.js +0 -11
  66. package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +0 -314
  67. package/cjs/types/CamStreamerAPI/mpegDvbSchema.js +0 -18
  68. package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +0 -619
  69. package/cjs/types/CamStreamerAPI/rtmpSchema.js +0 -19
  70. package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +0 -293
  71. package/cjs/types/CamStreamerAPI/sdCardSchema.js +0 -11
  72. package/cjs/types/CamStreamerAPI/srtSchema.d.ts +0 -293
  73. package/cjs/types/CamStreamerAPI/srtSchema.js +0 -11
  74. package/cjs/types/CamStreamerAPI/twitchSchema.d.ts +0 -293
  75. package/cjs/types/CamStreamerAPI/twitchSchema.js +0 -11
  76. package/cjs/types/CamStreamerAPI/vimeoSchema.d.ts +0 -293
  77. package/cjs/types/CamStreamerAPI/vimeoSchema.js +0 -11
  78. package/cjs/types/CamStreamerAPI/wowzaSchema.d.ts +0 -293
  79. package/cjs/types/CamStreamerAPI/wowzaSchema.js +0 -11
  80. package/cjs/types/CamStreamerAPI/youtubeRtmpSchema.d.ts +0 -312
  81. package/cjs/types/CamStreamerAPI/youtubeRtmpSchema.js +0 -11
  82. package/esm/types/CamStreamerAPI/churchSchema.js +0 -5
  83. package/esm/types/CamStreamerAPI/daCastSchema.js +0 -5
  84. package/esm/types/CamStreamerAPI/dailymotionSchema.js +0 -5
  85. package/esm/types/CamStreamerAPI/gameChangerSchema.js +0 -5
  86. package/esm/types/CamStreamerAPI/hlsPullSchema.js +0 -5
  87. package/esm/types/CamStreamerAPI/hlsPushSchema.js +0 -5
  88. package/esm/types/CamStreamerAPI/ibmSchema.js +0 -5
  89. package/esm/types/CamStreamerAPI/microsoftAzureSchema.js +0 -5
  90. package/esm/types/CamStreamerAPI/microsoftStreamSchema.js +0 -5
  91. package/esm/types/CamStreamerAPI/mpegDvbSchema.js +0 -12
  92. package/esm/types/CamStreamerAPI/rtmpSchema.js +0 -13
  93. package/esm/types/CamStreamerAPI/sdCardSchema.js +0 -5
  94. package/esm/types/CamStreamerAPI/srtSchema.js +0 -5
  95. package/esm/types/CamStreamerAPI/twitchSchema.js +0 -5
  96. package/esm/types/CamStreamerAPI/vimeoSchema.js +0 -5
  97. package/esm/types/CamStreamerAPI/wowzaSchema.js +0 -5
  98. package/esm/types/CamStreamerAPI/youtubeRtmpSchema.js +0 -5
  99. package/types/types/CamStreamerAPI/churchSchema.d.ts +0 -293
  100. package/types/types/CamStreamerAPI/daCastSchema.d.ts +0 -293
  101. package/types/types/CamStreamerAPI/dailymotionSchema.d.ts +0 -293
  102. package/types/types/CamStreamerAPI/gameChangerSchema.d.ts +0 -312
  103. package/types/types/CamStreamerAPI/hlsPullSchema.d.ts +0 -293
  104. package/types/types/CamStreamerAPI/hlsPushSchema.d.ts +0 -293
  105. package/types/types/CamStreamerAPI/ibmSchema.d.ts +0 -293
  106. package/types/types/CamStreamerAPI/microsoftAzureSchema.d.ts +0 -293
  107. package/types/types/CamStreamerAPI/microsoftStreamSchema.d.ts +0 -293
  108. package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +0 -314
  109. package/types/types/CamStreamerAPI/rtmpSchema.d.ts +0 -619
  110. package/types/types/CamStreamerAPI/sdCardSchema.d.ts +0 -293
  111. package/types/types/CamStreamerAPI/srtSchema.d.ts +0 -293
  112. package/types/types/CamStreamerAPI/twitchSchema.d.ts +0 -293
  113. package/types/types/CamStreamerAPI/vimeoSchema.d.ts +0 -293
  114. package/types/types/CamStreamerAPI/wowzaSchema.d.ts +0 -293
  115. package/types/types/CamStreamerAPI/youtubeRtmpSchema.d.ts +0 -312
@@ -1,49 +1,97 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.streamCommonSchema = exports.streamAudioSchema = exports.streamVideoSchema = exports.internalVapixParametersSchema = exports.streamDelaySchema = exports.overlaysSchema = exports.videoCodecSchema = exports.streamingProtocolTypeSchema = exports.streamInputTypeSchema = exports.streamTriggerSchema = void 0;
3
+ exports.internalVapixParametersSchema = exports.streamCommonSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const common_1 = require("../common");
6
- const scheduleSchema = zod_1.z.object({
7
- start: zod_1.z.object({
8
- day: zod_1.z.number().int().min(0).max(6),
9
- timeS: zod_1.z.number().int().min(0).max(86400),
10
- }),
11
- stop: zod_1.z.object({
12
- day: zod_1.z.number().int().min(0).max(6),
13
- timeS: zod_1.z.number().int().min(0).max(86400),
14
- }),
15
- isActive: zod_1.z.boolean(),
16
- });
17
- exports.streamTriggerSchema = zod_1.z.discriminatedUnion('type', [
18
- zod_1.z.object({
19
- type: zod_1.z.literal('manual'),
20
- ioPort: zod_1.z.string().nullable(),
21
- }),
22
- zod_1.z.object({
23
- type: zod_1.z.literal('onetime'),
24
- startTime: zod_1.z.number(),
25
- stopTime: zod_1.z.number(),
26
- ioPort: zod_1.z.string().nullable(),
6
+ exports.streamCommonSchema = zod_1.z.object({
7
+ streamId: zod_1.z.string(),
8
+ enabled: zod_1.z.boolean(),
9
+ active: zod_1.z.boolean(),
10
+ title: zod_1.z.string(),
11
+ trigger: zod_1.z.discriminatedUnion('type', [
12
+ zod_1.z.object({
13
+ type: zod_1.z.literal('manual'),
14
+ ioPort: zod_1.z.number().nullable(),
15
+ }),
16
+ zod_1.z.object({
17
+ type: zod_1.z.literal('onetime'),
18
+ startTime: zod_1.z.number(),
19
+ stopTime: zod_1.z.number(),
20
+ }),
21
+ zod_1.z.object({
22
+ type: zod_1.z.literal('recurrent'),
23
+ schedule: zod_1.z.array(zod_1.z.object({
24
+ start: zod_1.z.object({
25
+ day: zod_1.z.number().int().min(0).max(6),
26
+ timeS: zod_1.z.number().int().min(0).max(86400),
27
+ }),
28
+ stop: zod_1.z.object({
29
+ day: zod_1.z.number().int().min(0).max(6),
30
+ timeS: zod_1.z.number().int().min(0).max(86400),
31
+ }),
32
+ isActive: zod_1.z.boolean(),
33
+ })),
34
+ }),
35
+ ]),
36
+ video: zod_1.z.object({
37
+ output: zod_1.z.discriminatedUnion('callApi', [
38
+ zod_1.z.object({
39
+ type: zod_1.z.union([zod_1.z.literal('video'), zod_1.z.literal('images')]),
40
+ callApi: zod_1.z.literal(false),
41
+ url: zod_1.z.string(),
42
+ }),
43
+ zod_1.z.object({
44
+ type: zod_1.z.literal('video'),
45
+ callApi: zod_1.z.literal(true),
46
+ prepareAheadS: zod_1.z.number(),
47
+ }),
48
+ ]),
49
+ outputParameters: zod_1.z.string(),
50
+ input: zod_1.z.discriminatedUnion('type', [
51
+ zod_1.z.object({
52
+ type: zod_1.z.literal('RTSP_URL'),
53
+ url: zod_1.z.string(),
54
+ }),
55
+ zod_1.z.object({
56
+ type: zod_1.z.union([zod_1.z.literal('CSw'), zod_1.z.literal('CRS')]),
57
+ }),
58
+ ]),
59
+ streamingProtocol: zod_1.z.union([zod_1.z.literal('RTMP'), zod_1.z.literal('RTMPS'), zod_1.z.literal('HLS_PUSH')]),
60
+ internalVapixParameters: zod_1.z.string(),
61
+ userVapixParameters: zod_1.z.string(),
62
+ streamDelay: zod_1.z
63
+ .object({
64
+ value: zod_1.z.number().int(),
65
+ unit: zod_1.z.union([zod_1.z.literal('seconds'), zod_1.z.literal('minutes'), zod_1.z.literal('hours')]),
66
+ })
67
+ .optional(),
27
68
  }),
28
- zod_1.z.object({
29
- type: zod_1.z.literal('recurrent'),
30
- schedule: zod_1.z.array(scheduleSchema),
69
+ audio: zod_1.z
70
+ .discriminatedUnion('source', [
71
+ zod_1.z.object({
72
+ source: zod_1.z.literal('microphone'),
73
+ audioChannelNbr: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2)]),
74
+ forceStereo: common_1.booleanSchema,
75
+ }),
76
+ zod_1.z.object({
77
+ source: zod_1.z.literal('file'),
78
+ fileName: zod_1.z.string(),
79
+ filePath: zod_1.z.string(),
80
+ forceStereo: common_1.booleanSchema,
81
+ }),
82
+ zod_1.z.object({
83
+ source: zod_1.z.literal('url'),
84
+ fileName: zod_1.z.string(),
85
+ fileUrl: zod_1.z.string(),
86
+ avSyncMsec: zod_1.z.number().int().nonnegative(),
87
+ forceStereo: common_1.booleanSchema,
88
+ }),
89
+ ])
90
+ .nullable(),
91
+ status: zod_1.z.object({
92
+ led: zod_1.z.boolean(),
93
+ port: zod_1.z.number().nullable(),
31
94
  }),
32
- ]);
33
- exports.streamInputTypeSchema = zod_1.z.union([zod_1.z.literal('CSw'), zod_1.z.literal('CRS'), zod_1.z.literal('RTSP_URL')]);
34
- exports.streamingProtocolTypeSchema = zod_1.z.union([zod_1.z.literal('RTMP'), zod_1.z.literal('RTMPS'), zod_1.z.literal('HLS_PUSH')]);
35
- exports.videoCodecSchema = zod_1.z.union([zod_1.z.literal('h264'), zod_1.z.literal('h265'), zod_1.z.literal('av1')]);
36
- exports.overlaysSchema = zod_1.z.union([
37
- zod_1.z.literal('all'),
38
- zod_1.z.literal('text'),
39
- zod_1.z.literal('image'),
40
- zod_1.z.literal('application'),
41
- zod_1.z.literal(''),
42
- zod_1.z.literal('off'),
43
- ]);
44
- exports.streamDelaySchema = zod_1.z.object({
45
- value: zod_1.z.number().int(),
46
- unit: zod_1.z.union([zod_1.z.literal('seconds'), zod_1.z.literal('minutes'), zod_1.z.literal('hours')]),
47
95
  });
48
96
  exports.internalVapixParametersSchema = common_1.bitrateVapixParamsSchema.extend({
49
97
  camera: zod_1.z.string(),
@@ -51,7 +99,7 @@ exports.internalVapixParametersSchema = common_1.bitrateVapixParamsSchema.extend
51
99
  fps: zod_1.z.number().int(),
52
100
  compression: zod_1.z.number().int(),
53
101
  govLength: zod_1.z.number().int(),
54
- videoCodec: exports.videoCodecSchema,
102
+ videoCodec: zod_1.z.union([zod_1.z.literal('h264'), zod_1.z.literal('h265'), zod_1.z.literal('av1')]),
55
103
  h264Profile: common_1.h264ProfileSchema.optional(),
56
104
  audio: common_1.booleanSchema,
57
105
  nbrOfChannels: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2)]).optional(),
@@ -66,37 +114,3 @@ exports.internalVapixParametersSchema = common_1.bitrateVapixParamsSchema.extend
66
114
  ])
67
115
  .optional(),
68
116
  });
69
- exports.streamVideoSchema = zod_1.z.object({
70
- inputType: exports.streamInputTypeSchema,
71
- sourceUrl: zod_1.z.string().optional(),
72
- internalVapixParameters: zod_1.z.string(),
73
- userVapixParameters: zod_1.z.string(),
74
- streamingProtocol: exports.streamingProtocolTypeSchema,
75
- streamDelay: exports.streamDelaySchema.optional(),
76
- });
77
- exports.streamAudioSchema = zod_1.z.discriminatedUnion('source', [
78
- zod_1.z.object({
79
- source: zod_1.z.literal('none'),
80
- }),
81
- zod_1.z.object({ source: zod_1.z.literal('microphone'), audioChannelNbr: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2)]) }),
82
- zod_1.z.object({
83
- source: zod_1.z.literal('file'),
84
- fileName: zod_1.z.string(),
85
- filePath: zod_1.z.string(),
86
- }),
87
- zod_1.z.object({
88
- source: zod_1.z.literal('url'),
89
- fileName: zod_1.z.string(),
90
- fileUrl: zod_1.z.string(),
91
- avSyncMsec: zod_1.z.number().int().nonnegative(),
92
- }),
93
- ]);
94
- exports.streamCommonSchema = zod_1.z.object({
95
- id: zod_1.z.number(),
96
- enabled: zod_1.z.boolean(),
97
- active: zod_1.z.boolean(),
98
- title: zod_1.z.string(),
99
- trigger: exports.streamTriggerSchema,
100
- video: exports.streamVideoSchema,
101
- audio: exports.streamAudioSchema,
102
- });