camstreamerlib 4.0.0-beta.105 → 4.0.0-beta.107

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 (33) hide show
  1. package/cjs/CamOverlayAPI.d.ts +5 -12
  2. package/cjs/CamOverlayAPI.js +2 -2
  3. package/cjs/CamStreamerAPI.d.ts +22 -4
  4. package/cjs/types/CamOverlayAPI/CamOverlayAPI.d.ts +293 -12
  5. package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +50 -11
  6. package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +105 -20
  7. package/cjs/types/CamStreamerAPI/gameChangerSchema.d.ts +19 -0
  8. package/cjs/types/CamStreamerAPI/gameChangerSchema.js +2 -2
  9. package/cjs/types/CamStreamerAPI/index.d.ts +1 -0
  10. package/cjs/types/CamStreamerAPI/index.js +1 -0
  11. package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +3 -3
  12. package/cjs/types/CamStreamerAPI/mpegDvbSchema.js +1 -1
  13. package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +313 -1
  14. package/cjs/types/CamStreamerAPI/rtmpSchema.js +8 -3
  15. package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +3 -3
  16. package/cjs/types/CamStreamerAPI/youtubeSchema.js +1 -1
  17. package/esm/CamOverlayAPI.js +3 -3
  18. package/esm/types/CamOverlayAPI/CamOverlayAPI.js +44 -10
  19. package/esm/types/CamStreamerAPI/gameChangerSchema.js +2 -2
  20. package/esm/types/CamStreamerAPI/index.js +1 -0
  21. package/esm/types/CamStreamerAPI/mpegDvbSchema.js +1 -1
  22. package/esm/types/CamStreamerAPI/rtmpSchema.js +7 -2
  23. package/esm/types/CamStreamerAPI/youtubeSchema.js +1 -1
  24. package/package.json +1 -1
  25. package/types/CamOverlayAPI.d.ts +5 -12
  26. package/types/CamStreamerAPI.d.ts +22 -4
  27. package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +293 -12
  28. package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +105 -20
  29. package/types/types/CamStreamerAPI/gameChangerSchema.d.ts +19 -0
  30. package/types/types/CamStreamerAPI/index.d.ts +1 -0
  31. package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +3 -3
  32. package/types/types/CamStreamerAPI/rtmpSchema.d.ts +313 -1
  33. package/types/types/CamStreamerAPI/youtubeSchema.d.ts +3 -3
@@ -4229,9 +4229,12 @@ export declare enum ImageType {
4229
4229
  PNG = 0,
4230
4230
  JPEG = 1
4231
4231
  }
4232
- export declare const fileStorageTypeSchema: z.ZodUnion<[z.ZodLiteral<"flash">, z.ZodLiteral<"SD0">, z.ZodLiteral<"ftp">, z.ZodLiteral<"samba">, z.ZodLiteral<"url">]>;
4233
- export type TFileStorageType = z.infer<typeof fileStorageTypeSchema>;
4234
- export declare const storageDataListSchema: z.ZodArray<z.ZodObject<{
4232
+ export declare const imageFileStorageTypeSchema: z.ZodUnion<[z.ZodLiteral<"flash">, z.ZodLiteral<"SD0">, z.ZodLiteral<"ftp">, z.ZodLiteral<"samba">, z.ZodLiteral<"url">]>;
4233
+ export declare const fontFileStorageTypeSchema: z.ZodUnion<[z.ZodLiteral<"flash">, z.ZodLiteral<"SD0">]>;
4234
+ export type TImageFileStorageType = z.infer<typeof imageFileStorageTypeSchema>;
4235
+ export type TFontFileStorageType = z.infer<typeof fontFileStorageTypeSchema>;
4236
+ export type TFileStorageType<T extends TFileType> = T extends 'image' ? TImageFileStorageType : TFontFileStorageType;
4237
+ export declare const imageFilestorageDataListSchema: z.ZodArray<z.ZodObject<{
4235
4238
  type: z.ZodUnion<[z.ZodLiteral<"flash">, z.ZodLiteral<"SD0">, z.ZodLiteral<"ftp">, z.ZodLiteral<"samba">, z.ZodLiteral<"url">]>;
4236
4239
  state: z.ZodString;
4237
4240
  }, "strip", z.ZodTypeAny, {
@@ -4241,8 +4244,89 @@ export declare const storageDataListSchema: z.ZodArray<z.ZodObject<{
4241
4244
  type: "url" | "flash" | "SD0" | "ftp" | "samba";
4242
4245
  state: string;
4243
4246
  }>, "many">;
4244
- export type TStorageDataList = z.infer<typeof storageDataListSchema>;
4245
- export declare const storageResponseSchema: z.ZodObject<{
4247
+ export declare const fontStorageDataListSchema: z.ZodArray<z.ZodObject<{
4248
+ type: z.ZodUnion<[z.ZodLiteral<"flash">, z.ZodLiteral<"SD0">]>;
4249
+ state: z.ZodString;
4250
+ }, "strip", z.ZodTypeAny, {
4251
+ type: "flash" | "SD0";
4252
+ state: string;
4253
+ }, {
4254
+ type: "flash" | "SD0";
4255
+ state: string;
4256
+ }>, "many">;
4257
+ export declare const getStorageDataListSchema: (fileType: TFileType) => z.ZodArray<z.ZodObject<{
4258
+ type: z.ZodUnion<[z.ZodLiteral<"flash">, z.ZodLiteral<"SD0">, z.ZodLiteral<"ftp">, z.ZodLiteral<"samba">, z.ZodLiteral<"url">]>;
4259
+ state: z.ZodString;
4260
+ }, "strip", z.ZodTypeAny, {
4261
+ type: "url" | "flash" | "SD0" | "ftp" | "samba";
4262
+ state: string;
4263
+ }, {
4264
+ type: "url" | "flash" | "SD0" | "ftp" | "samba";
4265
+ state: string;
4266
+ }>, "many"> | z.ZodArray<z.ZodObject<{
4267
+ type: z.ZodUnion<[z.ZodLiteral<"flash">, z.ZodLiteral<"SD0">]>;
4268
+ state: z.ZodString;
4269
+ }, "strip", z.ZodTypeAny, {
4270
+ type: "flash" | "SD0";
4271
+ state: string;
4272
+ }, {
4273
+ type: "flash" | "SD0";
4274
+ state: string;
4275
+ }>, "many">;
4276
+ export type TImageStorageDataList = z.infer<typeof imageFilestorageDataListSchema>;
4277
+ export type TFontStorageDataList = z.infer<typeof fontStorageDataListSchema>;
4278
+ export type TStorageDataList<T extends TFileType> = T extends 'image' ? TImageStorageDataList : TFontStorageDataList;
4279
+ export declare const imageStorageResponseSchema: z.ZodObject<{
4280
+ code: z.ZodNumber;
4281
+ list: z.ZodArray<z.ZodObject<{
4282
+ type: z.ZodUnion<[z.ZodLiteral<"flash">, z.ZodLiteral<"SD0">, z.ZodLiteral<"ftp">, z.ZodLiteral<"samba">, z.ZodLiteral<"url">]>;
4283
+ state: z.ZodString;
4284
+ }, "strip", z.ZodTypeAny, {
4285
+ type: "url" | "flash" | "SD0" | "ftp" | "samba";
4286
+ state: string;
4287
+ }, {
4288
+ type: "url" | "flash" | "SD0" | "ftp" | "samba";
4289
+ state: string;
4290
+ }>, "many">;
4291
+ }, "strip", z.ZodTypeAny, {
4292
+ code: number;
4293
+ list: {
4294
+ type: "url" | "flash" | "SD0" | "ftp" | "samba";
4295
+ state: string;
4296
+ }[];
4297
+ }, {
4298
+ code: number;
4299
+ list: {
4300
+ type: "url" | "flash" | "SD0" | "ftp" | "samba";
4301
+ state: string;
4302
+ }[];
4303
+ }>;
4304
+ export declare const fontStorageResponseSchema: z.ZodObject<{
4305
+ code: z.ZodNumber;
4306
+ list: z.ZodArray<z.ZodObject<{
4307
+ type: z.ZodUnion<[z.ZodLiteral<"flash">, z.ZodLiteral<"SD0">]>;
4308
+ state: z.ZodString;
4309
+ }, "strip", z.ZodTypeAny, {
4310
+ type: "flash" | "SD0";
4311
+ state: string;
4312
+ }, {
4313
+ type: "flash" | "SD0";
4314
+ state: string;
4315
+ }>, "many">;
4316
+ }, "strip", z.ZodTypeAny, {
4317
+ code: number;
4318
+ list: {
4319
+ type: "flash" | "SD0";
4320
+ state: string;
4321
+ }[];
4322
+ }, {
4323
+ code: number;
4324
+ list: {
4325
+ type: "flash" | "SD0";
4326
+ state: string;
4327
+ }[];
4328
+ }>;
4329
+ export declare const getStorageResponseSchema: (fileType: TFileType) => z.ZodObject<{
4246
4330
  code: z.ZodNumber;
4247
4331
  list: z.ZodArray<z.ZodObject<{
4248
4332
  type: z.ZodUnion<[z.ZodLiteral<"flash">, z.ZodLiteral<"SD0">, z.ZodLiteral<"ftp">, z.ZodLiteral<"samba">, z.ZodLiteral<"url">]>;
@@ -4266,9 +4350,35 @@ export declare const storageResponseSchema: z.ZodObject<{
4266
4350
  type: "url" | "flash" | "SD0" | "ftp" | "samba";
4267
4351
  state: string;
4268
4352
  }[];
4353
+ }> | z.ZodObject<{
4354
+ code: z.ZodNumber;
4355
+ list: z.ZodArray<z.ZodObject<{
4356
+ type: z.ZodUnion<[z.ZodLiteral<"flash">, z.ZodLiteral<"SD0">]>;
4357
+ state: z.ZodString;
4358
+ }, "strip", z.ZodTypeAny, {
4359
+ type: "flash" | "SD0";
4360
+ state: string;
4361
+ }, {
4362
+ type: "flash" | "SD0";
4363
+ state: string;
4364
+ }>, "many">;
4365
+ }, "strip", z.ZodTypeAny, {
4366
+ code: number;
4367
+ list: {
4368
+ type: "flash" | "SD0";
4369
+ state: string;
4370
+ }[];
4371
+ }, {
4372
+ code: number;
4373
+ list: {
4374
+ type: "flash" | "SD0";
4375
+ state: string;
4376
+ }[];
4269
4377
  }>;
4270
- export type TStorageResponse = z.infer<typeof storageResponseSchema>;
4271
- export declare const fileSchema: z.ZodObject<{
4378
+ export type TImageStorageResponse = z.infer<typeof imageStorageResponseSchema>;
4379
+ export type TFontStorageResponse = z.infer<typeof fontStorageResponseSchema>;
4380
+ export type TStorageResponse<T extends TFileType> = T extends 'image' ? TImageStorageResponse : TFontStorageResponse;
4381
+ export declare const imageFileSchema: z.ZodObject<{
4272
4382
  name: z.ZodString;
4273
4383
  path: z.ZodString;
4274
4384
  storage: z.ZodUnion<[z.ZodLiteral<"flash">, z.ZodLiteral<"SD0">, z.ZodLiteral<"ftp">, z.ZodLiteral<"samba">, z.ZodLiteral<"url">]>;
@@ -4281,8 +4391,20 @@ export declare const fileSchema: z.ZodObject<{
4281
4391
  name: string;
4282
4392
  storage: "url" | "flash" | "SD0" | "ftp" | "samba";
4283
4393
  }>;
4284
- export type TFile = z.infer<typeof fileSchema>;
4285
- export declare const fileListSchema: z.ZodArray<z.ZodObject<{
4394
+ export declare const fontFileSchema: z.ZodObject<{
4395
+ name: z.ZodString;
4396
+ path: z.ZodString;
4397
+ storage: z.ZodUnion<[z.ZodLiteral<"flash">, z.ZodLiteral<"SD0">]>;
4398
+ }, "strip", z.ZodTypeAny, {
4399
+ path: string;
4400
+ name: string;
4401
+ storage: "flash" | "SD0";
4402
+ }, {
4403
+ path: string;
4404
+ name: string;
4405
+ storage: "flash" | "SD0";
4406
+ }>;
4407
+ export declare const getFileSchema: (fileType: TFileType) => z.ZodObject<{
4286
4408
  name: z.ZodString;
4287
4409
  path: z.ZodString;
4288
4410
  storage: z.ZodUnion<[z.ZodLiteral<"flash">, z.ZodLiteral<"SD0">, z.ZodLiteral<"ftp">, z.ZodLiteral<"samba">, z.ZodLiteral<"url">]>;
@@ -4294,9 +4416,77 @@ export declare const fileListSchema: z.ZodArray<z.ZodObject<{
4294
4416
  path: string;
4295
4417
  name: string;
4296
4418
  storage: "url" | "flash" | "SD0" | "ftp" | "samba";
4419
+ }> | z.ZodObject<{
4420
+ name: z.ZodString;
4421
+ path: z.ZodString;
4422
+ storage: z.ZodUnion<[z.ZodLiteral<"flash">, z.ZodLiteral<"SD0">]>;
4423
+ }, "strip", z.ZodTypeAny, {
4424
+ path: string;
4425
+ name: string;
4426
+ storage: "flash" | "SD0";
4427
+ }, {
4428
+ path: string;
4429
+ name: string;
4430
+ storage: "flash" | "SD0";
4431
+ }>;
4432
+ export type TImageFile = z.infer<typeof imageFileSchema>;
4433
+ export type TFontFile = z.infer<typeof fontFileSchema>;
4434
+ export type TFile<T extends TFileType> = T extends 'image' ? TImageFile : TFontFile;
4435
+ export declare const imageFileListSchema: z.ZodArray<z.ZodObject<{
4436
+ name: z.ZodString;
4437
+ path: z.ZodString;
4438
+ storage: z.ZodUnion<[z.ZodLiteral<"flash">, z.ZodLiteral<"SD0">, z.ZodLiteral<"ftp">, z.ZodLiteral<"samba">, z.ZodLiteral<"url">]>;
4439
+ }, "strip", z.ZodTypeAny, {
4440
+ path: string;
4441
+ name: string;
4442
+ storage: "url" | "flash" | "SD0" | "ftp" | "samba";
4443
+ }, {
4444
+ path: string;
4445
+ name: string;
4446
+ storage: "url" | "flash" | "SD0" | "ftp" | "samba";
4447
+ }>, "many">;
4448
+ export declare const fontFileListSchema: z.ZodArray<z.ZodObject<{
4449
+ name: z.ZodString;
4450
+ path: z.ZodString;
4451
+ storage: z.ZodUnion<[z.ZodLiteral<"flash">, z.ZodLiteral<"SD0">]>;
4452
+ }, "strip", z.ZodTypeAny, {
4453
+ path: string;
4454
+ name: string;
4455
+ storage: "flash" | "SD0";
4456
+ }, {
4457
+ path: string;
4458
+ name: string;
4459
+ storage: "flash" | "SD0";
4460
+ }>, "many">;
4461
+ export declare const getFileListSchema: (fileType: TFileType) => z.ZodArray<z.ZodObject<{
4462
+ name: z.ZodString;
4463
+ path: z.ZodString;
4464
+ storage: z.ZodUnion<[z.ZodLiteral<"flash">, z.ZodLiteral<"SD0">, z.ZodLiteral<"ftp">, z.ZodLiteral<"samba">, z.ZodLiteral<"url">]>;
4465
+ }, "strip", z.ZodTypeAny, {
4466
+ path: string;
4467
+ name: string;
4468
+ storage: "url" | "flash" | "SD0" | "ftp" | "samba";
4469
+ }, {
4470
+ path: string;
4471
+ name: string;
4472
+ storage: "url" | "flash" | "SD0" | "ftp" | "samba";
4473
+ }>, "many"> | z.ZodArray<z.ZodObject<{
4474
+ name: z.ZodString;
4475
+ path: z.ZodString;
4476
+ storage: z.ZodUnion<[z.ZodLiteral<"flash">, z.ZodLiteral<"SD0">]>;
4477
+ }, "strip", z.ZodTypeAny, {
4478
+ path: string;
4479
+ name: string;
4480
+ storage: "flash" | "SD0";
4481
+ }, {
4482
+ path: string;
4483
+ name: string;
4484
+ storage: "flash" | "SD0";
4297
4485
  }>, "many">;
4298
- export type TFileList = z.infer<typeof fileListSchema>;
4299
- export declare const fileDataSchema: z.ZodObject<{
4486
+ export type TImageFileList = z.infer<typeof imageFileListSchema>;
4487
+ export type TFontFileList = z.infer<typeof fontFileListSchema>;
4488
+ export type TFileList<T extends TFileType> = T extends 'image' ? TImageFileList : TFontFileList;
4489
+ export declare const imageFileDataSchema: z.ZodObject<{
4300
4490
  code: z.ZodNumber;
4301
4491
  list: z.ZodArray<z.ZodObject<{
4302
4492
  name: z.ZodString;
@@ -4326,5 +4516,96 @@ export declare const fileDataSchema: z.ZodObject<{
4326
4516
  storage: "url" | "flash" | "SD0" | "ftp" | "samba";
4327
4517
  }[];
4328
4518
  }>;
4329
- export type TFileData = z.infer<typeof fileDataSchema>;
4519
+ export declare const fontFileDataSchema: z.ZodObject<{
4520
+ code: z.ZodNumber;
4521
+ list: z.ZodArray<z.ZodObject<{
4522
+ name: z.ZodString;
4523
+ path: z.ZodString;
4524
+ storage: z.ZodUnion<[z.ZodLiteral<"flash">, z.ZodLiteral<"SD0">]>;
4525
+ }, "strip", z.ZodTypeAny, {
4526
+ path: string;
4527
+ name: string;
4528
+ storage: "flash" | "SD0";
4529
+ }, {
4530
+ path: string;
4531
+ name: string;
4532
+ storage: "flash" | "SD0";
4533
+ }>, "many">;
4534
+ }, "strip", z.ZodTypeAny, {
4535
+ code: number;
4536
+ list: {
4537
+ path: string;
4538
+ name: string;
4539
+ storage: "flash" | "SD0";
4540
+ }[];
4541
+ }, {
4542
+ code: number;
4543
+ list: {
4544
+ path: string;
4545
+ name: string;
4546
+ storage: "flash" | "SD0";
4547
+ }[];
4548
+ }>;
4549
+ export declare const getFileDataSchema: (fileType: TFileType) => z.ZodObject<{
4550
+ code: z.ZodNumber;
4551
+ list: z.ZodArray<z.ZodObject<{
4552
+ name: z.ZodString;
4553
+ path: z.ZodString;
4554
+ storage: z.ZodUnion<[z.ZodLiteral<"flash">, z.ZodLiteral<"SD0">, z.ZodLiteral<"ftp">, z.ZodLiteral<"samba">, z.ZodLiteral<"url">]>;
4555
+ }, "strip", z.ZodTypeAny, {
4556
+ path: string;
4557
+ name: string;
4558
+ storage: "url" | "flash" | "SD0" | "ftp" | "samba";
4559
+ }, {
4560
+ path: string;
4561
+ name: string;
4562
+ storage: "url" | "flash" | "SD0" | "ftp" | "samba";
4563
+ }>, "many">;
4564
+ }, "strip", z.ZodTypeAny, {
4565
+ code: number;
4566
+ list: {
4567
+ path: string;
4568
+ name: string;
4569
+ storage: "url" | "flash" | "SD0" | "ftp" | "samba";
4570
+ }[];
4571
+ }, {
4572
+ code: number;
4573
+ list: {
4574
+ path: string;
4575
+ name: string;
4576
+ storage: "url" | "flash" | "SD0" | "ftp" | "samba";
4577
+ }[];
4578
+ }> | z.ZodObject<{
4579
+ code: z.ZodNumber;
4580
+ list: z.ZodArray<z.ZodObject<{
4581
+ name: z.ZodString;
4582
+ path: z.ZodString;
4583
+ storage: z.ZodUnion<[z.ZodLiteral<"flash">, z.ZodLiteral<"SD0">]>;
4584
+ }, "strip", z.ZodTypeAny, {
4585
+ path: string;
4586
+ name: string;
4587
+ storage: "flash" | "SD0";
4588
+ }, {
4589
+ path: string;
4590
+ name: string;
4591
+ storage: "flash" | "SD0";
4592
+ }>, "many">;
4593
+ }, "strip", z.ZodTypeAny, {
4594
+ code: number;
4595
+ list: {
4596
+ path: string;
4597
+ name: string;
4598
+ storage: "flash" | "SD0";
4599
+ }[];
4600
+ }, {
4601
+ code: number;
4602
+ list: {
4603
+ path: string;
4604
+ name: string;
4605
+ storage: "flash" | "SD0";
4606
+ }[];
4607
+ }>;
4608
+ export type TImageFileData = z.infer<typeof imageFileDataSchema>;
4609
+ export type TFontFileData = z.infer<typeof fontFileDataSchema>;
4610
+ export type TFileData<T extends TFileType> = T extends 'image' ? TImageFileData : TFontFileData;
4330
4611
  export type TOverlayListItem = z.infer<typeof overlaySchema>;