@maiyunnet/kebab 9.29.0 → 9.29.2
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/abox/session-login.js +4 -1
- package/doc/kebab-rag.md +206 -182
- package/index.d.ts +1 -1
- package/index.js +1 -2
- package/lib/core.js +4 -1
- package/lib/session/login.d.ts +4 -2
- package/lib/session/login.js +1 -1
- package/package.json +1 -1
- package/sys/master.js +30 -11
package/doc/kebab-rag.md
CHANGED
|
@@ -635,7 +635,7 @@ index/interfaces/IConfigAi.md
|
|
|
635
635
|
|
|
636
636
|
# Interface: IConfigAi
|
|
637
637
|
|
|
638
|
-
Defined in: [index.ts:
|
|
638
|
+
Defined in: [index.ts:118](https://github.com/maiyunnet/kebab/blob/master/index.ts#L118)
|
|
639
639
|
|
|
640
640
|
AI
|
|
641
641
|
|
|
@@ -645,7 +645,7 @@ AI
|
|
|
645
645
|
|
|
646
646
|
> `optional` **endpoint?**: `string`
|
|
647
647
|
|
|
648
|
-
Defined in: [index.ts:
|
|
648
|
+
Defined in: [index.ts:120](https://github.com/maiyunnet/kebab/blob/master/index.ts#L120)
|
|
649
649
|
|
|
650
650
|
目前只有微软 Azure 有
|
|
651
651
|
|
|
@@ -655,7 +655,7 @@ Defined in: [index.ts:121](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
655
655
|
|
|
656
656
|
> **skey**: `string`
|
|
657
657
|
|
|
658
|
-
Defined in: [index.ts:
|
|
658
|
+
Defined in: [index.ts:121](https://github.com/maiyunnet/kebab/blob/master/index.ts#L121)
|
|
659
659
|
|
|
660
660
|
index/interfaces/IConfigConst.md
|
|
661
661
|
---
|
|
@@ -668,7 +668,7 @@ index/interfaces/IConfigConst.md
|
|
|
668
668
|
|
|
669
669
|
# Interface: IConfigConst
|
|
670
670
|
|
|
671
|
-
Defined in: [index.ts:
|
|
671
|
+
Defined in: [index.ts:181](https://github.com/maiyunnet/kebab/blob/master/index.ts#L181)
|
|
672
672
|
|
|
673
673
|
常量
|
|
674
674
|
|
|
@@ -678,7 +678,7 @@ Defined in: [index.ts:182](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
678
678
|
|
|
679
679
|
> **ctrPath**: `string`
|
|
680
680
|
|
|
681
|
-
Defined in: [index.ts:
|
|
681
|
+
Defined in: [index.ts:217](https://github.com/maiyunnet/kebab/blob/master/index.ts#L217)
|
|
682
682
|
|
|
683
683
|
***
|
|
684
684
|
|
|
@@ -686,7 +686,7 @@ Defined in: [index.ts:218](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
686
686
|
|
|
687
687
|
> **dataPath**: `string`
|
|
688
688
|
|
|
689
|
-
Defined in: [index.ts:
|
|
689
|
+
Defined in: [index.ts:219](https://github.com/maiyunnet/kebab/blob/master/index.ts#L219)
|
|
690
690
|
|
|
691
691
|
***
|
|
692
692
|
|
|
@@ -694,7 +694,7 @@ Defined in: [index.ts:220](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
694
694
|
|
|
695
695
|
> **host**: `string`
|
|
696
696
|
|
|
697
|
-
Defined in: [index.ts:
|
|
697
|
+
Defined in: [index.ts:199](https://github.com/maiyunnet/kebab/blob/master/index.ts#L199)
|
|
698
698
|
|
|
699
699
|
请求头中的主机地址,如 example.com、example.com:8443 或 [::1]:8080;不额外补端口
|
|
700
700
|
|
|
@@ -704,7 +704,7 @@ Defined in: [index.ts:200](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
704
704
|
|
|
705
705
|
> **hostCanonical**: `string`
|
|
706
706
|
|
|
707
|
-
Defined in: [index.ts:
|
|
707
|
+
Defined in: [index.ts:205](https://github.com/maiyunnet/kebab/blob/master/index.ts#L205)
|
|
708
708
|
|
|
709
709
|
用于生成网址的主机地址,仅省略 HTTPS 的 443 和 HTTP 的 80 端口,如 example.com:443 → example.com;保留其他端口和 IPv6 方括号
|
|
710
710
|
|
|
@@ -714,7 +714,7 @@ Defined in: [index.ts:206](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
714
714
|
|
|
715
715
|
> **hostname**: `string`
|
|
716
716
|
|
|
717
|
-
Defined in: [index.ts:
|
|
717
|
+
Defined in: [index.ts:201](https://github.com/maiyunnet/kebab/blob/master/index.ts#L201)
|
|
718
718
|
|
|
719
719
|
主机名,如 example.com 或 ::1,不含端口或 IPv6 方括号
|
|
720
720
|
|
|
@@ -724,7 +724,7 @@ Defined in: [index.ts:202](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
724
724
|
|
|
725
725
|
> **hostport**: `number`
|
|
726
726
|
|
|
727
|
-
Defined in: [index.ts:
|
|
727
|
+
Defined in: [index.ts:203](https://github.com/maiyunnet/kebab/blob/master/index.ts#L203)
|
|
728
728
|
|
|
729
729
|
请求地址中的端口,如 8443;未指定时 HTTPS 为 443、HTTP 为 80,不取本机监听端口
|
|
730
730
|
|
|
@@ -734,7 +734,7 @@ Defined in: [index.ts:204](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
734
734
|
|
|
735
735
|
> **https**: `boolean`
|
|
736
736
|
|
|
737
|
-
Defined in: [index.ts:
|
|
737
|
+
Defined in: [index.ts:197](https://github.com/maiyunnet/kebab/blob/master/index.ts#L197)
|
|
738
738
|
|
|
739
739
|
请求到达 Kebab 时是否使用 HTTPS;通过 HTTP 回源时为 false
|
|
740
740
|
|
|
@@ -744,7 +744,7 @@ Defined in: [index.ts:198](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
744
744
|
|
|
745
745
|
> **miniprogram**: `""` \| `"wechat"`
|
|
746
746
|
|
|
747
|
-
Defined in: [index.ts:
|
|
747
|
+
Defined in: [index.ts:195](https://github.com/maiyunnet/kebab/blob/master/index.ts#L195)
|
|
748
748
|
|
|
749
749
|
***
|
|
750
750
|
|
|
@@ -752,7 +752,7 @@ Defined in: [index.ts:196](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
752
752
|
|
|
753
753
|
> **mobile**: `boolean`
|
|
754
754
|
|
|
755
|
-
Defined in: [index.ts:
|
|
755
|
+
Defined in: [index.ts:193](https://github.com/maiyunnet/kebab/blob/master/index.ts#L193)
|
|
756
756
|
|
|
757
757
|
***
|
|
758
758
|
|
|
@@ -760,7 +760,7 @@ Defined in: [index.ts:194](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
760
760
|
|
|
761
761
|
> **modPath**: `string`
|
|
762
762
|
|
|
763
|
-
Defined in: [index.ts:
|
|
763
|
+
Defined in: [index.ts:216](https://github.com/maiyunnet/kebab/blob/master/index.ts#L216)
|
|
764
764
|
|
|
765
765
|
***
|
|
766
766
|
|
|
@@ -768,7 +768,7 @@ Defined in: [index.ts:217](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
768
768
|
|
|
769
769
|
> **path**: `string`
|
|
770
770
|
|
|
771
|
-
Defined in: [index.ts:
|
|
771
|
+
Defined in: [index.ts:183](https://github.com/maiyunnet/kebab/blob/master/index.ts#L183)
|
|
772
772
|
|
|
773
773
|
不以 / 开头,不含 qs
|
|
774
774
|
|
|
@@ -778,7 +778,7 @@ Defined in: [index.ts:184](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
778
778
|
|
|
779
779
|
> **qs**: `string`
|
|
780
780
|
|
|
781
|
-
Defined in: [index.ts:
|
|
781
|
+
Defined in: [index.ts:185](https://github.com/maiyunnet/kebab/blob/master/index.ts#L185)
|
|
782
782
|
|
|
783
783
|
不含 ? 开头
|
|
784
784
|
|
|
@@ -788,7 +788,7 @@ Defined in: [index.ts:186](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
788
788
|
|
|
789
789
|
> **qss**: `string`
|
|
790
790
|
|
|
791
|
-
Defined in: [index.ts:
|
|
791
|
+
Defined in: [index.ts:187](https://github.com/maiyunnet/kebab/blob/master/index.ts#L187)
|
|
792
792
|
|
|
793
793
|
含 ? 开头
|
|
794
794
|
|
|
@@ -798,7 +798,7 @@ Defined in: [index.ts:188](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
798
798
|
|
|
799
799
|
> **rootPath**: `string`
|
|
800
800
|
|
|
801
|
-
Defined in: [index.ts:
|
|
801
|
+
Defined in: [index.ts:215](https://github.com/maiyunnet/kebab/blob/master/index.ts#L215)
|
|
802
802
|
|
|
803
803
|
***
|
|
804
804
|
|
|
@@ -806,7 +806,7 @@ Defined in: [index.ts:216](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
806
806
|
|
|
807
807
|
> **startMemory**: `number`
|
|
808
808
|
|
|
809
|
-
Defined in: [index.ts:
|
|
809
|
+
Defined in: [index.ts:189](https://github.com/maiyunnet/kebab/blob/master/index.ts#L189)
|
|
810
810
|
|
|
811
811
|
***
|
|
812
812
|
|
|
@@ -814,7 +814,7 @@ Defined in: [index.ts:190](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
814
814
|
|
|
815
815
|
> **startTime**: `bigint`
|
|
816
816
|
|
|
817
|
-
Defined in: [index.ts:
|
|
817
|
+
Defined in: [index.ts:188](https://github.com/maiyunnet/kebab/blob/master/index.ts#L188)
|
|
818
818
|
|
|
819
819
|
***
|
|
820
820
|
|
|
@@ -822,7 +822,7 @@ Defined in: [index.ts:189](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
822
822
|
|
|
823
823
|
> **uri**: [`IUrlParse`](IUrlParse.md)
|
|
824
824
|
|
|
825
|
-
Defined in: [index.ts:
|
|
825
|
+
Defined in: [index.ts:211](https://github.com/maiyunnet/kebab/blob/master/index.ts#L211)
|
|
826
826
|
|
|
827
827
|
***
|
|
828
828
|
|
|
@@ -830,7 +830,7 @@ Defined in: [index.ts:212](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
830
830
|
|
|
831
831
|
> **urlBase**: `string`
|
|
832
832
|
|
|
833
|
-
Defined in: [index.ts:
|
|
833
|
+
Defined in: [index.ts:224](https://github.com/maiyunnet/kebab/blob/master/index.ts#L224)
|
|
834
834
|
|
|
835
835
|
***
|
|
836
836
|
|
|
@@ -838,7 +838,7 @@ Defined in: [index.ts:225](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
838
838
|
|
|
839
839
|
> **urlFull**: `string`
|
|
840
840
|
|
|
841
|
-
Defined in: [index.ts:
|
|
841
|
+
Defined in: [index.ts:226](https://github.com/maiyunnet/kebab/blob/master/index.ts#L226)
|
|
842
842
|
|
|
843
843
|
***
|
|
844
844
|
|
|
@@ -846,7 +846,7 @@ Defined in: [index.ts:227](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
846
846
|
|
|
847
847
|
> **urlOrigin**: `string`
|
|
848
848
|
|
|
849
|
-
Defined in: [index.ts:
|
|
849
|
+
Defined in: [index.ts:210](https://github.com/maiyunnet/kebab/blob/master/index.ts#L210)
|
|
850
850
|
|
|
851
851
|
网址的协议与 hostCanonical,如 https://example.com:8443
|
|
852
852
|
协议可取自 X-Forwarded-Proto,无有效值时使用实际连接协议;不能用它判断实际 TLS 状态。
|
|
@@ -857,7 +857,7 @@ Defined in: [index.ts:211](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
857
857
|
|
|
858
858
|
> **urlStc**: `string`
|
|
859
859
|
|
|
860
|
-
Defined in: [index.ts:
|
|
860
|
+
Defined in: [index.ts:225](https://github.com/maiyunnet/kebab/blob/master/index.ts#L225)
|
|
861
861
|
|
|
862
862
|
***
|
|
863
863
|
|
|
@@ -865,7 +865,7 @@ Defined in: [index.ts:226](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
865
865
|
|
|
866
866
|
> **urlStcFull**: `string`
|
|
867
867
|
|
|
868
|
-
Defined in: [index.ts:
|
|
868
|
+
Defined in: [index.ts:227](https://github.com/maiyunnet/kebab/blob/master/index.ts#L227)
|
|
869
869
|
|
|
870
870
|
***
|
|
871
871
|
|
|
@@ -873,7 +873,7 @@ Defined in: [index.ts:228](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
873
873
|
|
|
874
874
|
> **viewPath**: `string`
|
|
875
875
|
|
|
876
|
-
Defined in: [index.ts:
|
|
876
|
+
Defined in: [index.ts:218](https://github.com/maiyunnet/kebab/blob/master/index.ts#L218)
|
|
877
877
|
|
|
878
878
|
***
|
|
879
879
|
|
|
@@ -881,7 +881,7 @@ Defined in: [index.ts:219](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
881
881
|
|
|
882
882
|
> **wechat**: `boolean`
|
|
883
883
|
|
|
884
|
-
Defined in: [index.ts:
|
|
884
|
+
Defined in: [index.ts:194](https://github.com/maiyunnet/kebab/blob/master/index.ts#L194)
|
|
885
885
|
|
|
886
886
|
***
|
|
887
887
|
|
|
@@ -889,7 +889,7 @@ Defined in: [index.ts:195](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
889
889
|
|
|
890
890
|
> **wsPath**: `string`
|
|
891
891
|
|
|
892
|
-
Defined in: [index.ts:
|
|
892
|
+
Defined in: [index.ts:220](https://github.com/maiyunnet/kebab/blob/master/index.ts#L220)
|
|
893
893
|
|
|
894
894
|
index/interfaces/IConfigDb.md
|
|
895
895
|
---
|
|
@@ -902,7 +902,7 @@ index/interfaces/IConfigDb.md
|
|
|
902
902
|
|
|
903
903
|
# Interface: IConfigDb
|
|
904
904
|
|
|
905
|
-
Defined in: [index.ts:
|
|
905
|
+
Defined in: [index.ts:148](https://github.com/maiyunnet/kebab/blob/master/index.ts#L148)
|
|
906
906
|
|
|
907
907
|
数据库
|
|
908
908
|
|
|
@@ -912,7 +912,7 @@ Defined in: [index.ts:149](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
912
912
|
|
|
913
913
|
> `optional` **charset?**: `string`
|
|
914
914
|
|
|
915
|
-
Defined in: [index.ts:
|
|
915
|
+
Defined in: [index.ts:151](https://github.com/maiyunnet/kebab/blob/master/index.ts#L151)
|
|
916
916
|
|
|
917
917
|
***
|
|
918
918
|
|
|
@@ -920,7 +920,7 @@ Defined in: [index.ts:152](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
920
920
|
|
|
921
921
|
> **host**: `string`
|
|
922
922
|
|
|
923
|
-
Defined in: [index.ts:
|
|
923
|
+
Defined in: [index.ts:149](https://github.com/maiyunnet/kebab/blob/master/index.ts#L149)
|
|
924
924
|
|
|
925
925
|
***
|
|
926
926
|
|
|
@@ -928,7 +928,7 @@ Defined in: [index.ts:150](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
928
928
|
|
|
929
929
|
> `optional` **name?**: `string`
|
|
930
930
|
|
|
931
|
-
Defined in: [index.ts:
|
|
931
|
+
Defined in: [index.ts:152](https://github.com/maiyunnet/kebab/blob/master/index.ts#L152)
|
|
932
932
|
|
|
933
933
|
***
|
|
934
934
|
|
|
@@ -936,7 +936,7 @@ Defined in: [index.ts:153](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
936
936
|
|
|
937
937
|
> **port**: `number`
|
|
938
938
|
|
|
939
|
-
Defined in: [index.ts:
|
|
939
|
+
Defined in: [index.ts:150](https://github.com/maiyunnet/kebab/blob/master/index.ts#L150)
|
|
940
940
|
|
|
941
941
|
***
|
|
942
942
|
|
|
@@ -944,7 +944,7 @@ Defined in: [index.ts:151](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
944
944
|
|
|
945
945
|
> **pwd**: `string`
|
|
946
946
|
|
|
947
|
-
Defined in: [index.ts:
|
|
947
|
+
Defined in: [index.ts:155](https://github.com/maiyunnet/kebab/blob/master/index.ts#L155)
|
|
948
948
|
|
|
949
949
|
***
|
|
950
950
|
|
|
@@ -952,7 +952,7 @@ Defined in: [index.ts:156](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
952
952
|
|
|
953
953
|
> **user**: `string`
|
|
954
954
|
|
|
955
|
-
Defined in: [index.ts:
|
|
955
|
+
Defined in: [index.ts:154](https://github.com/maiyunnet/kebab/blob/master/index.ts#L154)
|
|
956
956
|
|
|
957
957
|
index/interfaces/IConfigDns.md
|
|
958
958
|
---
|
|
@@ -965,7 +965,7 @@ index/interfaces/IConfigDns.md
|
|
|
965
965
|
|
|
966
966
|
# Interface: IConfigDns
|
|
967
967
|
|
|
968
|
-
Defined in: [index.ts:
|
|
968
|
+
Defined in: [index.ts:159](https://github.com/maiyunnet/kebab/blob/master/index.ts#L159)
|
|
969
969
|
|
|
970
970
|
DNS
|
|
971
971
|
|
|
@@ -975,7 +975,7 @@ DNS
|
|
|
975
975
|
|
|
976
976
|
> **sid**: `string`
|
|
977
977
|
|
|
978
|
-
Defined in: [index.ts:
|
|
978
|
+
Defined in: [index.ts:160](https://github.com/maiyunnet/kebab/blob/master/index.ts#L160)
|
|
979
979
|
|
|
980
980
|
***
|
|
981
981
|
|
|
@@ -983,7 +983,7 @@ Defined in: [index.ts:161](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
983
983
|
|
|
984
984
|
> **skey**: `string`
|
|
985
985
|
|
|
986
|
-
Defined in: [index.ts:
|
|
986
|
+
Defined in: [index.ts:161](https://github.com/maiyunnet/kebab/blob/master/index.ts#L161)
|
|
987
987
|
|
|
988
988
|
index/interfaces/IConfigKv.md
|
|
989
989
|
---
|
|
@@ -996,7 +996,7 @@ index/interfaces/IConfigKv.md
|
|
|
996
996
|
|
|
997
997
|
# Interface: IConfigKv
|
|
998
998
|
|
|
999
|
-
Defined in: [index.ts:
|
|
999
|
+
Defined in: [index.ts:165](https://github.com/maiyunnet/kebab/blob/master/index.ts#L165)
|
|
1000
1000
|
|
|
1001
1001
|
kv
|
|
1002
1002
|
|
|
@@ -1006,7 +1006,7 @@ kv
|
|
|
1006
1006
|
|
|
1007
1007
|
> **host**: `string`
|
|
1008
1008
|
|
|
1009
|
-
Defined in: [index.ts:
|
|
1009
|
+
Defined in: [index.ts:166](https://github.com/maiyunnet/kebab/blob/master/index.ts#L166)
|
|
1010
1010
|
|
|
1011
1011
|
***
|
|
1012
1012
|
|
|
@@ -1014,7 +1014,7 @@ Defined in: [index.ts:167](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1014
1014
|
|
|
1015
1015
|
> **index**: `number`
|
|
1016
1016
|
|
|
1017
|
-
Defined in: [index.ts:
|
|
1017
|
+
Defined in: [index.ts:168](https://github.com/maiyunnet/kebab/blob/master/index.ts#L168)
|
|
1018
1018
|
|
|
1019
1019
|
***
|
|
1020
1020
|
|
|
@@ -1022,7 +1022,7 @@ Defined in: [index.ts:169](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1022
1022
|
|
|
1023
1023
|
> **port**: `number`
|
|
1024
1024
|
|
|
1025
|
-
Defined in: [index.ts:
|
|
1025
|
+
Defined in: [index.ts:167](https://github.com/maiyunnet/kebab/blob/master/index.ts#L167)
|
|
1026
1026
|
|
|
1027
1027
|
***
|
|
1028
1028
|
|
|
@@ -1030,7 +1030,7 @@ Defined in: [index.ts:168](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1030
1030
|
|
|
1031
1031
|
> **pre**: `string`
|
|
1032
1032
|
|
|
1033
|
-
Defined in: [index.ts:
|
|
1033
|
+
Defined in: [index.ts:169](https://github.com/maiyunnet/kebab/blob/master/index.ts#L169)
|
|
1034
1034
|
|
|
1035
1035
|
***
|
|
1036
1036
|
|
|
@@ -1038,7 +1038,7 @@ Defined in: [index.ts:170](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1038
1038
|
|
|
1039
1039
|
> **pwd**: `string`
|
|
1040
1040
|
|
|
1041
|
-
Defined in: [index.ts:
|
|
1041
|
+
Defined in: [index.ts:172](https://github.com/maiyunnet/kebab/blob/master/index.ts#L172)
|
|
1042
1042
|
|
|
1043
1043
|
***
|
|
1044
1044
|
|
|
@@ -1046,7 +1046,7 @@ Defined in: [index.ts:173](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1046
1046
|
|
|
1047
1047
|
> **user**: `string`
|
|
1048
1048
|
|
|
1049
|
-
Defined in: [index.ts:
|
|
1049
|
+
Defined in: [index.ts:171](https://github.com/maiyunnet/kebab/blob/master/index.ts#L171)
|
|
1050
1050
|
|
|
1051
1051
|
index/interfaces/IConfigLang.md
|
|
1052
1052
|
---
|
|
@@ -1059,7 +1059,7 @@ index/interfaces/IConfigLang.md
|
|
|
1059
1059
|
|
|
1060
1060
|
# Interface: IConfigLang
|
|
1061
1061
|
|
|
1062
|
-
Defined in: [index.ts:
|
|
1062
|
+
Defined in: [index.ts:102](https://github.com/maiyunnet/kebab/blob/master/index.ts#L102)
|
|
1063
1063
|
|
|
1064
1064
|
语言
|
|
1065
1065
|
|
|
@@ -1069,7 +1069,7 @@ Defined in: [index.ts:103](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1069
1069
|
|
|
1070
1070
|
> **direct**: `string`[]
|
|
1071
1071
|
|
|
1072
|
-
Defined in: [index.ts:
|
|
1072
|
+
Defined in: [index.ts:104](https://github.com/maiyunnet/kebab/blob/master/index.ts#L104)
|
|
1073
1073
|
|
|
1074
1074
|
***
|
|
1075
1075
|
|
|
@@ -1077,7 +1077,7 @@ Defined in: [index.ts:105](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1077
1077
|
|
|
1078
1078
|
> **list**: `string`[]
|
|
1079
1079
|
|
|
1080
|
-
Defined in: [index.ts:
|
|
1080
|
+
Defined in: [index.ts:103](https://github.com/maiyunnet/kebab/blob/master/index.ts#L103)
|
|
1081
1081
|
|
|
1082
1082
|
index/interfaces/IConfig.md
|
|
1083
1083
|
---
|
|
@@ -1090,7 +1090,7 @@ index/interfaces/IConfig.md
|
|
|
1090
1090
|
|
|
1091
1091
|
# Interface: IConfig
|
|
1092
1092
|
|
|
1093
|
-
Defined in: [index.ts:
|
|
1093
|
+
Defined in: [index.ts:50](https://github.com/maiyunnet/kebab/blob/master/index.ts#L50)
|
|
1094
1094
|
|
|
1095
1095
|
目录配置文件
|
|
1096
1096
|
|
|
@@ -1104,7 +1104,7 @@ Defined in: [index.ts:51](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1104
1104
|
|
|
1105
1105
|
> **ai**: `Record`\<`string`, [`IConfigAi`](IConfigAi.md)\>
|
|
1106
1106
|
|
|
1107
|
-
Defined in: [index.ts:
|
|
1107
|
+
Defined in: [index.ts:81](https://github.com/maiyunnet/kebab/blob/master/index.ts#L81)
|
|
1108
1108
|
|
|
1109
1109
|
***
|
|
1110
1110
|
|
|
@@ -1112,7 +1112,7 @@ Defined in: [index.ts:82](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1112
1112
|
|
|
1113
1113
|
> **const**: [`IConfigConst`](IConfigConst.md)
|
|
1114
1114
|
|
|
1115
|
-
Defined in: [index.ts:
|
|
1115
|
+
Defined in: [index.ts:62](https://github.com/maiyunnet/kebab/blob/master/index.ts#L62)
|
|
1116
1116
|
|
|
1117
1117
|
***
|
|
1118
1118
|
|
|
@@ -1120,7 +1120,7 @@ Defined in: [index.ts:63](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1120
1120
|
|
|
1121
1121
|
> **db**: `Record`\<`string`, \{ `default`: [`IConfigDb`](IConfigDb.md); `read`: [`IConfigDb`](IConfigDb.md); \}\> & `object`
|
|
1122
1122
|
|
|
1123
|
-
Defined in: [index.ts:
|
|
1123
|
+
Defined in: [index.ts:63](https://github.com/maiyunnet/kebab/blob/master/index.ts#L63)
|
|
1124
1124
|
|
|
1125
1125
|
#### Type Declaration
|
|
1126
1126
|
|
|
@@ -1134,7 +1134,7 @@ Defined in: [index.ts:64](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1134
1134
|
|
|
1135
1135
|
> **dns**: `Record`\<`string`, [`IConfigDns`](IConfigDns.md)\>
|
|
1136
1136
|
|
|
1137
|
-
Defined in: [index.ts:
|
|
1137
|
+
Defined in: [index.ts:77](https://github.com/maiyunnet/kebab/blob/master/index.ts#L77)
|
|
1138
1138
|
|
|
1139
1139
|
***
|
|
1140
1140
|
|
|
@@ -1142,7 +1142,7 @@ Defined in: [index.ts:78](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1142
1142
|
|
|
1143
1143
|
> **kv**: [`IConfigKv`](IConfigKv.md)
|
|
1144
1144
|
|
|
1145
|
-
Defined in: [index.ts:
|
|
1145
|
+
Defined in: [index.ts:69](https://github.com/maiyunnet/kebab/blob/master/index.ts#L69)
|
|
1146
1146
|
|
|
1147
1147
|
***
|
|
1148
1148
|
|
|
@@ -1150,7 +1150,7 @@ Defined in: [index.ts:70](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1150
1150
|
|
|
1151
1151
|
> **lang**: [`IConfigLang`](IConfigLang.md)
|
|
1152
1152
|
|
|
1153
|
-
Defined in: [index.ts:
|
|
1153
|
+
Defined in: [index.ts:78](https://github.com/maiyunnet/kebab/blob/master/index.ts#L78)
|
|
1154
1154
|
|
|
1155
1155
|
***
|
|
1156
1156
|
|
|
@@ -1158,7 +1158,7 @@ Defined in: [index.ts:79](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1158
1158
|
|
|
1159
1159
|
> **route**: `Record`\<`string`, `string`\>
|
|
1160
1160
|
|
|
1161
|
-
Defined in: [index.ts:
|
|
1161
|
+
Defined in: [index.ts:70](https://github.com/maiyunnet/kebab/blob/master/index.ts#L70)
|
|
1162
1162
|
|
|
1163
1163
|
***
|
|
1164
1164
|
|
|
@@ -1166,7 +1166,7 @@ Defined in: [index.ts:71](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1166
1166
|
|
|
1167
1167
|
> **s3**: `Record`\<`string`, [`IConfigS3`](IConfigS3.md)\>
|
|
1168
1168
|
|
|
1169
|
-
Defined in: [index.ts:
|
|
1169
|
+
Defined in: [index.ts:79](https://github.com/maiyunnet/kebab/blob/master/index.ts#L79)
|
|
1170
1170
|
|
|
1171
1171
|
***
|
|
1172
1172
|
|
|
@@ -1174,7 +1174,7 @@ Defined in: [index.ts:80](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1174
1174
|
|
|
1175
1175
|
> **session**: `object`
|
|
1176
1176
|
|
|
1177
|
-
Defined in: [index.ts:
|
|
1177
|
+
Defined in: [index.ts:71](https://github.com/maiyunnet/kebab/blob/master/index.ts#L71)
|
|
1178
1178
|
|
|
1179
1179
|
#### name
|
|
1180
1180
|
|
|
@@ -1194,7 +1194,7 @@ Defined in: [index.ts:72](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1194
1194
|
|
|
1195
1195
|
> **set**: `object`
|
|
1196
1196
|
|
|
1197
|
-
Defined in: [index.ts:
|
|
1197
|
+
Defined in: [index.ts:51](https://github.com/maiyunnet/kebab/blob/master/index.ts#L51)
|
|
1198
1198
|
|
|
1199
1199
|
#### Index Signature
|
|
1200
1200
|
|
|
@@ -1230,7 +1230,7 @@ Defined in: [index.ts:52](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1230
1230
|
|
|
1231
1231
|
> **sql**: [`IConfigSql`](IConfigSql.md)
|
|
1232
1232
|
|
|
1233
|
-
Defined in: [index.ts:
|
|
1233
|
+
Defined in: [index.ts:76](https://github.com/maiyunnet/kebab/blob/master/index.ts#L76)
|
|
1234
1234
|
|
|
1235
1235
|
***
|
|
1236
1236
|
|
|
@@ -1238,7 +1238,7 @@ Defined in: [index.ts:77](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1238
1238
|
|
|
1239
1239
|
> **turnstile**: [`IConfigTurnstile`](IConfigTurnstile.md)
|
|
1240
1240
|
|
|
1241
|
-
Defined in: [index.ts:
|
|
1241
|
+
Defined in: [index.ts:80](https://github.com/maiyunnet/kebab/blob/master/index.ts#L80)
|
|
1242
1242
|
|
|
1243
1243
|
***
|
|
1244
1244
|
|
|
@@ -1246,7 +1246,7 @@ Defined in: [index.ts:81](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1246
1246
|
|
|
1247
1247
|
> **vector**: [`IConfigVector`](IConfigVector.md)
|
|
1248
1248
|
|
|
1249
|
-
Defined in: [index.ts:
|
|
1249
|
+
Defined in: [index.ts:82](https://github.com/maiyunnet/kebab/blob/master/index.ts#L82)
|
|
1250
1250
|
|
|
1251
1251
|
index/interfaces/IConfigS3.md
|
|
1252
1252
|
---
|
|
@@ -1259,7 +1259,7 @@ index/interfaces/IConfigS3.md
|
|
|
1259
1259
|
|
|
1260
1260
|
# Interface: IConfigS3
|
|
1261
1261
|
|
|
1262
|
-
Defined in: [index.ts:
|
|
1262
|
+
Defined in: [index.ts:108](https://github.com/maiyunnet/kebab/blob/master/index.ts#L108)
|
|
1263
1263
|
|
|
1264
1264
|
对象存储
|
|
1265
1265
|
|
|
@@ -1269,7 +1269,7 @@ Defined in: [index.ts:109](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1269
1269
|
|
|
1270
1270
|
> `optional` **account?**: `string`
|
|
1271
1271
|
|
|
1272
|
-
Defined in: [index.ts:
|
|
1272
|
+
Defined in: [index.ts:110](https://github.com/maiyunnet/kebab/blob/master/index.ts#L110)
|
|
1273
1273
|
|
|
1274
1274
|
cf r2 要用
|
|
1275
1275
|
|
|
@@ -1279,7 +1279,7 @@ cf r2 要用
|
|
|
1279
1279
|
|
|
1280
1280
|
> **bucket**: `string`
|
|
1281
1281
|
|
|
1282
|
-
Defined in: [index.ts:
|
|
1282
|
+
Defined in: [index.ts:114](https://github.com/maiyunnet/kebab/blob/master/index.ts#L114)
|
|
1283
1283
|
|
|
1284
1284
|
***
|
|
1285
1285
|
|
|
@@ -1287,7 +1287,7 @@ Defined in: [index.ts:115](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1287
1287
|
|
|
1288
1288
|
> **region**: `string`
|
|
1289
1289
|
|
|
1290
|
-
Defined in: [index.ts:
|
|
1290
|
+
Defined in: [index.ts:113](https://github.com/maiyunnet/kebab/blob/master/index.ts#L113)
|
|
1291
1291
|
|
|
1292
1292
|
***
|
|
1293
1293
|
|
|
@@ -1295,7 +1295,7 @@ Defined in: [index.ts:114](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1295
1295
|
|
|
1296
1296
|
> **sid**: `string`
|
|
1297
1297
|
|
|
1298
|
-
Defined in: [index.ts:
|
|
1298
|
+
Defined in: [index.ts:111](https://github.com/maiyunnet/kebab/blob/master/index.ts#L111)
|
|
1299
1299
|
|
|
1300
1300
|
***
|
|
1301
1301
|
|
|
@@ -1303,7 +1303,7 @@ Defined in: [index.ts:112](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1303
1303
|
|
|
1304
1304
|
> **skey**: `string`
|
|
1305
1305
|
|
|
1306
|
-
Defined in: [index.ts:
|
|
1306
|
+
Defined in: [index.ts:112](https://github.com/maiyunnet/kebab/blob/master/index.ts#L112)
|
|
1307
1307
|
|
|
1308
1308
|
index/interfaces/IConfigSql.md
|
|
1309
1309
|
---
|
|
@@ -1316,7 +1316,7 @@ index/interfaces/IConfigSql.md
|
|
|
1316
1316
|
|
|
1317
1317
|
# Interface: IConfigSql
|
|
1318
1318
|
|
|
1319
|
-
Defined in: [index.ts:
|
|
1319
|
+
Defined in: [index.ts:176](https://github.com/maiyunnet/kebab/blob/master/index.ts#L176)
|
|
1320
1320
|
|
|
1321
1321
|
sql
|
|
1322
1322
|
|
|
@@ -1326,7 +1326,7 @@ sql
|
|
|
1326
1326
|
|
|
1327
1327
|
> **pre**: `string`
|
|
1328
1328
|
|
|
1329
|
-
Defined in: [index.ts:
|
|
1329
|
+
Defined in: [index.ts:177](https://github.com/maiyunnet/kebab/blob/master/index.ts#L177)
|
|
1330
1330
|
|
|
1331
1331
|
index/interfaces/IConfigTurnstile.md
|
|
1332
1332
|
---
|
|
@@ -1339,7 +1339,7 @@ index/interfaces/IConfigTurnstile.md
|
|
|
1339
1339
|
|
|
1340
1340
|
# Interface: IConfigTurnstile
|
|
1341
1341
|
|
|
1342
|
-
Defined in: [index.ts:
|
|
1342
|
+
Defined in: [index.ts:134](https://github.com/maiyunnet/kebab/blob/master/index.ts#L134)
|
|
1343
1343
|
|
|
1344
1344
|
人机码信息
|
|
1345
1345
|
|
|
@@ -1349,7 +1349,7 @@ Defined in: [index.ts:135](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1349
1349
|
|
|
1350
1350
|
> **CF**: `object`
|
|
1351
1351
|
|
|
1352
|
-
Defined in: [index.ts:
|
|
1352
|
+
Defined in: [index.ts:135](https://github.com/maiyunnet/kebab/blob/master/index.ts#L135)
|
|
1353
1353
|
|
|
1354
1354
|
#### sid
|
|
1355
1355
|
|
|
@@ -1365,7 +1365,7 @@ Defined in: [index.ts:136](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1365
1365
|
|
|
1366
1366
|
> **TENCENT**: `object`
|
|
1367
1367
|
|
|
1368
|
-
Defined in: [index.ts:
|
|
1368
|
+
Defined in: [index.ts:139](https://github.com/maiyunnet/kebab/blob/master/index.ts#L139)
|
|
1369
1369
|
|
|
1370
1370
|
#### aid
|
|
1371
1371
|
|
|
@@ -1394,7 +1394,7 @@ index/interfaces/IConfigVector.md
|
|
|
1394
1394
|
|
|
1395
1395
|
# Interface: IConfigVector
|
|
1396
1396
|
|
|
1397
|
-
Defined in: [index.ts:
|
|
1397
|
+
Defined in: [index.ts:125](https://github.com/maiyunnet/kebab/blob/master/index.ts#L125)
|
|
1398
1398
|
|
|
1399
1399
|
向量数据库
|
|
1400
1400
|
|
|
@@ -1404,7 +1404,7 @@ Defined in: [index.ts:126](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1404
1404
|
|
|
1405
1405
|
> **host**: `string`
|
|
1406
1406
|
|
|
1407
|
-
Defined in: [index.ts:
|
|
1407
|
+
Defined in: [index.ts:126](https://github.com/maiyunnet/kebab/blob/master/index.ts#L126)
|
|
1408
1408
|
|
|
1409
1409
|
***
|
|
1410
1410
|
|
|
@@ -1412,7 +1412,7 @@ Defined in: [index.ts:127](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1412
1412
|
|
|
1413
1413
|
> **name**: `string`
|
|
1414
1414
|
|
|
1415
|
-
Defined in: [index.ts:
|
|
1415
|
+
Defined in: [index.ts:128](https://github.com/maiyunnet/kebab/blob/master/index.ts#L128)
|
|
1416
1416
|
|
|
1417
1417
|
***
|
|
1418
1418
|
|
|
@@ -1420,7 +1420,7 @@ Defined in: [index.ts:129](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1420
1420
|
|
|
1421
1421
|
> **port**: `number`
|
|
1422
1422
|
|
|
1423
|
-
Defined in: [index.ts:
|
|
1423
|
+
Defined in: [index.ts:127](https://github.com/maiyunnet/kebab/blob/master/index.ts#L127)
|
|
1424
1424
|
|
|
1425
1425
|
***
|
|
1426
1426
|
|
|
@@ -1428,7 +1428,7 @@ Defined in: [index.ts:128](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1428
1428
|
|
|
1429
1429
|
> **pwd**: `string`
|
|
1430
1430
|
|
|
1431
|
-
Defined in: [index.ts:
|
|
1431
|
+
Defined in: [index.ts:130](https://github.com/maiyunnet/kebab/blob/master/index.ts#L130)
|
|
1432
1432
|
|
|
1433
1433
|
***
|
|
1434
1434
|
|
|
@@ -1436,7 +1436,7 @@ Defined in: [index.ts:131](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1436
1436
|
|
|
1437
1437
|
> **user**: `string`
|
|
1438
1438
|
|
|
1439
|
-
Defined in: [index.ts:
|
|
1439
|
+
Defined in: [index.ts:129](https://github.com/maiyunnet/kebab/blob/master/index.ts#L129)
|
|
1440
1440
|
|
|
1441
1441
|
index/interfaces/IPostFile.md
|
|
1442
1442
|
---
|
|
@@ -1449,7 +1449,7 @@ index/interfaces/IPostFile.md
|
|
|
1449
1449
|
|
|
1450
1450
|
# Interface: IPostFile
|
|
1451
1451
|
|
|
1452
|
-
Defined in: [index.ts:
|
|
1452
|
+
Defined in: [index.ts:239](https://github.com/maiyunnet/kebab/blob/master/index.ts#L239)
|
|
1453
1453
|
|
|
1454
1454
|
上传的文件信息对象
|
|
1455
1455
|
|
|
@@ -1459,7 +1459,7 @@ Defined in: [index.ts:240](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1459
1459
|
|
|
1460
1460
|
> `readonly` **name**: `string`
|
|
1461
1461
|
|
|
1462
|
-
Defined in: [index.ts:
|
|
1462
|
+
Defined in: [index.ts:240](https://github.com/maiyunnet/kebab/blob/master/index.ts#L240)
|
|
1463
1463
|
|
|
1464
1464
|
***
|
|
1465
1465
|
|
|
@@ -1467,7 +1467,7 @@ Defined in: [index.ts:241](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1467
1467
|
|
|
1468
1468
|
> `readonly` **origin**: `string`
|
|
1469
1469
|
|
|
1470
|
-
Defined in: [index.ts:
|
|
1470
|
+
Defined in: [index.ts:241](https://github.com/maiyunnet/kebab/blob/master/index.ts#L241)
|
|
1471
1471
|
|
|
1472
1472
|
***
|
|
1473
1473
|
|
|
@@ -1475,7 +1475,7 @@ Defined in: [index.ts:242](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1475
1475
|
|
|
1476
1476
|
> `readonly` **path**: `string`
|
|
1477
1477
|
|
|
1478
|
-
Defined in: [index.ts:
|
|
1478
|
+
Defined in: [index.ts:243](https://github.com/maiyunnet/kebab/blob/master/index.ts#L243)
|
|
1479
1479
|
|
|
1480
1480
|
***
|
|
1481
1481
|
|
|
@@ -1483,7 +1483,7 @@ Defined in: [index.ts:244](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1483
1483
|
|
|
1484
1484
|
> `readonly` **size**: `number`
|
|
1485
1485
|
|
|
1486
|
-
Defined in: [index.ts:
|
|
1486
|
+
Defined in: [index.ts:242](https://github.com/maiyunnet/kebab/blob/master/index.ts#L242)
|
|
1487
1487
|
|
|
1488
1488
|
index/interfaces/IUrlParse.md
|
|
1489
1489
|
---
|
|
@@ -1496,7 +1496,7 @@ index/interfaces/IUrlParse.md
|
|
|
1496
1496
|
|
|
1497
1497
|
# Interface: IUrlParse
|
|
1498
1498
|
|
|
1499
|
-
Defined in: [index.ts:
|
|
1499
|
+
Defined in: [index.ts:87](https://github.com/maiyunnet/kebab/blob/master/index.ts#L87)
|
|
1500
1500
|
|
|
1501
1501
|
## Properties
|
|
1502
1502
|
|
|
@@ -1504,7 +1504,7 @@ Defined in: [index.ts:88](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1504
1504
|
|
|
1505
1505
|
> **auth**: `string` \| `null`
|
|
1506
1506
|
|
|
1507
|
-
Defined in: [index.ts:
|
|
1507
|
+
Defined in: [index.ts:89](https://github.com/maiyunnet/kebab/blob/master/index.ts#L89)
|
|
1508
1508
|
|
|
1509
1509
|
***
|
|
1510
1510
|
|
|
@@ -1512,7 +1512,7 @@ Defined in: [index.ts:90](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1512
1512
|
|
|
1513
1513
|
> **hash**: `string` \| `null`
|
|
1514
1514
|
|
|
1515
|
-
Defined in: [index.ts:
|
|
1515
|
+
Defined in: [index.ts:98](https://github.com/maiyunnet/kebab/blob/master/index.ts#L98)
|
|
1516
1516
|
|
|
1517
1517
|
***
|
|
1518
1518
|
|
|
@@ -1520,7 +1520,7 @@ Defined in: [index.ts:99](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1520
1520
|
|
|
1521
1521
|
> **host**: `string` \| `null`
|
|
1522
1522
|
|
|
1523
|
-
Defined in: [index.ts:
|
|
1523
|
+
Defined in: [index.ts:92](https://github.com/maiyunnet/kebab/blob/master/index.ts#L92)
|
|
1524
1524
|
|
|
1525
1525
|
***
|
|
1526
1526
|
|
|
@@ -1528,7 +1528,7 @@ Defined in: [index.ts:93](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1528
1528
|
|
|
1529
1529
|
> **hostname**: `string` \| `null`
|
|
1530
1530
|
|
|
1531
|
-
Defined in: [index.ts:
|
|
1531
|
+
Defined in: [index.ts:93](https://github.com/maiyunnet/kebab/blob/master/index.ts#L93)
|
|
1532
1532
|
|
|
1533
1533
|
***
|
|
1534
1534
|
|
|
@@ -1536,7 +1536,7 @@ Defined in: [index.ts:94](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1536
1536
|
|
|
1537
1537
|
> **pass**: `string` \| `null`
|
|
1538
1538
|
|
|
1539
|
-
Defined in: [index.ts:
|
|
1539
|
+
Defined in: [index.ts:91](https://github.com/maiyunnet/kebab/blob/master/index.ts#L91)
|
|
1540
1540
|
|
|
1541
1541
|
***
|
|
1542
1542
|
|
|
@@ -1544,7 +1544,7 @@ Defined in: [index.ts:92](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1544
1544
|
|
|
1545
1545
|
> **path**: `string` \| `null`
|
|
1546
1546
|
|
|
1547
|
-
Defined in: [index.ts:
|
|
1547
|
+
Defined in: [index.ts:96](https://github.com/maiyunnet/kebab/blob/master/index.ts#L96)
|
|
1548
1548
|
|
|
1549
1549
|
***
|
|
1550
1550
|
|
|
@@ -1552,7 +1552,7 @@ Defined in: [index.ts:97](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1552
1552
|
|
|
1553
1553
|
> **pathname**: `string`
|
|
1554
1554
|
|
|
1555
|
-
Defined in: [index.ts:
|
|
1555
|
+
Defined in: [index.ts:95](https://github.com/maiyunnet/kebab/blob/master/index.ts#L95)
|
|
1556
1556
|
|
|
1557
1557
|
***
|
|
1558
1558
|
|
|
@@ -1560,7 +1560,7 @@ Defined in: [index.ts:96](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1560
1560
|
|
|
1561
1561
|
> **port**: `string` \| `null`
|
|
1562
1562
|
|
|
1563
|
-
Defined in: [index.ts:
|
|
1563
|
+
Defined in: [index.ts:94](https://github.com/maiyunnet/kebab/blob/master/index.ts#L94)
|
|
1564
1564
|
|
|
1565
1565
|
***
|
|
1566
1566
|
|
|
@@ -1568,7 +1568,7 @@ Defined in: [index.ts:95](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1568
1568
|
|
|
1569
1569
|
> **protocol**: `string` \| `null`
|
|
1570
1570
|
|
|
1571
|
-
Defined in: [index.ts:
|
|
1571
|
+
Defined in: [index.ts:88](https://github.com/maiyunnet/kebab/blob/master/index.ts#L88)
|
|
1572
1572
|
|
|
1573
1573
|
***
|
|
1574
1574
|
|
|
@@ -1576,7 +1576,7 @@ Defined in: [index.ts:89](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1576
1576
|
|
|
1577
1577
|
> **query**: `string` \| `null`
|
|
1578
1578
|
|
|
1579
|
-
Defined in: [index.ts:
|
|
1579
|
+
Defined in: [index.ts:97](https://github.com/maiyunnet/kebab/blob/master/index.ts#L97)
|
|
1580
1580
|
|
|
1581
1581
|
***
|
|
1582
1582
|
|
|
@@ -1584,7 +1584,7 @@ Defined in: [index.ts:98](https://github.com/maiyunnet/kebab/blob/master/index.t
|
|
|
1584
1584
|
|
|
1585
1585
|
> **user**: `string` \| `null`
|
|
1586
1586
|
|
|
1587
|
-
Defined in: [index.ts:
|
|
1587
|
+
Defined in: [index.ts:90](https://github.com/maiyunnet/kebab/blob/master/index.ts#L90)
|
|
1588
1588
|
|
|
1589
1589
|
index/interfaces/IVhost.md
|
|
1590
1590
|
---
|
|
@@ -1597,7 +1597,7 @@ index/interfaces/IVhost.md
|
|
|
1597
1597
|
|
|
1598
1598
|
# Interface: IVhost
|
|
1599
1599
|
|
|
1600
|
-
Defined in: [index.ts:
|
|
1600
|
+
Defined in: [index.ts:231](https://github.com/maiyunnet/kebab/blob/master/index.ts#L231)
|
|
1601
1601
|
|
|
1602
1602
|
虚拟机配置对象
|
|
1603
1603
|
|
|
@@ -1607,7 +1607,7 @@ Defined in: [index.ts:232](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1607
1607
|
|
|
1608
1608
|
> `readonly` **domains**: `string`[]
|
|
1609
1609
|
|
|
1610
|
-
Defined in: [index.ts:
|
|
1610
|
+
Defined in: [index.ts:233](https://github.com/maiyunnet/kebab/blob/master/index.ts#L233)
|
|
1611
1611
|
|
|
1612
1612
|
***
|
|
1613
1613
|
|
|
@@ -1615,7 +1615,7 @@ Defined in: [index.ts:234](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1615
1615
|
|
|
1616
1616
|
> `readonly` `optional` **name?**: `string`
|
|
1617
1617
|
|
|
1618
|
-
Defined in: [index.ts:
|
|
1618
|
+
Defined in: [index.ts:232](https://github.com/maiyunnet/kebab/blob/master/index.ts#L232)
|
|
1619
1619
|
|
|
1620
1620
|
***
|
|
1621
1621
|
|
|
@@ -1623,7 +1623,7 @@ Defined in: [index.ts:233](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1623
1623
|
|
|
1624
1624
|
> `readonly` `optional` **remark?**: `string`
|
|
1625
1625
|
|
|
1626
|
-
Defined in: [index.ts:
|
|
1626
|
+
Defined in: [index.ts:235](https://github.com/maiyunnet/kebab/blob/master/index.ts#L235)
|
|
1627
1627
|
|
|
1628
1628
|
***
|
|
1629
1629
|
|
|
@@ -1631,7 +1631,7 @@ Defined in: [index.ts:236](https://github.com/maiyunnet/kebab/blob/master/index.
|
|
|
1631
1631
|
|
|
1632
1632
|
> `readonly` **root**: `string`
|
|
1633
1633
|
|
|
1634
|
-
Defined in: [index.ts:
|
|
1634
|
+
Defined in: [index.ts:234](https://github.com/maiyunnet/kebab/blob/master/index.ts#L234)
|
|
1635
1635
|
|
|
1636
1636
|
index.md
|
|
1637
1637
|
---
|
|
@@ -1708,7 +1708,7 @@ index/type-aliases/DbValue.md
|
|
|
1708
1708
|
|
|
1709
1709
|
> **DbValue** = `string` \| `number` \| `null` \| `Record`\<`string`, [`Json`](Json.md)\>
|
|
1710
1710
|
|
|
1711
|
-
Defined in: [index.ts:
|
|
1711
|
+
Defined in: [index.ts:47](https://github.com/maiyunnet/kebab/blob/master/index.ts#L47)
|
|
1712
1712
|
|
|
1713
1713
|
数据库值的类型
|
|
1714
1714
|
|
|
@@ -1725,7 +1725,7 @@ index/type-aliases/Json.md
|
|
|
1725
1725
|
|
|
1726
1726
|
> **Json** = `any`
|
|
1727
1727
|
|
|
1728
|
-
Defined in: [index.ts:
|
|
1728
|
+
Defined in: [index.ts:44](https://github.com/maiyunnet/kebab/blob/master/index.ts#L44)
|
|
1729
1729
|
|
|
1730
1730
|
除非确定是不可知的 Json,否则不能使用
|
|
1731
1731
|
|
|
@@ -1742,7 +1742,7 @@ index/variables/CERT_CWD.md
|
|
|
1742
1742
|
|
|
1743
1743
|
> `const` **CERT\_CWD**: `string`
|
|
1744
1744
|
|
|
1745
|
-
Defined in: [index.ts:
|
|
1745
|
+
Defined in: [index.ts:31](https://github.com/maiyunnet/kebab/blob/master/index.ts#L31)
|
|
1746
1746
|
|
|
1747
1747
|
index/variables/CONF_CWD.md
|
|
1748
1748
|
---
|
|
@@ -1757,7 +1757,7 @@ index/variables/CONF_CWD.md
|
|
|
1757
1757
|
|
|
1758
1758
|
> `const` **CONF\_CWD**: `string`
|
|
1759
1759
|
|
|
1760
|
-
Defined in: [index.ts:
|
|
1760
|
+
Defined in: [index.ts:30](https://github.com/maiyunnet/kebab/blob/master/index.ts#L30)
|
|
1761
1761
|
|
|
1762
1762
|
index/variables/FTMP_CWD.md
|
|
1763
1763
|
---
|
|
@@ -1772,7 +1772,7 @@ index/variables/FTMP_CWD.md
|
|
|
1772
1772
|
|
|
1773
1773
|
> `const` **FTMP\_CWD**: `string`
|
|
1774
1774
|
|
|
1775
|
-
Defined in: [index.ts:
|
|
1775
|
+
Defined in: [index.ts:38](https://github.com/maiyunnet/kebab/blob/master/index.ts#L38)
|
|
1776
1776
|
|
|
1777
1777
|
index/variables/IND_CWD.md
|
|
1778
1778
|
---
|
|
@@ -1787,7 +1787,7 @@ index/variables/IND_CWD.md
|
|
|
1787
1787
|
|
|
1788
1788
|
> `const` **IND\_CWD**: `string`
|
|
1789
1789
|
|
|
1790
|
-
Defined in: [index.ts:
|
|
1790
|
+
Defined in: [index.ts:37](https://github.com/maiyunnet/kebab/blob/master/index.ts#L37)
|
|
1791
1791
|
|
|
1792
1792
|
index/variables/LIB_CWD.md
|
|
1793
1793
|
---
|
|
@@ -1802,7 +1802,7 @@ index/variables/LIB_CWD.md
|
|
|
1802
1802
|
|
|
1803
1803
|
> `const` **LIB\_CWD**: `string`
|
|
1804
1804
|
|
|
1805
|
-
Defined in: [index.ts:
|
|
1805
|
+
Defined in: [index.ts:34](https://github.com/maiyunnet/kebab/blob/master/index.ts#L34)
|
|
1806
1806
|
|
|
1807
1807
|
用户的根 LIB,以 / 结尾
|
|
1808
1808
|
|
|
@@ -1819,7 +1819,7 @@ index/variables/LIB_PATH.md
|
|
|
1819
1819
|
|
|
1820
1820
|
> `const` **LIB\_PATH**: `string`
|
|
1821
1821
|
|
|
1822
|
-
Defined in: [index.ts:
|
|
1822
|
+
Defined in: [index.ts:19](https://github.com/maiyunnet/kebab/blob/master/index.ts#L19)
|
|
1823
1823
|
|
|
1824
1824
|
框架的 LIB,以 / 结尾
|
|
1825
1825
|
|
|
@@ -1836,7 +1836,7 @@ index/variables/LOG_CWD.md
|
|
|
1836
1836
|
|
|
1837
1837
|
> `const` **LOG\_CWD**: `string`
|
|
1838
1838
|
|
|
1839
|
-
Defined in: [index.ts:
|
|
1839
|
+
Defined in: [index.ts:35](https://github.com/maiyunnet/kebab/blob/master/index.ts#L35)
|
|
1840
1840
|
|
|
1841
1841
|
index/variables/MOD_CWD.md
|
|
1842
1842
|
---
|
|
@@ -1851,7 +1851,7 @@ index/variables/MOD_CWD.md
|
|
|
1851
1851
|
|
|
1852
1852
|
> `const` **MOD\_CWD**: `string`
|
|
1853
1853
|
|
|
1854
|
-
Defined in: [index.ts:
|
|
1854
|
+
Defined in: [index.ts:39](https://github.com/maiyunnet/kebab/blob/master/index.ts#L39)
|
|
1855
1855
|
|
|
1856
1856
|
index/variables/ROOT_CWD.md
|
|
1857
1857
|
---
|
|
@@ -1866,7 +1866,7 @@ index/variables/ROOT_CWD.md
|
|
|
1866
1866
|
|
|
1867
1867
|
> `const` **ROOT\_CWD**: `string`
|
|
1868
1868
|
|
|
1869
|
-
Defined in: [index.ts:
|
|
1869
|
+
Defined in: [index.ts:29](https://github.com/maiyunnet/kebab/blob/master/index.ts#L29)
|
|
1870
1870
|
|
|
1871
1871
|
执行根目录,以 / 结尾
|
|
1872
1872
|
|
|
@@ -1883,7 +1883,7 @@ index/variables/ROOT_PATH.md
|
|
|
1883
1883
|
|
|
1884
1884
|
> `const` **ROOT\_PATH**: `string`
|
|
1885
1885
|
|
|
1886
|
-
Defined in: [index.ts:
|
|
1886
|
+
Defined in: [index.ts:17](https://github.com/maiyunnet/kebab/blob/master/index.ts#L17)
|
|
1887
1887
|
|
|
1888
1888
|
框架根目录,以 / 结尾
|
|
1889
1889
|
|
|
@@ -1900,7 +1900,7 @@ index/variables/SYS_PATH.md
|
|
|
1900
1900
|
|
|
1901
1901
|
> `const` **SYS\_PATH**: `string`
|
|
1902
1902
|
|
|
1903
|
-
Defined in: [index.ts:
|
|
1903
|
+
Defined in: [index.ts:20](https://github.com/maiyunnet/kebab/blob/master/index.ts#L20)
|
|
1904
1904
|
|
|
1905
1905
|
index/variables/VER.md
|
|
1906
1906
|
---
|
|
@@ -1913,9 +1913,9 @@ index/variables/VER.md
|
|
|
1913
1913
|
|
|
1914
1914
|
# Variable: VER
|
|
1915
1915
|
|
|
1916
|
-
> `const` **VER**: `"9.29.
|
|
1916
|
+
> `const` **VER**: `"9.29.2"` = `'9.29.2'`
|
|
1917
1917
|
|
|
1918
|
-
Defined in: [index.ts:
|
|
1918
|
+
Defined in: [index.ts:8](https://github.com/maiyunnet/kebab/blob/master/index.ts#L8)
|
|
1919
1919
|
|
|
1920
1920
|
当前系统版本号
|
|
1921
1921
|
|
|
@@ -1932,7 +1932,7 @@ index/variables/VHOST_CWD.md
|
|
|
1932
1932
|
|
|
1933
1933
|
> `const` **VHOST\_CWD**: `string`
|
|
1934
1934
|
|
|
1935
|
-
Defined in: [index.ts:
|
|
1935
|
+
Defined in: [index.ts:32](https://github.com/maiyunnet/kebab/blob/master/index.ts#L32)
|
|
1936
1936
|
|
|
1937
1937
|
index/variables/WWW_CWD.md
|
|
1938
1938
|
---
|
|
@@ -1947,7 +1947,7 @@ index/variables/WWW_CWD.md
|
|
|
1947
1947
|
|
|
1948
1948
|
> `const` **WWW\_CWD**: `string`
|
|
1949
1949
|
|
|
1950
|
-
Defined in: [index.ts:
|
|
1950
|
+
Defined in: [index.ts:36](https://github.com/maiyunnet/kebab/blob/master/index.ts#L36)
|
|
1951
1951
|
|
|
1952
1952
|
lib/ai/classes/Ai.md
|
|
1953
1953
|
---
|
|
@@ -3903,7 +3903,7 @@ lib/core/functions/clone.md
|
|
|
3903
3903
|
|
|
3904
3904
|
> **clone**\<`T`\>(`obj`): `T`
|
|
3905
3905
|
|
|
3906
|
-
Defined in: [lib/core.ts:
|
|
3906
|
+
Defined in: [lib/core.ts:1496](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1496)
|
|
3907
3907
|
|
|
3908
3908
|
完整的克隆一份数组/对象
|
|
3909
3909
|
|
|
@@ -3967,7 +3967,7 @@ lib/core/functions/debug.md
|
|
|
3967
3967
|
|
|
3968
3968
|
> **debug**(`message?`, ...`optionalParams`): `void`
|
|
3969
3969
|
|
|
3970
|
-
Defined in: [lib/core.ts:
|
|
3970
|
+
Defined in: [lib/core.ts:1542](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1542)
|
|
3971
3971
|
|
|
3972
3972
|
打印调试信息,线上环境不会打印
|
|
3973
3973
|
|
|
@@ -4002,7 +4002,7 @@ lib/core/functions/display.md
|
|
|
4002
4002
|
|
|
4003
4003
|
> **display**(`message?`, ...`optionalParams`): `void`
|
|
4004
4004
|
|
|
4005
|
-
Defined in: [lib/core.ts:
|
|
4005
|
+
Defined in: [lib/core.ts:1555](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1555)
|
|
4006
4006
|
|
|
4007
4007
|
向控制台直接显示内容,一般情况下禁止使用
|
|
4008
4008
|
|
|
@@ -4114,7 +4114,7 @@ lib/core/functions/getLog.md
|
|
|
4114
4114
|
|
|
4115
4115
|
> **getLog**(`opt`): `Promise`\<`false` \| \{ `list`: `any`[] \| `string`[][]; `total`: `number`; \}\>
|
|
4116
4116
|
|
|
4117
|
-
Defined in: [lib/core.ts:
|
|
4117
|
+
Defined in: [lib/core.ts:1276](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1276)
|
|
4118
4118
|
|
|
4119
4119
|
获取日志内容为一个数组
|
|
4120
4120
|
|
|
@@ -4183,7 +4183,7 @@ lib/core/functions/getMonitorEvent.md
|
|
|
4183
4183
|
|
|
4184
4184
|
> **getMonitorEvent**(`opt`): `Promise`\<`false` \| [`IMonitorEvent`](../interfaces/IMonitorEvent.md) \| `null`\>
|
|
4185
4185
|
|
|
4186
|
-
Defined in: [lib/core.ts:
|
|
4186
|
+
Defined in: [lib/core.ts:1412](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1412)
|
|
4187
4187
|
|
|
4188
4188
|
读取事件详情和文件清单;只解析事件记录,不解析 Profile 或堆快照
|
|
4189
4189
|
|
|
@@ -4220,7 +4220,7 @@ lib/core/functions/getMonitorEvents.md
|
|
|
4220
4220
|
|
|
4221
4221
|
> **getMonitorEvents**(`opt?`): `Promise`\<`false` \| \{ `list`: [`IMonitorEventSummary`](../interfaces/IMonitorEventSummary.md)[]; `total`: `number`; \}\>
|
|
4222
4222
|
|
|
4223
|
-
Defined in: [lib/core.ts:
|
|
4223
|
+
Defined in: [lib/core.ts:1385](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1385)
|
|
4224
4224
|
|
|
4225
4225
|
获取某天已保存的监控事件,按目录时间倒序分页
|
|
4226
4226
|
|
|
@@ -4267,7 +4267,7 @@ lib/core/functions/getMonitorFile.md
|
|
|
4267
4267
|
|
|
4268
4268
|
> **getMonitorFile**(`opt`): `Promise`\<`false` \| [`Response`](../../undici/response/classes/Response.md) \| `null`\>
|
|
4269
4269
|
|
|
4270
|
-
Defined in: [lib/core.ts:
|
|
4270
|
+
Defined in: [lib/core.ts:1436](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1436)
|
|
4271
4271
|
|
|
4272
4272
|
获取监控原始文件的响应,可使用 getStream() 下载;小文件可用 getText()/getJson() 预览
|
|
4273
4273
|
|
|
@@ -4412,7 +4412,7 @@ lib/core/functions/loadEnv.md
|
|
|
4412
4412
|
|
|
4413
4413
|
> **loadEnv**(`dir`): `Promise`\<`void`\>
|
|
4414
4414
|
|
|
4415
|
-
Defined in: [lib/core.ts:
|
|
4415
|
+
Defined in: [lib/core.ts:1626](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1626)
|
|
4416
4416
|
|
|
4417
4417
|
加载 .env 文件到 process.env,若文件不存在则跳过
|
|
4418
4418
|
|
|
@@ -4441,7 +4441,7 @@ lib/core/functions/log.md
|
|
|
4441
4441
|
|
|
4442
4442
|
> **log**(`opt`, `msg`, `fend?`): `void`
|
|
4443
4443
|
|
|
4444
|
-
Defined in: [lib/core.ts:
|
|
4444
|
+
Defined in: [lib/core.ts:1174](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1174)
|
|
4445
4445
|
|
|
4446
4446
|
写入文件日志,不采集 Cookie、Session 或请求体
|
|
4447
4447
|
|
|
@@ -4484,7 +4484,7 @@ lib/core/functions/ls.md
|
|
|
4484
4484
|
|
|
4485
4485
|
> **ls**(`opt`): `Promise`\<`object`[]\>
|
|
4486
4486
|
|
|
4487
|
-
Defined in: [lib/core.ts:
|
|
4487
|
+
Defined in: [lib/core.ts:1457](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1457)
|
|
4488
4488
|
|
|
4489
4489
|
获取目录内文件/文件夹列表
|
|
4490
4490
|
|
|
@@ -4889,7 +4889,7 @@ lib/core/functions/resolveEnvVars.md
|
|
|
4889
4889
|
|
|
4890
4890
|
> **resolveEnvVars**(`obj`): `void`
|
|
4891
4891
|
|
|
4892
|
-
Defined in: [lib/core.ts:
|
|
4892
|
+
Defined in: [lib/core.ts:1656](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1656)
|
|
4893
4893
|
|
|
4894
4894
|
将配置对象中的 ${ENV_VAR} 占位符替换为 process.env 的值
|
|
4895
4895
|
|
|
@@ -4953,7 +4953,7 @@ lib/core/functions/sendPackage.md
|
|
|
4953
4953
|
|
|
4954
4954
|
> **sendPackage**(`content`, `hosts?`): `Promise`\<`Record`\<`string`, \{ `result`: `boolean`; `return`: `string`; \}\>\>
|
|
4955
4955
|
|
|
4956
|
-
Defined in: [lib/core.ts:
|
|
4956
|
+
Defined in: [lib/core.ts:1082](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1082)
|
|
4957
4957
|
|
|
4958
4958
|
向本机或局域网 RPC 发送 package.json 更新操作
|
|
4959
4959
|
|
|
@@ -5031,7 +5031,7 @@ lib/core/functions/sendProject.md
|
|
|
5031
5031
|
|
|
5032
5032
|
> **sendProject**(`path`, `key`, `value`, `hosts?`): `Promise`\<`Record`\<`string`, \{ `result`: `boolean`; `return`: `string`; \}\>\>
|
|
5033
5033
|
|
|
5034
|
-
Defined in: [lib/core.ts:
|
|
5034
|
+
Defined in: [lib/core.ts:1041](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1041)
|
|
5035
5035
|
|
|
5036
5036
|
向本机或局域网 RPC 发送项目配置更新操作
|
|
5037
5037
|
|
|
@@ -5165,7 +5165,7 @@ lib/core/functions/sendVhost.md
|
|
|
5165
5165
|
|
|
5166
5166
|
> **sendVhost**(`files`, `hosts?`): `Promise`\<`Record`\<`string`, \{ `result`: `boolean`; `return`: `string`; \}\>\>
|
|
5167
5167
|
|
|
5168
|
-
Defined in: [lib/core.ts:
|
|
5168
|
+
Defined in: [lib/core.ts:1123](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1123)
|
|
5169
5169
|
|
|
5170
5170
|
全量替换各节点 conf/vhost/ 中的文件,不自动 reload
|
|
5171
5171
|
|
|
@@ -5401,7 +5401,7 @@ lib/core/functions/writeEventStreamHead.md
|
|
|
5401
5401
|
|
|
5402
5402
|
> **writeEventStreamHead**(`res`): `void`
|
|
5403
5403
|
|
|
5404
|
-
Defined in: [lib/core.ts:
|
|
5404
|
+
Defined in: [lib/core.ts:1596](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1596)
|
|
5405
5405
|
|
|
5406
5406
|
提交服务器发送事件(SSE)响应头
|
|
5407
5407
|
|
|
@@ -5436,7 +5436,7 @@ lib/core/functions/writeHead.md
|
|
|
5436
5436
|
|
|
5437
5437
|
> **writeHead**(`res`, `statusCode`, `headers?`): `void`
|
|
5438
5438
|
|
|
5439
|
-
Defined in: [lib/core.ts:
|
|
5439
|
+
Defined in: [lib/core.ts:1575](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1575)
|
|
5440
5440
|
|
|
5441
5441
|
提交 HTTP 响应状态和头部,兼容 HTTP/1.1 与 HTTP/2
|
|
5442
5442
|
|
|
@@ -5486,7 +5486,7 @@ lib/core/functions/write.md
|
|
|
5486
5486
|
|
|
5487
5487
|
> **write**(`res`, `data`): `void`
|
|
5488
5488
|
|
|
5489
|
-
Defined in: [lib/core.ts:
|
|
5489
|
+
Defined in: [lib/core.ts:1608](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1608)
|
|
5490
5490
|
|
|
5491
5491
|
向 res 发送数据
|
|
5492
5492
|
|
|
@@ -5673,7 +5673,7 @@ lib/core/interfaces/ILogOptions.md
|
|
|
5673
5673
|
|
|
5674
5674
|
# Interface: ILogOptions
|
|
5675
5675
|
|
|
5676
|
-
Defined in: [lib/core.ts:
|
|
5676
|
+
Defined in: [lib/core.ts:1158](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1158)
|
|
5677
5677
|
|
|
5678
5678
|
log 设置的选项
|
|
5679
5679
|
|
|
@@ -5683,7 +5683,7 @@ log 设置的选项
|
|
|
5683
5683
|
|
|
5684
5684
|
> `optional` **get?**: `Record`\<`string`, `any`\>
|
|
5685
5685
|
|
|
5686
|
-
Defined in: [lib/core.ts:
|
|
5686
|
+
Defined in: [lib/core.ts:1163](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1163)
|
|
5687
5687
|
|
|
5688
5688
|
***
|
|
5689
5689
|
|
|
@@ -5691,7 +5691,7 @@ Defined in: [lib/core.ts:1160](https://github.com/maiyunnet/kebab/blob/master/li
|
|
|
5691
5691
|
|
|
5692
5692
|
> `optional` **headers?**: `IncomingHttpHeaders`
|
|
5693
5693
|
|
|
5694
|
-
Defined in: [lib/core.ts:
|
|
5694
|
+
Defined in: [lib/core.ts:1164](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1164)
|
|
5695
5695
|
|
|
5696
5696
|
***
|
|
5697
5697
|
|
|
@@ -5699,7 +5699,7 @@ Defined in: [lib/core.ts:1161](https://github.com/maiyunnet/kebab/blob/master/li
|
|
|
5699
5699
|
|
|
5700
5700
|
> `optional` **hostname?**: `string`
|
|
5701
5701
|
|
|
5702
|
-
Defined in: [lib/core.ts:
|
|
5702
|
+
Defined in: [lib/core.ts:1161](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1161)
|
|
5703
5703
|
|
|
5704
5704
|
***
|
|
5705
5705
|
|
|
@@ -5707,7 +5707,7 @@ Defined in: [lib/core.ts:1158](https://github.com/maiyunnet/kebab/blob/master/li
|
|
|
5707
5707
|
|
|
5708
5708
|
> `optional` **path?**: `string`
|
|
5709
5709
|
|
|
5710
|
-
Defined in: [lib/core.ts:
|
|
5710
|
+
Defined in: [lib/core.ts:1159](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1159)
|
|
5711
5711
|
|
|
5712
5712
|
***
|
|
5713
5713
|
|
|
@@ -5715,7 +5715,7 @@ Defined in: [lib/core.ts:1156](https://github.com/maiyunnet/kebab/blob/master/li
|
|
|
5715
5715
|
|
|
5716
5716
|
> `optional` **req?**: `IncomingMessage` \| `Http2ServerRequest` \| `null`
|
|
5717
5717
|
|
|
5718
|
-
Defined in: [lib/core.ts:
|
|
5718
|
+
Defined in: [lib/core.ts:1162](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1162)
|
|
5719
5719
|
|
|
5720
5720
|
***
|
|
5721
5721
|
|
|
@@ -5723,7 +5723,7 @@ Defined in: [lib/core.ts:1159](https://github.com/maiyunnet/kebab/blob/master/li
|
|
|
5723
5723
|
|
|
5724
5724
|
> `optional` **urlFull?**: `string`
|
|
5725
5725
|
|
|
5726
|
-
Defined in: [lib/core.ts:
|
|
5726
|
+
Defined in: [lib/core.ts:1160](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1160)
|
|
5727
5727
|
|
|
5728
5728
|
lib/core/interfaces/IMonitorEvent.md
|
|
5729
5729
|
---
|
|
@@ -5736,7 +5736,7 @@ lib/core/interfaces/IMonitorEvent.md
|
|
|
5736
5736
|
|
|
5737
5737
|
# Interface: IMonitorEvent
|
|
5738
5738
|
|
|
5739
|
-
Defined in: [lib/core.ts:
|
|
5739
|
+
Defined in: [lib/core.ts:1342](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1342)
|
|
5740
5740
|
|
|
5741
5741
|
事件原始数据与可读取的文件;data 为 null 时可下载原始记录复盘
|
|
5742
5742
|
|
|
@@ -5746,7 +5746,7 @@ Defined in: [lib/core.ts:1339](https://github.com/maiyunnet/kebab/blob/master/li
|
|
|
5746
5746
|
|
|
5747
5747
|
> **data**: `Record`\<`string`, `unknown`\> \| `null`
|
|
5748
5748
|
|
|
5749
|
-
Defined in: [lib/core.ts:
|
|
5749
|
+
Defined in: [lib/core.ts:1344](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1344)
|
|
5750
5750
|
|
|
5751
5751
|
***
|
|
5752
5752
|
|
|
@@ -5754,7 +5754,7 @@ Defined in: [lib/core.ts:1341](https://github.com/maiyunnet/kebab/blob/master/li
|
|
|
5754
5754
|
|
|
5755
5755
|
> **files**: [`IMonitorFile`](IMonitorFile.md)[]
|
|
5756
5756
|
|
|
5757
|
-
Defined in: [lib/core.ts:
|
|
5757
|
+
Defined in: [lib/core.ts:1346](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1346)
|
|
5758
5758
|
|
|
5759
5759
|
***
|
|
5760
5760
|
|
|
@@ -5762,7 +5762,7 @@ Defined in: [lib/core.ts:1343](https://github.com/maiyunnet/kebab/blob/master/li
|
|
|
5762
5762
|
|
|
5763
5763
|
> **recordStatus**: `"loaded"` \| `"invalid"` \| `"missing"` \| `"too-large"` \| `"unreadable"`
|
|
5764
5764
|
|
|
5765
|
-
Defined in: [lib/core.ts:
|
|
5765
|
+
Defined in: [lib/core.ts:1345](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1345)
|
|
5766
5766
|
|
|
5767
5767
|
***
|
|
5768
5768
|
|
|
@@ -5770,7 +5770,7 @@ Defined in: [lib/core.ts:1342](https://github.com/maiyunnet/kebab/blob/master/li
|
|
|
5770
5770
|
|
|
5771
5771
|
> **summary**: [`IMonitorEventSummary`](IMonitorEventSummary.md)
|
|
5772
5772
|
|
|
5773
|
-
Defined in: [lib/core.ts:
|
|
5773
|
+
Defined in: [lib/core.ts:1343](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1343)
|
|
5774
5774
|
|
|
5775
5775
|
lib/core/interfaces/IMonitorEventSummary.md
|
|
5776
5776
|
---
|
|
@@ -5783,7 +5783,7 @@ lib/core/interfaces/IMonitorEventSummary.md
|
|
|
5783
5783
|
|
|
5784
5784
|
# Interface: IMonitorEventSummary
|
|
5785
5785
|
|
|
5786
|
-
Defined in: [lib/core.ts:
|
|
5786
|
+
Defined in: [lib/core.ts:1322](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1322)
|
|
5787
5787
|
|
|
5788
5788
|
已保存监控事件的简短摘要,path 相对于 log/monitor/
|
|
5789
5789
|
|
|
@@ -5793,7 +5793,7 @@ Defined in: [lib/core.ts:1319](https://github.com/maiyunnet/kebab/blob/master/li
|
|
|
5793
5793
|
|
|
5794
5794
|
> **path**: `string`
|
|
5795
5795
|
|
|
5796
|
-
Defined in: [lib/core.ts:
|
|
5796
|
+
Defined in: [lib/core.ts:1323](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1323)
|
|
5797
5797
|
|
|
5798
5798
|
***
|
|
5799
5799
|
|
|
@@ -5801,7 +5801,7 @@ Defined in: [lib/core.ts:1320](https://github.com/maiyunnet/kebab/blob/master/li
|
|
|
5801
5801
|
|
|
5802
5802
|
> **pid**: `number`
|
|
5803
5803
|
|
|
5804
|
-
Defined in: [lib/core.ts:
|
|
5804
|
+
Defined in: [lib/core.ts:1324](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1324)
|
|
5805
5805
|
|
|
5806
5806
|
***
|
|
5807
5807
|
|
|
@@ -5809,7 +5809,7 @@ Defined in: [lib/core.ts:1321](https://github.com/maiyunnet/kebab/blob/master/li
|
|
|
5809
5809
|
|
|
5810
5810
|
> **reasons**: `string`[]
|
|
5811
5811
|
|
|
5812
|
-
Defined in: [lib/core.ts:
|
|
5812
|
+
Defined in: [lib/core.ts:1328](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1328)
|
|
5813
5813
|
|
|
5814
5814
|
***
|
|
5815
5815
|
|
|
@@ -5817,7 +5817,7 @@ Defined in: [lib/core.ts:1325](https://github.com/maiyunnet/kebab/blob/master/li
|
|
|
5817
5817
|
|
|
5818
5818
|
> **source**: `"main"` \| `"watchdog"`
|
|
5819
5819
|
|
|
5820
|
-
Defined in: [lib/core.ts:
|
|
5820
|
+
Defined in: [lib/core.ts:1326](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1326)
|
|
5821
5821
|
|
|
5822
5822
|
***
|
|
5823
5823
|
|
|
@@ -5825,7 +5825,7 @@ Defined in: [lib/core.ts:1323](https://github.com/maiyunnet/kebab/blob/master/li
|
|
|
5825
5825
|
|
|
5826
5826
|
> **status**: `string`
|
|
5827
5827
|
|
|
5828
|
-
Defined in: [lib/core.ts:
|
|
5828
|
+
Defined in: [lib/core.ts:1327](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1327)
|
|
5829
5829
|
|
|
5830
5830
|
***
|
|
5831
5831
|
|
|
@@ -5833,7 +5833,7 @@ Defined in: [lib/core.ts:1324](https://github.com/maiyunnet/kebab/blob/master/li
|
|
|
5833
5833
|
|
|
5834
5834
|
> **time**: `number`
|
|
5835
5835
|
|
|
5836
|
-
Defined in: [lib/core.ts:
|
|
5836
|
+
Defined in: [lib/core.ts:1325](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1325)
|
|
5837
5837
|
|
|
5838
5838
|
lib/core/interfaces/IMonitorFile.md
|
|
5839
5839
|
---
|
|
@@ -5846,7 +5846,7 @@ lib/core/interfaces/IMonitorFile.md
|
|
|
5846
5846
|
|
|
5847
5847
|
# Interface: IMonitorFile
|
|
5848
5848
|
|
|
5849
|
-
Defined in: [lib/core.ts:
|
|
5849
|
+
Defined in: [lib/core.ts:1332](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1332)
|
|
5850
5850
|
|
|
5851
5851
|
监控文件元数据;复杂格式或超过 1 MiB 的文件不提供预览
|
|
5852
5852
|
|
|
@@ -5856,7 +5856,7 @@ Defined in: [lib/core.ts:1329](https://github.com/maiyunnet/kebab/blob/master/li
|
|
|
5856
5856
|
|
|
5857
5857
|
> **mtime**: `number`
|
|
5858
5858
|
|
|
5859
|
-
Defined in: [lib/core.ts:
|
|
5859
|
+
Defined in: [lib/core.ts:1337](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1337)
|
|
5860
5860
|
|
|
5861
5861
|
最后修改时间,单位 ms
|
|
5862
5862
|
|
|
@@ -5866,7 +5866,7 @@ Defined in: [lib/core.ts:1334](https://github.com/maiyunnet/kebab/blob/master/li
|
|
|
5866
5866
|
|
|
5867
5867
|
> **name**: `string`
|
|
5868
5868
|
|
|
5869
|
-
Defined in: [lib/core.ts:
|
|
5869
|
+
Defined in: [lib/core.ts:1334](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1334)
|
|
5870
5870
|
|
|
5871
5871
|
***
|
|
5872
5872
|
|
|
@@ -5874,7 +5874,7 @@ Defined in: [lib/core.ts:1331](https://github.com/maiyunnet/kebab/blob/master/li
|
|
|
5874
5874
|
|
|
5875
5875
|
> **path**: `string`
|
|
5876
5876
|
|
|
5877
|
-
Defined in: [lib/core.ts:
|
|
5877
|
+
Defined in: [lib/core.ts:1333](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1333)
|
|
5878
5878
|
|
|
5879
5879
|
***
|
|
5880
5880
|
|
|
@@ -5882,7 +5882,7 @@ Defined in: [lib/core.ts:1330](https://github.com/maiyunnet/kebab/blob/master/li
|
|
|
5882
5882
|
|
|
5883
5883
|
> **preview**: `"text"` \| `"json"` \| `null`
|
|
5884
5884
|
|
|
5885
|
-
Defined in: [lib/core.ts:
|
|
5885
|
+
Defined in: [lib/core.ts:1338](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1338)
|
|
5886
5886
|
|
|
5887
5887
|
***
|
|
5888
5888
|
|
|
@@ -5890,7 +5890,7 @@ Defined in: [lib/core.ts:1335](https://github.com/maiyunnet/kebab/blob/master/li
|
|
|
5890
5890
|
|
|
5891
5891
|
> **size**: `number`
|
|
5892
5892
|
|
|
5893
|
-
Defined in: [lib/core.ts:
|
|
5893
|
+
Defined in: [lib/core.ts:1335](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1335)
|
|
5894
5894
|
|
|
5895
5895
|
lib/core/namespaces/v/classes/ValiError.md
|
|
5896
5896
|
---
|
|
@@ -124434,7 +124434,7 @@ lib/session/login/classes/Login.md
|
|
|
124434
124434
|
|
|
124435
124435
|
# Class: Login
|
|
124436
124436
|
|
|
124437
|
-
Defined in: [lib/session/login.ts:
|
|
124437
|
+
Defined in: [lib/session/login.ts:65](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L65)
|
|
124438
124438
|
|
|
124439
124439
|
管理一个账号在多个客户端的登录授权
|
|
124440
124440
|
基于单节点 Redis;不会修改 Session 数据或 Cookie。业务每次请求须验证账号、权限和授权版本。
|
|
@@ -124446,7 +124446,7 @@ Defined in: [lib/session/login.ts:63](https://github.com/maiyunnet/kebab/blob/ma
|
|
|
124446
124446
|
|
|
124447
124447
|
> **new Login**(`kv`, `ctrToken`, `options?`): `Login`
|
|
124448
124448
|
|
|
124449
|
-
Defined in: [lib/session/login.ts:
|
|
124449
|
+
Defined in: [lib/session/login.ts:79](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L79)
|
|
124450
124450
|
|
|
124451
124451
|
创建可复用的登录管理器
|
|
124452
124452
|
|
|
@@ -124480,7 +124480,7 @@ Defined in: [lib/session/login.ts:77](https://github.com/maiyunnet/kebab/blob/ma
|
|
|
124480
124480
|
|
|
124481
124481
|
> **create**(`identity`, `options?`): `Promise`\<`false` \| [`ILoginRecord`](../interfaces/ILoginRecord.md)\>
|
|
124482
124482
|
|
|
124483
|
-
Defined in: [lib/session/login.ts:
|
|
124483
|
+
Defined in: [lib/session/login.ts:99](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L99)
|
|
124484
124484
|
|
|
124485
124485
|
创建登录授权并替换同一凭据原来绑定的身份
|
|
124486
124486
|
每次创建生成新 UID,包括同一账号在同一 Session 重复登录;旧 UID 随即失效。
|
|
@@ -124512,7 +124512,7 @@ single 开启时,同账号同作用域以最后执行成功的创建为准;
|
|
|
124512
124512
|
|
|
124513
124513
|
> **get**(): `Promise`\<`false` \| [`ILoginRecord`](../interfaces/ILoginRecord.md) \| `null`\>
|
|
124514
124514
|
|
|
124515
|
-
Defined in: [lib/session/login.ts:
|
|
124515
|
+
Defined in: [lib/session/login.ts:107](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L107)
|
|
124516
124516
|
|
|
124517
124517
|
读取凭据当前绑定的登录授权,不延长有效期
|
|
124518
124518
|
|
|
@@ -124528,7 +124528,7 @@ Defined in: [lib/session/login.ts:105](https://github.com/maiyunnet/kebab/blob/m
|
|
|
124528
124528
|
|
|
124529
124529
|
> **list**(`uid`): `Promise`\<`false` \| [`IListLogin`](../interfaces/IListLogin.md)[] \| `null`\>
|
|
124530
124530
|
|
|
124531
|
-
Defined in: [lib/session/login.ts:
|
|
124531
|
+
Defined in: [lib/session/login.ts:135](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L135)
|
|
124532
124532
|
|
|
124533
124533
|
列出当前账号、作用域及授权版本一致的有效登录
|
|
124534
124534
|
返回登录附加信息,业务响应前须筛选可展示字段;适合交互式账号的登录列表,不用于全站会话统计。
|
|
@@ -124553,7 +124553,7 @@ get 返回的当前登录 UID
|
|
|
124553
124553
|
|
|
124554
124554
|
> **remove**(`uid`): `Promise`\<`boolean` \| `null`\>
|
|
124555
124555
|
|
|
124556
|
-
Defined in: [lib/session/login.ts:
|
|
124556
|
+
Defined in: [lib/session/login.ts:125](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L125)
|
|
124557
124557
|
|
|
124558
124558
|
退出凭据仍绑定的指定登录,保留 Session 本身
|
|
124559
124559
|
|
|
@@ -124577,7 +124577,7 @@ true 已退出,null 已失效或被替换,false 输入无效或存储失败
|
|
|
124577
124577
|
|
|
124578
124578
|
> **revoke**(`uid`, `target?`): `Promise`\<`boolean` \| `null`\>
|
|
124579
124579
|
|
|
124580
|
-
Defined in: [lib/session/login.ts:
|
|
124580
|
+
Defined in: [lib/session/login.ts:146](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L146)
|
|
124581
124581
|
|
|
124582
124582
|
清退当前账号和作用域内的指定登录或其他全部登录
|
|
124583
124583
|
清退覆盖所有授权版本;可指定当前登录,不能撤销其他账号或作用域的登录。
|
|
@@ -124608,9 +124608,9 @@ true 已清退,null 当前或目标登录失效,false 输入无效或存储
|
|
|
124608
124608
|
|
|
124609
124609
|
> **touch**(`uid`): `Promise`\<`boolean` \| `null`\>
|
|
124610
124610
|
|
|
124611
|
-
Defined in: [lib/session/login.ts:
|
|
124611
|
+
Defined in: [lib/session/login.ts:116](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L116)
|
|
124612
124612
|
|
|
124613
|
-
|
|
124613
|
+
更新仍与本次请求读取的登录 UID 匹配的授权访问时间,并延长有效期
|
|
124614
124614
|
|
|
124615
124615
|
#### Parameters
|
|
124616
124616
|
|
|
@@ -124664,7 +124664,7 @@ lib/session/login/interfaces/IListLogin.md
|
|
|
124664
124664
|
|
|
124665
124665
|
# Interface: IListLogin
|
|
124666
124666
|
|
|
124667
|
-
Defined in: [lib/session/login.ts:
|
|
124667
|
+
Defined in: [lib/session/login.ts:39](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L39)
|
|
124668
124668
|
|
|
124669
124669
|
登录列表中的记录
|
|
124670
124670
|
|
|
@@ -124678,7 +124678,7 @@ Defined in: [lib/session/login.ts:37](https://github.com/maiyunnet/kebab/blob/ma
|
|
|
124678
124678
|
|
|
124679
124679
|
> **current**: `boolean`
|
|
124680
124680
|
|
|
124681
|
-
Defined in: [lib/session/login.ts:
|
|
124681
|
+
Defined in: [lib/session/login.ts:41](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L41)
|
|
124682
124682
|
|
|
124683
124683
|
是否为当前登录
|
|
124684
124684
|
|
|
@@ -124688,7 +124688,7 @@ Defined in: [lib/session/login.ts:39](https://github.com/maiyunnet/kebab/blob/ma
|
|
|
124688
124688
|
|
|
124689
124689
|
> **data**: `Record`\<`string`, [`LoginValue`](../type-aliases/LoginValue.md)\>
|
|
124690
124690
|
|
|
124691
|
-
Defined in: [lib/session/login.ts:
|
|
124691
|
+
Defined in: [lib/session/login.ts:35](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L35)
|
|
124692
124692
|
|
|
124693
124693
|
登录时保存的附加信息
|
|
124694
124694
|
|
|
@@ -124732,7 +124732,7 @@ Defined in: [lib/session/login.ts:25](https://github.com/maiyunnet/kebab/blob/ma
|
|
|
124732
124732
|
|
|
124733
124733
|
Defined in: [lib/session/login.ts:31](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L31)
|
|
124734
124734
|
|
|
124735
|
-
登录时间,Redis 服务端 UTC Unix
|
|
124735
|
+
登录时间,Redis 服务端 UTC Unix 秒,0 表示未记录
|
|
124736
124736
|
|
|
124737
124737
|
#### Inherited from
|
|
124738
124738
|
|
|
@@ -124740,6 +124740,20 @@ Defined in: [lib/session/login.ts:31](https://github.com/maiyunnet/kebab/blob/ma
|
|
|
124740
124740
|
|
|
124741
124741
|
***
|
|
124742
124742
|
|
|
124743
|
+
### timeLast
|
|
124744
|
+
|
|
124745
|
+
> **timeLast**: `number`
|
|
124746
|
+
|
|
124747
|
+
Defined in: [lib/session/login.ts:33](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L33)
|
|
124748
|
+
|
|
124749
|
+
最后访问时间,创建及成功 touch 时更新;Redis 服务端 UTC Unix 秒,0 表示未记录
|
|
124750
|
+
|
|
124751
|
+
#### Inherited from
|
|
124752
|
+
|
|
124753
|
+
[`ILoginRecord`](ILoginRecord.md).[`timeLast`](ILoginRecord.md#timelast)
|
|
124754
|
+
|
|
124755
|
+
***
|
|
124756
|
+
|
|
124743
124757
|
### uid
|
|
124744
124758
|
|
|
124745
124759
|
> **uid**: `string`
|
|
@@ -124777,7 +124791,7 @@ lib/session/login/interfaces/ILoginCreateOptions.md
|
|
|
124777
124791
|
|
|
124778
124792
|
# Interface: ILoginCreateOptions
|
|
124779
124793
|
|
|
124780
|
-
Defined in: [lib/session/login.ts:
|
|
124794
|
+
Defined in: [lib/session/login.ts:45](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L45)
|
|
124781
124795
|
|
|
124782
124796
|
创建登录时的选项
|
|
124783
124797
|
|
|
@@ -124787,7 +124801,7 @@ Defined in: [lib/session/login.ts:43](https://github.com/maiyunnet/kebab/blob/ma
|
|
|
124787
124801
|
|
|
124788
124802
|
> `optional` **single?**: `boolean`
|
|
124789
124803
|
|
|
124790
|
-
Defined in: [lib/session/login.ts:
|
|
124804
|
+
Defined in: [lib/session/login.ts:47](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L47)
|
|
124791
124805
|
|
|
124792
124806
|
清退同账号、同作用域的其他登录(包含旧版本),默认 false;与创建原子执行
|
|
124793
124807
|
|
|
@@ -124857,7 +124871,7 @@ lib/session/login/interfaces/ILoginOptions.md
|
|
|
124857
124871
|
|
|
124858
124872
|
# Interface: ILoginOptions
|
|
124859
124873
|
|
|
124860
|
-
Defined in: [lib/session/login.ts:
|
|
124874
|
+
Defined in: [lib/session/login.ts:51](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L51)
|
|
124861
124875
|
|
|
124862
124876
|
Redis 登录管理选项
|
|
124863
124877
|
|
|
@@ -124867,7 +124881,7 @@ Redis 登录管理选项
|
|
|
124867
124881
|
|
|
124868
124882
|
> `optional` **name?**: `string`
|
|
124869
124883
|
|
|
124870
|
-
Defined in: [lib/session/login.ts:
|
|
124884
|
+
Defined in: [lib/session/login.ts:53](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L53)
|
|
124871
124885
|
|
|
124872
124886
|
Session 名称;传 token 时必填,传控制器时使用已初始化 Session 的实际名称
|
|
124873
124887
|
|
|
@@ -124877,7 +124891,7 @@ Session 名称;传 token 时必填,传控制器时使用已初始化 Session
|
|
|
124877
124891
|
|
|
124878
124892
|
> `optional` **pre?**: `string`
|
|
124879
124893
|
|
|
124880
|
-
Defined in: [lib/session/login.ts:
|
|
124894
|
+
Defined in: [lib/session/login.ts:55](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L55)
|
|
124881
124895
|
|
|
124882
124896
|
Session 名称之后的键名前缀,默认 login:;可进一步隔离授权用途
|
|
124883
124897
|
|
|
@@ -124887,7 +124901,7 @@ Session 名称之后的键名前缀,默认 login:;可进一步隔离授权
|
|
|
124887
124901
|
|
|
124888
124902
|
> `optional` **ttl?**: `number`
|
|
124889
124903
|
|
|
124890
|
-
Defined in: [lib/session/login.ts:
|
|
124904
|
+
Defined in: [lib/session/login.ts:57](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L57)
|
|
124891
124905
|
|
|
124892
124906
|
有效期秒数,默认 172800;整数 0~2147483647,0 表示永久;与业务 Session 有效期一致
|
|
124893
124907
|
|
|
@@ -124916,7 +124930,7 @@ Defined in: [lib/session/login.ts:21](https://github.com/maiyunnet/kebab/blob/ma
|
|
|
124916
124930
|
|
|
124917
124931
|
> **data**: `Record`\<`string`, [`LoginValue`](../type-aliases/LoginValue.md)\>
|
|
124918
124932
|
|
|
124919
|
-
Defined in: [lib/session/login.ts:
|
|
124933
|
+
Defined in: [lib/session/login.ts:35](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L35)
|
|
124920
124934
|
|
|
124921
124935
|
登录时保存的附加信息
|
|
124922
124936
|
|
|
@@ -124948,7 +124962,17 @@ Defined in: [lib/session/login.ts:25](https://github.com/maiyunnet/kebab/blob/ma
|
|
|
124948
124962
|
|
|
124949
124963
|
Defined in: [lib/session/login.ts:31](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L31)
|
|
124950
124964
|
|
|
124951
|
-
登录时间,Redis 服务端 UTC Unix
|
|
124965
|
+
登录时间,Redis 服务端 UTC Unix 秒,0 表示未记录
|
|
124966
|
+
|
|
124967
|
+
***
|
|
124968
|
+
|
|
124969
|
+
### timeLast
|
|
124970
|
+
|
|
124971
|
+
> **timeLast**: `number`
|
|
124972
|
+
|
|
124973
|
+
Defined in: [lib/session/login.ts:33](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L33)
|
|
124974
|
+
|
|
124975
|
+
最后访问时间,创建及成功 touch 时更新;Redis 服务端 UTC Unix 秒,0 表示未记录
|
|
124952
124976
|
|
|
124953
124977
|
***
|
|
124954
124978
|
|