@maiyunnet/kebab 9.25.1 → 9.26.0
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 +261 -203
- package/abox/text.d.ts +1 -0
- package/abox/text.js +36 -0
- package/doc/kebab-rag.md +296 -214
- package/index.d.ts +1 -2
- package/index.js +1 -2
- package/lib/session.d.ts +6 -1
- package/lib/session.js +36 -18
- package/lib/text.d.ts +15 -0
- package/lib/text.js +17 -3
- package/package.json +30 -23
- package/sys/ctr.d.ts +5 -3
- package/sys/ctr.js +11 -6
package/doc/kebab-rag.md
CHANGED
|
@@ -484,7 +484,7 @@ index/interfaces/IConfigAi.md
|
|
|
484
484
|
|
|
485
485
|
# Interface: IConfigAi
|
|
486
486
|
|
|
487
|
-
Defined in: [index.ts:
|
|
487
|
+
Defined in: [index.ts:119](https://github.com/maiyunnet/kebab/blob/master/index.ts#L119)
|
|
488
488
|
|
|
489
489
|
AI
|
|
490
490
|
|
|
@@ -494,7 +494,7 @@ AI
|
|
|
494
494
|
|
|
495
495
|
> `optional` **endpoint?**: `string`
|
|
496
496
|
|
|
497
|
-
Defined in: [index.ts:
|
|
497
|
+
Defined in: [index.ts:121](https://github.com/maiyunnet/kebab/blob/master/index.ts#L121)
|
|
498
498
|
|
|
499
499
|
目前只有微软 Azure 有
|
|
500
500
|
|
|
@@ -504,7 +504,7 @@ Defined in: [index.ts:122](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
504
504
|
|
|
505
505
|
> **skey**: `string`
|
|
506
506
|
|
|
507
|
-
Defined in: [index.ts:
|
|
507
|
+
Defined in: [index.ts:122](https://github.com/maiyunnet/kebab/blob/master/index.ts#L122)
|
|
508
508
|
|
|
509
509
|
index/interfaces/IConfigConst.md
|
|
510
510
|
---
|
|
@@ -517,7 +517,7 @@ index/interfaces/IConfigConst.md
|
|
|
517
517
|
|
|
518
518
|
# Interface: IConfigConst
|
|
519
519
|
|
|
520
|
-
Defined in: [index.ts:
|
|
520
|
+
Defined in: [index.ts:182](https://github.com/maiyunnet/kebab/blob/master/index.ts#L182)
|
|
521
521
|
|
|
522
522
|
常量
|
|
523
523
|
|
|
@@ -527,7 +527,7 @@ Defined in: [index.ts:183](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
527
527
|
|
|
528
528
|
> **ctrPath**: `string`
|
|
529
529
|
|
|
530
|
-
Defined in: [index.ts:
|
|
530
|
+
Defined in: [index.ts:218](https://github.com/maiyunnet/kebab/blob/master/index.ts#L218)
|
|
531
531
|
|
|
532
532
|
***
|
|
533
533
|
|
|
@@ -535,7 +535,7 @@ Defined in: [index.ts:219](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
535
535
|
|
|
536
536
|
> **dataPath**: `string`
|
|
537
537
|
|
|
538
|
-
Defined in: [index.ts:
|
|
538
|
+
Defined in: [index.ts:220](https://github.com/maiyunnet/kebab/blob/master/index.ts#L220)
|
|
539
539
|
|
|
540
540
|
***
|
|
541
541
|
|
|
@@ -543,7 +543,7 @@ Defined in: [index.ts:221](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
543
543
|
|
|
544
544
|
> **host**: `string`
|
|
545
545
|
|
|
546
|
-
Defined in: [index.ts:
|
|
546
|
+
Defined in: [index.ts:200](https://github.com/maiyunnet/kebab/blob/master/index.ts#L200)
|
|
547
547
|
|
|
548
548
|
请求头中的主机地址,如 example.com、example.com:8443 或 [::1]:8080;不额外补端口
|
|
549
549
|
|
|
@@ -553,7 +553,7 @@ Defined in: [index.ts:201](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
553
553
|
|
|
554
554
|
> **hostCanonical**: `string`
|
|
555
555
|
|
|
556
|
-
Defined in: [index.ts:
|
|
556
|
+
Defined in: [index.ts:206](https://github.com/maiyunnet/kebab/blob/master/index.ts#L206)
|
|
557
557
|
|
|
558
558
|
用于生成网址的主机地址,仅省略 HTTPS 的 443 和 HTTP 的 80 端口,如 example.com:443 → example.com;保留其他端口和 IPv6 方括号
|
|
559
559
|
|
|
@@ -563,7 +563,7 @@ Defined in: [index.ts:207](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
563
563
|
|
|
564
564
|
> **hostname**: `string`
|
|
565
565
|
|
|
566
|
-
Defined in: [index.ts:
|
|
566
|
+
Defined in: [index.ts:202](https://github.com/maiyunnet/kebab/blob/master/index.ts#L202)
|
|
567
567
|
|
|
568
568
|
主机名,如 example.com 或 ::1,不含端口或 IPv6 方括号
|
|
569
569
|
|
|
@@ -573,7 +573,7 @@ Defined in: [index.ts:203](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
573
573
|
|
|
574
574
|
> **hostport**: `number`
|
|
575
575
|
|
|
576
|
-
Defined in: [index.ts:
|
|
576
|
+
Defined in: [index.ts:204](https://github.com/maiyunnet/kebab/blob/master/index.ts#L204)
|
|
577
577
|
|
|
578
578
|
请求地址中的端口,如 8443;未指定时 HTTPS 为 443、HTTP 为 80,不取本机监听端口
|
|
579
579
|
|
|
@@ -583,7 +583,7 @@ Defined in: [index.ts:205](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
583
583
|
|
|
584
584
|
> **https**: `boolean`
|
|
585
585
|
|
|
586
|
-
Defined in: [index.ts:
|
|
586
|
+
Defined in: [index.ts:198](https://github.com/maiyunnet/kebab/blob/master/index.ts#L198)
|
|
587
587
|
|
|
588
588
|
请求到达 Kebab 时是否使用 HTTPS;通过 HTTP 回源时为 false
|
|
589
589
|
|
|
@@ -593,7 +593,7 @@ Defined in: [index.ts:199](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
593
593
|
|
|
594
594
|
> **miniprogram**: `""` \| `"wechat"`
|
|
595
595
|
|
|
596
|
-
Defined in: [index.ts:
|
|
596
|
+
Defined in: [index.ts:196](https://github.com/maiyunnet/kebab/blob/master/index.ts#L196)
|
|
597
597
|
|
|
598
598
|
***
|
|
599
599
|
|
|
@@ -601,7 +601,7 @@ Defined in: [index.ts:197](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
601
601
|
|
|
602
602
|
> **mobile**: `boolean`
|
|
603
603
|
|
|
604
|
-
Defined in: [index.ts:
|
|
604
|
+
Defined in: [index.ts:194](https://github.com/maiyunnet/kebab/blob/master/index.ts#L194)
|
|
605
605
|
|
|
606
606
|
***
|
|
607
607
|
|
|
@@ -609,7 +609,7 @@ Defined in: [index.ts:195](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
609
609
|
|
|
610
610
|
> **modPath**: `string`
|
|
611
611
|
|
|
612
|
-
Defined in: [index.ts:
|
|
612
|
+
Defined in: [index.ts:217](https://github.com/maiyunnet/kebab/blob/master/index.ts#L217)
|
|
613
613
|
|
|
614
614
|
***
|
|
615
615
|
|
|
@@ -617,7 +617,7 @@ Defined in: [index.ts:218](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
617
617
|
|
|
618
618
|
> **path**: `string`
|
|
619
619
|
|
|
620
|
-
Defined in: [index.ts:
|
|
620
|
+
Defined in: [index.ts:184](https://github.com/maiyunnet/kebab/blob/master/index.ts#L184)
|
|
621
621
|
|
|
622
622
|
不以 / 开头,不含 qs
|
|
623
623
|
|
|
@@ -627,7 +627,7 @@ Defined in: [index.ts:185](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
627
627
|
|
|
628
628
|
> **qs**: `string`
|
|
629
629
|
|
|
630
|
-
Defined in: [index.ts:
|
|
630
|
+
Defined in: [index.ts:186](https://github.com/maiyunnet/kebab/blob/master/index.ts#L186)
|
|
631
631
|
|
|
632
632
|
不含 ? 开头
|
|
633
633
|
|
|
@@ -637,7 +637,7 @@ Defined in: [index.ts:187](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
637
637
|
|
|
638
638
|
> **qss**: `string`
|
|
639
639
|
|
|
640
|
-
Defined in: [index.ts:
|
|
640
|
+
Defined in: [index.ts:188](https://github.com/maiyunnet/kebab/blob/master/index.ts#L188)
|
|
641
641
|
|
|
642
642
|
含 ? 开头
|
|
643
643
|
|
|
@@ -647,7 +647,7 @@ Defined in: [index.ts:189](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
647
647
|
|
|
648
648
|
> **rootPath**: `string`
|
|
649
649
|
|
|
650
|
-
Defined in: [index.ts:
|
|
650
|
+
Defined in: [index.ts:216](https://github.com/maiyunnet/kebab/blob/master/index.ts#L216)
|
|
651
651
|
|
|
652
652
|
***
|
|
653
653
|
|
|
@@ -655,7 +655,7 @@ Defined in: [index.ts:217](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
655
655
|
|
|
656
656
|
> **startMemory**: `number`
|
|
657
657
|
|
|
658
|
-
Defined in: [index.ts:
|
|
658
|
+
Defined in: [index.ts:190](https://github.com/maiyunnet/kebab/blob/master/index.ts#L190)
|
|
659
659
|
|
|
660
660
|
***
|
|
661
661
|
|
|
@@ -663,7 +663,7 @@ Defined in: [index.ts:191](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
663
663
|
|
|
664
664
|
> **startTime**: `bigint`
|
|
665
665
|
|
|
666
|
-
Defined in: [index.ts:
|
|
666
|
+
Defined in: [index.ts:189](https://github.com/maiyunnet/kebab/blob/master/index.ts#L189)
|
|
667
667
|
|
|
668
668
|
***
|
|
669
669
|
|
|
@@ -671,7 +671,7 @@ Defined in: [index.ts:190](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
671
671
|
|
|
672
672
|
> **uri**: [`IUrlParse`](IUrlParse.md)
|
|
673
673
|
|
|
674
|
-
Defined in: [index.ts:
|
|
674
|
+
Defined in: [index.ts:212](https://github.com/maiyunnet/kebab/blob/master/index.ts#L212)
|
|
675
675
|
|
|
676
676
|
***
|
|
677
677
|
|
|
@@ -679,7 +679,7 @@ Defined in: [index.ts:213](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
679
679
|
|
|
680
680
|
> **urlBase**: `string`
|
|
681
681
|
|
|
682
|
-
Defined in: [index.ts:
|
|
682
|
+
Defined in: [index.ts:225](https://github.com/maiyunnet/kebab/blob/master/index.ts#L225)
|
|
683
683
|
|
|
684
684
|
***
|
|
685
685
|
|
|
@@ -687,7 +687,7 @@ Defined in: [index.ts:226](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
687
687
|
|
|
688
688
|
> **urlFull**: `string`
|
|
689
689
|
|
|
690
|
-
Defined in: [index.ts:
|
|
690
|
+
Defined in: [index.ts:227](https://github.com/maiyunnet/kebab/blob/master/index.ts#L227)
|
|
691
691
|
|
|
692
692
|
***
|
|
693
693
|
|
|
@@ -695,7 +695,7 @@ Defined in: [index.ts:228](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
695
695
|
|
|
696
696
|
> **urlOrigin**: `string`
|
|
697
697
|
|
|
698
|
-
Defined in: [index.ts:
|
|
698
|
+
Defined in: [index.ts:211](https://github.com/maiyunnet/kebab/blob/master/index.ts#L211)
|
|
699
699
|
|
|
700
700
|
网址的协议与 hostCanonical,如 https://example.com:8443
|
|
701
701
|
协议可取自 X-Forwarded-Proto,无有效值时使用实际连接协议;不能用它判断实际 TLS 状态。
|
|
@@ -706,7 +706,7 @@ Defined in: [index.ts:212](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
706
706
|
|
|
707
707
|
> **urlStc**: `string`
|
|
708
708
|
|
|
709
|
-
Defined in: [index.ts:
|
|
709
|
+
Defined in: [index.ts:226](https://github.com/maiyunnet/kebab/blob/master/index.ts#L226)
|
|
710
710
|
|
|
711
711
|
***
|
|
712
712
|
|
|
@@ -714,7 +714,7 @@ Defined in: [index.ts:227](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
714
714
|
|
|
715
715
|
> **urlStcFull**: `string`
|
|
716
716
|
|
|
717
|
-
Defined in: [index.ts:
|
|
717
|
+
Defined in: [index.ts:228](https://github.com/maiyunnet/kebab/blob/master/index.ts#L228)
|
|
718
718
|
|
|
719
719
|
***
|
|
720
720
|
|
|
@@ -722,7 +722,7 @@ Defined in: [index.ts:229](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
722
722
|
|
|
723
723
|
> **viewPath**: `string`
|
|
724
724
|
|
|
725
|
-
Defined in: [index.ts:
|
|
725
|
+
Defined in: [index.ts:219](https://github.com/maiyunnet/kebab/blob/master/index.ts#L219)
|
|
726
726
|
|
|
727
727
|
***
|
|
728
728
|
|
|
@@ -730,7 +730,7 @@ Defined in: [index.ts:220](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
730
730
|
|
|
731
731
|
> **wechat**: `boolean`
|
|
732
732
|
|
|
733
|
-
Defined in: [index.ts:
|
|
733
|
+
Defined in: [index.ts:195](https://github.com/maiyunnet/kebab/blob/master/index.ts#L195)
|
|
734
734
|
|
|
735
735
|
***
|
|
736
736
|
|
|
@@ -738,7 +738,7 @@ Defined in: [index.ts:196](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
738
738
|
|
|
739
739
|
> **wsPath**: `string`
|
|
740
740
|
|
|
741
|
-
Defined in: [index.ts:
|
|
741
|
+
Defined in: [index.ts:221](https://github.com/maiyunnet/kebab/blob/master/index.ts#L221)
|
|
742
742
|
|
|
743
743
|
index/interfaces/IConfigDb.md
|
|
744
744
|
---
|
|
@@ -751,7 +751,7 @@ index/interfaces/IConfigDb.md
|
|
|
751
751
|
|
|
752
752
|
# Interface: IConfigDb
|
|
753
753
|
|
|
754
|
-
Defined in: [index.ts:
|
|
754
|
+
Defined in: [index.ts:149](https://github.com/maiyunnet/kebab/blob/master/index.ts#L149)
|
|
755
755
|
|
|
756
756
|
数据库
|
|
757
757
|
|
|
@@ -761,7 +761,7 @@ Defined in: [index.ts:150](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
761
761
|
|
|
762
762
|
> `optional` **charset?**: `string`
|
|
763
763
|
|
|
764
|
-
Defined in: [index.ts:
|
|
764
|
+
Defined in: [index.ts:152](https://github.com/maiyunnet/kebab/blob/master/index.ts#L152)
|
|
765
765
|
|
|
766
766
|
***
|
|
767
767
|
|
|
@@ -769,7 +769,7 @@ Defined in: [index.ts:153](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
769
769
|
|
|
770
770
|
> **host**: `string`
|
|
771
771
|
|
|
772
|
-
Defined in: [index.ts:
|
|
772
|
+
Defined in: [index.ts:150](https://github.com/maiyunnet/kebab/blob/master/index.ts#L150)
|
|
773
773
|
|
|
774
774
|
***
|
|
775
775
|
|
|
@@ -777,7 +777,7 @@ Defined in: [index.ts:151](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
777
777
|
|
|
778
778
|
> `optional` **name?**: `string`
|
|
779
779
|
|
|
780
|
-
Defined in: [index.ts:
|
|
780
|
+
Defined in: [index.ts:153](https://github.com/maiyunnet/kebab/blob/master/index.ts#L153)
|
|
781
781
|
|
|
782
782
|
***
|
|
783
783
|
|
|
@@ -785,7 +785,7 @@ Defined in: [index.ts:154](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
785
785
|
|
|
786
786
|
> **port**: `number`
|
|
787
787
|
|
|
788
|
-
Defined in: [index.ts:
|
|
788
|
+
Defined in: [index.ts:151](https://github.com/maiyunnet/kebab/blob/master/index.ts#L151)
|
|
789
789
|
|
|
790
790
|
***
|
|
791
791
|
|
|
@@ -793,7 +793,7 @@ Defined in: [index.ts:152](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
793
793
|
|
|
794
794
|
> **pwd**: `string`
|
|
795
795
|
|
|
796
|
-
Defined in: [index.ts:
|
|
796
|
+
Defined in: [index.ts:156](https://github.com/maiyunnet/kebab/blob/master/index.ts#L156)
|
|
797
797
|
|
|
798
798
|
***
|
|
799
799
|
|
|
@@ -801,7 +801,7 @@ Defined in: [index.ts:157](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
801
801
|
|
|
802
802
|
> **user**: `string`
|
|
803
803
|
|
|
804
|
-
Defined in: [index.ts:
|
|
804
|
+
Defined in: [index.ts:155](https://github.com/maiyunnet/kebab/blob/master/index.ts#L155)
|
|
805
805
|
|
|
806
806
|
index/interfaces/IConfigDns.md
|
|
807
807
|
---
|
|
@@ -814,7 +814,7 @@ index/interfaces/IConfigDns.md
|
|
|
814
814
|
|
|
815
815
|
# Interface: IConfigDns
|
|
816
816
|
|
|
817
|
-
Defined in: [index.ts:
|
|
817
|
+
Defined in: [index.ts:160](https://github.com/maiyunnet/kebab/blob/master/index.ts#L160)
|
|
818
818
|
|
|
819
819
|
DNS
|
|
820
820
|
|
|
@@ -824,7 +824,7 @@ DNS
|
|
|
824
824
|
|
|
825
825
|
> **sid**: `string`
|
|
826
826
|
|
|
827
|
-
Defined in: [index.ts:
|
|
827
|
+
Defined in: [index.ts:161](https://github.com/maiyunnet/kebab/blob/master/index.ts#L161)
|
|
828
828
|
|
|
829
829
|
***
|
|
830
830
|
|
|
@@ -832,7 +832,7 @@ Defined in: [index.ts:162](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
832
832
|
|
|
833
833
|
> **skey**: `string`
|
|
834
834
|
|
|
835
|
-
Defined in: [index.ts:
|
|
835
|
+
Defined in: [index.ts:162](https://github.com/maiyunnet/kebab/blob/master/index.ts#L162)
|
|
836
836
|
|
|
837
837
|
index/interfaces/IConfigKv.md
|
|
838
838
|
---
|
|
@@ -845,7 +845,7 @@ index/interfaces/IConfigKv.md
|
|
|
845
845
|
|
|
846
846
|
# Interface: IConfigKv
|
|
847
847
|
|
|
848
|
-
Defined in: [index.ts:
|
|
848
|
+
Defined in: [index.ts:166](https://github.com/maiyunnet/kebab/blob/master/index.ts#L166)
|
|
849
849
|
|
|
850
850
|
kv
|
|
851
851
|
|
|
@@ -855,7 +855,7 @@ kv
|
|
|
855
855
|
|
|
856
856
|
> **host**: `string`
|
|
857
857
|
|
|
858
|
-
Defined in: [index.ts:
|
|
858
|
+
Defined in: [index.ts:167](https://github.com/maiyunnet/kebab/blob/master/index.ts#L167)
|
|
859
859
|
|
|
860
860
|
***
|
|
861
861
|
|
|
@@ -863,7 +863,7 @@ Defined in: [index.ts:168](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
863
863
|
|
|
864
864
|
> **index**: `number`
|
|
865
865
|
|
|
866
|
-
Defined in: [index.ts:
|
|
866
|
+
Defined in: [index.ts:169](https://github.com/maiyunnet/kebab/blob/master/index.ts#L169)
|
|
867
867
|
|
|
868
868
|
***
|
|
869
869
|
|
|
@@ -871,7 +871,7 @@ Defined in: [index.ts:170](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
871
871
|
|
|
872
872
|
> **port**: `number`
|
|
873
873
|
|
|
874
|
-
Defined in: [index.ts:
|
|
874
|
+
Defined in: [index.ts:168](https://github.com/maiyunnet/kebab/blob/master/index.ts#L168)
|
|
875
875
|
|
|
876
876
|
***
|
|
877
877
|
|
|
@@ -879,7 +879,7 @@ Defined in: [index.ts:169](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
879
879
|
|
|
880
880
|
> **pre**: `string`
|
|
881
881
|
|
|
882
|
-
Defined in: [index.ts:
|
|
882
|
+
Defined in: [index.ts:170](https://github.com/maiyunnet/kebab/blob/master/index.ts#L170)
|
|
883
883
|
|
|
884
884
|
***
|
|
885
885
|
|
|
@@ -887,7 +887,7 @@ Defined in: [index.ts:171](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
887
887
|
|
|
888
888
|
> **pwd**: `string`
|
|
889
889
|
|
|
890
|
-
Defined in: [index.ts:
|
|
890
|
+
Defined in: [index.ts:173](https://github.com/maiyunnet/kebab/blob/master/index.ts#L173)
|
|
891
891
|
|
|
892
892
|
***
|
|
893
893
|
|
|
@@ -895,7 +895,7 @@ Defined in: [index.ts:174](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
895
895
|
|
|
896
896
|
> **user**: `string`
|
|
897
897
|
|
|
898
|
-
Defined in: [index.ts:
|
|
898
|
+
Defined in: [index.ts:172](https://github.com/maiyunnet/kebab/blob/master/index.ts#L172)
|
|
899
899
|
|
|
900
900
|
index/interfaces/IConfigLang.md
|
|
901
901
|
---
|
|
@@ -908,7 +908,7 @@ index/interfaces/IConfigLang.md
|
|
|
908
908
|
|
|
909
909
|
# Interface: IConfigLang
|
|
910
910
|
|
|
911
|
-
Defined in: [index.ts:
|
|
911
|
+
Defined in: [index.ts:103](https://github.com/maiyunnet/kebab/blob/master/index.ts#L103)
|
|
912
912
|
|
|
913
913
|
语言
|
|
914
914
|
|
|
@@ -918,7 +918,7 @@ Defined in: [index.ts:104](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
918
918
|
|
|
919
919
|
> **direct**: `string`[]
|
|
920
920
|
|
|
921
|
-
Defined in: [index.ts:
|
|
921
|
+
Defined in: [index.ts:105](https://github.com/maiyunnet/kebab/blob/master/index.ts#L105)
|
|
922
922
|
|
|
923
923
|
***
|
|
924
924
|
|
|
@@ -926,7 +926,7 @@ Defined in: [index.ts:106](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
926
926
|
|
|
927
927
|
> **list**: `string`[]
|
|
928
928
|
|
|
929
|
-
Defined in: [index.ts:
|
|
929
|
+
Defined in: [index.ts:104](https://github.com/maiyunnet/kebab/blob/master/index.ts#L104)
|
|
930
930
|
|
|
931
931
|
index/interfaces/IConfig.md
|
|
932
932
|
---
|
|
@@ -939,7 +939,7 @@ index/interfaces/IConfig.md
|
|
|
939
939
|
|
|
940
940
|
# Interface: IConfig
|
|
941
941
|
|
|
942
|
-
Defined in: [index.ts:
|
|
942
|
+
Defined in: [index.ts:51](https://github.com/maiyunnet/kebab/blob/master/index.ts#L51)
|
|
943
943
|
|
|
944
944
|
目录配置文件
|
|
945
945
|
|
|
@@ -953,7 +953,7 @@ Defined in: [index.ts:52](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
953
953
|
|
|
954
954
|
> **ai**: `Record`\<`string`, [`IConfigAi`](IConfigAi.md)\>
|
|
955
955
|
|
|
956
|
-
Defined in: [index.ts:
|
|
956
|
+
Defined in: [index.ts:82](https://github.com/maiyunnet/kebab/blob/master/index.ts#L82)
|
|
957
957
|
|
|
958
958
|
***
|
|
959
959
|
|
|
@@ -961,7 +961,7 @@ Defined in: [index.ts:83](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
961
961
|
|
|
962
962
|
> **const**: [`IConfigConst`](IConfigConst.md)
|
|
963
963
|
|
|
964
|
-
Defined in: [index.ts:
|
|
964
|
+
Defined in: [index.ts:63](https://github.com/maiyunnet/kebab/blob/master/index.ts#L63)
|
|
965
965
|
|
|
966
966
|
***
|
|
967
967
|
|
|
@@ -969,7 +969,7 @@ Defined in: [index.ts:64](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
969
969
|
|
|
970
970
|
> **db**: `Record`\<`string`, \{ `default`: [`IConfigDb`](IConfigDb.md); `read`: [`IConfigDb`](IConfigDb.md); \}\> & `object`
|
|
971
971
|
|
|
972
|
-
Defined in: [index.ts:
|
|
972
|
+
Defined in: [index.ts:64](https://github.com/maiyunnet/kebab/blob/master/index.ts#L64)
|
|
973
973
|
|
|
974
974
|
#### Type Declaration
|
|
975
975
|
|
|
@@ -983,7 +983,7 @@ Defined in: [index.ts:65](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
983
983
|
|
|
984
984
|
> **dns**: `Record`\<`string`, [`IConfigDns`](IConfigDns.md)\>
|
|
985
985
|
|
|
986
|
-
Defined in: [index.ts:
|
|
986
|
+
Defined in: [index.ts:78](https://github.com/maiyunnet/kebab/blob/master/index.ts#L78)
|
|
987
987
|
|
|
988
988
|
***
|
|
989
989
|
|
|
@@ -991,7 +991,7 @@ Defined in: [index.ts:79](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
991
991
|
|
|
992
992
|
> **kv**: [`IConfigKv`](IConfigKv.md)
|
|
993
993
|
|
|
994
|
-
Defined in: [index.ts:
|
|
994
|
+
Defined in: [index.ts:70](https://github.com/maiyunnet/kebab/blob/master/index.ts#L70)
|
|
995
995
|
|
|
996
996
|
***
|
|
997
997
|
|
|
@@ -999,7 +999,7 @@ Defined in: [index.ts:71](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
999
999
|
|
|
1000
1000
|
> **lang**: [`IConfigLang`](IConfigLang.md)
|
|
1001
1001
|
|
|
1002
|
-
Defined in: [index.ts:
|
|
1002
|
+
Defined in: [index.ts:79](https://github.com/maiyunnet/kebab/blob/master/index.ts#L79)
|
|
1003
1003
|
|
|
1004
1004
|
***
|
|
1005
1005
|
|
|
@@ -1007,7 +1007,7 @@ Defined in: [index.ts:80](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1007
1007
|
|
|
1008
1008
|
> **route**: `Record`\<`string`, `string`\>
|
|
1009
1009
|
|
|
1010
|
-
Defined in: [index.ts:
|
|
1010
|
+
Defined in: [index.ts:71](https://github.com/maiyunnet/kebab/blob/master/index.ts#L71)
|
|
1011
1011
|
|
|
1012
1012
|
***
|
|
1013
1013
|
|
|
@@ -1015,7 +1015,7 @@ Defined in: [index.ts:72](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1015
1015
|
|
|
1016
1016
|
> **s3**: `Record`\<`string`, [`IConfigS3`](IConfigS3.md)\>
|
|
1017
1017
|
|
|
1018
|
-
Defined in: [index.ts:
|
|
1018
|
+
Defined in: [index.ts:80](https://github.com/maiyunnet/kebab/blob/master/index.ts#L80)
|
|
1019
1019
|
|
|
1020
1020
|
***
|
|
1021
1021
|
|
|
@@ -1023,7 +1023,7 @@ Defined in: [index.ts:81](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1023
1023
|
|
|
1024
1024
|
> **session**: `object`
|
|
1025
1025
|
|
|
1026
|
-
Defined in: [index.ts:
|
|
1026
|
+
Defined in: [index.ts:72](https://github.com/maiyunnet/kebab/blob/master/index.ts#L72)
|
|
1027
1027
|
|
|
1028
1028
|
#### name
|
|
1029
1029
|
|
|
@@ -1043,7 +1043,7 @@ Defined in: [index.ts:73](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1043
1043
|
|
|
1044
1044
|
> **set**: `object`
|
|
1045
1045
|
|
|
1046
|
-
Defined in: [index.ts:
|
|
1046
|
+
Defined in: [index.ts:52](https://github.com/maiyunnet/kebab/blob/master/index.ts#L52)
|
|
1047
1047
|
|
|
1048
1048
|
#### Index Signature
|
|
1049
1049
|
|
|
@@ -1079,7 +1079,7 @@ Defined in: [index.ts:53](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1079
1079
|
|
|
1080
1080
|
> **sql**: [`IConfigSql`](IConfigSql.md)
|
|
1081
1081
|
|
|
1082
|
-
Defined in: [index.ts:
|
|
1082
|
+
Defined in: [index.ts:77](https://github.com/maiyunnet/kebab/blob/master/index.ts#L77)
|
|
1083
1083
|
|
|
1084
1084
|
***
|
|
1085
1085
|
|
|
@@ -1087,7 +1087,7 @@ Defined in: [index.ts:78](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1087
1087
|
|
|
1088
1088
|
> **turnstile**: [`IConfigTurnstile`](IConfigTurnstile.md)
|
|
1089
1089
|
|
|
1090
|
-
Defined in: [index.ts:
|
|
1090
|
+
Defined in: [index.ts:81](https://github.com/maiyunnet/kebab/blob/master/index.ts#L81)
|
|
1091
1091
|
|
|
1092
1092
|
***
|
|
1093
1093
|
|
|
@@ -1095,7 +1095,7 @@ Defined in: [index.ts:82](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1095
1095
|
|
|
1096
1096
|
> **vector**: [`IConfigVector`](IConfigVector.md)
|
|
1097
1097
|
|
|
1098
|
-
Defined in: [index.ts:
|
|
1098
|
+
Defined in: [index.ts:83](https://github.com/maiyunnet/kebab/blob/master/index.ts#L83)
|
|
1099
1099
|
|
|
1100
1100
|
index/interfaces/IConfigS3.md
|
|
1101
1101
|
---
|
|
@@ -1108,7 +1108,7 @@ index/interfaces/IConfigS3.md
|
|
|
1108
1108
|
|
|
1109
1109
|
# Interface: IConfigS3
|
|
1110
1110
|
|
|
1111
|
-
Defined in: [index.ts:
|
|
1111
|
+
Defined in: [index.ts:109](https://github.com/maiyunnet/kebab/blob/master/index.ts#L109)
|
|
1112
1112
|
|
|
1113
1113
|
对象存储
|
|
1114
1114
|
|
|
@@ -1118,7 +1118,7 @@ Defined in: [index.ts:110](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1118
1118
|
|
|
1119
1119
|
> `optional` **account?**: `string`
|
|
1120
1120
|
|
|
1121
|
-
Defined in: [index.ts:
|
|
1121
|
+
Defined in: [index.ts:111](https://github.com/maiyunnet/kebab/blob/master/index.ts#L111)
|
|
1122
1122
|
|
|
1123
1123
|
cf r2 要用
|
|
1124
1124
|
|
|
@@ -1128,7 +1128,7 @@ cf r2 要用
|
|
|
1128
1128
|
|
|
1129
1129
|
> **bucket**: `string`
|
|
1130
1130
|
|
|
1131
|
-
Defined in: [index.ts:
|
|
1131
|
+
Defined in: [index.ts:115](https://github.com/maiyunnet/kebab/blob/master/index.ts#L115)
|
|
1132
1132
|
|
|
1133
1133
|
***
|
|
1134
1134
|
|
|
@@ -1136,7 +1136,7 @@ Defined in: [index.ts:116](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1136
1136
|
|
|
1137
1137
|
> **region**: `string`
|
|
1138
1138
|
|
|
1139
|
-
Defined in: [index.ts:
|
|
1139
|
+
Defined in: [index.ts:114](https://github.com/maiyunnet/kebab/blob/master/index.ts#L114)
|
|
1140
1140
|
|
|
1141
1141
|
***
|
|
1142
1142
|
|
|
@@ -1144,7 +1144,7 @@ Defined in: [index.ts:115](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1144
1144
|
|
|
1145
1145
|
> **sid**: `string`
|
|
1146
1146
|
|
|
1147
|
-
Defined in: [index.ts:
|
|
1147
|
+
Defined in: [index.ts:112](https://github.com/maiyunnet/kebab/blob/master/index.ts#L112)
|
|
1148
1148
|
|
|
1149
1149
|
***
|
|
1150
1150
|
|
|
@@ -1152,7 +1152,7 @@ Defined in: [index.ts:113](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1152
1152
|
|
|
1153
1153
|
> **skey**: `string`
|
|
1154
1154
|
|
|
1155
|
-
Defined in: [index.ts:
|
|
1155
|
+
Defined in: [index.ts:113](https://github.com/maiyunnet/kebab/blob/master/index.ts#L113)
|
|
1156
1156
|
|
|
1157
1157
|
index/interfaces/IConfigSql.md
|
|
1158
1158
|
---
|
|
@@ -1165,7 +1165,7 @@ index/interfaces/IConfigSql.md
|
|
|
1165
1165
|
|
|
1166
1166
|
# Interface: IConfigSql
|
|
1167
1167
|
|
|
1168
|
-
Defined in: [index.ts:
|
|
1168
|
+
Defined in: [index.ts:177](https://github.com/maiyunnet/kebab/blob/master/index.ts#L177)
|
|
1169
1169
|
|
|
1170
1170
|
sql
|
|
1171
1171
|
|
|
@@ -1175,7 +1175,7 @@ sql
|
|
|
1175
1175
|
|
|
1176
1176
|
> **pre**: `string`
|
|
1177
1177
|
|
|
1178
|
-
Defined in: [index.ts:
|
|
1178
|
+
Defined in: [index.ts:178](https://github.com/maiyunnet/kebab/blob/master/index.ts#L178)
|
|
1179
1179
|
|
|
1180
1180
|
index/interfaces/IConfigTurnstile.md
|
|
1181
1181
|
---
|
|
@@ -1188,7 +1188,7 @@ index/interfaces/IConfigTurnstile.md
|
|
|
1188
1188
|
|
|
1189
1189
|
# Interface: IConfigTurnstile
|
|
1190
1190
|
|
|
1191
|
-
Defined in: [index.ts:
|
|
1191
|
+
Defined in: [index.ts:135](https://github.com/maiyunnet/kebab/blob/master/index.ts#L135)
|
|
1192
1192
|
|
|
1193
1193
|
人机码信息
|
|
1194
1194
|
|
|
@@ -1198,7 +1198,7 @@ Defined in: [index.ts:136](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1198
1198
|
|
|
1199
1199
|
> **CF**: `object`
|
|
1200
1200
|
|
|
1201
|
-
Defined in: [index.ts:
|
|
1201
|
+
Defined in: [index.ts:136](https://github.com/maiyunnet/kebab/blob/master/index.ts#L136)
|
|
1202
1202
|
|
|
1203
1203
|
#### sid
|
|
1204
1204
|
|
|
@@ -1214,7 +1214,7 @@ Defined in: [index.ts:137](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1214
1214
|
|
|
1215
1215
|
> **TENCENT**: `object`
|
|
1216
1216
|
|
|
1217
|
-
Defined in: [index.ts:
|
|
1217
|
+
Defined in: [index.ts:140](https://github.com/maiyunnet/kebab/blob/master/index.ts#L140)
|
|
1218
1218
|
|
|
1219
1219
|
#### aid
|
|
1220
1220
|
|
|
@@ -1243,7 +1243,7 @@ index/interfaces/IConfigVector.md
|
|
|
1243
1243
|
|
|
1244
1244
|
# Interface: IConfigVector
|
|
1245
1245
|
|
|
1246
|
-
Defined in: [index.ts:
|
|
1246
|
+
Defined in: [index.ts:126](https://github.com/maiyunnet/kebab/blob/master/index.ts#L126)
|
|
1247
1247
|
|
|
1248
1248
|
向量数据库
|
|
1249
1249
|
|
|
@@ -1253,7 +1253,7 @@ Defined in: [index.ts:127](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1253
1253
|
|
|
1254
1254
|
> **host**: `string`
|
|
1255
1255
|
|
|
1256
|
-
Defined in: [index.ts:
|
|
1256
|
+
Defined in: [index.ts:127](https://github.com/maiyunnet/kebab/blob/master/index.ts#L127)
|
|
1257
1257
|
|
|
1258
1258
|
***
|
|
1259
1259
|
|
|
@@ -1261,7 +1261,7 @@ Defined in: [index.ts:128](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1261
1261
|
|
|
1262
1262
|
> **name**: `string`
|
|
1263
1263
|
|
|
1264
|
-
Defined in: [index.ts:
|
|
1264
|
+
Defined in: [index.ts:129](https://github.com/maiyunnet/kebab/blob/master/index.ts#L129)
|
|
1265
1265
|
|
|
1266
1266
|
***
|
|
1267
1267
|
|
|
@@ -1269,7 +1269,7 @@ Defined in: [index.ts:130](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1269
1269
|
|
|
1270
1270
|
> **port**: `number`
|
|
1271
1271
|
|
|
1272
|
-
Defined in: [index.ts:
|
|
1272
|
+
Defined in: [index.ts:128](https://github.com/maiyunnet/kebab/blob/master/index.ts#L128)
|
|
1273
1273
|
|
|
1274
1274
|
***
|
|
1275
1275
|
|
|
@@ -1277,7 +1277,7 @@ Defined in: [index.ts:129](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1277
1277
|
|
|
1278
1278
|
> **pwd**: `string`
|
|
1279
1279
|
|
|
1280
|
-
Defined in: [index.ts:
|
|
1280
|
+
Defined in: [index.ts:131](https://github.com/maiyunnet/kebab/blob/master/index.ts#L131)
|
|
1281
1281
|
|
|
1282
1282
|
***
|
|
1283
1283
|
|
|
@@ -1285,7 +1285,7 @@ Defined in: [index.ts:132](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1285
1285
|
|
|
1286
1286
|
> **user**: `string`
|
|
1287
1287
|
|
|
1288
|
-
Defined in: [index.ts:
|
|
1288
|
+
Defined in: [index.ts:130](https://github.com/maiyunnet/kebab/blob/master/index.ts#L130)
|
|
1289
1289
|
|
|
1290
1290
|
index/interfaces/IPostFile.md
|
|
1291
1291
|
---
|
|
@@ -1298,7 +1298,7 @@ index/interfaces/IPostFile.md
|
|
|
1298
1298
|
|
|
1299
1299
|
# Interface: IPostFile
|
|
1300
1300
|
|
|
1301
|
-
Defined in: [index.ts:
|
|
1301
|
+
Defined in: [index.ts:240](https://github.com/maiyunnet/kebab/blob/master/index.ts#L240)
|
|
1302
1302
|
|
|
1303
1303
|
上传的文件信息对象
|
|
1304
1304
|
|
|
@@ -1308,7 +1308,7 @@ Defined in: [index.ts:241](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1308
1308
|
|
|
1309
1309
|
> `readonly` **name**: `string`
|
|
1310
1310
|
|
|
1311
|
-
Defined in: [index.ts:
|
|
1311
|
+
Defined in: [index.ts:241](https://github.com/maiyunnet/kebab/blob/master/index.ts#L241)
|
|
1312
1312
|
|
|
1313
1313
|
***
|
|
1314
1314
|
|
|
@@ -1316,7 +1316,7 @@ Defined in: [index.ts:242](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1316
1316
|
|
|
1317
1317
|
> `readonly` **origin**: `string`
|
|
1318
1318
|
|
|
1319
|
-
Defined in: [index.ts:
|
|
1319
|
+
Defined in: [index.ts:242](https://github.com/maiyunnet/kebab/blob/master/index.ts#L242)
|
|
1320
1320
|
|
|
1321
1321
|
***
|
|
1322
1322
|
|
|
@@ -1324,7 +1324,7 @@ Defined in: [index.ts:243](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1324
1324
|
|
|
1325
1325
|
> `readonly` **path**: `string`
|
|
1326
1326
|
|
|
1327
|
-
Defined in: [index.ts:
|
|
1327
|
+
Defined in: [index.ts:244](https://github.com/maiyunnet/kebab/blob/master/index.ts#L244)
|
|
1328
1328
|
|
|
1329
1329
|
***
|
|
1330
1330
|
|
|
@@ -1332,7 +1332,7 @@ Defined in: [index.ts:245](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1332
1332
|
|
|
1333
1333
|
> `readonly` **size**: `number`
|
|
1334
1334
|
|
|
1335
|
-
Defined in: [index.ts:
|
|
1335
|
+
Defined in: [index.ts:243](https://github.com/maiyunnet/kebab/blob/master/index.ts#L243)
|
|
1336
1336
|
|
|
1337
1337
|
index/interfaces/IUrlParse.md
|
|
1338
1338
|
---
|
|
@@ -1345,7 +1345,7 @@ index/interfaces/IUrlParse.md
|
|
|
1345
1345
|
|
|
1346
1346
|
# Interface: IUrlParse
|
|
1347
1347
|
|
|
1348
|
-
Defined in: [index.ts:
|
|
1348
|
+
Defined in: [index.ts:88](https://github.com/maiyunnet/kebab/blob/master/index.ts#L88)
|
|
1349
1349
|
|
|
1350
1350
|
## Properties
|
|
1351
1351
|
|
|
@@ -1353,7 +1353,7 @@ Defined in: [index.ts:89](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1353
1353
|
|
|
1354
1354
|
> **auth**: `string` \| `null`
|
|
1355
1355
|
|
|
1356
|
-
Defined in: [index.ts:
|
|
1356
|
+
Defined in: [index.ts:90](https://github.com/maiyunnet/kebab/blob/master/index.ts#L90)
|
|
1357
1357
|
|
|
1358
1358
|
***
|
|
1359
1359
|
|
|
@@ -1361,7 +1361,7 @@ Defined in: [index.ts:91](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1361
1361
|
|
|
1362
1362
|
> **hash**: `string` \| `null`
|
|
1363
1363
|
|
|
1364
|
-
Defined in: [index.ts:
|
|
1364
|
+
Defined in: [index.ts:99](https://github.com/maiyunnet/kebab/blob/master/index.ts#L99)
|
|
1365
1365
|
|
|
1366
1366
|
***
|
|
1367
1367
|
|
|
@@ -1369,7 +1369,7 @@ Defined in: [index.ts:100](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1369
1369
|
|
|
1370
1370
|
> **host**: `string` \| `null`
|
|
1371
1371
|
|
|
1372
|
-
Defined in: [index.ts:
|
|
1372
|
+
Defined in: [index.ts:93](https://github.com/maiyunnet/kebab/blob/master/index.ts#L93)
|
|
1373
1373
|
|
|
1374
1374
|
***
|
|
1375
1375
|
|
|
@@ -1377,7 +1377,7 @@ Defined in: [index.ts:94](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1377
1377
|
|
|
1378
1378
|
> **hostname**: `string` \| `null`
|
|
1379
1379
|
|
|
1380
|
-
Defined in: [index.ts:
|
|
1380
|
+
Defined in: [index.ts:94](https://github.com/maiyunnet/kebab/blob/master/index.ts#L94)
|
|
1381
1381
|
|
|
1382
1382
|
***
|
|
1383
1383
|
|
|
@@ -1385,7 +1385,7 @@ Defined in: [index.ts:95](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1385
1385
|
|
|
1386
1386
|
> **pass**: `string` \| `null`
|
|
1387
1387
|
|
|
1388
|
-
Defined in: [index.ts:
|
|
1388
|
+
Defined in: [index.ts:92](https://github.com/maiyunnet/kebab/blob/master/index.ts#L92)
|
|
1389
1389
|
|
|
1390
1390
|
***
|
|
1391
1391
|
|
|
@@ -1393,7 +1393,7 @@ Defined in: [index.ts:93](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1393
1393
|
|
|
1394
1394
|
> **path**: `string` \| `null`
|
|
1395
1395
|
|
|
1396
|
-
Defined in: [index.ts:
|
|
1396
|
+
Defined in: [index.ts:97](https://github.com/maiyunnet/kebab/blob/master/index.ts#L97)
|
|
1397
1397
|
|
|
1398
1398
|
***
|
|
1399
1399
|
|
|
@@ -1401,7 +1401,7 @@ Defined in: [index.ts:98](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1401
1401
|
|
|
1402
1402
|
> **pathname**: `string`
|
|
1403
1403
|
|
|
1404
|
-
Defined in: [index.ts:
|
|
1404
|
+
Defined in: [index.ts:96](https://github.com/maiyunnet/kebab/blob/master/index.ts#L96)
|
|
1405
1405
|
|
|
1406
1406
|
***
|
|
1407
1407
|
|
|
@@ -1409,7 +1409,7 @@ Defined in: [index.ts:97](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1409
1409
|
|
|
1410
1410
|
> **port**: `string` \| `null`
|
|
1411
1411
|
|
|
1412
|
-
Defined in: [index.ts:
|
|
1412
|
+
Defined in: [index.ts:95](https://github.com/maiyunnet/kebab/blob/master/index.ts#L95)
|
|
1413
1413
|
|
|
1414
1414
|
***
|
|
1415
1415
|
|
|
@@ -1417,7 +1417,7 @@ Defined in: [index.ts:96](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1417
1417
|
|
|
1418
1418
|
> **protocol**: `string` \| `null`
|
|
1419
1419
|
|
|
1420
|
-
Defined in: [index.ts:
|
|
1420
|
+
Defined in: [index.ts:89](https://github.com/maiyunnet/kebab/blob/master/index.ts#L89)
|
|
1421
1421
|
|
|
1422
1422
|
***
|
|
1423
1423
|
|
|
@@ -1425,7 +1425,7 @@ Defined in: [index.ts:90](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1425
1425
|
|
|
1426
1426
|
> **query**: `string` \| `null`
|
|
1427
1427
|
|
|
1428
|
-
Defined in: [index.ts:
|
|
1428
|
+
Defined in: [index.ts:98](https://github.com/maiyunnet/kebab/blob/master/index.ts#L98)
|
|
1429
1429
|
|
|
1430
1430
|
***
|
|
1431
1431
|
|
|
@@ -1433,7 +1433,7 @@ Defined in: [index.ts:99](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1433
1433
|
|
|
1434
1434
|
> **user**: `string` \| `null`
|
|
1435
1435
|
|
|
1436
|
-
Defined in: [index.ts:
|
|
1436
|
+
Defined in: [index.ts:91](https://github.com/maiyunnet/kebab/blob/master/index.ts#L91)
|
|
1437
1437
|
|
|
1438
1438
|
index/interfaces/IVhost.md
|
|
1439
1439
|
---
|
|
@@ -1446,7 +1446,7 @@ index/interfaces/IVhost.md
|
|
|
1446
1446
|
|
|
1447
1447
|
# Interface: IVhost
|
|
1448
1448
|
|
|
1449
|
-
Defined in: [index.ts:
|
|
1449
|
+
Defined in: [index.ts:232](https://github.com/maiyunnet/kebab/blob/master/index.ts#L232)
|
|
1450
1450
|
|
|
1451
1451
|
虚拟机配置对象
|
|
1452
1452
|
|
|
@@ -1456,7 +1456,7 @@ Defined in: [index.ts:233](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1456
1456
|
|
|
1457
1457
|
> `readonly` **domains**: `string`[]
|
|
1458
1458
|
|
|
1459
|
-
Defined in: [index.ts:
|
|
1459
|
+
Defined in: [index.ts:234](https://github.com/maiyunnet/kebab/blob/master/index.ts#L234)
|
|
1460
1460
|
|
|
1461
1461
|
***
|
|
1462
1462
|
|
|
@@ -1464,7 +1464,7 @@ Defined in: [index.ts:235](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1464
1464
|
|
|
1465
1465
|
> `readonly` `optional` **name?**: `string`
|
|
1466
1466
|
|
|
1467
|
-
Defined in: [index.ts:
|
|
1467
|
+
Defined in: [index.ts:233](https://github.com/maiyunnet/kebab/blob/master/index.ts#L233)
|
|
1468
1468
|
|
|
1469
1469
|
***
|
|
1470
1470
|
|
|
@@ -1472,7 +1472,7 @@ Defined in: [index.ts:234](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1472
1472
|
|
|
1473
1473
|
> `readonly` `optional` **remark?**: `string`
|
|
1474
1474
|
|
|
1475
|
-
Defined in: [index.ts:
|
|
1475
|
+
Defined in: [index.ts:236](https://github.com/maiyunnet/kebab/blob/master/index.ts#L236)
|
|
1476
1476
|
|
|
1477
1477
|
***
|
|
1478
1478
|
|
|
@@ -1480,7 +1480,7 @@ Defined in: [index.ts:237](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1480
1480
|
|
|
1481
1481
|
> `readonly` **root**: `string`
|
|
1482
1482
|
|
|
1483
|
-
Defined in: [index.ts:
|
|
1483
|
+
Defined in: [index.ts:235](https://github.com/maiyunnet/kebab/blob/master/index.ts#L235)
|
|
1484
1484
|
|
|
1485
1485
|
index.md
|
|
1486
1486
|
---
|
|
@@ -1554,7 +1554,7 @@ index/type-aliases/DbValue.md
|
|
|
1554
1554
|
|
|
1555
1555
|
> **DbValue** = `string` \| `number` \| `null` \| `Record`\<`string`, [`Json`](Json.md)\>
|
|
1556
1556
|
|
|
1557
|
-
Defined in: [index.ts:
|
|
1557
|
+
Defined in: [index.ts:48](https://github.com/maiyunnet/kebab/blob/master/index.ts#L48)
|
|
1558
1558
|
|
|
1559
1559
|
数据库值的类型
|
|
1560
1560
|
|
|
@@ -1571,7 +1571,7 @@ index/type-aliases/Json.md
|
|
|
1571
1571
|
|
|
1572
1572
|
> **Json** = `any`
|
|
1573
1573
|
|
|
1574
|
-
Defined in: [index.ts:
|
|
1574
|
+
Defined in: [index.ts:45](https://github.com/maiyunnet/kebab/blob/master/index.ts#L45)
|
|
1575
1575
|
|
|
1576
1576
|
除非确定是不可知的 Json,否则不能使用
|
|
1577
1577
|
|
|
@@ -1588,7 +1588,7 @@ index/variables/CERT_CWD.md
|
|
|
1588
1588
|
|
|
1589
1589
|
> `const` **CERT\_CWD**: `string`
|
|
1590
1590
|
|
|
1591
|
-
Defined in: [index.ts:
|
|
1591
|
+
Defined in: [index.ts:32](https://github.com/maiyunnet/kebab/blob/master/index.ts#L32)
|
|
1592
1592
|
|
|
1593
1593
|
index/variables/CONF_CWD.md
|
|
1594
1594
|
---
|
|
@@ -1603,7 +1603,7 @@ index/variables/CONF_CWD.md
|
|
|
1603
1603
|
|
|
1604
1604
|
> `const` **CONF\_CWD**: `string`
|
|
1605
1605
|
|
|
1606
|
-
Defined in: [index.ts:
|
|
1606
|
+
Defined in: [index.ts:31](https://github.com/maiyunnet/kebab/blob/master/index.ts#L31)
|
|
1607
1607
|
|
|
1608
1608
|
index/variables/FTMP_CWD.md
|
|
1609
1609
|
---
|
|
@@ -1618,7 +1618,7 @@ index/variables/FTMP_CWD.md
|
|
|
1618
1618
|
|
|
1619
1619
|
> `const` **FTMP\_CWD**: `string`
|
|
1620
1620
|
|
|
1621
|
-
Defined in: [index.ts:
|
|
1621
|
+
Defined in: [index.ts:39](https://github.com/maiyunnet/kebab/blob/master/index.ts#L39)
|
|
1622
1622
|
|
|
1623
1623
|
index/variables/IND_CWD.md
|
|
1624
1624
|
---
|
|
@@ -1633,7 +1633,7 @@ index/variables/IND_CWD.md
|
|
|
1633
1633
|
|
|
1634
1634
|
> `const` **IND\_CWD**: `string`
|
|
1635
1635
|
|
|
1636
|
-
Defined in: [index.ts:
|
|
1636
|
+
Defined in: [index.ts:38](https://github.com/maiyunnet/kebab/blob/master/index.ts#L38)
|
|
1637
1637
|
|
|
1638
1638
|
index/variables/LIB_CWD.md
|
|
1639
1639
|
---
|
|
@@ -1648,7 +1648,7 @@ index/variables/LIB_CWD.md
|
|
|
1648
1648
|
|
|
1649
1649
|
> `const` **LIB\_CWD**: `string`
|
|
1650
1650
|
|
|
1651
|
-
Defined in: [index.ts:
|
|
1651
|
+
Defined in: [index.ts:35](https://github.com/maiyunnet/kebab/blob/master/index.ts#L35)
|
|
1652
1652
|
|
|
1653
1653
|
用户的根 LIB,以 / 结尾
|
|
1654
1654
|
|
|
@@ -1665,7 +1665,7 @@ index/variables/LIB_PATH.md
|
|
|
1665
1665
|
|
|
1666
1666
|
> `const` **LIB\_PATH**: `string`
|
|
1667
1667
|
|
|
1668
|
-
Defined in: [index.ts:
|
|
1668
|
+
Defined in: [index.ts:20](https://github.com/maiyunnet/kebab/blob/master/index.ts#L20)
|
|
1669
1669
|
|
|
1670
1670
|
框架的 LIB,以 / 结尾
|
|
1671
1671
|
|
|
@@ -1682,7 +1682,7 @@ index/variables/LOG_CWD.md
|
|
|
1682
1682
|
|
|
1683
1683
|
> `const` **LOG\_CWD**: `string`
|
|
1684
1684
|
|
|
1685
|
-
Defined in: [index.ts:
|
|
1685
|
+
Defined in: [index.ts:36](https://github.com/maiyunnet/kebab/blob/master/index.ts#L36)
|
|
1686
1686
|
|
|
1687
1687
|
index/variables/MOD_CWD.md
|
|
1688
1688
|
---
|
|
@@ -1697,7 +1697,7 @@ index/variables/MOD_CWD.md
|
|
|
1697
1697
|
|
|
1698
1698
|
> `const` **MOD\_CWD**: `string`
|
|
1699
1699
|
|
|
1700
|
-
Defined in: [index.ts:
|
|
1700
|
+
Defined in: [index.ts:40](https://github.com/maiyunnet/kebab/blob/master/index.ts#L40)
|
|
1701
1701
|
|
|
1702
1702
|
index/variables/ROOT_CWD.md
|
|
1703
1703
|
---
|
|
@@ -1712,7 +1712,7 @@ index/variables/ROOT_CWD.md
|
|
|
1712
1712
|
|
|
1713
1713
|
> `const` **ROOT\_CWD**: `string`
|
|
1714
1714
|
|
|
1715
|
-
Defined in: [index.ts:
|
|
1715
|
+
Defined in: [index.ts:30](https://github.com/maiyunnet/kebab/blob/master/index.ts#L30)
|
|
1716
1716
|
|
|
1717
1717
|
执行根目录,以 / 结尾
|
|
1718
1718
|
|
|
@@ -1729,7 +1729,7 @@ index/variables/ROOT_PATH.md
|
|
|
1729
1729
|
|
|
1730
1730
|
> `const` **ROOT\_PATH**: `string`
|
|
1731
1731
|
|
|
1732
|
-
Defined in: [index.ts:
|
|
1732
|
+
Defined in: [index.ts:18](https://github.com/maiyunnet/kebab/blob/master/index.ts#L18)
|
|
1733
1733
|
|
|
1734
1734
|
框架根目录,以 / 结尾
|
|
1735
1735
|
|
|
@@ -1746,7 +1746,7 @@ index/variables/SYS_PATH.md
|
|
|
1746
1746
|
|
|
1747
1747
|
> `const` **SYS\_PATH**: `string`
|
|
1748
1748
|
|
|
1749
|
-
Defined in: [index.ts:
|
|
1749
|
+
Defined in: [index.ts:21](https://github.com/maiyunnet/kebab/blob/master/index.ts#L21)
|
|
1750
1750
|
|
|
1751
1751
|
index/variables/VER.md
|
|
1752
1752
|
---
|
|
@@ -1759,9 +1759,9 @@ index/variables/VER.md
|
|
|
1759
1759
|
|
|
1760
1760
|
# Variable: VER
|
|
1761
1761
|
|
|
1762
|
-
> `const` **VER**: `"9.
|
|
1762
|
+
> `const` **VER**: `"9.26.0"` = `'9.26.0'`
|
|
1763
1763
|
|
|
1764
|
-
Defined in: [index.ts:
|
|
1764
|
+
Defined in: [index.ts:9](https://github.com/maiyunnet/kebab/blob/master/index.ts#L9)
|
|
1765
1765
|
|
|
1766
1766
|
当前系统版本号
|
|
1767
1767
|
|
|
@@ -1778,7 +1778,7 @@ index/variables/VHOST_CWD.md
|
|
|
1778
1778
|
|
|
1779
1779
|
> `const` **VHOST\_CWD**: `string`
|
|
1780
1780
|
|
|
1781
|
-
Defined in: [index.ts:
|
|
1781
|
+
Defined in: [index.ts:33](https://github.com/maiyunnet/kebab/blob/master/index.ts#L33)
|
|
1782
1782
|
|
|
1783
1783
|
index/variables/WWW_CWD.md
|
|
1784
1784
|
---
|
|
@@ -1793,7 +1793,7 @@ index/variables/WWW_CWD.md
|
|
|
1793
1793
|
|
|
1794
1794
|
> `const` **WWW\_CWD**: `string`
|
|
1795
1795
|
|
|
1796
|
-
Defined in: [index.ts:
|
|
1796
|
+
Defined in: [index.ts:37](https://github.com/maiyunnet/kebab/blob/master/index.ts#L37)
|
|
1797
1797
|
|
|
1798
1798
|
lib/ai/classes/Ai.md
|
|
1799
1799
|
---
|
|
@@ -5218,7 +5218,7 @@ zip 文件
|
|
|
5218
5218
|
|
|
5219
5219
|
### config?
|
|
5220
5220
|
|
|
5221
|
-
`string` \| `boolean`
|
|
5221
|
+
`string` \| `boolean` = `true`
|
|
5222
5222
|
|
|
5223
5223
|
是否自动更新 config 的 set.staticVer 为最新,默认更新,'0'|false-不更新,'1'|true-更新kebab.json若有,'2'|true-更新全局
|
|
5224
5224
|
|
|
@@ -12690,7 +12690,7 @@ The `expects` values.
|
|
|
12690
12690
|
|
|
12691
12691
|
### separator
|
|
12692
12692
|
|
|
12693
|
-
|
|
12693
|
+
"\|" \| `"&"`
|
|
12694
12694
|
|
|
12695
12695
|
The separator.
|
|
12696
12696
|
|
|
@@ -112124,7 +112124,7 @@ lib/core/namespaces/v/type-aliases/Class.md
|
|
|
112124
112124
|
|
|
112125
112125
|
# Type Alias: Class
|
|
112126
112126
|
|
|
112127
|
-
> **Class** = (...`args`) => `any`
|
|
112127
|
+
> **Class** = new (...`args`) => `any`
|
|
112128
112128
|
|
|
112129
112129
|
Defined in: node\_modules/valibot/dist/index.d.mts:4502
|
|
112130
112130
|
|
|
@@ -113591,6 +113591,16 @@ Defined in: node\_modules/valibot/dist/index.d.mts:112
|
|
|
113591
113591
|
|
|
113592
113592
|
Schema with cache async type.
|
|
113593
113593
|
|
|
113594
|
+
## Type Parameters
|
|
113595
|
+
|
|
113596
|
+
### TSchema
|
|
113597
|
+
|
|
113598
|
+
`TSchema` *extends* [`BaseSchema`](../interfaces/BaseSchema.md)\<`unknown`, `unknown`, [`BaseIssue`](../interfaces/BaseIssue.md)\<`unknown`\>\> \| [`BaseSchemaAsync`](../interfaces/BaseSchemaAsync.md)\<`unknown`, `unknown`, [`BaseIssue`](../interfaces/BaseIssue.md)\<`unknown`\>\>
|
|
113599
|
+
|
|
113600
|
+
### TCacheConfig
|
|
113601
|
+
|
|
113602
|
+
`TCacheConfig` *extends* [`CacheConfig`](../interfaces/CacheConfig.md) \| `undefined`
|
|
113603
|
+
|
|
113594
113604
|
## Type Declaration
|
|
113595
113605
|
|
|
113596
113606
|
### ~run
|
|
@@ -113647,16 +113657,6 @@ The cache instance.
|
|
|
113647
113657
|
|
|
113648
113658
|
The cache config.
|
|
113649
113659
|
|
|
113650
|
-
## Type Parameters
|
|
113651
|
-
|
|
113652
|
-
### TSchema
|
|
113653
|
-
|
|
113654
|
-
`TSchema` *extends* [`BaseSchema`](../interfaces/BaseSchema.md)\<`unknown`, `unknown`, [`BaseIssue`](../interfaces/BaseIssue.md)\<`unknown`\>\> \| [`BaseSchemaAsync`](../interfaces/BaseSchemaAsync.md)\<`unknown`, `unknown`, [`BaseIssue`](../interfaces/BaseIssue.md)\<`unknown`\>\>
|
|
113655
|
-
|
|
113656
|
-
### TCacheConfig
|
|
113657
|
-
|
|
113658
|
-
`TCacheConfig` *extends* [`CacheConfig`](../interfaces/CacheConfig.md) \| `undefined`
|
|
113659
|
-
|
|
113660
113660
|
lib/core/namespaces/v/type-aliases/SchemaWithCache.md
|
|
113661
113661
|
---
|
|
113662
113662
|
|
|
@@ -113676,6 +113676,16 @@ Defined in: node\_modules/valibot/dist/index.d.mts:64
|
|
|
113676
113676
|
|
|
113677
113677
|
Schema with cache type.
|
|
113678
113678
|
|
|
113679
|
+
## Type Parameters
|
|
113680
|
+
|
|
113681
|
+
### TSchema
|
|
113682
|
+
|
|
113683
|
+
`TSchema` *extends* [`BaseSchema`](../interfaces/BaseSchema.md)\<`unknown`, `unknown`, [`BaseIssue`](../interfaces/BaseIssue.md)\<`unknown`\>\>
|
|
113684
|
+
|
|
113685
|
+
### TCacheConfig
|
|
113686
|
+
|
|
113687
|
+
`TCacheConfig` *extends* [`CacheConfig`](../interfaces/CacheConfig.md) \| `undefined`
|
|
113688
|
+
|
|
113679
113689
|
## Type Declaration
|
|
113680
113690
|
|
|
113681
113691
|
### cache
|
|
@@ -113690,16 +113700,6 @@ The cache instance.
|
|
|
113690
113700
|
|
|
113691
113701
|
The cache config.
|
|
113692
113702
|
|
|
113693
|
-
## Type Parameters
|
|
113694
|
-
|
|
113695
|
-
### TSchema
|
|
113696
|
-
|
|
113697
|
-
`TSchema` *extends* [`BaseSchema`](../interfaces/BaseSchema.md)\<`unknown`, `unknown`, [`BaseIssue`](../interfaces/BaseIssue.md)\<`unknown`\>\>
|
|
113698
|
-
|
|
113699
|
-
### TCacheConfig
|
|
113700
|
-
|
|
113701
|
-
`TCacheConfig` *extends* [`CacheConfig`](../interfaces/CacheConfig.md) \| `undefined`
|
|
113702
|
-
|
|
113703
113703
|
lib/core/namespaces/v/type-aliases/SchemaWithFallbackAsync.md
|
|
113704
113704
|
---
|
|
113705
113705
|
|
|
@@ -113717,6 +113717,16 @@ Defined in: node\_modules/valibot/dist/index.d.mts:218
|
|
|
113717
113717
|
|
|
113718
113718
|
Schema with fallback async type.
|
|
113719
113719
|
|
|
113720
|
+
## Type Parameters
|
|
113721
|
+
|
|
113722
|
+
### TSchema
|
|
113723
|
+
|
|
113724
|
+
`TSchema` *extends* [`BaseSchema`](../interfaces/BaseSchema.md)\<`unknown`, `unknown`, [`BaseIssue`](../interfaces/BaseIssue.md)\<`unknown`\>\> \| [`BaseSchemaAsync`](../interfaces/BaseSchemaAsync.md)\<`unknown`, `unknown`, [`BaseIssue`](../interfaces/BaseIssue.md)\<`unknown`\>\>
|
|
113725
|
+
|
|
113726
|
+
### TFallback$1
|
|
113727
|
+
|
|
113728
|
+
`TFallback$1` *extends* [`FallbackAsync`](FallbackAsync.md)\<`TSchema`\>
|
|
113729
|
+
|
|
113720
113730
|
## Type Declaration
|
|
113721
113731
|
|
|
113722
113732
|
### ~run
|
|
@@ -113767,16 +113777,6 @@ Whether it's async.
|
|
|
113767
113777
|
|
|
113768
113778
|
The fallback value.
|
|
113769
113779
|
|
|
113770
|
-
## Type Parameters
|
|
113771
|
-
|
|
113772
|
-
### TSchema
|
|
113773
|
-
|
|
113774
|
-
`TSchema` *extends* [`BaseSchema`](../interfaces/BaseSchema.md)\<`unknown`, `unknown`, [`BaseIssue`](../interfaces/BaseIssue.md)\<`unknown`\>\> \| [`BaseSchemaAsync`](../interfaces/BaseSchemaAsync.md)\<`unknown`, `unknown`, [`BaseIssue`](../interfaces/BaseIssue.md)\<`unknown`\>\>
|
|
113775
|
-
|
|
113776
|
-
### TFallback$1
|
|
113777
|
-
|
|
113778
|
-
`TFallback$1` *extends* [`FallbackAsync`](FallbackAsync.md)\<`TSchema`\>
|
|
113779
|
-
|
|
113780
113780
|
lib/core/namespaces/v/type-aliases/SchemaWithFallback.md
|
|
113781
113781
|
---
|
|
113782
113782
|
|
|
@@ -113794,14 +113794,6 @@ Defined in: node\_modules/valibot/dist/index.d.mts:194
|
|
|
113794
113794
|
|
|
113795
113795
|
Schema with fallback type.
|
|
113796
113796
|
|
|
113797
|
-
## Type Declaration
|
|
113798
|
-
|
|
113799
|
-
### fallback
|
|
113800
|
-
|
|
113801
|
-
> `readonly` **fallback**: `TFallback$1`
|
|
113802
|
-
|
|
113803
|
-
The fallback value.
|
|
113804
|
-
|
|
113805
113797
|
## Type Parameters
|
|
113806
113798
|
|
|
113807
113799
|
### TSchema
|
|
@@ -113812,6 +113804,14 @@ The fallback value.
|
|
|
113812
113804
|
|
|
113813
113805
|
`TFallback$1` *extends* [`Fallback`](Fallback.md)\<`TSchema`\>
|
|
113814
113806
|
|
|
113807
|
+
## Type Declaration
|
|
113808
|
+
|
|
113809
|
+
### fallback
|
|
113810
|
+
|
|
113811
|
+
> `readonly` **fallback**: `TFallback$1`
|
|
113812
|
+
|
|
113813
|
+
The fallback value.
|
|
113814
|
+
|
|
113815
113815
|
lib/core/namespaces/v/type-aliases/SchemaWithOmit.md
|
|
113816
113816
|
---
|
|
113817
113817
|
|
|
@@ -113856,18 +113856,18 @@ Defined in: node\_modules/valibot/dist/index.d.mts:3744
|
|
|
113856
113856
|
|
|
113857
113857
|
Schema without pipe type.
|
|
113858
113858
|
|
|
113859
|
-
## Type Declaration
|
|
113860
|
-
|
|
113861
|
-
### pipe?
|
|
113862
|
-
|
|
113863
|
-
> `optional` **pipe?**: `never`
|
|
113864
|
-
|
|
113865
113859
|
## Type Parameters
|
|
113866
113860
|
|
|
113867
113861
|
### TSchema
|
|
113868
113862
|
|
|
113869
113863
|
`TSchema` *extends* [`BaseSchema`](../interfaces/BaseSchema.md)\<`unknown`, `unknown`, [`BaseIssue`](../interfaces/BaseIssue.md)\<`unknown`\>\> \| [`BaseSchemaAsync`](../interfaces/BaseSchemaAsync.md)\<`unknown`, `unknown`, [`BaseIssue`](../interfaces/BaseIssue.md)\<`unknown`\>\>
|
|
113870
113864
|
|
|
113865
|
+
## Type Declaration
|
|
113866
|
+
|
|
113867
|
+
### pipe?
|
|
113868
|
+
|
|
113869
|
+
> `optional` **pipe?**: `never`
|
|
113870
|
+
|
|
113871
113871
|
lib/core/namespaces/v/type-aliases/SchemaWithPartialAsync.md
|
|
113872
113872
|
---
|
|
113873
113873
|
|
|
@@ -113966,6 +113966,12 @@ Defined in: node\_modules/valibot/dist/index.d.mts:917
|
|
|
113966
113966
|
|
|
113967
113967
|
Schema with pipe async type.
|
|
113968
113968
|
|
|
113969
|
+
## Type Parameters
|
|
113970
|
+
|
|
113971
|
+
### TPipe$1
|
|
113972
|
+
|
|
113973
|
+
`TPipe$1` *extends* readonly \[[`BaseSchema`](../interfaces/BaseSchema.md)\<`unknown`, `unknown`, [`BaseIssue`](../interfaces/BaseIssue.md)\<`unknown`\>\> \| [`BaseSchemaAsync`](../interfaces/BaseSchemaAsync.md)\<`unknown`, `unknown`, [`BaseIssue`](../interfaces/BaseIssue.md)\<`unknown`\>\>, ...(PipeItem\<any, unknown, BaseIssue\<unknown\>\> \| PipeItemAsync\<any, unknown, BaseIssue\<unknown\>\>)\[\]\]
|
|
113974
|
+
|
|
113969
113975
|
## Type Declaration
|
|
113970
113976
|
|
|
113971
113977
|
### ~run
|
|
@@ -114036,12 +114042,6 @@ Whether it's async.
|
|
|
114036
114042
|
|
|
114037
114043
|
The pipe items.
|
|
114038
114044
|
|
|
114039
|
-
## Type Parameters
|
|
114040
|
-
|
|
114041
|
-
### TPipe$1
|
|
114042
|
-
|
|
114043
|
-
`TPipe$1` *extends* readonly \[[`BaseSchema`](../interfaces/BaseSchema.md)\<`unknown`, `unknown`, [`BaseIssue`](../interfaces/BaseIssue.md)\<`unknown`\>\> \| [`BaseSchemaAsync`](../interfaces/BaseSchemaAsync.md)\<`unknown`, `unknown`, [`BaseIssue`](../interfaces/BaseIssue.md)\<`unknown`\>\>, ...(PipeItem\<any, unknown, BaseIssue\<unknown\>\> \| PipeItemAsync\<any, unknown, BaseIssue\<unknown\>\>)\[\]\]
|
|
114044
|
-
|
|
114045
114045
|
lib/core/namespaces/v/type-aliases/SchemaWithPipe.md
|
|
114046
114046
|
---
|
|
114047
114047
|
|
|
@@ -114059,6 +114059,12 @@ Defined in: node\_modules/valibot/dist/index.d.mts:504
|
|
|
114059
114059
|
|
|
114060
114060
|
Schema with pipe type.
|
|
114061
114061
|
|
|
114062
|
+
## Type Parameters
|
|
114063
|
+
|
|
114064
|
+
### TPipe$1
|
|
114065
|
+
|
|
114066
|
+
`TPipe$1` *extends* readonly \[[`BaseSchema`](../interfaces/BaseSchema.md)\<`unknown`, `unknown`, [`BaseIssue`](../interfaces/BaseIssue.md)\<`unknown`\>\>, `...PipeItem<any, unknown, BaseIssue<unknown>>[]`\]
|
|
114067
|
+
|
|
114062
114068
|
## Type Declaration
|
|
114063
114069
|
|
|
114064
114070
|
### ~run
|
|
@@ -114123,12 +114129,6 @@ The input, output and issue type.
|
|
|
114123
114129
|
|
|
114124
114130
|
The pipe items.
|
|
114125
114131
|
|
|
114126
|
-
## Type Parameters
|
|
114127
|
-
|
|
114128
|
-
### TPipe$1
|
|
114129
|
-
|
|
114130
|
-
`TPipe$1` *extends* readonly \[[`BaseSchema`](../interfaces/BaseSchema.md)\<`unknown`, `unknown`, [`BaseIssue`](../interfaces/BaseIssue.md)\<`unknown`\>\>, `...PipeItem<any, unknown, BaseIssue<unknown>>[]`\]
|
|
114131
|
-
|
|
114132
114132
|
lib/core/namespaces/v/type-aliases/SchemaWithRequiredAsync.md
|
|
114133
114133
|
---
|
|
114134
114134
|
|
|
@@ -115839,7 +115839,7 @@ cipher 解密
|
|
|
115839
115839
|
|
|
115840
115840
|
### output?
|
|
115841
115841
|
|
|
115842
|
-
`"buffer"` \| `"binary"`
|
|
115842
|
+
`"buffer"` \| `"binary"` = `'binary'`
|
|
115843
115843
|
|
|
115844
115844
|
输出类型
|
|
115845
115845
|
|
|
@@ -115892,7 +115892,7 @@ cipher 加密,强烈不建议使用 AES_256_ECB
|
|
|
115892
115892
|
|
|
115893
115893
|
### output?
|
|
115894
115894
|
|
|
115895
|
-
`"buffer"` \| `"base64"`
|
|
115895
|
+
`"buffer"` \| `"base64"` = `'base64'`
|
|
115896
115896
|
|
|
115897
115897
|
输出类型
|
|
115898
115898
|
|
|
@@ -119942,7 +119942,7 @@ key 名
|
|
|
119942
119942
|
|
|
119943
119943
|
##### mod?
|
|
119944
119944
|
|
|
119945
|
-
`""` \| `"nx"`
|
|
119945
|
+
`""` \| `"nx"` = `''`
|
|
119946
119946
|
|
|
119947
119947
|
空,nx(key不存在才建立)
|
|
119948
119948
|
|
|
@@ -120332,7 +120332,7 @@ Defined in: [lib/kv.ts:83](https://github.com/maiyunnet/kebab/blob/master/lib/kv
|
|
|
120332
120332
|
|
|
120333
120333
|
##### mod?
|
|
120334
120334
|
|
|
120335
|
-
`""` \| `"nx"` \| `"xx"`
|
|
120335
|
+
`""` \| `"nx"` \| `"xx"` = `''`
|
|
120336
120336
|
|
|
120337
120337
|
设置模式: 空,nx(key不存在才建立),xx(key存在才修改)
|
|
120338
120338
|
|
|
@@ -123575,7 +123575,7 @@ lib/session/classes/Session.md
|
|
|
123575
123575
|
|
|
123576
123576
|
# Class: Session
|
|
123577
123577
|
|
|
123578
|
-
Defined in: [lib/session.ts:
|
|
123578
|
+
Defined in: [lib/session.ts:56](https://github.com/maiyunnet/kebab/blob/master/lib/session.ts#L56)
|
|
123579
123579
|
|
|
123580
123580
|
## Constructors
|
|
123581
123581
|
|
|
@@ -123593,7 +123593,7 @@ Defined in: [lib/session.ts:51](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
123593
123593
|
|
|
123594
123594
|
> **getName**(): `string`
|
|
123595
123595
|
|
|
123596
|
-
Defined in: [lib/session.ts:
|
|
123596
|
+
Defined in: [lib/session.ts:249](https://github.com/maiyunnet/kebab/blob/master/lib/session.ts#L249)
|
|
123597
123597
|
|
|
123598
123598
|
获取当前的 cookie 的 name 值
|
|
123599
123599
|
|
|
@@ -123607,7 +123607,7 @@ Defined in: [lib/session.ts:226](https://github.com/maiyunnet/kebab/blob/master/
|
|
|
123607
123607
|
|
|
123608
123608
|
> **getToken**(): `string`
|
|
123609
123609
|
|
|
123610
|
-
Defined in: [lib/session.ts:
|
|
123610
|
+
Defined in: [lib/session.ts:242](https://github.com/maiyunnet/kebab/blob/master/lib/session.ts#L242)
|
|
123611
123611
|
|
|
123612
123612
|
获取当前的 token 值
|
|
123613
123613
|
|
|
@@ -123621,7 +123621,7 @@ Defined in: [lib/session.ts:219](https://github.com/maiyunnet/kebab/blob/master/
|
|
|
123621
123621
|
|
|
123622
123622
|
> **init**(`ctr`, `link`, `auth?`, `opt?`): `Promise`\<`boolean`\>
|
|
123623
123623
|
|
|
123624
|
-
Defined in: [lib/session.ts:
|
|
123624
|
+
Defined in: [lib/session.ts:84](https://github.com/maiyunnet/kebab/blob/master/lib/session.ts#L84)
|
|
123625
123625
|
|
|
123626
123626
|
初始化函数,相当于 construct
|
|
123627
123627
|
|
|
@@ -123643,7 +123643,7 @@ Kv 或 Db 实例
|
|
|
123643
123643
|
|
|
123644
123644
|
`boolean` = `false`
|
|
123645
123645
|
|
|
123646
|
-
|
|
123646
|
+
开启请求凭据读取,使用 opt.header 或 Authorization / GET、POST 的 _auth;提供无效凭据不回退 Cookie
|
|
123647
123647
|
|
|
123648
123648
|
##### opt?
|
|
123649
123649
|
|
|
@@ -123663,7 +123663,7 @@ false 表示系统错误
|
|
|
123663
123663
|
|
|
123664
123664
|
> **update**(): `Promise`\<`void`\>
|
|
123665
123665
|
|
|
123666
|
-
Defined in: [lib/session.ts:
|
|
123666
|
+
Defined in: [lib/session.ts:256](https://github.com/maiyunnet/kebab/blob/master/lib/session.ts#L256)
|
|
123667
123667
|
|
|
123668
123668
|
页面整体结束时,要写入到 Kv 或 数据库
|
|
123669
123669
|
|
|
@@ -123705,6 +123705,16 @@ Defined in: [lib/session.ts:42](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
123705
123705
|
|
|
123706
123706
|
## Properties
|
|
123707
123707
|
|
|
123708
|
+
### cookie?
|
|
123709
|
+
|
|
123710
|
+
> `optional` **cookie?**: `boolean`
|
|
123711
|
+
|
|
123712
|
+
Defined in: [lib/session.ts:53](https://github.com/maiyunnet/kebab/blob/master/lib/session.ts#L53)
|
|
123713
|
+
|
|
123714
|
+
是否读取和写入 Cookie,默认 true;false 时也不会发送 Set-Cookie
|
|
123715
|
+
|
|
123716
|
+
***
|
|
123717
|
+
|
|
123708
123718
|
### domain?
|
|
123709
123719
|
|
|
123710
123720
|
> `optional` **domain?**: `string`
|
|
@@ -123713,6 +123723,16 @@ Defined in: [lib/session.ts:46](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
123713
123723
|
|
|
123714
123724
|
***
|
|
123715
123725
|
|
|
123726
|
+
### header?
|
|
123727
|
+
|
|
123728
|
+
> `optional` **header?**: `string`
|
|
123729
|
+
|
|
123730
|
+
Defined in: [lib/session.ts:51](https://github.com/maiyunnet/kebab/blob/master/lib/session.ts#L51)
|
|
123731
|
+
|
|
123732
|
+
auth 开启时读取的专用头名,值为原始 Session ID;未设置则读取 Authorization / _auth
|
|
123733
|
+
|
|
123734
|
+
***
|
|
123735
|
+
|
|
123716
123736
|
### name?
|
|
123717
123737
|
|
|
123718
123738
|
> `optional` **name?**: `string`
|
|
@@ -123741,7 +123761,9 @@ Defined in: [lib/session.ts:45](https://github.com/maiyunnet/kebab/blob/master/l
|
|
|
123741
123761
|
|
|
123742
123762
|
> `optional` **token?**: `string`
|
|
123743
123763
|
|
|
123744
|
-
Defined in: [lib/session.ts:
|
|
123764
|
+
Defined in: [lib/session.ts:49](https://github.com/maiyunnet/kebab/blob/master/lib/session.ts#L49)
|
|
123765
|
+
|
|
123766
|
+
显式指定 Session ID,优先于请求凭据;空字符串表示新建匿名会话
|
|
123745
123767
|
|
|
123746
123768
|
***
|
|
123747
123769
|
|
|
@@ -124001,7 +124023,7 @@ ORDER BY
|
|
|
124001
124023
|
|
|
124002
124024
|
##### d?
|
|
124003
124025
|
|
|
124004
|
-
`"DESC"` \| `"ASC"`
|
|
124026
|
+
`"DESC"` \| `"ASC"` = `'DESC'`
|
|
124005
124027
|
|
|
124006
124028
|
排序规则
|
|
124007
124029
|
|
|
@@ -124599,7 +124621,7 @@ Defined in: [lib/sql.ts:841](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
124599
124621
|
|
|
124600
124622
|
##### d?
|
|
124601
124623
|
|
|
124602
|
-
`"DESC"` \| `"ASC"`
|
|
124624
|
+
`"DESC"` \| `"ASC"` = `'DESC'`
|
|
124603
124625
|
|
|
124604
124626
|
扫描方向;读取前一批时反转方向并在取回后反转列表
|
|
124605
124627
|
|
|
@@ -124806,7 +124828,7 @@ Defined in: [lib/sql.ts:154](https://github.com/maiyunnet/kebab/blob/master/lib/
|
|
|
124806
124828
|
|
|
124807
124829
|
##### vs?
|
|
124808
124830
|
|
|
124809
|
-
[`DbValue`](../../../index/type-aliases/DbValue.md)[] \| [`DbValue`](../../../index/type-aliases/DbValue.md)[][]
|
|
124831
|
+
[`DbValue`](../../../index/type-aliases/DbValue.md)[] \| [`DbValue`](../../../index/type-aliases/DbValue.md)[][] = `[]`
|
|
124810
124832
|
|
|
124811
124833
|
[] | [][] 数据
|
|
124812
124834
|
|
|
@@ -127214,7 +127236,7 @@ Defined in: [lib/text.ts:339](https://github.com/maiyunnet/kebab/blob/master/lib
|
|
|
127214
127236
|
|
|
127215
127237
|
### to?
|
|
127216
127238
|
|
|
127217
|
-
`string` = '
|
|
127239
|
+
`string` = '\\n'
|
|
127218
127240
|
|
|
127219
127241
|
换行替换符
|
|
127220
127242
|
|
|
@@ -127489,6 +127511,61 @@ Defined in: [lib/text.ts:476](https://github.com/maiyunnet/kebab/blob/master/lib
|
|
|
127489
127511
|
|
|
127490
127512
|
`string`
|
|
127491
127513
|
|
|
127514
|
+
lib/text/functions/redact.md
|
|
127515
|
+
---
|
|
127516
|
+
|
|
127517
|
+
[**Documents for @maiyunnet/kebab**](../../../index.md)
|
|
127518
|
+
|
|
127519
|
+
***
|
|
127520
|
+
|
|
127521
|
+
[Documents for @maiyunnet/kebab](../../../index.md) / [lib/text](../index.md) / redact
|
|
127522
|
+
|
|
127523
|
+
# Function: redact()
|
|
127524
|
+
|
|
127525
|
+
> **redact**(`value`, `secrets`, `options?`): `string`
|
|
127526
|
+
|
|
127527
|
+
Defined in: [lib/text.ts:878](https://github.com/maiyunnet/kebab/blob/master/lib/text.ts#L878)
|
|
127528
|
+
|
|
127529
|
+
将文本中的指定敏感字符串替换为占位文本
|
|
127530
|
+
|
|
127531
|
+
## Parameters
|
|
127532
|
+
|
|
127533
|
+
### value
|
|
127534
|
+
|
|
127535
|
+
`string`
|
|
127536
|
+
|
|
127537
|
+
待处理文本
|
|
127538
|
+
|
|
127539
|
+
### secrets
|
|
127540
|
+
|
|
127541
|
+
readonly `string`[]
|
|
127542
|
+
|
|
127543
|
+
敏感字符串,忽略空项和重复项,不修改数组
|
|
127544
|
+
|
|
127545
|
+
### options?
|
|
127546
|
+
|
|
127547
|
+
替换选项
|
|
127548
|
+
|
|
127549
|
+
#### encoded?
|
|
127550
|
+
|
|
127551
|
+
`boolean`
|
|
127552
|
+
|
|
127553
|
+
是否同时匹配编码形式,默认 true;包括 encodeURIComponent 生成形式
|
|
127554
|
+
(百分号十六进制不区分大小写)和 JSON.stringify 生成的转义正文,不含外层引号;
|
|
127555
|
+
孤立代理项跳过 URI 编码,仍匹配原文及 JSON 转义形式
|
|
127556
|
+
|
|
127557
|
+
#### replacement?
|
|
127558
|
+
|
|
127559
|
+
`string`
|
|
127560
|
+
|
|
127561
|
+
替换文本,默认 [REDACTED],按字面量插入且不参与后续匹配
|
|
127562
|
+
|
|
127563
|
+
## Returns
|
|
127564
|
+
|
|
127565
|
+
`string`
|
|
127566
|
+
|
|
127567
|
+
处理后的文本;原文区分大小写,从左向右匹配,同一位置优先最长串,匹配范围不重叠
|
|
127568
|
+
|
|
127492
127569
|
lib/text/functions/sizeFormat.md
|
|
127493
127570
|
---
|
|
127494
127571
|
|
|
@@ -127842,6 +127919,7 @@ lib/text/index.md
|
|
|
127842
127919
|
- [parseVersion](functions/parseVersion.md)
|
|
127843
127920
|
- [queryParse](functions/queryParse.md)
|
|
127844
127921
|
- [queryStringify](functions/queryStringify.md)
|
|
127922
|
+
- [redact](functions/redact.md)
|
|
127845
127923
|
- [sizeFormat](functions/sizeFormat.md)
|
|
127846
127924
|
- [str2int](functions/str2int.md)
|
|
127847
127925
|
- [stringifyBuffer](functions/stringifyBuffer.md)
|
|
@@ -133770,7 +133848,7 @@ Defined in: [sys/ctr.ts:899](https://github.com/maiyunnet/kebab/blob/master/sys/
|
|
|
133770
133848
|
|
|
133771
133849
|
> `protected` **\_cross**(`opt?`): `boolean`
|
|
133772
133850
|
|
|
133773
|
-
Defined in: [sys/ctr.ts:
|
|
133851
|
+
Defined in: [sys/ctr.ts:1141](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1141)
|
|
133774
133852
|
|
|
133775
133853
|
开启跨域请求
|
|
133776
133854
|
|
|
@@ -133852,7 +133930,7 @@ Defined in: [sys/ctr.ts:913](https://github.com/maiyunnet/kebab/blob/master/sys/
|
|
|
133852
133930
|
|
|
133853
133931
|
> `protected` **\_end**(`code?`, `reason?`): `void`
|
|
133854
133932
|
|
|
133855
|
-
Defined in: [sys/ctr.ts:
|
|
133933
|
+
Defined in: [sys/ctr.ts:1251](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1251)
|
|
133856
133934
|
|
|
133857
133935
|
主动关闭当前 socket 连接
|
|
133858
133936
|
|
|
@@ -133908,7 +133986,7 @@ Defined in: [sys/ctr.ts:937](https://github.com/maiyunnet/kebab/blob/master/sys/
|
|
|
133908
133986
|
|
|
133909
133987
|
> `protected` **\_getLocale**(): `string`
|
|
133910
133988
|
|
|
133911
|
-
Defined in: [sys/ctr.ts:
|
|
133989
|
+
Defined in: [sys/ctr.ts:1132](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1132)
|
|
133912
133990
|
|
|
133913
133991
|
获取当前语言名
|
|
133914
133992
|
|
|
@@ -133922,7 +134000,7 @@ Defined in: [sys/ctr.ts:1127](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
133922
134000
|
|
|
133923
134001
|
> `protected` **\_getLocaleJsonString**(): `string`
|
|
133924
134002
|
|
|
133925
|
-
Defined in: [sys/ctr.ts:
|
|
134003
|
+
Defined in: [sys/ctr.ts:1120](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1120)
|
|
133926
134004
|
|
|
133927
134005
|
根据当前后台语言包设置情况获取 JSON 字符串传输到前台
|
|
133928
134006
|
|
|
@@ -133974,7 +134052,7 @@ Defined in: [sys/ctr.ts:419](https://github.com/maiyunnet/kebab/blob/master/sys/
|
|
|
133974
134052
|
|
|
133975
134053
|
> `protected` **\_handleFormData**(`events?`, `limits?`): `Promise`\<`boolean`\>
|
|
133976
134054
|
|
|
133977
|
-
Defined in: [sys/ctr.ts:
|
|
134055
|
+
Defined in: [sys/ctr.ts:1261](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1261)
|
|
133978
134056
|
|
|
133979
134057
|
获取 formdata 的信息
|
|
133980
134058
|
|
|
@@ -134004,7 +134082,7 @@ Defined in: [sys/ctr.ts:1256](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
134004
134082
|
|
|
134005
134083
|
> **\_l**(`key`, `data?`): `string`
|
|
134006
134084
|
|
|
134007
|
-
Defined in: [sys/ctr.ts:
|
|
134085
|
+
Defined in: [sys/ctr.ts:1184](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1184)
|
|
134008
134086
|
|
|
134009
134087
|
获取语言包值
|
|
134010
134088
|
|
|
@@ -134030,7 +134108,7 @@ Defined in: [sys/ctr.ts:1179](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
134030
134108
|
|
|
134031
134109
|
> `protected` **\_loadData**\<`T`\>(`path`): `Promise`\<`false` \| `T` \| `null`\>
|
|
134032
134110
|
|
|
134033
|
-
Defined in: [sys/ctr.ts:
|
|
134111
|
+
Defined in: [sys/ctr.ts:1017](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1017)
|
|
134034
134112
|
|
|
134035
134113
|
获取 data JSON 数据
|
|
134036
134114
|
|
|
@@ -134058,7 +134136,7 @@ Defined in: [sys/ctr.ts:1013](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
134058
134136
|
|
|
134059
134137
|
> `protected` **\_loadLocale**(`loc`, `pkg?`): `Promise`\<`boolean`\>
|
|
134060
134138
|
|
|
134061
|
-
Defined in: [sys/ctr.ts:
|
|
134139
|
+
Defined in: [sys/ctr.ts:1071](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1071)
|
|
134062
134140
|
|
|
134063
134141
|
设定语言并加载语言包
|
|
134064
134142
|
|
|
@@ -134147,7 +134225,7 @@ Defined in: [sys/ctr.ts:436](https://github.com/maiyunnet/kebab/blob/master/sys/
|
|
|
134147
134225
|
|
|
134148
134226
|
> `protected` **\_location**(`location`, `httpCode?`): `false`
|
|
134149
134227
|
|
|
134150
|
-
Defined in: [sys/ctr.ts:
|
|
134228
|
+
Defined in: [sys/ctr.ts:1039](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1039)
|
|
134151
134229
|
|
|
134152
134230
|
跳转,支持相对本项目根路径的路径或绝对路径
|
|
134153
134231
|
|
|
@@ -134175,7 +134253,7 @@ HTTP 重定向状态码,默认 302
|
|
|
134175
134253
|
|
|
134176
134254
|
> `protected` **\_ping**(`data?`): `boolean`
|
|
134177
134255
|
|
|
134178
|
-
Defined in: [sys/ctr.ts:
|
|
134256
|
+
Defined in: [sys/ctr.ts:1234](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1234)
|
|
134179
134257
|
|
|
134180
134258
|
发送 socket ping
|
|
134181
134259
|
|
|
@@ -134197,7 +134275,7 @@ Defined in: [sys/ctr.ts:1229](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
134197
134275
|
|
|
134198
134276
|
> `protected` **\_pong**(`data?`): `boolean`
|
|
134199
134277
|
|
|
134200
|
-
Defined in: [sys/ctr.ts:
|
|
134278
|
+
Defined in: [sys/ctr.ts:1242](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1242)
|
|
134201
134279
|
|
|
134202
134280
|
发送 socket pong
|
|
134203
134281
|
|
|
@@ -134219,7 +134297,7 @@ Defined in: [sys/ctr.ts:1237](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
134219
134297
|
|
|
134220
134298
|
> `protected` **\_startSession**(`link`, `auth?`, `opt?`): `Promise`\<`boolean`\>
|
|
134221
134299
|
|
|
134222
|
-
Defined in: [sys/ctr.ts:
|
|
134300
|
+
Defined in: [sys/ctr.ts:1055](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1055)
|
|
134223
134301
|
|
|
134224
134302
|
开启 Session
|
|
134225
134303
|
|
|
@@ -134235,18 +134313,20 @@ Kv 或 Db 实例
|
|
|
134235
134313
|
|
|
134236
134314
|
`boolean` = `false`
|
|
134237
134315
|
|
|
134238
|
-
|
|
134316
|
+
开启请求凭据读取,使用 opt.header 或 Authorization / GET、POST 的 _auth;提供无效凭据不回退 Cookie
|
|
134239
134317
|
|
|
134240
134318
|
##### opt?
|
|
134241
134319
|
|
|
134242
134320
|
[`IOptions`](../../../lib/session/interfaces/IOptions.md) = `{}`
|
|
134243
134321
|
|
|
134244
|
-
|
|
134322
|
+
Session 选项,cookie 为 false 时不读取或写入 Cookie
|
|
134245
134323
|
|
|
134246
134324
|
#### Returns
|
|
134247
134325
|
|
|
134248
134326
|
`Promise`\<`boolean`\>
|
|
134249
134327
|
|
|
134328
|
+
是否初始化成功,匿名会话也返回 true
|
|
134329
|
+
|
|
134250
134330
|
***
|
|
134251
134331
|
|
|
134252
134332
|
### \_valibot()
|
|
@@ -134337,7 +134417,7 @@ Valibot 配置、自定义客户端返回值和 XSRF 选项
|
|
|
134337
134417
|
|
|
134338
134418
|
> `protected` **\_writeBinary**(`data`): `boolean`
|
|
134339
134419
|
|
|
134340
|
-
Defined in: [sys/ctr.ts:
|
|
134420
|
+
Defined in: [sys/ctr.ts:1226](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1226)
|
|
134341
134421
|
|
|
134342
134422
|
发送 socket 二进制
|
|
134343
134423
|
|
|
@@ -134359,7 +134439,7 @@ Defined in: [sys/ctr.ts:1221](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
134359
134439
|
|
|
134360
134440
|
> `protected` **\_writeResult**(`data`): `boolean`
|
|
134361
134441
|
|
|
134362
|
-
Defined in: [sys/ctr.ts:
|
|
134442
|
+
Defined in: [sys/ctr.ts:1218](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1218)
|
|
134363
134443
|
|
|
134364
134444
|
发送结果对象文本
|
|
134365
134445
|
|
|
@@ -134381,7 +134461,7 @@ Defined in: [sys/ctr.ts:1213](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
134381
134461
|
|
|
134382
134462
|
> `protected` **\_writeText**(`data`): `boolean`
|
|
134383
134463
|
|
|
134384
|
-
Defined in: [sys/ctr.ts:
|
|
134464
|
+
Defined in: [sys/ctr.ts:1210](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L1210)
|
|
134385
134465
|
|
|
134386
134466
|
发送 socket 文本
|
|
134387
134467
|
|
|
@@ -134403,14 +134483,16 @@ Defined in: [sys/ctr.ts:1205](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
134403
134483
|
|
|
134404
134484
|
> **getAuthorization**(): `false` \| \{ `pwd`: `string`; `type`: `"basic"`; `user`: `string`; \} \| \{ `token`: `string`; `type`: `"bearer"`; \}
|
|
134405
134485
|
|
|
134406
|
-
Defined in: [sys/ctr.ts:
|
|
134486
|
+
Defined in: [sys/ctr.ts:966](https://github.com/maiyunnet/kebab/blob/master/sys/ctr.ts#L966)
|
|
134407
134487
|
|
|
134408
|
-
|
|
134488
|
+
按 Authorization、GET _auth、POST _auth 顺序读取鉴权信息,空值或格式错误不回退
|
|
134409
134489
|
|
|
134410
134490
|
#### Returns
|
|
134411
134491
|
|
|
134412
134492
|
`false` \| \{ `pwd`: `string`; `type`: `"basic"`; `user`: `string`; \} \| \{ `token`: `string`; `type`: `"bearer"`; \}
|
|
134413
134493
|
|
|
134494
|
+
Basic Auth、Bearer Token 或 false(未提供或格式无效)
|
|
134495
|
+
|
|
134414
134496
|
***
|
|
134415
134497
|
|
|
134416
134498
|
### getPrototype()
|
|
@@ -135779,7 +135861,7 @@ ORDER BY
|
|
|
135779
135861
|
|
|
135780
135862
|
##### d?
|
|
135781
135863
|
|
|
135782
|
-
`"DESC"` \| `"ASC"`
|
|
135864
|
+
`"DESC"` \| `"ASC"` = `'DESC'`
|
|
135783
135865
|
|
|
135784
135866
|
排序规则
|
|
135785
135867
|
|
|
@@ -136646,7 +136728,7 @@ Defined in: [sys/mod.ts:1939](https://github.com/maiyunnet/kebab/blob/master/sys
|
|
|
136646
136728
|
|
|
136647
136729
|
##### TC
|
|
136648
136730
|
|
|
136649
|
-
`TC` *extends* (...`args`) => `any`
|
|
136731
|
+
`TC` *extends* new (...`args`) => `any`
|
|
136650
136732
|
|
|
136651
136733
|
#### Returns
|
|
136652
136734
|
|