bilitoolkit-ui 1.0.0 → 1.0.1

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/dist/index.d.ts CHANGED
@@ -10,6 +10,7 @@ import { ComponentProvideOptions } from 'vue';
10
10
  import { ComputedRef } from 'vue';
11
11
  import { DefaultRow } from 'element-plus/es/components/table/src/table/defaults.mjs';
12
12
  import { DefineComponent } from 'vue';
13
+ import { DmFileFormat } from 'bilitoolkit-types';
13
14
  import { DownloadResourceType } from 'bilitoolkit-types';
14
15
  import { DownloadTask } from 'bilitoolkit-types';
15
16
  import { DownloadTaskStatus } from 'bilitoolkit-types';
@@ -25,6 +26,7 @@ import { Resolver } from '@ybgnb/utils';
25
26
  import { ShallowRef } from 'vue';
26
27
  import { ShallowUnwrapRef } from 'vue';
27
28
  import { StoreDefinition } from 'pinia';
29
+ import { SubtitleFileFormat } from 'bilitoolkit-types';
28
30
  import { TableInstance } from 'element-plus';
29
31
  import { ToolkitApi } from 'bilitoolkit-types';
30
32
  import { UnwrapRefSimple } from '@vue/reactivity';
@@ -271,14 +273,14 @@ declare function __VLS_template_11(): {
271
273
  face: string;
272
274
  };
273
275
  stat: {
274
- view: number;
275
276
  like: number;
276
277
  coin: number;
277
- favorite: number;
278
278
  share: number;
279
279
  reply: number;
280
280
  aid: number;
281
+ view: number;
281
282
  danmaku: number;
283
+ favorite: number;
282
284
  now_rank: number;
283
285
  his_rank: number;
284
286
  evaluation: string;
@@ -326,10 +328,25 @@ declare function __VLS_template_11(): {
326
328
  codecid: VideoCodecId | 0;
327
329
  };
328
330
  } | {
329
- videoQuality: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
330
- videoCodec: VideoCodecId;
331
- video: {
332
- id: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
331
+ videoPart: {
332
+ cid: number;
333
+ page: number;
334
+ from: "vupload" | "hunan" | "qq";
335
+ part: string;
336
+ duration: number;
337
+ vid?: string | undefined;
338
+ weblink?: string | undefined;
339
+ dimension?: {
340
+ width: number;
341
+ height: number;
342
+ rotate: 0 | 1;
343
+ } | undefined;
344
+ first_frame: string;
345
+ };
346
+ format: DmFileFormat;
347
+ audioQuality: 30216 | 30280 | 30232 | 30250 | 30251;
348
+ audio: {
349
+ id: 30216 | 30280 | 30232 | 30250 | 30251;
333
350
  baseUrl?: string | undefined;
334
351
  base_url: string;
335
352
  backupUrl?: string[] | undefined;
@@ -355,6 +372,8 @@ declare function __VLS_template_11(): {
355
372
  } | undefined;
356
373
  codecid: VideoCodecId | 0;
357
374
  };
375
+ } | {
376
+ coverUrl: string;
358
377
  audioQuality: 30216 | 30280 | 30232 | 30250 | 30251;
359
378
  audio: {
360
379
  id: 30216 | 30280 | 30232 | 30250 | 30251;
@@ -384,10 +403,10 @@ declare function __VLS_template_11(): {
384
403
  codecid: VideoCodecId | 0;
385
404
  };
386
405
  } | {
387
- coverUrl: string;
388
- audioQuality: 30216 | 30280 | 30232 | 30250 | 30251;
389
- audio: {
390
- id: 30216 | 30280 | 30232 | 30250 | 30251;
406
+ videoQuality: 6 | 100 | 80 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
407
+ videoCodec: VideoCodecId;
408
+ video: {
409
+ id: 6 | 100 | 80 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
391
410
  baseUrl?: string | undefined;
392
411
  base_url: string;
393
412
  backupUrl?: string[] | undefined;
@@ -413,19 +432,6 @@ declare function __VLS_template_11(): {
413
432
  } | undefined;
414
433
  codecid: VideoCodecId | 0;
415
434
  };
416
- } | {
417
- subtitleItem: {
418
- id: number;
419
- id_str: string;
420
- lan: string;
421
- lan_doc: string;
422
- is_lock: boolean;
423
- subtitle_url: string;
424
- subtitle_url_v2: string;
425
- type: number;
426
- ai_type: number;
427
- ai_status: number;
428
- };
429
435
  audioQuality: 30216 | 30280 | 30232 | 30250 | 30251;
430
436
  audio: {
431
437
  id: 30216 | 30280 | 30232 | 30250 | 30251;
@@ -455,21 +461,19 @@ declare function __VLS_template_11(): {
455
461
  codecid: VideoCodecId | 0;
456
462
  };
457
463
  } | {
458
- videoPart: {
459
- cid: number;
460
- page: number;
461
- from: "vupload" | "hunan" | "qq";
462
- part: string;
463
- duration: number;
464
- vid?: string | undefined;
465
- weblink?: string | undefined;
466
- dimension?: {
467
- width: number;
468
- height: number;
469
- rotate: 0 | 1;
470
- } | undefined;
471
- first_frame: string;
464
+ subtitleItem: {
465
+ id: number;
466
+ id_str: string;
467
+ lan: string;
468
+ lan_doc: string;
469
+ is_lock: boolean;
470
+ subtitle_url: string;
471
+ subtitle_url_v2: string;
472
+ type: number;
473
+ ai_type: number;
474
+ ai_status: number;
472
475
  };
476
+ format: SubtitleFileFormat;
473
477
  audioQuality: 30216 | 30280 | 30232 | 30250 | 30251;
474
478
  audio: {
475
479
  id: 30216 | 30280 | 30232 | 30250 | 30251;
@@ -503,10 +507,10 @@ declare function __VLS_template_11(): {
503
507
  type: "video";
504
508
  fullFilename: string;
505
509
  source: {
506
- videoQuality: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
510
+ videoQuality: 6 | 100 | 80 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
507
511
  videoCodec: VideoCodecId;
508
512
  video: {
509
- id: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
513
+ id: 6 | 100 | 80 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
510
514
  baseUrl?: string | undefined;
511
515
  base_url: string;
512
516
  backupUrl?: string[] | undefined;
@@ -533,9 +537,26 @@ declare function __VLS_template_11(): {
533
537
  codecid: VideoCodecId | 0;
534
538
  };
535
539
  } | {
536
- audioQuality: 30216 | 30280 | 30232 | 30250 | 30251;
537
- audio: {
538
- id: 30216 | 30280 | 30232 | 30250 | 30251;
540
+ videoPart: {
541
+ cid: number;
542
+ page: number;
543
+ from: "vupload" | "hunan" | "qq";
544
+ part: string;
545
+ duration: number;
546
+ vid?: string | undefined;
547
+ weblink?: string | undefined;
548
+ dimension?: {
549
+ width: number;
550
+ height: number;
551
+ rotate: 0 | 1;
552
+ } | undefined;
553
+ first_frame: string;
554
+ };
555
+ format: DmFileFormat;
556
+ videoQuality: 6 | 100 | 80 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
557
+ videoCodec: VideoCodecId;
558
+ video: {
559
+ id: 6 | 100 | 80 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
539
560
  baseUrl?: string | undefined;
540
561
  base_url: string;
541
562
  backupUrl?: string[] | undefined;
@@ -561,10 +582,12 @@ declare function __VLS_template_11(): {
561
582
  } | undefined;
562
583
  codecid: VideoCodecId | 0;
563
584
  };
564
- videoQuality: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
585
+ } | {
586
+ coverUrl: string;
587
+ videoQuality: 6 | 100 | 80 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
565
588
  videoCodec: VideoCodecId;
566
589
  video: {
567
- id: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
590
+ id: 6 | 100 | 80 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
568
591
  baseUrl?: string | undefined;
569
592
  base_url: string;
570
593
  backupUrl?: string[] | undefined;
@@ -591,11 +614,9 @@ declare function __VLS_template_11(): {
591
614
  codecid: VideoCodecId | 0;
592
615
  };
593
616
  } | {
594
- coverUrl: string;
595
- videoQuality: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
596
- videoCodec: VideoCodecId;
597
- video: {
598
- id: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
617
+ audioQuality: 30216 | 30280 | 30232 | 30250 | 30251;
618
+ audio: {
619
+ id: 30216 | 30280 | 30232 | 30250 | 30251;
599
620
  baseUrl?: string | undefined;
600
621
  base_url: string;
601
622
  backupUrl?: string[] | undefined;
@@ -621,23 +642,10 @@ declare function __VLS_template_11(): {
621
642
  } | undefined;
622
643
  codecid: VideoCodecId | 0;
623
644
  };
624
- } | {
625
- subtitleItem: {
626
- id: number;
627
- id_str: string;
628
- lan: string;
629
- lan_doc: string;
630
- is_lock: boolean;
631
- subtitle_url: string;
632
- subtitle_url_v2: string;
633
- type: number;
634
- ai_type: number;
635
- ai_status: number;
636
- };
637
- videoQuality: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
645
+ videoQuality: 6 | 100 | 80 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
638
646
  videoCodec: VideoCodecId;
639
647
  video: {
640
- id: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
648
+ id: 6 | 100 | 80 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
641
649
  baseUrl?: string | undefined;
642
650
  base_url: string;
643
651
  backupUrl?: string[] | undefined;
@@ -664,25 +672,23 @@ declare function __VLS_template_11(): {
664
672
  codecid: VideoCodecId | 0;
665
673
  };
666
674
  } | {
667
- videoPart: {
668
- cid: number;
669
- page: number;
670
- from: "vupload" | "hunan" | "qq";
671
- part: string;
672
- duration: number;
673
- vid?: string | undefined;
674
- weblink?: string | undefined;
675
- dimension?: {
676
- width: number;
677
- height: number;
678
- rotate: 0 | 1;
679
- } | undefined;
680
- first_frame: string;
675
+ subtitleItem: {
676
+ id: number;
677
+ id_str: string;
678
+ lan: string;
679
+ lan_doc: string;
680
+ is_lock: boolean;
681
+ subtitle_url: string;
682
+ subtitle_url_v2: string;
683
+ type: number;
684
+ ai_type: number;
685
+ ai_status: number;
681
686
  };
682
- videoQuality: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
687
+ format: SubtitleFileFormat;
688
+ videoQuality: 6 | 100 | 80 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
683
689
  videoCodec: VideoCodecId;
684
690
  video: {
685
- id: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
691
+ id: 6 | 100 | 80 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
686
692
  baseUrl?: string | undefined;
687
693
  base_url: string;
688
694
  backupUrl?: string[] | undefined;
@@ -714,6 +720,24 @@ declare function __VLS_template_11(): {
714
720
  fullFilename: string;
715
721
  source: {
716
722
  coverUrl: string;
723
+ } | {
724
+ videoPart: {
725
+ cid: number;
726
+ page: number;
727
+ from: "vupload" | "hunan" | "qq";
728
+ part: string;
729
+ duration: number;
730
+ vid?: string | undefined;
731
+ weblink?: string | undefined;
732
+ dimension?: {
733
+ width: number;
734
+ height: number;
735
+ rotate: 0 | 1;
736
+ } | undefined;
737
+ first_frame: string;
738
+ };
739
+ format: DmFileFormat;
740
+ coverUrl: string;
717
741
  } | {
718
742
  audioQuality: 30216 | 30280 | 30232 | 30250 | 30251;
719
743
  audio: {
@@ -745,10 +769,10 @@ declare function __VLS_template_11(): {
745
769
  };
746
770
  coverUrl: string;
747
771
  } | {
748
- videoQuality: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
772
+ videoQuality: 6 | 100 | 80 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
749
773
  videoCodec: VideoCodecId;
750
774
  video: {
751
- id: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
775
+ id: 6 | 100 | 80 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
752
776
  baseUrl?: string | undefined;
753
777
  base_url: string;
754
778
  backupUrl?: string[] | undefined;
@@ -788,8 +812,13 @@ declare function __VLS_template_11(): {
788
812
  ai_type: number;
789
813
  ai_status: number;
790
814
  };
815
+ format: SubtitleFileFormat;
791
816
  coverUrl: string;
792
- } | {
817
+ };
818
+ } | {
819
+ type: "dm";
820
+ fullFilename: string;
821
+ source: {
793
822
  videoPart: {
794
823
  cid: number;
795
824
  page: number;
@@ -805,12 +834,9 @@ declare function __VLS_template_11(): {
805
834
  } | undefined;
806
835
  first_frame: string;
807
836
  };
837
+ format: DmFileFormat;
838
+ } | {
808
839
  coverUrl: string;
809
- };
810
- } | {
811
- type: "dm";
812
- fullFilename: string;
813
- source: {
814
840
  videoPart: {
815
841
  cid: number;
816
842
  page: number;
@@ -826,6 +852,7 @@ declare function __VLS_template_11(): {
826
852
  } | undefined;
827
853
  first_frame: string;
828
854
  };
855
+ format: DmFileFormat;
829
856
  } | {
830
857
  audioQuality: 30216 | 30280 | 30232 | 30250 | 30251;
831
858
  audio: {
@@ -870,11 +897,12 @@ declare function __VLS_template_11(): {
870
897
  } | undefined;
871
898
  first_frame: string;
872
899
  };
900
+ format: DmFileFormat;
873
901
  } | {
874
- videoQuality: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
902
+ videoQuality: 6 | 100 | 80 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
875
903
  videoCodec: VideoCodecId;
876
904
  video: {
877
- id: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
905
+ id: 6 | 100 | 80 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
878
906
  baseUrl?: string | undefined;
879
907
  base_url: string;
880
908
  backupUrl?: string[] | undefined;
@@ -915,8 +943,21 @@ declare function __VLS_template_11(): {
915
943
  } | undefined;
916
944
  first_frame: string;
917
945
  };
946
+ format: DmFileFormat;
918
947
  } | {
919
- coverUrl: string;
948
+ subtitleItem: {
949
+ id: number;
950
+ id_str: string;
951
+ lan: string;
952
+ lan_doc: string;
953
+ is_lock: boolean;
954
+ subtitle_url: string;
955
+ subtitle_url_v2: string;
956
+ type: number;
957
+ ai_type: number;
958
+ ai_status: number;
959
+ };
960
+ format: "json";
920
961
  videoPart: {
921
962
  cid: number;
922
963
  page: number;
@@ -932,7 +973,11 @@ declare function __VLS_template_11(): {
932
973
  } | undefined;
933
974
  first_frame: string;
934
975
  };
935
- } | {
976
+ };
977
+ } | {
978
+ type: "subtitle";
979
+ fullFilename: string;
980
+ source: {
936
981
  subtitleItem: {
937
982
  id: number;
938
983
  id_str: string;
@@ -945,6 +990,8 @@ declare function __VLS_template_11(): {
945
990
  ai_type: number;
946
991
  ai_status: number;
947
992
  };
993
+ format: SubtitleFileFormat;
994
+ } | {
948
995
  videoPart: {
949
996
  cid: number;
950
997
  page: number;
@@ -960,11 +1007,7 @@ declare function __VLS_template_11(): {
960
1007
  } | undefined;
961
1008
  first_frame: string;
962
1009
  };
963
- };
964
- } | {
965
- type: "subtitle";
966
- fullFilename: string;
967
- source: {
1010
+ format: "json";
968
1011
  subtitleItem: {
969
1012
  id: number;
970
1013
  id_str: string;
@@ -977,6 +1020,21 @@ declare function __VLS_template_11(): {
977
1020
  ai_type: number;
978
1021
  ai_status: number;
979
1022
  };
1023
+ } | {
1024
+ coverUrl: string;
1025
+ subtitleItem: {
1026
+ id: number;
1027
+ id_str: string;
1028
+ lan: string;
1029
+ lan_doc: string;
1030
+ is_lock: boolean;
1031
+ subtitle_url: string;
1032
+ subtitle_url_v2: string;
1033
+ type: number;
1034
+ ai_type: number;
1035
+ ai_status: number;
1036
+ };
1037
+ format: SubtitleFileFormat;
980
1038
  } | {
981
1039
  audioQuality: 30216 | 30280 | 30232 | 30250 | 30251;
982
1040
  audio: {
@@ -1018,11 +1076,12 @@ declare function __VLS_template_11(): {
1018
1076
  ai_type: number;
1019
1077
  ai_status: number;
1020
1078
  };
1079
+ format: SubtitleFileFormat;
1021
1080
  } | {
1022
- videoQuality: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
1081
+ videoQuality: 6 | 100 | 80 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
1023
1082
  videoCodec: VideoCodecId;
1024
1083
  video: {
1025
- id: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
1084
+ id: 6 | 100 | 80 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
1026
1085
  baseUrl?: string | undefined;
1027
1086
  base_url: string;
1028
1087
  backupUrl?: string[] | undefined;
@@ -1060,48 +1119,7 @@ declare function __VLS_template_11(): {
1060
1119
  ai_type: number;
1061
1120
  ai_status: number;
1062
1121
  };
1063
- } | {
1064
- coverUrl: string;
1065
- subtitleItem: {
1066
- id: number;
1067
- id_str: string;
1068
- lan: string;
1069
- lan_doc: string;
1070
- is_lock: boolean;
1071
- subtitle_url: string;
1072
- subtitle_url_v2: string;
1073
- type: number;
1074
- ai_type: number;
1075
- ai_status: number;
1076
- };
1077
- } | {
1078
- videoPart: {
1079
- cid: number;
1080
- page: number;
1081
- from: "vupload" | "hunan" | "qq";
1082
- part: string;
1083
- duration: number;
1084
- vid?: string | undefined;
1085
- weblink?: string | undefined;
1086
- dimension?: {
1087
- width: number;
1088
- height: number;
1089
- rotate: 0 | 1;
1090
- } | undefined;
1091
- first_frame: string;
1092
- };
1093
- subtitleItem: {
1094
- id: number;
1095
- id_str: string;
1096
- lan: string;
1097
- lan_doc: string;
1098
- is_lock: boolean;
1099
- subtitle_url: string;
1100
- subtitle_url_v2: string;
1101
- type: number;
1102
- ai_type: number;
1103
- ai_status: number;
1104
- };
1122
+ format: SubtitleFileFormat;
1105
1123
  };
1106
1124
  })[];
1107
1125
  }[];