@maiyunnet/kebab 9.28.0 → 9.29.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/doc/kebab-rag.md CHANGED
@@ -260,6 +260,41 @@ const custom = await lCrypto.passwordHash(password, {
260
260
 
261
261
  `passwordHash()` 成功返回 PHC 字符串;选项无效、环境不支持、随机数生成或计算失败返回 `false`。`passwordVerify()` 匹配返回 `true`,密码不匹配、格式无效、算法不支持或参数越界返回 `false`,环境不支持或计算失败返回 `null`。调用方用 `=== false`、`=== null` 区分结果,不能把验证时的系统故障当作密码错误。方法不截断、去空格或归一化密码;密码策略、登录限速和数据库更新由应用负责。
262
262
 
263
+ ## 多客户端登录管理
264
+
265
+ `lSession.Login` 是基于单节点 Redis 的可选登录授权管理器,可以搭配 Header 或 Cookie Session,也可以用于 SQL Session 配合 Redis 授权记录。它不修改 Session 数据、不签发 Session 凭据、不验证密码或权限,不自动限制一个账号的登录数量。
266
+
267
+ ```ts
268
+ import * as lSession from '@maiyunnet/kebab/lib/session.js';
269
+
270
+ const logins = new lSession.Login(kv, this, { 'ttl': 172800 });
271
+ // 先初始化控制器的 Session;无控制器时,第二个参数可直接传已验证的 token,并在选项中指定 name。
272
+ // 仅在业务已经验证账号后创建授权;无租户项目可省略 scope。
273
+ const login = await logins.create({
274
+ 'subject': account.uid,
275
+ 'scope': tenant.uid,
276
+ 'version': account.authVersion,
277
+ 'data': { 'ip': clientIp, 'client': clientName },
278
+ });
279
+ // login === false 表示创建失败;成功后由各业务请求分别调用读取、续期或清退方法。
280
+ ```
281
+
282
+ - 创建管理器时绑定当前 Session token 和实际 name;显式传 token 时必须在选项中提供非空 `name`,否则操作返回 `false`。传控制器时只读取已初始化的 Session,未初始化则操作返回 `false`。实例不随控制器后来切换 Session 而改变凭据,不应跨请求共用。
283
+ - 默认使用 `kv.pre + Session name + ":login:"`,可通过 `pre` 更换 `login:` 后缀以隔离后台、用户端等授权体系;不需要重复传 Kv 项目前缀。`Kv.getPre()` 可在使用原生 pipeline 时读取该前缀。
284
+ - `subject` 是账号标识,`scope` 是可选作用域;两者共同决定账号归属。`version` 是业务提供的授权版本,例如改密时更新的版本号或密码指纹。框架不从数据库读取版本;业务每次请求调用 `get()`,检查账号状态、当前版本、权限和资源归属,再调用 `touch(uid)` 续期。版本检查与业务写入的强一致性由业务事务决定。
285
+ - `create(identity, { 'single': true })` 原子创建并清退同账号、同作用域的全部旧登录,包含不同版本;默认允许多客户端。重复登录也生成新 UID,旧请求不能续期或删除新授权。并发单登录以 Redis 最后执行成功者为准;要持续保证单登录,所有登录入口都须开启此选项,普通创建仍允许新增客户端。其他账号、作用域不受影响;同一 Session 切换账号仍会替换该 Session 原身份。
286
+ - `create()` 返回记录或 `false`。`get()` 返回记录、`null`(未登录或过期)、`false`(输入无效或存储失败);`get()` 不续期。`touch()`、`remove()`、`revoke()` 返回 `true`、`null`(授权失效、被替换或目标不存在)、`false`(输入无效或存储失败)。存储失败时拒绝授权;通信失败不证明写入未执行,需重新读取确认。
287
+ - 登录记录包含 `uid`、`subject`、`scope`、`version`、`timeAdd` 和 `data`。`timeAdd` 是 Redis 服务端 UTC Unix 秒。每次创建都产生新的登录 UID,同一 token 的最后一次成功创建替换原身份;旧请求携带旧 UID 时不能续期、退出或清退新身份。并发登录请求按 Redis 执行顺序生效;需要按业务先后顺序限制登录时,由调用方协调。
288
+ - `list(uid)` 从当前有效凭据确定账号,只返回同账号、作用域和版本的记录,并用 `current` 标明当前项。结果包含附加信息,业务接口应筛选允许展示的字段,不能直接返回敏感内部数据。该列表适合账号安全页面,不用于全站会话统计或大规模批量任务。
289
+ - `revoke(uid, targetUid)` 只能清退同账号、同作用域的目标,也可指定当前 UID;省略目标表示清退其他全部登录,包含旧版本。清退不会删除普通 Session 数据;后续请求必须通过本管理器验证授权,不能仅凭 Session 数据中的旧账号字段放行。
290
+ - `ttl` 默认 172800 秒,`0` 表示永久;续期使用管理器配置的 TTL。它不会自动读取业务 Session 的配置,调用方应明确保持二者一致。过期索引会随访问清理,索引有效期覆盖所属登录的最长有效期,支持永久和限时记录混用。
291
+ - 存储采用两层结构:每个客户端一个 `record:<token 摘要>` 字符串 Key,保存登录 UID 和身份并独立设置 TTL;同账号同作用域共用一个 `index:<账号归属摘要>` 有序集合,成员为 token 摘要,分数为过期时间。N 个有效客户端通常占 N+1 个 Key,不含普通 Session。指定 UID 清退时遍历该账号索引查找目标,不扫描整个 Redis。
292
+ - 登录管理键只使用 token 的 SHA-256 摘要,列表不返回 token;这不改变其他 Session 存储原有的键格式。token 必须是服务端签发并验证的高熵凭据,不能直接拿用户输入作为已验证 Session。凭据轮换与跨端传输安全由应用的 Session 流程负责。
293
+
294
+ 附加 `data` 仅接受 JSON 对象,保留空数组、嵌套对象和 `null`,编码上限为 16 KiB。不得保存密码或 Session 凭据。输入边界见 `ILoginIdentity` 和 `ILoginOptions`;所有 Redis 原子操作由框架实现,不需要业务项目自行编写 Lua。本实现依赖单节点 Redis 脚本,不支持 Redis Cluster 的跨槽操作。
295
+
296
+ 回归:`node abox/test/session-login.mjs`;真实 Redis 测试设置 `KEBAB_LOGIN_REDIS_HOST`,可选 `KEBAB_LOGIN_REDIS_PORT`、`KEBAB_LOGIN_REDIS_USER`、`KEBAB_LOGIN_REDIS_PASSWORD`、`KEBAB_LOGIN_REDIS_INDEX`、`KEBAB_LOGIN_REDIS_PRE`(项目 Kv 前缀),在项目前缀后追加随机测试前缀并仅清理该前缀。
297
+
263
298
  query-pagination.md
264
299
  ---
265
300
 
@@ -600,7 +635,7 @@ index/interfaces/IConfigAi.md
600
635
 
601
636
  # Interface: IConfigAi
602
637
 
603
- Defined in: [index.ts:119](https://github.com/maiyunnet/kebab/blob/master/index.ts#L119)
638
+ Defined in: [index.ts:118](https://github.com/maiyunnet/kebab/blob/master/index.ts#L118)
604
639
 
605
640
  AI
606
641
 
@@ -610,7 +645,7 @@ AI
610
645
 
611
646
  > `optional` **endpoint?**: `string`
612
647
 
613
- Defined in: [index.ts:121](https://github.com/maiyunnet/kebab/blob/master/index.ts#L121)
648
+ Defined in: [index.ts:120](https://github.com/maiyunnet/kebab/blob/master/index.ts#L120)
614
649
 
615
650
  目前只有微软 Azure 有
616
651
 
@@ -620,7 +655,7 @@ Defined in: [index.ts:121](https://github.com/maiyunnet/kebab/blob/master/index.
620
655
 
621
656
  > **skey**: `string`
622
657
 
623
- Defined in: [index.ts:122](https://github.com/maiyunnet/kebab/blob/master/index.ts#L122)
658
+ Defined in: [index.ts:121](https://github.com/maiyunnet/kebab/blob/master/index.ts#L121)
624
659
 
625
660
  index/interfaces/IConfigConst.md
626
661
  ---
@@ -633,7 +668,7 @@ index/interfaces/IConfigConst.md
633
668
 
634
669
  # Interface: IConfigConst
635
670
 
636
- Defined in: [index.ts:182](https://github.com/maiyunnet/kebab/blob/master/index.ts#L182)
671
+ Defined in: [index.ts:181](https://github.com/maiyunnet/kebab/blob/master/index.ts#L181)
637
672
 
638
673
  常量
639
674
 
@@ -643,7 +678,7 @@ Defined in: [index.ts:182](https://github.com/maiyunnet/kebab/blob/master/index.
643
678
 
644
679
  > **ctrPath**: `string`
645
680
 
646
- Defined in: [index.ts:218](https://github.com/maiyunnet/kebab/blob/master/index.ts#L218)
681
+ Defined in: [index.ts:217](https://github.com/maiyunnet/kebab/blob/master/index.ts#L217)
647
682
 
648
683
  ***
649
684
 
@@ -651,7 +686,7 @@ Defined in: [index.ts:218](https://github.com/maiyunnet/kebab/blob/master/index.
651
686
 
652
687
  > **dataPath**: `string`
653
688
 
654
- Defined in: [index.ts:220](https://github.com/maiyunnet/kebab/blob/master/index.ts#L220)
689
+ Defined in: [index.ts:219](https://github.com/maiyunnet/kebab/blob/master/index.ts#L219)
655
690
 
656
691
  ***
657
692
 
@@ -659,7 +694,7 @@ Defined in: [index.ts:220](https://github.com/maiyunnet/kebab/blob/master/index.
659
694
 
660
695
  > **host**: `string`
661
696
 
662
- Defined in: [index.ts:200](https://github.com/maiyunnet/kebab/blob/master/index.ts#L200)
697
+ Defined in: [index.ts:199](https://github.com/maiyunnet/kebab/blob/master/index.ts#L199)
663
698
 
664
699
  请求头中的主机地址,如 example.com、example.com:8443 或 [::1]:8080;不额外补端口
665
700
 
@@ -669,7 +704,7 @@ Defined in: [index.ts:200](https://github.com/maiyunnet/kebab/blob/master/index.
669
704
 
670
705
  > **hostCanonical**: `string`
671
706
 
672
- Defined in: [index.ts:206](https://github.com/maiyunnet/kebab/blob/master/index.ts#L206)
707
+ Defined in: [index.ts:205](https://github.com/maiyunnet/kebab/blob/master/index.ts#L205)
673
708
 
674
709
  用于生成网址的主机地址,仅省略 HTTPS 的 443 和 HTTP 的 80 端口,如 example.com:443 → example.com;保留其他端口和 IPv6 方括号
675
710
 
@@ -679,7 +714,7 @@ Defined in: [index.ts:206](https://github.com/maiyunnet/kebab/blob/master/index.
679
714
 
680
715
  > **hostname**: `string`
681
716
 
682
- Defined in: [index.ts:202](https://github.com/maiyunnet/kebab/blob/master/index.ts#L202)
717
+ Defined in: [index.ts:201](https://github.com/maiyunnet/kebab/blob/master/index.ts#L201)
683
718
 
684
719
  主机名,如 example.com 或 ::1,不含端口或 IPv6 方括号
685
720
 
@@ -689,7 +724,7 @@ Defined in: [index.ts:202](https://github.com/maiyunnet/kebab/blob/master/index.
689
724
 
690
725
  > **hostport**: `number`
691
726
 
692
- Defined in: [index.ts:204](https://github.com/maiyunnet/kebab/blob/master/index.ts#L204)
727
+ Defined in: [index.ts:203](https://github.com/maiyunnet/kebab/blob/master/index.ts#L203)
693
728
 
694
729
  请求地址中的端口,如 8443;未指定时 HTTPS 为 443、HTTP 为 80,不取本机监听端口
695
730
 
@@ -699,7 +734,7 @@ Defined in: [index.ts:204](https://github.com/maiyunnet/kebab/blob/master/index.
699
734
 
700
735
  > **https**: `boolean`
701
736
 
702
- Defined in: [index.ts:198](https://github.com/maiyunnet/kebab/blob/master/index.ts#L198)
737
+ Defined in: [index.ts:197](https://github.com/maiyunnet/kebab/blob/master/index.ts#L197)
703
738
 
704
739
  请求到达 Kebab 时是否使用 HTTPS;通过 HTTP 回源时为 false
705
740
 
@@ -709,7 +744,7 @@ Defined in: [index.ts:198](https://github.com/maiyunnet/kebab/blob/master/index.
709
744
 
710
745
  > **miniprogram**: `""` \| `"wechat"`
711
746
 
712
- Defined in: [index.ts:196](https://github.com/maiyunnet/kebab/blob/master/index.ts#L196)
747
+ Defined in: [index.ts:195](https://github.com/maiyunnet/kebab/blob/master/index.ts#L195)
713
748
 
714
749
  ***
715
750
 
@@ -717,7 +752,7 @@ Defined in: [index.ts:196](https://github.com/maiyunnet/kebab/blob/master/index.
717
752
 
718
753
  > **mobile**: `boolean`
719
754
 
720
- Defined in: [index.ts:194](https://github.com/maiyunnet/kebab/blob/master/index.ts#L194)
755
+ Defined in: [index.ts:193](https://github.com/maiyunnet/kebab/blob/master/index.ts#L193)
721
756
 
722
757
  ***
723
758
 
@@ -725,7 +760,7 @@ Defined in: [index.ts:194](https://github.com/maiyunnet/kebab/blob/master/index.
725
760
 
726
761
  > **modPath**: `string`
727
762
 
728
- Defined in: [index.ts:217](https://github.com/maiyunnet/kebab/blob/master/index.ts#L217)
763
+ Defined in: [index.ts:216](https://github.com/maiyunnet/kebab/blob/master/index.ts#L216)
729
764
 
730
765
  ***
731
766
 
@@ -733,7 +768,7 @@ Defined in: [index.ts:217](https://github.com/maiyunnet/kebab/blob/master/index.
733
768
 
734
769
  > **path**: `string`
735
770
 
736
- Defined in: [index.ts:184](https://github.com/maiyunnet/kebab/blob/master/index.ts#L184)
771
+ Defined in: [index.ts:183](https://github.com/maiyunnet/kebab/blob/master/index.ts#L183)
737
772
 
738
773
  不以 / 开头,不含 qs
739
774
 
@@ -743,7 +778,7 @@ Defined in: [index.ts:184](https://github.com/maiyunnet/kebab/blob/master/index.
743
778
 
744
779
  > **qs**: `string`
745
780
 
746
- Defined in: [index.ts:186](https://github.com/maiyunnet/kebab/blob/master/index.ts#L186)
781
+ Defined in: [index.ts:185](https://github.com/maiyunnet/kebab/blob/master/index.ts#L185)
747
782
 
748
783
  不含 ? 开头
749
784
 
@@ -753,7 +788,7 @@ Defined in: [index.ts:186](https://github.com/maiyunnet/kebab/blob/master/index.
753
788
 
754
789
  > **qss**: `string`
755
790
 
756
- Defined in: [index.ts:188](https://github.com/maiyunnet/kebab/blob/master/index.ts#L188)
791
+ Defined in: [index.ts:187](https://github.com/maiyunnet/kebab/blob/master/index.ts#L187)
757
792
 
758
793
  含 ? 开头
759
794
 
@@ -763,7 +798,7 @@ Defined in: [index.ts:188](https://github.com/maiyunnet/kebab/blob/master/index.
763
798
 
764
799
  > **rootPath**: `string`
765
800
 
766
- Defined in: [index.ts:216](https://github.com/maiyunnet/kebab/blob/master/index.ts#L216)
801
+ Defined in: [index.ts:215](https://github.com/maiyunnet/kebab/blob/master/index.ts#L215)
767
802
 
768
803
  ***
769
804
 
@@ -771,7 +806,7 @@ Defined in: [index.ts:216](https://github.com/maiyunnet/kebab/blob/master/index.
771
806
 
772
807
  > **startMemory**: `number`
773
808
 
774
- Defined in: [index.ts:190](https://github.com/maiyunnet/kebab/blob/master/index.ts#L190)
809
+ Defined in: [index.ts:189](https://github.com/maiyunnet/kebab/blob/master/index.ts#L189)
775
810
 
776
811
  ***
777
812
 
@@ -779,7 +814,7 @@ Defined in: [index.ts:190](https://github.com/maiyunnet/kebab/blob/master/index.
779
814
 
780
815
  > **startTime**: `bigint`
781
816
 
782
- Defined in: [index.ts:189](https://github.com/maiyunnet/kebab/blob/master/index.ts#L189)
817
+ Defined in: [index.ts:188](https://github.com/maiyunnet/kebab/blob/master/index.ts#L188)
783
818
 
784
819
  ***
785
820
 
@@ -787,7 +822,7 @@ Defined in: [index.ts:189](https://github.com/maiyunnet/kebab/blob/master/index.
787
822
 
788
823
  > **uri**: [`IUrlParse`](IUrlParse.md)
789
824
 
790
- Defined in: [index.ts:212](https://github.com/maiyunnet/kebab/blob/master/index.ts#L212)
825
+ Defined in: [index.ts:211](https://github.com/maiyunnet/kebab/blob/master/index.ts#L211)
791
826
 
792
827
  ***
793
828
 
@@ -795,7 +830,7 @@ Defined in: [index.ts:212](https://github.com/maiyunnet/kebab/blob/master/index.
795
830
 
796
831
  > **urlBase**: `string`
797
832
 
798
- Defined in: [index.ts:225](https://github.com/maiyunnet/kebab/blob/master/index.ts#L225)
833
+ Defined in: [index.ts:224](https://github.com/maiyunnet/kebab/blob/master/index.ts#L224)
799
834
 
800
835
  ***
801
836
 
@@ -803,7 +838,7 @@ Defined in: [index.ts:225](https://github.com/maiyunnet/kebab/blob/master/index.
803
838
 
804
839
  > **urlFull**: `string`
805
840
 
806
- Defined in: [index.ts:227](https://github.com/maiyunnet/kebab/blob/master/index.ts#L227)
841
+ Defined in: [index.ts:226](https://github.com/maiyunnet/kebab/blob/master/index.ts#L226)
807
842
 
808
843
  ***
809
844
 
@@ -811,7 +846,7 @@ Defined in: [index.ts:227](https://github.com/maiyunnet/kebab/blob/master/index.
811
846
 
812
847
  > **urlOrigin**: `string`
813
848
 
814
- Defined in: [index.ts:211](https://github.com/maiyunnet/kebab/blob/master/index.ts#L211)
849
+ Defined in: [index.ts:210](https://github.com/maiyunnet/kebab/blob/master/index.ts#L210)
815
850
 
816
851
  网址的协议与 hostCanonical,如 https://example.com:8443
817
852
  协议可取自 X-Forwarded-Proto,无有效值时使用实际连接协议;不能用它判断实际 TLS 状态。
@@ -822,7 +857,7 @@ Defined in: [index.ts:211](https://github.com/maiyunnet/kebab/blob/master/index.
822
857
 
823
858
  > **urlStc**: `string`
824
859
 
825
- Defined in: [index.ts:226](https://github.com/maiyunnet/kebab/blob/master/index.ts#L226)
860
+ Defined in: [index.ts:225](https://github.com/maiyunnet/kebab/blob/master/index.ts#L225)
826
861
 
827
862
  ***
828
863
 
@@ -830,7 +865,7 @@ Defined in: [index.ts:226](https://github.com/maiyunnet/kebab/blob/master/index.
830
865
 
831
866
  > **urlStcFull**: `string`
832
867
 
833
- Defined in: [index.ts:228](https://github.com/maiyunnet/kebab/blob/master/index.ts#L228)
868
+ Defined in: [index.ts:227](https://github.com/maiyunnet/kebab/blob/master/index.ts#L227)
834
869
 
835
870
  ***
836
871
 
@@ -838,7 +873,7 @@ Defined in: [index.ts:228](https://github.com/maiyunnet/kebab/blob/master/index.
838
873
 
839
874
  > **viewPath**: `string`
840
875
 
841
- Defined in: [index.ts:219](https://github.com/maiyunnet/kebab/blob/master/index.ts#L219)
876
+ Defined in: [index.ts:218](https://github.com/maiyunnet/kebab/blob/master/index.ts#L218)
842
877
 
843
878
  ***
844
879
 
@@ -846,7 +881,7 @@ Defined in: [index.ts:219](https://github.com/maiyunnet/kebab/blob/master/index.
846
881
 
847
882
  > **wechat**: `boolean`
848
883
 
849
- Defined in: [index.ts:195](https://github.com/maiyunnet/kebab/blob/master/index.ts#L195)
884
+ Defined in: [index.ts:194](https://github.com/maiyunnet/kebab/blob/master/index.ts#L194)
850
885
 
851
886
  ***
852
887
 
@@ -854,7 +889,7 @@ Defined in: [index.ts:195](https://github.com/maiyunnet/kebab/blob/master/index.
854
889
 
855
890
  > **wsPath**: `string`
856
891
 
857
- Defined in: [index.ts:221](https://github.com/maiyunnet/kebab/blob/master/index.ts#L221)
892
+ Defined in: [index.ts:220](https://github.com/maiyunnet/kebab/blob/master/index.ts#L220)
858
893
 
859
894
  index/interfaces/IConfigDb.md
860
895
  ---
@@ -867,7 +902,7 @@ index/interfaces/IConfigDb.md
867
902
 
868
903
  # Interface: IConfigDb
869
904
 
870
- Defined in: [index.ts:149](https://github.com/maiyunnet/kebab/blob/master/index.ts#L149)
905
+ Defined in: [index.ts:148](https://github.com/maiyunnet/kebab/blob/master/index.ts#L148)
871
906
 
872
907
  数据库
873
908
 
@@ -877,7 +912,7 @@ Defined in: [index.ts:149](https://github.com/maiyunnet/kebab/blob/master/index.
877
912
 
878
913
  > `optional` **charset?**: `string`
879
914
 
880
- Defined in: [index.ts:152](https://github.com/maiyunnet/kebab/blob/master/index.ts#L152)
915
+ Defined in: [index.ts:151](https://github.com/maiyunnet/kebab/blob/master/index.ts#L151)
881
916
 
882
917
  ***
883
918
 
@@ -885,7 +920,7 @@ Defined in: [index.ts:152](https://github.com/maiyunnet/kebab/blob/master/index.
885
920
 
886
921
  > **host**: `string`
887
922
 
888
- Defined in: [index.ts:150](https://github.com/maiyunnet/kebab/blob/master/index.ts#L150)
923
+ Defined in: [index.ts:149](https://github.com/maiyunnet/kebab/blob/master/index.ts#L149)
889
924
 
890
925
  ***
891
926
 
@@ -893,7 +928,7 @@ Defined in: [index.ts:150](https://github.com/maiyunnet/kebab/blob/master/index.
893
928
 
894
929
  > `optional` **name?**: `string`
895
930
 
896
- Defined in: [index.ts:153](https://github.com/maiyunnet/kebab/blob/master/index.ts#L153)
931
+ Defined in: [index.ts:152](https://github.com/maiyunnet/kebab/blob/master/index.ts#L152)
897
932
 
898
933
  ***
899
934
 
@@ -901,7 +936,7 @@ Defined in: [index.ts:153](https://github.com/maiyunnet/kebab/blob/master/index.
901
936
 
902
937
  > **port**: `number`
903
938
 
904
- Defined in: [index.ts:151](https://github.com/maiyunnet/kebab/blob/master/index.ts#L151)
939
+ Defined in: [index.ts:150](https://github.com/maiyunnet/kebab/blob/master/index.ts#L150)
905
940
 
906
941
  ***
907
942
 
@@ -909,7 +944,7 @@ Defined in: [index.ts:151](https://github.com/maiyunnet/kebab/blob/master/index.
909
944
 
910
945
  > **pwd**: `string`
911
946
 
912
- Defined in: [index.ts:156](https://github.com/maiyunnet/kebab/blob/master/index.ts#L156)
947
+ Defined in: [index.ts:155](https://github.com/maiyunnet/kebab/blob/master/index.ts#L155)
913
948
 
914
949
  ***
915
950
 
@@ -917,7 +952,7 @@ Defined in: [index.ts:156](https://github.com/maiyunnet/kebab/blob/master/index.
917
952
 
918
953
  > **user**: `string`
919
954
 
920
- Defined in: [index.ts:155](https://github.com/maiyunnet/kebab/blob/master/index.ts#L155)
955
+ Defined in: [index.ts:154](https://github.com/maiyunnet/kebab/blob/master/index.ts#L154)
921
956
 
922
957
  index/interfaces/IConfigDns.md
923
958
  ---
@@ -930,7 +965,7 @@ index/interfaces/IConfigDns.md
930
965
 
931
966
  # Interface: IConfigDns
932
967
 
933
- Defined in: [index.ts:160](https://github.com/maiyunnet/kebab/blob/master/index.ts#L160)
968
+ Defined in: [index.ts:159](https://github.com/maiyunnet/kebab/blob/master/index.ts#L159)
934
969
 
935
970
  DNS
936
971
 
@@ -940,7 +975,7 @@ DNS
940
975
 
941
976
  > **sid**: `string`
942
977
 
943
- Defined in: [index.ts:161](https://github.com/maiyunnet/kebab/blob/master/index.ts#L161)
978
+ Defined in: [index.ts:160](https://github.com/maiyunnet/kebab/blob/master/index.ts#L160)
944
979
 
945
980
  ***
946
981
 
@@ -948,7 +983,7 @@ Defined in: [index.ts:161](https://github.com/maiyunnet/kebab/blob/master/index.
948
983
 
949
984
  > **skey**: `string`
950
985
 
951
- Defined in: [index.ts:162](https://github.com/maiyunnet/kebab/blob/master/index.ts#L162)
986
+ Defined in: [index.ts:161](https://github.com/maiyunnet/kebab/blob/master/index.ts#L161)
952
987
 
953
988
  index/interfaces/IConfigKv.md
954
989
  ---
@@ -961,7 +996,7 @@ index/interfaces/IConfigKv.md
961
996
 
962
997
  # Interface: IConfigKv
963
998
 
964
- Defined in: [index.ts:166](https://github.com/maiyunnet/kebab/blob/master/index.ts#L166)
999
+ Defined in: [index.ts:165](https://github.com/maiyunnet/kebab/blob/master/index.ts#L165)
965
1000
 
966
1001
  kv
967
1002
 
@@ -971,7 +1006,7 @@ kv
971
1006
 
972
1007
  > **host**: `string`
973
1008
 
974
- Defined in: [index.ts:167](https://github.com/maiyunnet/kebab/blob/master/index.ts#L167)
1009
+ Defined in: [index.ts:166](https://github.com/maiyunnet/kebab/blob/master/index.ts#L166)
975
1010
 
976
1011
  ***
977
1012
 
@@ -979,7 +1014,7 @@ Defined in: [index.ts:167](https://github.com/maiyunnet/kebab/blob/master/index.
979
1014
 
980
1015
  > **index**: `number`
981
1016
 
982
- Defined in: [index.ts:169](https://github.com/maiyunnet/kebab/blob/master/index.ts#L169)
1017
+ Defined in: [index.ts:168](https://github.com/maiyunnet/kebab/blob/master/index.ts#L168)
983
1018
 
984
1019
  ***
985
1020
 
@@ -987,7 +1022,7 @@ Defined in: [index.ts:169](https://github.com/maiyunnet/kebab/blob/master/index.
987
1022
 
988
1023
  > **port**: `number`
989
1024
 
990
- Defined in: [index.ts:168](https://github.com/maiyunnet/kebab/blob/master/index.ts#L168)
1025
+ Defined in: [index.ts:167](https://github.com/maiyunnet/kebab/blob/master/index.ts#L167)
991
1026
 
992
1027
  ***
993
1028
 
@@ -995,7 +1030,7 @@ Defined in: [index.ts:168](https://github.com/maiyunnet/kebab/blob/master/index.
995
1030
 
996
1031
  > **pre**: `string`
997
1032
 
998
- Defined in: [index.ts:170](https://github.com/maiyunnet/kebab/blob/master/index.ts#L170)
1033
+ Defined in: [index.ts:169](https://github.com/maiyunnet/kebab/blob/master/index.ts#L169)
999
1034
 
1000
1035
  ***
1001
1036
 
@@ -1003,7 +1038,7 @@ Defined in: [index.ts:170](https://github.com/maiyunnet/kebab/blob/master/index.
1003
1038
 
1004
1039
  > **pwd**: `string`
1005
1040
 
1006
- Defined in: [index.ts:173](https://github.com/maiyunnet/kebab/blob/master/index.ts#L173)
1041
+ Defined in: [index.ts:172](https://github.com/maiyunnet/kebab/blob/master/index.ts#L172)
1007
1042
 
1008
1043
  ***
1009
1044
 
@@ -1011,7 +1046,7 @@ Defined in: [index.ts:173](https://github.com/maiyunnet/kebab/blob/master/index.
1011
1046
 
1012
1047
  > **user**: `string`
1013
1048
 
1014
- Defined in: [index.ts:172](https://github.com/maiyunnet/kebab/blob/master/index.ts#L172)
1049
+ Defined in: [index.ts:171](https://github.com/maiyunnet/kebab/blob/master/index.ts#L171)
1015
1050
 
1016
1051
  index/interfaces/IConfigLang.md
1017
1052
  ---
@@ -1024,7 +1059,7 @@ index/interfaces/IConfigLang.md
1024
1059
 
1025
1060
  # Interface: IConfigLang
1026
1061
 
1027
- Defined in: [index.ts:103](https://github.com/maiyunnet/kebab/blob/master/index.ts#L103)
1062
+ Defined in: [index.ts:102](https://github.com/maiyunnet/kebab/blob/master/index.ts#L102)
1028
1063
 
1029
1064
  语言
1030
1065
 
@@ -1034,7 +1069,7 @@ Defined in: [index.ts:103](https://github.com/maiyunnet/kebab/blob/master/index.
1034
1069
 
1035
1070
  > **direct**: `string`[]
1036
1071
 
1037
- Defined in: [index.ts:105](https://github.com/maiyunnet/kebab/blob/master/index.ts#L105)
1072
+ Defined in: [index.ts:104](https://github.com/maiyunnet/kebab/blob/master/index.ts#L104)
1038
1073
 
1039
1074
  ***
1040
1075
 
@@ -1042,7 +1077,7 @@ Defined in: [index.ts:105](https://github.com/maiyunnet/kebab/blob/master/index.
1042
1077
 
1043
1078
  > **list**: `string`[]
1044
1079
 
1045
- Defined in: [index.ts:104](https://github.com/maiyunnet/kebab/blob/master/index.ts#L104)
1080
+ Defined in: [index.ts:103](https://github.com/maiyunnet/kebab/blob/master/index.ts#L103)
1046
1081
 
1047
1082
  index/interfaces/IConfig.md
1048
1083
  ---
@@ -1055,7 +1090,7 @@ index/interfaces/IConfig.md
1055
1090
 
1056
1091
  # Interface: IConfig
1057
1092
 
1058
- Defined in: [index.ts:51](https://github.com/maiyunnet/kebab/blob/master/index.ts#L51)
1093
+ Defined in: [index.ts:50](https://github.com/maiyunnet/kebab/blob/master/index.ts#L50)
1059
1094
 
1060
1095
  目录配置文件
1061
1096
 
@@ -1069,7 +1104,7 @@ Defined in: [index.ts:51](https://github.com/maiyunnet/kebab/blob/master/index.t
1069
1104
 
1070
1105
  > **ai**: `Record`\<`string`, [`IConfigAi`](IConfigAi.md)\>
1071
1106
 
1072
- Defined in: [index.ts:82](https://github.com/maiyunnet/kebab/blob/master/index.ts#L82)
1107
+ Defined in: [index.ts:81](https://github.com/maiyunnet/kebab/blob/master/index.ts#L81)
1073
1108
 
1074
1109
  ***
1075
1110
 
@@ -1077,7 +1112,7 @@ Defined in: [index.ts:82](https://github.com/maiyunnet/kebab/blob/master/index.t
1077
1112
 
1078
1113
  > **const**: [`IConfigConst`](IConfigConst.md)
1079
1114
 
1080
- Defined in: [index.ts:63](https://github.com/maiyunnet/kebab/blob/master/index.ts#L63)
1115
+ Defined in: [index.ts:62](https://github.com/maiyunnet/kebab/blob/master/index.ts#L62)
1081
1116
 
1082
1117
  ***
1083
1118
 
@@ -1085,7 +1120,7 @@ Defined in: [index.ts:63](https://github.com/maiyunnet/kebab/blob/master/index.t
1085
1120
 
1086
1121
  > **db**: `Record`\<`string`, \{ `default`: [`IConfigDb`](IConfigDb.md); `read`: [`IConfigDb`](IConfigDb.md); \}\> & `object`
1087
1122
 
1088
- Defined in: [index.ts:64](https://github.com/maiyunnet/kebab/blob/master/index.ts#L64)
1123
+ Defined in: [index.ts:63](https://github.com/maiyunnet/kebab/blob/master/index.ts#L63)
1089
1124
 
1090
1125
  #### Type Declaration
1091
1126
 
@@ -1099,7 +1134,7 @@ Defined in: [index.ts:64](https://github.com/maiyunnet/kebab/blob/master/index.t
1099
1134
 
1100
1135
  > **dns**: `Record`\<`string`, [`IConfigDns`](IConfigDns.md)\>
1101
1136
 
1102
- Defined in: [index.ts:78](https://github.com/maiyunnet/kebab/blob/master/index.ts#L78)
1137
+ Defined in: [index.ts:77](https://github.com/maiyunnet/kebab/blob/master/index.ts#L77)
1103
1138
 
1104
1139
  ***
1105
1140
 
@@ -1107,7 +1142,7 @@ Defined in: [index.ts:78](https://github.com/maiyunnet/kebab/blob/master/index.t
1107
1142
 
1108
1143
  > **kv**: [`IConfigKv`](IConfigKv.md)
1109
1144
 
1110
- Defined in: [index.ts:70](https://github.com/maiyunnet/kebab/blob/master/index.ts#L70)
1145
+ Defined in: [index.ts:69](https://github.com/maiyunnet/kebab/blob/master/index.ts#L69)
1111
1146
 
1112
1147
  ***
1113
1148
 
@@ -1115,7 +1150,7 @@ Defined in: [index.ts:70](https://github.com/maiyunnet/kebab/blob/master/index.t
1115
1150
 
1116
1151
  > **lang**: [`IConfigLang`](IConfigLang.md)
1117
1152
 
1118
- Defined in: [index.ts:79](https://github.com/maiyunnet/kebab/blob/master/index.ts#L79)
1153
+ Defined in: [index.ts:78](https://github.com/maiyunnet/kebab/blob/master/index.ts#L78)
1119
1154
 
1120
1155
  ***
1121
1156
 
@@ -1123,7 +1158,7 @@ Defined in: [index.ts:79](https://github.com/maiyunnet/kebab/blob/master/index.t
1123
1158
 
1124
1159
  > **route**: `Record`\<`string`, `string`\>
1125
1160
 
1126
- Defined in: [index.ts:71](https://github.com/maiyunnet/kebab/blob/master/index.ts#L71)
1161
+ Defined in: [index.ts:70](https://github.com/maiyunnet/kebab/blob/master/index.ts#L70)
1127
1162
 
1128
1163
  ***
1129
1164
 
@@ -1131,7 +1166,7 @@ Defined in: [index.ts:71](https://github.com/maiyunnet/kebab/blob/master/index.t
1131
1166
 
1132
1167
  > **s3**: `Record`\<`string`, [`IConfigS3`](IConfigS3.md)\>
1133
1168
 
1134
- Defined in: [index.ts:80](https://github.com/maiyunnet/kebab/blob/master/index.ts#L80)
1169
+ Defined in: [index.ts:79](https://github.com/maiyunnet/kebab/blob/master/index.ts#L79)
1135
1170
 
1136
1171
  ***
1137
1172
 
@@ -1139,7 +1174,7 @@ Defined in: [index.ts:80](https://github.com/maiyunnet/kebab/blob/master/index.t
1139
1174
 
1140
1175
  > **session**: `object`
1141
1176
 
1142
- Defined in: [index.ts:72](https://github.com/maiyunnet/kebab/blob/master/index.ts#L72)
1177
+ Defined in: [index.ts:71](https://github.com/maiyunnet/kebab/blob/master/index.ts#L71)
1143
1178
 
1144
1179
  #### name
1145
1180
 
@@ -1159,7 +1194,7 @@ Defined in: [index.ts:72](https://github.com/maiyunnet/kebab/blob/master/index.t
1159
1194
 
1160
1195
  > **set**: `object`
1161
1196
 
1162
- Defined in: [index.ts:52](https://github.com/maiyunnet/kebab/blob/master/index.ts#L52)
1197
+ Defined in: [index.ts:51](https://github.com/maiyunnet/kebab/blob/master/index.ts#L51)
1163
1198
 
1164
1199
  #### Index Signature
1165
1200
 
@@ -1195,7 +1230,7 @@ Defined in: [index.ts:52](https://github.com/maiyunnet/kebab/blob/master/index.t
1195
1230
 
1196
1231
  > **sql**: [`IConfigSql`](IConfigSql.md)
1197
1232
 
1198
- Defined in: [index.ts:77](https://github.com/maiyunnet/kebab/blob/master/index.ts#L77)
1233
+ Defined in: [index.ts:76](https://github.com/maiyunnet/kebab/blob/master/index.ts#L76)
1199
1234
 
1200
1235
  ***
1201
1236
 
@@ -1203,7 +1238,7 @@ Defined in: [index.ts:77](https://github.com/maiyunnet/kebab/blob/master/index.t
1203
1238
 
1204
1239
  > **turnstile**: [`IConfigTurnstile`](IConfigTurnstile.md)
1205
1240
 
1206
- Defined in: [index.ts:81](https://github.com/maiyunnet/kebab/blob/master/index.ts#L81)
1241
+ Defined in: [index.ts:80](https://github.com/maiyunnet/kebab/blob/master/index.ts#L80)
1207
1242
 
1208
1243
  ***
1209
1244
 
@@ -1211,7 +1246,7 @@ Defined in: [index.ts:81](https://github.com/maiyunnet/kebab/blob/master/index.t
1211
1246
 
1212
1247
  > **vector**: [`IConfigVector`](IConfigVector.md)
1213
1248
 
1214
- Defined in: [index.ts:83](https://github.com/maiyunnet/kebab/blob/master/index.ts#L83)
1249
+ Defined in: [index.ts:82](https://github.com/maiyunnet/kebab/blob/master/index.ts#L82)
1215
1250
 
1216
1251
  index/interfaces/IConfigS3.md
1217
1252
  ---
@@ -1224,7 +1259,7 @@ index/interfaces/IConfigS3.md
1224
1259
 
1225
1260
  # Interface: IConfigS3
1226
1261
 
1227
- Defined in: [index.ts:109](https://github.com/maiyunnet/kebab/blob/master/index.ts#L109)
1262
+ Defined in: [index.ts:108](https://github.com/maiyunnet/kebab/blob/master/index.ts#L108)
1228
1263
 
1229
1264
  对象存储
1230
1265
 
@@ -1234,7 +1269,7 @@ Defined in: [index.ts:109](https://github.com/maiyunnet/kebab/blob/master/index.
1234
1269
 
1235
1270
  > `optional` **account?**: `string`
1236
1271
 
1237
- Defined in: [index.ts:111](https://github.com/maiyunnet/kebab/blob/master/index.ts#L111)
1272
+ Defined in: [index.ts:110](https://github.com/maiyunnet/kebab/blob/master/index.ts#L110)
1238
1273
 
1239
1274
  cf r2 要用
1240
1275
 
@@ -1244,7 +1279,7 @@ cf r2 要用
1244
1279
 
1245
1280
  > **bucket**: `string`
1246
1281
 
1247
- Defined in: [index.ts:115](https://github.com/maiyunnet/kebab/blob/master/index.ts#L115)
1282
+ Defined in: [index.ts:114](https://github.com/maiyunnet/kebab/blob/master/index.ts#L114)
1248
1283
 
1249
1284
  ***
1250
1285
 
@@ -1252,7 +1287,7 @@ Defined in: [index.ts:115](https://github.com/maiyunnet/kebab/blob/master/index.
1252
1287
 
1253
1288
  > **region**: `string`
1254
1289
 
1255
- Defined in: [index.ts:114](https://github.com/maiyunnet/kebab/blob/master/index.ts#L114)
1290
+ Defined in: [index.ts:113](https://github.com/maiyunnet/kebab/blob/master/index.ts#L113)
1256
1291
 
1257
1292
  ***
1258
1293
 
@@ -1260,7 +1295,7 @@ Defined in: [index.ts:114](https://github.com/maiyunnet/kebab/blob/master/index.
1260
1295
 
1261
1296
  > **sid**: `string`
1262
1297
 
1263
- Defined in: [index.ts:112](https://github.com/maiyunnet/kebab/blob/master/index.ts#L112)
1298
+ Defined in: [index.ts:111](https://github.com/maiyunnet/kebab/blob/master/index.ts#L111)
1264
1299
 
1265
1300
  ***
1266
1301
 
@@ -1268,7 +1303,7 @@ Defined in: [index.ts:112](https://github.com/maiyunnet/kebab/blob/master/index.
1268
1303
 
1269
1304
  > **skey**: `string`
1270
1305
 
1271
- Defined in: [index.ts:113](https://github.com/maiyunnet/kebab/blob/master/index.ts#L113)
1306
+ Defined in: [index.ts:112](https://github.com/maiyunnet/kebab/blob/master/index.ts#L112)
1272
1307
 
1273
1308
  index/interfaces/IConfigSql.md
1274
1309
  ---
@@ -1281,7 +1316,7 @@ index/interfaces/IConfigSql.md
1281
1316
 
1282
1317
  # Interface: IConfigSql
1283
1318
 
1284
- Defined in: [index.ts:177](https://github.com/maiyunnet/kebab/blob/master/index.ts#L177)
1319
+ Defined in: [index.ts:176](https://github.com/maiyunnet/kebab/blob/master/index.ts#L176)
1285
1320
 
1286
1321
  sql
1287
1322
 
@@ -1291,7 +1326,7 @@ sql
1291
1326
 
1292
1327
  > **pre**: `string`
1293
1328
 
1294
- Defined in: [index.ts:178](https://github.com/maiyunnet/kebab/blob/master/index.ts#L178)
1329
+ Defined in: [index.ts:177](https://github.com/maiyunnet/kebab/blob/master/index.ts#L177)
1295
1330
 
1296
1331
  index/interfaces/IConfigTurnstile.md
1297
1332
  ---
@@ -1304,7 +1339,7 @@ index/interfaces/IConfigTurnstile.md
1304
1339
 
1305
1340
  # Interface: IConfigTurnstile
1306
1341
 
1307
- Defined in: [index.ts:135](https://github.com/maiyunnet/kebab/blob/master/index.ts#L135)
1342
+ Defined in: [index.ts:134](https://github.com/maiyunnet/kebab/blob/master/index.ts#L134)
1308
1343
 
1309
1344
  人机码信息
1310
1345
 
@@ -1314,7 +1349,7 @@ Defined in: [index.ts:135](https://github.com/maiyunnet/kebab/blob/master/index.
1314
1349
 
1315
1350
  > **CF**: `object`
1316
1351
 
1317
- Defined in: [index.ts:136](https://github.com/maiyunnet/kebab/blob/master/index.ts#L136)
1352
+ Defined in: [index.ts:135](https://github.com/maiyunnet/kebab/blob/master/index.ts#L135)
1318
1353
 
1319
1354
  #### sid
1320
1355
 
@@ -1330,7 +1365,7 @@ Defined in: [index.ts:136](https://github.com/maiyunnet/kebab/blob/master/index.
1330
1365
 
1331
1366
  > **TENCENT**: `object`
1332
1367
 
1333
- Defined in: [index.ts:140](https://github.com/maiyunnet/kebab/blob/master/index.ts#L140)
1368
+ Defined in: [index.ts:139](https://github.com/maiyunnet/kebab/blob/master/index.ts#L139)
1334
1369
 
1335
1370
  #### aid
1336
1371
 
@@ -1359,7 +1394,7 @@ index/interfaces/IConfigVector.md
1359
1394
 
1360
1395
  # Interface: IConfigVector
1361
1396
 
1362
- Defined in: [index.ts:126](https://github.com/maiyunnet/kebab/blob/master/index.ts#L126)
1397
+ Defined in: [index.ts:125](https://github.com/maiyunnet/kebab/blob/master/index.ts#L125)
1363
1398
 
1364
1399
  向量数据库
1365
1400
 
@@ -1369,7 +1404,7 @@ Defined in: [index.ts:126](https://github.com/maiyunnet/kebab/blob/master/index.
1369
1404
 
1370
1405
  > **host**: `string`
1371
1406
 
1372
- Defined in: [index.ts:127](https://github.com/maiyunnet/kebab/blob/master/index.ts#L127)
1407
+ Defined in: [index.ts:126](https://github.com/maiyunnet/kebab/blob/master/index.ts#L126)
1373
1408
 
1374
1409
  ***
1375
1410
 
@@ -1377,7 +1412,7 @@ Defined in: [index.ts:127](https://github.com/maiyunnet/kebab/blob/master/index.
1377
1412
 
1378
1413
  > **name**: `string`
1379
1414
 
1380
- Defined in: [index.ts:129](https://github.com/maiyunnet/kebab/blob/master/index.ts#L129)
1415
+ Defined in: [index.ts:128](https://github.com/maiyunnet/kebab/blob/master/index.ts#L128)
1381
1416
 
1382
1417
  ***
1383
1418
 
@@ -1385,7 +1420,7 @@ Defined in: [index.ts:129](https://github.com/maiyunnet/kebab/blob/master/index.
1385
1420
 
1386
1421
  > **port**: `number`
1387
1422
 
1388
- Defined in: [index.ts:128](https://github.com/maiyunnet/kebab/blob/master/index.ts#L128)
1423
+ Defined in: [index.ts:127](https://github.com/maiyunnet/kebab/blob/master/index.ts#L127)
1389
1424
 
1390
1425
  ***
1391
1426
 
@@ -1393,7 +1428,7 @@ Defined in: [index.ts:128](https://github.com/maiyunnet/kebab/blob/master/index.
1393
1428
 
1394
1429
  > **pwd**: `string`
1395
1430
 
1396
- Defined in: [index.ts:131](https://github.com/maiyunnet/kebab/blob/master/index.ts#L131)
1431
+ Defined in: [index.ts:130](https://github.com/maiyunnet/kebab/blob/master/index.ts#L130)
1397
1432
 
1398
1433
  ***
1399
1434
 
@@ -1401,7 +1436,7 @@ Defined in: [index.ts:131](https://github.com/maiyunnet/kebab/blob/master/index.
1401
1436
 
1402
1437
  > **user**: `string`
1403
1438
 
1404
- Defined in: [index.ts:130](https://github.com/maiyunnet/kebab/blob/master/index.ts#L130)
1439
+ Defined in: [index.ts:129](https://github.com/maiyunnet/kebab/blob/master/index.ts#L129)
1405
1440
 
1406
1441
  index/interfaces/IPostFile.md
1407
1442
  ---
@@ -1414,7 +1449,7 @@ index/interfaces/IPostFile.md
1414
1449
 
1415
1450
  # Interface: IPostFile
1416
1451
 
1417
- Defined in: [index.ts:240](https://github.com/maiyunnet/kebab/blob/master/index.ts#L240)
1452
+ Defined in: [index.ts:239](https://github.com/maiyunnet/kebab/blob/master/index.ts#L239)
1418
1453
 
1419
1454
  上传的文件信息对象
1420
1455
 
@@ -1424,7 +1459,7 @@ Defined in: [index.ts:240](https://github.com/maiyunnet/kebab/blob/master/index.
1424
1459
 
1425
1460
  > `readonly` **name**: `string`
1426
1461
 
1427
- Defined in: [index.ts:241](https://github.com/maiyunnet/kebab/blob/master/index.ts#L241)
1462
+ Defined in: [index.ts:240](https://github.com/maiyunnet/kebab/blob/master/index.ts#L240)
1428
1463
 
1429
1464
  ***
1430
1465
 
@@ -1432,7 +1467,7 @@ Defined in: [index.ts:241](https://github.com/maiyunnet/kebab/blob/master/index.
1432
1467
 
1433
1468
  > `readonly` **origin**: `string`
1434
1469
 
1435
- Defined in: [index.ts:242](https://github.com/maiyunnet/kebab/blob/master/index.ts#L242)
1470
+ Defined in: [index.ts:241](https://github.com/maiyunnet/kebab/blob/master/index.ts#L241)
1436
1471
 
1437
1472
  ***
1438
1473
 
@@ -1440,7 +1475,7 @@ Defined in: [index.ts:242](https://github.com/maiyunnet/kebab/blob/master/index.
1440
1475
 
1441
1476
  > `readonly` **path**: `string`
1442
1477
 
1443
- Defined in: [index.ts:244](https://github.com/maiyunnet/kebab/blob/master/index.ts#L244)
1478
+ Defined in: [index.ts:243](https://github.com/maiyunnet/kebab/blob/master/index.ts#L243)
1444
1479
 
1445
1480
  ***
1446
1481
 
@@ -1448,7 +1483,7 @@ Defined in: [index.ts:244](https://github.com/maiyunnet/kebab/blob/master/index.
1448
1483
 
1449
1484
  > `readonly` **size**: `number`
1450
1485
 
1451
- Defined in: [index.ts:243](https://github.com/maiyunnet/kebab/blob/master/index.ts#L243)
1486
+ Defined in: [index.ts:242](https://github.com/maiyunnet/kebab/blob/master/index.ts#L242)
1452
1487
 
1453
1488
  index/interfaces/IUrlParse.md
1454
1489
  ---
@@ -1461,7 +1496,7 @@ index/interfaces/IUrlParse.md
1461
1496
 
1462
1497
  # Interface: IUrlParse
1463
1498
 
1464
- Defined in: [index.ts:88](https://github.com/maiyunnet/kebab/blob/master/index.ts#L88)
1499
+ Defined in: [index.ts:87](https://github.com/maiyunnet/kebab/blob/master/index.ts#L87)
1465
1500
 
1466
1501
  ## Properties
1467
1502
 
@@ -1469,7 +1504,7 @@ Defined in: [index.ts:88](https://github.com/maiyunnet/kebab/blob/master/index.t
1469
1504
 
1470
1505
  > **auth**: `string` \| `null`
1471
1506
 
1472
- Defined in: [index.ts:90](https://github.com/maiyunnet/kebab/blob/master/index.ts#L90)
1507
+ Defined in: [index.ts:89](https://github.com/maiyunnet/kebab/blob/master/index.ts#L89)
1473
1508
 
1474
1509
  ***
1475
1510
 
@@ -1477,7 +1512,7 @@ Defined in: [index.ts:90](https://github.com/maiyunnet/kebab/blob/master/index.t
1477
1512
 
1478
1513
  > **hash**: `string` \| `null`
1479
1514
 
1480
- Defined in: [index.ts:99](https://github.com/maiyunnet/kebab/blob/master/index.ts#L99)
1515
+ Defined in: [index.ts:98](https://github.com/maiyunnet/kebab/blob/master/index.ts#L98)
1481
1516
 
1482
1517
  ***
1483
1518
 
@@ -1485,7 +1520,7 @@ Defined in: [index.ts:99](https://github.com/maiyunnet/kebab/blob/master/index.t
1485
1520
 
1486
1521
  > **host**: `string` \| `null`
1487
1522
 
1488
- Defined in: [index.ts:93](https://github.com/maiyunnet/kebab/blob/master/index.ts#L93)
1523
+ Defined in: [index.ts:92](https://github.com/maiyunnet/kebab/blob/master/index.ts#L92)
1489
1524
 
1490
1525
  ***
1491
1526
 
@@ -1493,7 +1528,7 @@ Defined in: [index.ts:93](https://github.com/maiyunnet/kebab/blob/master/index.t
1493
1528
 
1494
1529
  > **hostname**: `string` \| `null`
1495
1530
 
1496
- Defined in: [index.ts:94](https://github.com/maiyunnet/kebab/blob/master/index.ts#L94)
1531
+ Defined in: [index.ts:93](https://github.com/maiyunnet/kebab/blob/master/index.ts#L93)
1497
1532
 
1498
1533
  ***
1499
1534
 
@@ -1501,7 +1536,7 @@ Defined in: [index.ts:94](https://github.com/maiyunnet/kebab/blob/master/index.t
1501
1536
 
1502
1537
  > **pass**: `string` \| `null`
1503
1538
 
1504
- Defined in: [index.ts:92](https://github.com/maiyunnet/kebab/blob/master/index.ts#L92)
1539
+ Defined in: [index.ts:91](https://github.com/maiyunnet/kebab/blob/master/index.ts#L91)
1505
1540
 
1506
1541
  ***
1507
1542
 
@@ -1509,7 +1544,7 @@ Defined in: [index.ts:92](https://github.com/maiyunnet/kebab/blob/master/index.t
1509
1544
 
1510
1545
  > **path**: `string` \| `null`
1511
1546
 
1512
- Defined in: [index.ts:97](https://github.com/maiyunnet/kebab/blob/master/index.ts#L97)
1547
+ Defined in: [index.ts:96](https://github.com/maiyunnet/kebab/blob/master/index.ts#L96)
1513
1548
 
1514
1549
  ***
1515
1550
 
@@ -1517,7 +1552,7 @@ Defined in: [index.ts:97](https://github.com/maiyunnet/kebab/blob/master/index.t
1517
1552
 
1518
1553
  > **pathname**: `string`
1519
1554
 
1520
- Defined in: [index.ts:96](https://github.com/maiyunnet/kebab/blob/master/index.ts#L96)
1555
+ Defined in: [index.ts:95](https://github.com/maiyunnet/kebab/blob/master/index.ts#L95)
1521
1556
 
1522
1557
  ***
1523
1558
 
@@ -1525,7 +1560,7 @@ Defined in: [index.ts:96](https://github.com/maiyunnet/kebab/blob/master/index.t
1525
1560
 
1526
1561
  > **port**: `string` \| `null`
1527
1562
 
1528
- Defined in: [index.ts:95](https://github.com/maiyunnet/kebab/blob/master/index.ts#L95)
1563
+ Defined in: [index.ts:94](https://github.com/maiyunnet/kebab/blob/master/index.ts#L94)
1529
1564
 
1530
1565
  ***
1531
1566
 
@@ -1533,7 +1568,7 @@ Defined in: [index.ts:95](https://github.com/maiyunnet/kebab/blob/master/index.t
1533
1568
 
1534
1569
  > **protocol**: `string` \| `null`
1535
1570
 
1536
- Defined in: [index.ts:89](https://github.com/maiyunnet/kebab/blob/master/index.ts#L89)
1571
+ Defined in: [index.ts:88](https://github.com/maiyunnet/kebab/blob/master/index.ts#L88)
1537
1572
 
1538
1573
  ***
1539
1574
 
@@ -1541,7 +1576,7 @@ Defined in: [index.ts:89](https://github.com/maiyunnet/kebab/blob/master/index.t
1541
1576
 
1542
1577
  > **query**: `string` \| `null`
1543
1578
 
1544
- Defined in: [index.ts:98](https://github.com/maiyunnet/kebab/blob/master/index.ts#L98)
1579
+ Defined in: [index.ts:97](https://github.com/maiyunnet/kebab/blob/master/index.ts#L97)
1545
1580
 
1546
1581
  ***
1547
1582
 
@@ -1549,7 +1584,7 @@ Defined in: [index.ts:98](https://github.com/maiyunnet/kebab/blob/master/index.t
1549
1584
 
1550
1585
  > **user**: `string` \| `null`
1551
1586
 
1552
- Defined in: [index.ts:91](https://github.com/maiyunnet/kebab/blob/master/index.ts#L91)
1587
+ Defined in: [index.ts:90](https://github.com/maiyunnet/kebab/blob/master/index.ts#L90)
1553
1588
 
1554
1589
  index/interfaces/IVhost.md
1555
1590
  ---
@@ -1562,7 +1597,7 @@ index/interfaces/IVhost.md
1562
1597
 
1563
1598
  # Interface: IVhost
1564
1599
 
1565
- Defined in: [index.ts:232](https://github.com/maiyunnet/kebab/blob/master/index.ts#L232)
1600
+ Defined in: [index.ts:231](https://github.com/maiyunnet/kebab/blob/master/index.ts#L231)
1566
1601
 
1567
1602
  虚拟机配置对象
1568
1603
 
@@ -1572,7 +1607,7 @@ Defined in: [index.ts:232](https://github.com/maiyunnet/kebab/blob/master/index.
1572
1607
 
1573
1608
  > `readonly` **domains**: `string`[]
1574
1609
 
1575
- Defined in: [index.ts:234](https://github.com/maiyunnet/kebab/blob/master/index.ts#L234)
1610
+ Defined in: [index.ts:233](https://github.com/maiyunnet/kebab/blob/master/index.ts#L233)
1576
1611
 
1577
1612
  ***
1578
1613
 
@@ -1580,7 +1615,7 @@ Defined in: [index.ts:234](https://github.com/maiyunnet/kebab/blob/master/index.
1580
1615
 
1581
1616
  > `readonly` `optional` **name?**: `string`
1582
1617
 
1583
- Defined in: [index.ts:233](https://github.com/maiyunnet/kebab/blob/master/index.ts#L233)
1618
+ Defined in: [index.ts:232](https://github.com/maiyunnet/kebab/blob/master/index.ts#L232)
1584
1619
 
1585
1620
  ***
1586
1621
 
@@ -1588,7 +1623,7 @@ Defined in: [index.ts:233](https://github.com/maiyunnet/kebab/blob/master/index.
1588
1623
 
1589
1624
  > `readonly` `optional` **remark?**: `string`
1590
1625
 
1591
- Defined in: [index.ts:236](https://github.com/maiyunnet/kebab/blob/master/index.ts#L236)
1626
+ Defined in: [index.ts:235](https://github.com/maiyunnet/kebab/blob/master/index.ts#L235)
1592
1627
 
1593
1628
  ***
1594
1629
 
@@ -1596,7 +1631,7 @@ Defined in: [index.ts:236](https://github.com/maiyunnet/kebab/blob/master/index.
1596
1631
 
1597
1632
  > `readonly` **root**: `string`
1598
1633
 
1599
- Defined in: [index.ts:235](https://github.com/maiyunnet/kebab/blob/master/index.ts#L235)
1634
+ Defined in: [index.ts:234](https://github.com/maiyunnet/kebab/blob/master/index.ts#L234)
1600
1635
 
1601
1636
  index.md
1602
1637
  ---
@@ -1636,6 +1671,7 @@ index.md
1636
1671
  - [lib/s3](lib/s3/index.md)
1637
1672
  - [lib/scan](lib/scan/index.md)
1638
1673
  - [lib/session](lib/session/index.md)
1674
+ - [lib/session/login](lib/session/login/index.md)
1639
1675
  - [lib/socket](lib/socket/index.md)
1640
1676
  - [lib/sql](lib/sql/index.md)
1641
1677
  - [lib/sql/value](lib/sql/value/index.md)
@@ -1672,7 +1708,7 @@ index/type-aliases/DbValue.md
1672
1708
 
1673
1709
  > **DbValue** = `string` \| `number` \| `null` \| `Record`\<`string`, [`Json`](Json.md)\>
1674
1710
 
1675
- Defined in: [index.ts:48](https://github.com/maiyunnet/kebab/blob/master/index.ts#L48)
1711
+ Defined in: [index.ts:47](https://github.com/maiyunnet/kebab/blob/master/index.ts#L47)
1676
1712
 
1677
1713
  数据库值的类型
1678
1714
 
@@ -1689,7 +1725,7 @@ index/type-aliases/Json.md
1689
1725
 
1690
1726
  > **Json** = `any`
1691
1727
 
1692
- Defined in: [index.ts:45](https://github.com/maiyunnet/kebab/blob/master/index.ts#L45)
1728
+ Defined in: [index.ts:44](https://github.com/maiyunnet/kebab/blob/master/index.ts#L44)
1693
1729
 
1694
1730
  除非确定是不可知的 Json,否则不能使用
1695
1731
 
@@ -1706,7 +1742,7 @@ index/variables/CERT_CWD.md
1706
1742
 
1707
1743
  > `const` **CERT\_CWD**: `string`
1708
1744
 
1709
- Defined in: [index.ts:32](https://github.com/maiyunnet/kebab/blob/master/index.ts#L32)
1745
+ Defined in: [index.ts:31](https://github.com/maiyunnet/kebab/blob/master/index.ts#L31)
1710
1746
 
1711
1747
  index/variables/CONF_CWD.md
1712
1748
  ---
@@ -1721,7 +1757,7 @@ index/variables/CONF_CWD.md
1721
1757
 
1722
1758
  > `const` **CONF\_CWD**: `string`
1723
1759
 
1724
- Defined in: [index.ts:31](https://github.com/maiyunnet/kebab/blob/master/index.ts#L31)
1760
+ Defined in: [index.ts:30](https://github.com/maiyunnet/kebab/blob/master/index.ts#L30)
1725
1761
 
1726
1762
  index/variables/FTMP_CWD.md
1727
1763
  ---
@@ -1736,7 +1772,7 @@ index/variables/FTMP_CWD.md
1736
1772
 
1737
1773
  > `const` **FTMP\_CWD**: `string`
1738
1774
 
1739
- Defined in: [index.ts:39](https://github.com/maiyunnet/kebab/blob/master/index.ts#L39)
1775
+ Defined in: [index.ts:38](https://github.com/maiyunnet/kebab/blob/master/index.ts#L38)
1740
1776
 
1741
1777
  index/variables/IND_CWD.md
1742
1778
  ---
@@ -1751,7 +1787,7 @@ index/variables/IND_CWD.md
1751
1787
 
1752
1788
  > `const` **IND\_CWD**: `string`
1753
1789
 
1754
- Defined in: [index.ts:38](https://github.com/maiyunnet/kebab/blob/master/index.ts#L38)
1790
+ Defined in: [index.ts:37](https://github.com/maiyunnet/kebab/blob/master/index.ts#L37)
1755
1791
 
1756
1792
  index/variables/LIB_CWD.md
1757
1793
  ---
@@ -1766,7 +1802,7 @@ index/variables/LIB_CWD.md
1766
1802
 
1767
1803
  > `const` **LIB\_CWD**: `string`
1768
1804
 
1769
- Defined in: [index.ts:35](https://github.com/maiyunnet/kebab/blob/master/index.ts#L35)
1805
+ Defined in: [index.ts:34](https://github.com/maiyunnet/kebab/blob/master/index.ts#L34)
1770
1806
 
1771
1807
  用户的根 LIB,以 / 结尾
1772
1808
 
@@ -1783,7 +1819,7 @@ index/variables/LIB_PATH.md
1783
1819
 
1784
1820
  > `const` **LIB\_PATH**: `string`
1785
1821
 
1786
- Defined in: [index.ts:20](https://github.com/maiyunnet/kebab/blob/master/index.ts#L20)
1822
+ Defined in: [index.ts:19](https://github.com/maiyunnet/kebab/blob/master/index.ts#L19)
1787
1823
 
1788
1824
  框架的 LIB,以 / 结尾
1789
1825
 
@@ -1800,7 +1836,7 @@ index/variables/LOG_CWD.md
1800
1836
 
1801
1837
  > `const` **LOG\_CWD**: `string`
1802
1838
 
1803
- Defined in: [index.ts:36](https://github.com/maiyunnet/kebab/blob/master/index.ts#L36)
1839
+ Defined in: [index.ts:35](https://github.com/maiyunnet/kebab/blob/master/index.ts#L35)
1804
1840
 
1805
1841
  index/variables/MOD_CWD.md
1806
1842
  ---
@@ -1815,7 +1851,7 @@ index/variables/MOD_CWD.md
1815
1851
 
1816
1852
  > `const` **MOD\_CWD**: `string`
1817
1853
 
1818
- Defined in: [index.ts:40](https://github.com/maiyunnet/kebab/blob/master/index.ts#L40)
1854
+ Defined in: [index.ts:39](https://github.com/maiyunnet/kebab/blob/master/index.ts#L39)
1819
1855
 
1820
1856
  index/variables/ROOT_CWD.md
1821
1857
  ---
@@ -1830,7 +1866,7 @@ index/variables/ROOT_CWD.md
1830
1866
 
1831
1867
  > `const` **ROOT\_CWD**: `string`
1832
1868
 
1833
- Defined in: [index.ts:30](https://github.com/maiyunnet/kebab/blob/master/index.ts#L30)
1869
+ Defined in: [index.ts:29](https://github.com/maiyunnet/kebab/blob/master/index.ts#L29)
1834
1870
 
1835
1871
  执行根目录,以 / 结尾
1836
1872
 
@@ -1847,7 +1883,7 @@ index/variables/ROOT_PATH.md
1847
1883
 
1848
1884
  > `const` **ROOT\_PATH**: `string`
1849
1885
 
1850
- Defined in: [index.ts:18](https://github.com/maiyunnet/kebab/blob/master/index.ts#L18)
1886
+ Defined in: [index.ts:17](https://github.com/maiyunnet/kebab/blob/master/index.ts#L17)
1851
1887
 
1852
1888
  框架根目录,以 / 结尾
1853
1889
 
@@ -1864,7 +1900,7 @@ index/variables/SYS_PATH.md
1864
1900
 
1865
1901
  > `const` **SYS\_PATH**: `string`
1866
1902
 
1867
- Defined in: [index.ts:21](https://github.com/maiyunnet/kebab/blob/master/index.ts#L21)
1903
+ Defined in: [index.ts:20](https://github.com/maiyunnet/kebab/blob/master/index.ts#L20)
1868
1904
 
1869
1905
  index/variables/VER.md
1870
1906
  ---
@@ -1877,9 +1913,9 @@ index/variables/VER.md
1877
1913
 
1878
1914
  # Variable: VER
1879
1915
 
1880
- > `const` **VER**: `"9.28.0"` = `'9.28.0'`
1916
+ > `const` **VER**: `"9.29.1"` = `'9.29.1'`
1881
1917
 
1882
- Defined in: [index.ts:9](https://github.com/maiyunnet/kebab/blob/master/index.ts#L9)
1918
+ Defined in: [index.ts:8](https://github.com/maiyunnet/kebab/blob/master/index.ts#L8)
1883
1919
 
1884
1920
  当前系统版本号
1885
1921
 
@@ -1896,7 +1932,7 @@ index/variables/VHOST_CWD.md
1896
1932
 
1897
1933
  > `const` **VHOST\_CWD**: `string`
1898
1934
 
1899
- Defined in: [index.ts:33](https://github.com/maiyunnet/kebab/blob/master/index.ts#L33)
1935
+ Defined in: [index.ts:32](https://github.com/maiyunnet/kebab/blob/master/index.ts#L32)
1900
1936
 
1901
1937
  index/variables/WWW_CWD.md
1902
1938
  ---
@@ -1911,7 +1947,7 @@ index/variables/WWW_CWD.md
1911
1947
 
1912
1948
  > `const` **WWW\_CWD**: `string`
1913
1949
 
1914
- Defined in: [index.ts:37](https://github.com/maiyunnet/kebab/blob/master/index.ts#L37)
1950
+ Defined in: [index.ts:36](https://github.com/maiyunnet/kebab/blob/master/index.ts#L36)
1915
1951
 
1916
1952
  lib/ai/classes/Ai.md
1917
1953
  ---
@@ -3867,7 +3903,7 @@ lib/core/functions/clone.md
3867
3903
 
3868
3904
  > **clone**\<`T`\>(`obj`): `T`
3869
3905
 
3870
- Defined in: [lib/core.ts:1493](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1493)
3906
+ Defined in: [lib/core.ts:1496](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1496)
3871
3907
 
3872
3908
  完整的克隆一份数组/对象
3873
3909
 
@@ -3931,7 +3967,7 @@ lib/core/functions/debug.md
3931
3967
 
3932
3968
  > **debug**(`message?`, ...`optionalParams`): `void`
3933
3969
 
3934
- Defined in: [lib/core.ts:1539](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1539)
3970
+ Defined in: [lib/core.ts:1542](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1542)
3935
3971
 
3936
3972
  打印调试信息,线上环境不会打印
3937
3973
 
@@ -3966,7 +4002,7 @@ lib/core/functions/display.md
3966
4002
 
3967
4003
  > **display**(`message?`, ...`optionalParams`): `void`
3968
4004
 
3969
- Defined in: [lib/core.ts:1552](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1552)
4005
+ Defined in: [lib/core.ts:1555](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1555)
3970
4006
 
3971
4007
  向控制台直接显示内容,一般情况下禁止使用
3972
4008
 
@@ -4078,7 +4114,7 @@ lib/core/functions/getLog.md
4078
4114
 
4079
4115
  > **getLog**(`opt`): `Promise`\<`false` \| \{ `list`: `any`[] \| `string`[][]; `total`: `number`; \}\>
4080
4116
 
4081
- Defined in: [lib/core.ts:1273](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1273)
4117
+ Defined in: [lib/core.ts:1276](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1276)
4082
4118
 
4083
4119
  获取日志内容为一个数组
4084
4120
 
@@ -4147,7 +4183,7 @@ lib/core/functions/getMonitorEvent.md
4147
4183
 
4148
4184
  > **getMonitorEvent**(`opt`): `Promise`\<`false` \| [`IMonitorEvent`](../interfaces/IMonitorEvent.md) \| `null`\>
4149
4185
 
4150
- Defined in: [lib/core.ts:1409](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1409)
4186
+ Defined in: [lib/core.ts:1412](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1412)
4151
4187
 
4152
4188
  读取事件详情和文件清单;只解析事件记录,不解析 Profile 或堆快照
4153
4189
 
@@ -4184,7 +4220,7 @@ lib/core/functions/getMonitorEvents.md
4184
4220
 
4185
4221
  > **getMonitorEvents**(`opt?`): `Promise`\<`false` \| \{ `list`: [`IMonitorEventSummary`](../interfaces/IMonitorEventSummary.md)[]; `total`: `number`; \}\>
4186
4222
 
4187
- Defined in: [lib/core.ts:1382](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1382)
4223
+ Defined in: [lib/core.ts:1385](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1385)
4188
4224
 
4189
4225
  获取某天已保存的监控事件,按目录时间倒序分页
4190
4226
 
@@ -4231,7 +4267,7 @@ lib/core/functions/getMonitorFile.md
4231
4267
 
4232
4268
  > **getMonitorFile**(`opt`): `Promise`\<`false` \| [`Response`](../../undici/response/classes/Response.md) \| `null`\>
4233
4269
 
4234
- Defined in: [lib/core.ts:1433](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1433)
4270
+ Defined in: [lib/core.ts:1436](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1436)
4235
4271
 
4236
4272
  获取监控原始文件的响应,可使用 getStream() 下载;小文件可用 getText()/getJson() 预览
4237
4273
 
@@ -4376,7 +4412,7 @@ lib/core/functions/loadEnv.md
4376
4412
 
4377
4413
  > **loadEnv**(`dir`): `Promise`\<`void`\>
4378
4414
 
4379
- Defined in: [lib/core.ts:1623](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1623)
4415
+ Defined in: [lib/core.ts:1626](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1626)
4380
4416
 
4381
4417
  加载 .env 文件到 process.env,若文件不存在则跳过
4382
4418
 
@@ -4405,7 +4441,7 @@ lib/core/functions/log.md
4405
4441
 
4406
4442
  > **log**(`opt`, `msg`, `fend?`): `void`
4407
4443
 
4408
- Defined in: [lib/core.ts:1171](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1171)
4444
+ Defined in: [lib/core.ts:1174](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1174)
4409
4445
 
4410
4446
  写入文件日志,不采集 Cookie、Session 或请求体
4411
4447
 
@@ -4448,7 +4484,7 @@ lib/core/functions/ls.md
4448
4484
 
4449
4485
  > **ls**(`opt`): `Promise`\<`object`[]\>
4450
4486
 
4451
- Defined in: [lib/core.ts:1454](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1454)
4487
+ Defined in: [lib/core.ts:1457](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1457)
4452
4488
 
4453
4489
  获取目录内文件/文件夹列表
4454
4490
 
@@ -4853,7 +4889,7 @@ lib/core/functions/resolveEnvVars.md
4853
4889
 
4854
4890
  > **resolveEnvVars**(`obj`): `void`
4855
4891
 
4856
- Defined in: [lib/core.ts:1653](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1653)
4892
+ Defined in: [lib/core.ts:1656](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1656)
4857
4893
 
4858
4894
  将配置对象中的 ${ENV_VAR} 占位符替换为 process.env 的值
4859
4895
 
@@ -4917,7 +4953,7 @@ lib/core/functions/sendPackage.md
4917
4953
 
4918
4954
  > **sendPackage**(`content`, `hosts?`): `Promise`\<`Record`\<`string`, \{ `result`: `boolean`; `return`: `string`; \}\>\>
4919
4955
 
4920
- Defined in: [lib/core.ts:1079](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1079)
4956
+ Defined in: [lib/core.ts:1082](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1082)
4921
4957
 
4922
4958
  向本机或局域网 RPC 发送 package.json 更新操作
4923
4959
 
@@ -4995,7 +5031,7 @@ lib/core/functions/sendProject.md
4995
5031
 
4996
5032
  > **sendProject**(`path`, `key`, `value`, `hosts?`): `Promise`\<`Record`\<`string`, \{ `result`: `boolean`; `return`: `string`; \}\>\>
4997
5033
 
4998
- Defined in: [lib/core.ts:1038](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1038)
5034
+ Defined in: [lib/core.ts:1041](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1041)
4999
5035
 
5000
5036
  向本机或局域网 RPC 发送项目配置更新操作
5001
5037
 
@@ -5129,7 +5165,7 @@ lib/core/functions/sendVhost.md
5129
5165
 
5130
5166
  > **sendVhost**(`files`, `hosts?`): `Promise`\<`Record`\<`string`, \{ `result`: `boolean`; `return`: `string`; \}\>\>
5131
5167
 
5132
- Defined in: [lib/core.ts:1120](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1120)
5168
+ Defined in: [lib/core.ts:1123](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1123)
5133
5169
 
5134
5170
  全量替换各节点 conf/vhost/ 中的文件,不自动 reload
5135
5171
 
@@ -5365,7 +5401,7 @@ lib/core/functions/writeEventStreamHead.md
5365
5401
 
5366
5402
  > **writeEventStreamHead**(`res`): `void`
5367
5403
 
5368
- Defined in: [lib/core.ts:1593](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1593)
5404
+ Defined in: [lib/core.ts:1596](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1596)
5369
5405
 
5370
5406
  提交服务器发送事件(SSE)响应头
5371
5407
 
@@ -5400,7 +5436,7 @@ lib/core/functions/writeHead.md
5400
5436
 
5401
5437
  > **writeHead**(`res`, `statusCode`, `headers?`): `void`
5402
5438
 
5403
- Defined in: [lib/core.ts:1572](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1572)
5439
+ Defined in: [lib/core.ts:1575](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1575)
5404
5440
 
5405
5441
  提交 HTTP 响应状态和头部,兼容 HTTP/1.1 与 HTTP/2
5406
5442
 
@@ -5450,7 +5486,7 @@ lib/core/functions/write.md
5450
5486
 
5451
5487
  > **write**(`res`, `data`): `void`
5452
5488
 
5453
- Defined in: [lib/core.ts:1605](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1605)
5489
+ Defined in: [lib/core.ts:1608](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1608)
5454
5490
 
5455
5491
  向 res 发送数据
5456
5492
 
@@ -5637,7 +5673,7 @@ lib/core/interfaces/ILogOptions.md
5637
5673
 
5638
5674
  # Interface: ILogOptions
5639
5675
 
5640
- Defined in: [lib/core.ts:1155](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1155)
5676
+ Defined in: [lib/core.ts:1158](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1158)
5641
5677
 
5642
5678
  log 设置的选项
5643
5679
 
@@ -5647,7 +5683,7 @@ log 设置的选项
5647
5683
 
5648
5684
  > `optional` **get?**: `Record`\<`string`, `any`\>
5649
5685
 
5650
- Defined in: [lib/core.ts:1160](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1160)
5686
+ Defined in: [lib/core.ts:1163](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1163)
5651
5687
 
5652
5688
  ***
5653
5689
 
@@ -5655,7 +5691,7 @@ Defined in: [lib/core.ts:1160](https://github.com/maiyunnet/kebab/blob/master/li
5655
5691
 
5656
5692
  > `optional` **headers?**: `IncomingHttpHeaders`
5657
5693
 
5658
- Defined in: [lib/core.ts:1161](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1161)
5694
+ Defined in: [lib/core.ts:1164](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1164)
5659
5695
 
5660
5696
  ***
5661
5697
 
@@ -5663,7 +5699,7 @@ Defined in: [lib/core.ts:1161](https://github.com/maiyunnet/kebab/blob/master/li
5663
5699
 
5664
5700
  > `optional` **hostname?**: `string`
5665
5701
 
5666
- Defined in: [lib/core.ts:1158](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1158)
5702
+ Defined in: [lib/core.ts:1161](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1161)
5667
5703
 
5668
5704
  ***
5669
5705
 
@@ -5671,7 +5707,7 @@ Defined in: [lib/core.ts:1158](https://github.com/maiyunnet/kebab/blob/master/li
5671
5707
 
5672
5708
  > `optional` **path?**: `string`
5673
5709
 
5674
- Defined in: [lib/core.ts:1156](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1156)
5710
+ Defined in: [lib/core.ts:1159](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1159)
5675
5711
 
5676
5712
  ***
5677
5713
 
@@ -5679,7 +5715,7 @@ Defined in: [lib/core.ts:1156](https://github.com/maiyunnet/kebab/blob/master/li
5679
5715
 
5680
5716
  > `optional` **req?**: `IncomingMessage` \| `Http2ServerRequest` \| `null`
5681
5717
 
5682
- Defined in: [lib/core.ts:1159](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1159)
5718
+ Defined in: [lib/core.ts:1162](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1162)
5683
5719
 
5684
5720
  ***
5685
5721
 
@@ -5687,7 +5723,7 @@ Defined in: [lib/core.ts:1159](https://github.com/maiyunnet/kebab/blob/master/li
5687
5723
 
5688
5724
  > `optional` **urlFull?**: `string`
5689
5725
 
5690
- Defined in: [lib/core.ts:1157](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1157)
5726
+ Defined in: [lib/core.ts:1160](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1160)
5691
5727
 
5692
5728
  lib/core/interfaces/IMonitorEvent.md
5693
5729
  ---
@@ -5700,7 +5736,7 @@ lib/core/interfaces/IMonitorEvent.md
5700
5736
 
5701
5737
  # Interface: IMonitorEvent
5702
5738
 
5703
- Defined in: [lib/core.ts:1339](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1339)
5739
+ Defined in: [lib/core.ts:1342](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1342)
5704
5740
 
5705
5741
  事件原始数据与可读取的文件;data 为 null 时可下载原始记录复盘
5706
5742
 
@@ -5710,7 +5746,7 @@ Defined in: [lib/core.ts:1339](https://github.com/maiyunnet/kebab/blob/master/li
5710
5746
 
5711
5747
  > **data**: `Record`\<`string`, `unknown`\> \| `null`
5712
5748
 
5713
- Defined in: [lib/core.ts:1341](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1341)
5749
+ Defined in: [lib/core.ts:1344](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1344)
5714
5750
 
5715
5751
  ***
5716
5752
 
@@ -5718,7 +5754,7 @@ Defined in: [lib/core.ts:1341](https://github.com/maiyunnet/kebab/blob/master/li
5718
5754
 
5719
5755
  > **files**: [`IMonitorFile`](IMonitorFile.md)[]
5720
5756
 
5721
- Defined in: [lib/core.ts:1343](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1343)
5757
+ Defined in: [lib/core.ts:1346](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1346)
5722
5758
 
5723
5759
  ***
5724
5760
 
@@ -5726,7 +5762,7 @@ Defined in: [lib/core.ts:1343](https://github.com/maiyunnet/kebab/blob/master/li
5726
5762
 
5727
5763
  > **recordStatus**: `"loaded"` \| `"invalid"` \| `"missing"` \| `"too-large"` \| `"unreadable"`
5728
5764
 
5729
- Defined in: [lib/core.ts:1342](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1342)
5765
+ Defined in: [lib/core.ts:1345](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1345)
5730
5766
 
5731
5767
  ***
5732
5768
 
@@ -5734,7 +5770,7 @@ Defined in: [lib/core.ts:1342](https://github.com/maiyunnet/kebab/blob/master/li
5734
5770
 
5735
5771
  > **summary**: [`IMonitorEventSummary`](IMonitorEventSummary.md)
5736
5772
 
5737
- Defined in: [lib/core.ts:1340](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1340)
5773
+ Defined in: [lib/core.ts:1343](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1343)
5738
5774
 
5739
5775
  lib/core/interfaces/IMonitorEventSummary.md
5740
5776
  ---
@@ -5747,7 +5783,7 @@ lib/core/interfaces/IMonitorEventSummary.md
5747
5783
 
5748
5784
  # Interface: IMonitorEventSummary
5749
5785
 
5750
- Defined in: [lib/core.ts:1319](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1319)
5786
+ Defined in: [lib/core.ts:1322](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1322)
5751
5787
 
5752
5788
  已保存监控事件的简短摘要,path 相对于 log/monitor/
5753
5789
 
@@ -5757,7 +5793,7 @@ Defined in: [lib/core.ts:1319](https://github.com/maiyunnet/kebab/blob/master/li
5757
5793
 
5758
5794
  > **path**: `string`
5759
5795
 
5760
- Defined in: [lib/core.ts:1320](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1320)
5796
+ Defined in: [lib/core.ts:1323](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1323)
5761
5797
 
5762
5798
  ***
5763
5799
 
@@ -5765,7 +5801,7 @@ Defined in: [lib/core.ts:1320](https://github.com/maiyunnet/kebab/blob/master/li
5765
5801
 
5766
5802
  > **pid**: `number`
5767
5803
 
5768
- Defined in: [lib/core.ts:1321](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1321)
5804
+ Defined in: [lib/core.ts:1324](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1324)
5769
5805
 
5770
5806
  ***
5771
5807
 
@@ -5773,7 +5809,7 @@ Defined in: [lib/core.ts:1321](https://github.com/maiyunnet/kebab/blob/master/li
5773
5809
 
5774
5810
  > **reasons**: `string`[]
5775
5811
 
5776
- Defined in: [lib/core.ts:1325](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1325)
5812
+ Defined in: [lib/core.ts:1328](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1328)
5777
5813
 
5778
5814
  ***
5779
5815
 
@@ -5781,7 +5817,7 @@ Defined in: [lib/core.ts:1325](https://github.com/maiyunnet/kebab/blob/master/li
5781
5817
 
5782
5818
  > **source**: `"main"` \| `"watchdog"`
5783
5819
 
5784
- Defined in: [lib/core.ts:1323](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1323)
5820
+ Defined in: [lib/core.ts:1326](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1326)
5785
5821
 
5786
5822
  ***
5787
5823
 
@@ -5789,7 +5825,7 @@ Defined in: [lib/core.ts:1323](https://github.com/maiyunnet/kebab/blob/master/li
5789
5825
 
5790
5826
  > **status**: `string`
5791
5827
 
5792
- Defined in: [lib/core.ts:1324](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1324)
5828
+ Defined in: [lib/core.ts:1327](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1327)
5793
5829
 
5794
5830
  ***
5795
5831
 
@@ -5797,7 +5833,7 @@ Defined in: [lib/core.ts:1324](https://github.com/maiyunnet/kebab/blob/master/li
5797
5833
 
5798
5834
  > **time**: `number`
5799
5835
 
5800
- Defined in: [lib/core.ts:1322](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1322)
5836
+ Defined in: [lib/core.ts:1325](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1325)
5801
5837
 
5802
5838
  lib/core/interfaces/IMonitorFile.md
5803
5839
  ---
@@ -5810,7 +5846,7 @@ lib/core/interfaces/IMonitorFile.md
5810
5846
 
5811
5847
  # Interface: IMonitorFile
5812
5848
 
5813
- Defined in: [lib/core.ts:1329](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1329)
5849
+ Defined in: [lib/core.ts:1332](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1332)
5814
5850
 
5815
5851
  监控文件元数据;复杂格式或超过 1 MiB 的文件不提供预览
5816
5852
 
@@ -5820,7 +5856,7 @@ Defined in: [lib/core.ts:1329](https://github.com/maiyunnet/kebab/blob/master/li
5820
5856
 
5821
5857
  > **mtime**: `number`
5822
5858
 
5823
- Defined in: [lib/core.ts:1334](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1334)
5859
+ Defined in: [lib/core.ts:1337](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1337)
5824
5860
 
5825
5861
  最后修改时间,单位 ms
5826
5862
 
@@ -5830,7 +5866,7 @@ Defined in: [lib/core.ts:1334](https://github.com/maiyunnet/kebab/blob/master/li
5830
5866
 
5831
5867
  > **name**: `string`
5832
5868
 
5833
- Defined in: [lib/core.ts:1331](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1331)
5869
+ Defined in: [lib/core.ts:1334](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1334)
5834
5870
 
5835
5871
  ***
5836
5872
 
@@ -5838,7 +5874,7 @@ Defined in: [lib/core.ts:1331](https://github.com/maiyunnet/kebab/blob/master/li
5838
5874
 
5839
5875
  > **path**: `string`
5840
5876
 
5841
- Defined in: [lib/core.ts:1330](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1330)
5877
+ Defined in: [lib/core.ts:1333](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1333)
5842
5878
 
5843
5879
  ***
5844
5880
 
@@ -5846,7 +5882,7 @@ Defined in: [lib/core.ts:1330](https://github.com/maiyunnet/kebab/blob/master/li
5846
5882
 
5847
5883
  > **preview**: `"text"` \| `"json"` \| `null`
5848
5884
 
5849
- Defined in: [lib/core.ts:1335](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1335)
5885
+ Defined in: [lib/core.ts:1338](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1338)
5850
5886
 
5851
5887
  ***
5852
5888
 
@@ -5854,7 +5890,7 @@ Defined in: [lib/core.ts:1335](https://github.com/maiyunnet/kebab/blob/master/li
5854
5890
 
5855
5891
  > **size**: `number`
5856
5892
 
5857
- Defined in: [lib/core.ts:1332](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1332)
5893
+ Defined in: [lib/core.ts:1335](https://github.com/maiyunnet/kebab/blob/master/lib/core.ts#L1335)
5858
5894
 
5859
5895
  lib/core/namespaces/v/classes/ValiError.md
5860
5896
  ---
@@ -119964,7 +120000,7 @@ Defined in: [lib/kv.ts:60](https://github.com/maiyunnet/kebab/blob/master/lib/kv
119964
120000
 
119965
120001
  > **add**(`key`, `val`, `ttl?`): `Promise`\<`boolean`\>
119966
120002
 
119967
- Defined in: [lib/kv.ts:115](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L115)
120003
+ Defined in: [lib/kv.ts:123](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L123)
119968
120004
 
119969
120005
  添加一个值,存在则不变
119970
120006
 
@@ -119994,7 +120030,7 @@ Defined in: [lib/kv.ts:115](https://github.com/maiyunnet/kebab/blob/master/lib/k
119994
120030
 
119995
120031
  > **append**(`key`, `val`): `Promise`\<`boolean`\>
119996
120032
 
119997
- Defined in: [lib/kv.ts:142](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L142)
120033
+ Defined in: [lib/kv.ts:150](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L150)
119998
120034
 
119999
120035
  向已存在的值后追加数据
120000
120036
 
@@ -120022,7 +120058,7 @@ Defined in: [lib/kv.ts:142](https://github.com/maiyunnet/kebab/blob/master/lib/k
120022
120058
 
120023
120059
  > **bLMove**(`sourceKey`, `destKey`, `soo`, `deo`, `timeout`): `Promise`\<`string` \| `false` \| `null`\>
120024
120060
 
120025
- Defined in: [lib/kv.ts:762](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L762)
120061
+ Defined in: [lib/kv.ts:770](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L770)
120026
120062
 
120027
120063
  #### Parameters
120028
120064
 
@@ -120056,7 +120092,7 @@ Defined in: [lib/kv.ts:762](https://github.com/maiyunnet/kebab/blob/master/lib/k
120056
120092
 
120057
120093
  > **bRPop**(`key`, `timeout`): `Promise`\<`false` \| `Record`\<`string`, `string`\>\>
120058
120094
 
120059
- Defined in: [lib/kv.ts:801](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L801)
120095
+ Defined in: [lib/kv.ts:809](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L809)
120060
120096
 
120061
120097
  #### Parameters
120062
120098
 
@@ -120078,7 +120114,7 @@ Defined in: [lib/kv.ts:801](https://github.com/maiyunnet/kebab/blob/master/lib/k
120078
120114
 
120079
120115
  > **decr**(`key`, `num?`): `Promise`\<`number` \| `false`\>
120080
120116
 
120081
- Defined in: [lib/kv.ts:408](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L408)
120117
+ Defined in: [lib/kv.ts:416](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L416)
120082
120118
 
120083
120119
  自减
120084
120120
 
@@ -120104,7 +120140,7 @@ Defined in: [lib/kv.ts:408](https://github.com/maiyunnet/kebab/blob/master/lib/k
120104
120140
 
120105
120141
  > **del**(`keys`): `Promise`\<`boolean`\>
120106
120142
 
120107
- Defined in: [lib/kv.ts:356](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L356)
120143
+ Defined in: [lib/kv.ts:364](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L364)
120108
120144
 
120109
120145
  删除已存在的值
120110
120146
 
@@ -120124,7 +120160,7 @@ Defined in: [lib/kv.ts:356](https://github.com/maiyunnet/kebab/blob/master/lib/k
120124
120160
 
120125
120161
  > **exists**(`keys`): `Promise`\<`number`\>
120126
120162
 
120127
- Defined in: [lib/kv.ts:194](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L194)
120163
+ Defined in: [lib/kv.ts:202](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L202)
120128
120164
 
120129
120165
  检测 key 是否存在
120130
120166
 
@@ -120146,7 +120182,7 @@ Defined in: [lib/kv.ts:194](https://github.com/maiyunnet/kebab/blob/master/lib/k
120146
120182
 
120147
120183
  > **expire**(`key`, `ttl`): `Promise`\<`boolean`\>
120148
120184
 
120149
- Defined in: [lib/kv.ts:436](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L436)
120185
+ Defined in: [lib/kv.ts:444](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L444)
120150
120186
 
120151
120187
  仅修改过期时间不修改值
120152
120188
 
@@ -120170,7 +120206,7 @@ Defined in: [lib/kv.ts:436](https://github.com/maiyunnet/kebab/blob/master/lib/k
120170
120206
 
120171
120207
  > **flushDb**(): `Promise`\<`boolean`\>
120172
120208
 
120173
- Defined in: [lib/kv.ts:503](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L503)
120209
+ Defined in: [lib/kv.ts:511](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L511)
120174
120210
 
120175
120211
  清除当前所选数据库的所有内容
120176
120212
 
@@ -120184,7 +120220,7 @@ Defined in: [lib/kv.ts:503](https://github.com/maiyunnet/kebab/blob/master/lib/k
120184
120220
 
120185
120221
  > **get**(`key`): `Promise`\<`string` \| `false` \| `null`\>
120186
120222
 
120187
- Defined in: [lib/kv.ts:218](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L218)
120223
+ Defined in: [lib/kv.ts:226](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L226)
120188
120224
 
120189
120225
  获取字符串
120190
120226
 
@@ -120206,7 +120242,7 @@ Defined in: [lib/kv.ts:218](https://github.com/maiyunnet/kebab/blob/master/lib/k
120206
120242
 
120207
120243
  > **getDelJson**(`key`): `Promise`\<`any`\>
120208
120244
 
120209
- Defined in: [lib/kv.ts:335](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L335)
120245
+ Defined in: [lib/kv.ts:343](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L343)
120210
120246
 
120211
120247
  原子获取并删除 JSON 对象
120212
120248
 
@@ -120228,7 +120264,7 @@ Defined in: [lib/kv.ts:335](https://github.com/maiyunnet/kebab/blob/master/lib/k
120228
120264
 
120229
120265
  > **getJson**(`key`): `Promise`\<`any`\>
120230
120266
 
120231
- Defined in: [lib/kv.ts:322](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L322)
120267
+ Defined in: [lib/kv.ts:330](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L330)
120232
120268
 
120233
120269
  获取 json 对象
120234
120270
 
@@ -120244,11 +120280,27 @@ Defined in: [lib/kv.ts:322](https://github.com/maiyunnet/kebab/blob/master/lib/k
120244
120280
 
120245
120281
  ***
120246
120282
 
120283
+ ### getPre()
120284
+
120285
+ > **getPre**(): `string`
120286
+
120287
+ Defined in: [lib/kv.ts:68](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L68)
120288
+
120289
+ 获取当前 Kv 配置的键名前缀
120290
+
120291
+ #### Returns
120292
+
120293
+ `string`
120294
+
120295
+ 原生 pipeline 不会自动添加的项目前缀
120296
+
120297
+ ***
120298
+
120247
120299
  ### hDel()
120248
120300
 
120249
120301
  > **hDel**(`key`, `fields`): `Promise`\<`number` \| `false`\>
120250
120302
 
120251
- Defined in: [lib/kv.ts:664](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L664)
120303
+ Defined in: [lib/kv.ts:672](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L672)
120252
120304
 
120253
120305
  删除哈希键
120254
120306
 
@@ -120274,7 +120326,7 @@ Defined in: [lib/kv.ts:664](https://github.com/maiyunnet/kebab/blob/master/lib/k
120274
120326
 
120275
120327
  > **hExists**(`key`, `field`): `Promise`\<`boolean`\>
120276
120328
 
120277
- Defined in: [lib/kv.ts:682](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L682)
120329
+ Defined in: [lib/kv.ts:690](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L690)
120278
120330
 
120279
120331
  判断哈希字段是否存在
120280
120332
 
@@ -120298,7 +120350,7 @@ Defined in: [lib/kv.ts:682](https://github.com/maiyunnet/kebab/blob/master/lib/k
120298
120350
 
120299
120351
  > **hGet**(`key`, `field`): `Promise`\<`string` \| `false` \| `null`\>
120300
120352
 
120301
- Defined in: [lib/kv.ts:594](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L594)
120353
+ Defined in: [lib/kv.ts:602](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L602)
120302
120354
 
120303
120355
  获取哈希值
120304
120356
 
@@ -120322,7 +120374,7 @@ Defined in: [lib/kv.ts:594](https://github.com/maiyunnet/kebab/blob/master/lib/k
120322
120374
 
120323
120375
  > **hGetAll**(`key`): `Promise`\<`false` \| `Record`\<`string`, `string` \| `null`\>\>
120324
120376
 
120325
- Defined in: [lib/kv.ts:646](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L646)
120377
+ Defined in: [lib/kv.ts:654](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L654)
120326
120378
 
120327
120379
  批量获取哈希键值对
120328
120380
 
@@ -120342,7 +120394,7 @@ Defined in: [lib/kv.ts:646](https://github.com/maiyunnet/kebab/blob/master/lib/k
120342
120394
 
120343
120395
  > **hGetJson**(`key`, `field`): `Promise`\<`any`\>
120344
120396
 
120345
- Defined in: [lib/kv.ts:612](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L612)
120397
+ Defined in: [lib/kv.ts:620](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L620)
120346
120398
 
120347
120399
  获取哈希 json 对象
120348
120400
 
@@ -120366,7 +120418,7 @@ Defined in: [lib/kv.ts:612](https://github.com/maiyunnet/kebab/blob/master/lib/k
120366
120418
 
120367
120419
  > **hIncr**(`key`, `field`, `increment`): `Promise`\<`number` \| `false`\>
120368
120420
 
120369
- Defined in: [lib/kv.ts:701](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L701)
120421
+ Defined in: [lib/kv.ts:709](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L709)
120370
120422
 
120371
120423
  设置哈希自增自减
120372
120424
 
@@ -120400,7 +120452,7 @@ key
120400
120452
 
120401
120453
  > **hKeys**(`key`): `Promise`\<`false` \| `string`[]\>
120402
120454
 
120403
- Defined in: [lib/kv.ts:723](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L723)
120455
+ Defined in: [lib/kv.ts:731](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L731)
120404
120456
 
120405
120457
  获取哈希所有字段
120406
120458
 
@@ -120420,7 +120472,7 @@ Defined in: [lib/kv.ts:723](https://github.com/maiyunnet/kebab/blob/master/lib/k
120420
120472
 
120421
120473
  > **hMGet**(`key`, `fields`): `Promise`\<`false` \| `Record`\<`string`, `string` \| `null`\>\>
120422
120474
 
120423
- Defined in: [lib/kv.ts:629](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L629)
120475
+ Defined in: [lib/kv.ts:637](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L637)
120424
120476
 
120425
120477
  批量获取哈希值
120426
120478
 
@@ -120444,7 +120496,7 @@ Defined in: [lib/kv.ts:629](https://github.com/maiyunnet/kebab/blob/master/lib/k
120444
120496
 
120445
120497
  > **hMSet**(`key`, `rows`): `Promise`\<`boolean`\>
120446
120498
 
120447
- Defined in: [lib/kv.ts:566](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L566)
120499
+ Defined in: [lib/kv.ts:574](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L574)
120448
120500
 
120449
120501
  批量设置哈希值
120450
120502
 
@@ -120472,7 +120524,7 @@ key / val 数组
120472
120524
 
120473
120525
  > **hSet**(`key`, `field`, `val`, `mod?`): `Promise`\<`boolean`\>
120474
120526
 
120475
- Defined in: [lib/kv.ts:540](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L540)
120527
+ Defined in: [lib/kv.ts:548](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L548)
120476
120528
 
120477
120529
  设置哈希表值
120478
120530
 
@@ -120512,7 +120564,7 @@ key 名
120512
120564
 
120513
120565
  > **incr**(`key`, `num?`): `Promise`\<`number` \| `false`\>
120514
120566
 
120515
- Defined in: [lib/kv.ts:380](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L380)
120567
+ Defined in: [lib/kv.ts:388](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L388)
120516
120568
 
120517
120569
  自增
120518
120570
 
@@ -120538,7 +120590,7 @@ Defined in: [lib/kv.ts:380](https://github.com/maiyunnet/kebab/blob/master/lib/k
120538
120590
 
120539
120591
  > **keys**(`pattern`): `Promise`\<`false` \| `string`[]\>
120540
120592
 
120541
- Defined in: [lib/kv.ts:453](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L453)
120593
+ Defined in: [lib/kv.ts:461](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L461)
120542
120594
 
120543
120595
  获取服务器上的所有 key 列表
120544
120596
 
@@ -120558,7 +120610,7 @@ Defined in: [lib/kv.ts:453](https://github.com/maiyunnet/kebab/blob/master/lib/k
120558
120610
 
120559
120611
  > **lLen**(`key`): `Promise`\<`number` \| `false`\>
120560
120612
 
120561
- Defined in: [lib/kv.ts:830](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L830)
120613
+ Defined in: [lib/kv.ts:838](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L838)
120562
120614
 
120563
120615
  #### Parameters
120564
120616
 
@@ -120576,7 +120628,7 @@ Defined in: [lib/kv.ts:830](https://github.com/maiyunnet/kebab/blob/master/lib/k
120576
120628
 
120577
120629
  > **lPop**(`key`): `Promise`\<`string` \| `false` \| `null`\>
120578
120630
 
120579
- Defined in: [lib/kv.ts:775](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L775)
120631
+ Defined in: [lib/kv.ts:783](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L783)
120580
120632
 
120581
120633
  #### Parameters
120582
120634
 
@@ -120594,7 +120646,7 @@ Defined in: [lib/kv.ts:775](https://github.com/maiyunnet/kebab/blob/master/lib/k
120594
120646
 
120595
120647
  > **lPush**(`key`, `values`): `Promise`\<`number` \| `false`\>
120596
120648
 
120597
- Defined in: [lib/kv.ts:736](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L736)
120649
+ Defined in: [lib/kv.ts:744](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L744)
120598
120650
 
120599
120651
  #### Parameters
120600
120652
 
@@ -120616,7 +120668,7 @@ Defined in: [lib/kv.ts:736](https://github.com/maiyunnet/kebab/blob/master/lib/k
120616
120668
 
120617
120669
  > **lRange**(`key`, `start`, `stop`): `Promise`\<`false` \| `string`[]\>
120618
120670
 
120619
- Defined in: [lib/kv.ts:817](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L817)
120671
+ Defined in: [lib/kv.ts:825](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L825)
120620
120672
 
120621
120673
  #### Parameters
120622
120674
 
@@ -120642,7 +120694,7 @@ Defined in: [lib/kv.ts:817](https://github.com/maiyunnet/kebab/blob/master/lib/k
120642
120694
 
120643
120695
  > **mGet**(`keys`): `Promise`\<`false` \| `Record`\<`string`, `string` \| `null`\>\>
120644
120696
 
120645
- Defined in: [lib/kv.ts:269](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L269)
120697
+ Defined in: [lib/kv.ts:277](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L277)
120646
120698
 
120647
120699
  批量获取值
120648
120700
 
@@ -120664,7 +120716,7 @@ key 序列
120664
120716
 
120665
120717
  > **mSet**(`rows`): `Promise`\<`boolean`\>
120666
120718
 
120667
- Defined in: [lib/kv.ts:298](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L298)
120719
+ Defined in: [lib/kv.ts:306](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L306)
120668
120720
 
120669
120721
  批量设置哈希值
120670
120722
 
@@ -120686,7 +120738,7 @@ key / val 数组
120686
120738
 
120687
120739
  > **ping**(): `Promise`\<`string` \| `false`\>
120688
120740
 
120689
- Defined in: [lib/kv.ts:520](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L520)
120741
+ Defined in: [lib/kv.ts:528](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L528)
120690
120742
 
120691
120743
  发送 ping
120692
120744
 
@@ -120700,7 +120752,7 @@ Defined in: [lib/kv.ts:520](https://github.com/maiyunnet/kebab/blob/master/lib/k
120700
120752
 
120701
120753
  > **pipeline**(): `Promise`\<`false` \| `IPipelineClient`\>
120702
120754
 
120703
- Defined in: [lib/kv.ts:68](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L68)
120755
+ Defined in: [lib/kv.ts:76](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L76)
120704
120756
 
120705
120757
  获取一个 pipeline 操作对象
120706
120758
 
@@ -120716,7 +120768,7 @@ Defined in: [lib/kv.ts:68](https://github.com/maiyunnet/kebab/blob/master/lib/kv
120716
120768
 
120717
120769
  > **prepend**(`key`, `val`): `Promise`\<`boolean`\>
120718
120770
 
120719
- Defined in: [lib/kv.ts:160](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L160)
120771
+ Defined in: [lib/kv.ts:168](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L168)
120720
120772
 
120721
120773
  向已存在的值之前追加数据
120722
120774
 
@@ -120740,7 +120792,7 @@ Defined in: [lib/kv.ts:160](https://github.com/maiyunnet/kebab/blob/master/lib/k
120740
120792
 
120741
120793
  > **pttl**(`key`): `Promise`\<`number` \| `null`\>
120742
120794
 
120743
- Defined in: [lib/kv.ts:252](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L252)
120795
+ Defined in: [lib/kv.ts:260](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L260)
120744
120796
 
120745
120797
  获取相应的剩余有效期毫秒数
120746
120798
 
@@ -120760,7 +120812,7 @@ Defined in: [lib/kv.ts:252](https://github.com/maiyunnet/kebab/blob/master/lib/k
120760
120812
 
120761
120813
  > **replace**(`key`, `val`, `ttl?`): `Promise`\<`boolean`\>
120762
120814
 
120763
- Defined in: [lib/kv.ts:129](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L129)
120815
+ Defined in: [lib/kv.ts:137](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L137)
120764
120816
 
120765
120817
  替换一个存在的值
120766
120818
 
@@ -120794,7 +120846,7 @@ Defined in: [lib/kv.ts:129](https://github.com/maiyunnet/kebab/blob/master/lib/k
120794
120846
 
120795
120847
  > **rPop**(`key`): `Promise`\<`string` \| `false` \| `null`\>
120796
120848
 
120797
- Defined in: [lib/kv.ts:788](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L788)
120849
+ Defined in: [lib/kv.ts:796](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L796)
120798
120850
 
120799
120851
  #### Parameters
120800
120852
 
@@ -120812,7 +120864,7 @@ Defined in: [lib/kv.ts:788](https://github.com/maiyunnet/kebab/blob/master/lib/k
120812
120864
 
120813
120865
  > **rPush**(`key`, `values`): `Promise`\<`number` \| `false`\>
120814
120866
 
120815
- Defined in: [lib/kv.ts:749](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L749)
120867
+ Defined in: [lib/kv.ts:757](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L757)
120816
120868
 
120817
120869
  #### Parameters
120818
120870
 
@@ -120834,7 +120886,7 @@ Defined in: [lib/kv.ts:749](https://github.com/maiyunnet/kebab/blob/master/lib/k
120834
120886
 
120835
120887
  > **scan**(`cursor?`, `pattern?`, `count?`): `Promise`\<`false` \| `IScanResult`\<`string`\>\>
120836
120888
 
120837
- Defined in: [lib/kv.ts:479](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L479)
120889
+ Defined in: [lib/kv.ts:487](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L487)
120838
120890
 
120839
120891
  根据条件获取服务器上的 keys
120840
120892
 
@@ -120866,7 +120918,7 @@ Defined in: [lib/kv.ts:479](https://github.com/maiyunnet/kebab/blob/master/lib/k
120866
120918
 
120867
120919
  > **set**(`key`, `val`, `ttl?`, `mod?`): `Promise`\<`boolean`\>
120868
120920
 
120869
- Defined in: [lib/kv.ts:83](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L83)
120921
+ Defined in: [lib/kv.ts:91](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L91)
120870
120922
 
120871
120923
  设定一个值
120872
120924
 
@@ -120902,7 +120954,7 @@ Defined in: [lib/kv.ts:83](https://github.com/maiyunnet/kebab/blob/master/lib/kv
120902
120954
 
120903
120955
  > **ttl**(`key`): `Promise`\<`number` \| `null`\>
120904
120956
 
120905
- Defined in: [lib/kv.ts:235](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L235)
120957
+ Defined in: [lib/kv.ts:243](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L243)
120906
120958
 
120907
120959
  获取相应的剩余有效期秒数
120908
120960
 
@@ -120926,7 +120978,7 @@ Defined in: [lib/kv.ts:235](https://github.com/maiyunnet/kebab/blob/master/lib/k
120926
120978
 
120927
120979
  > **zAdd**(`key`, `score`, `member`): `Promise`\<`boolean`\>
120928
120980
 
120929
- Defined in: [lib/kv.ts:849](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L849)
120981
+ Defined in: [lib/kv.ts:857](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L857)
120930
120982
 
120931
120983
  添加有序集合元素(单个元素)
120932
120984
 
@@ -120958,7 +121010,7 @@ key 名
120958
121010
 
120959
121011
  > **zAdd**(`key`, `elements`, `options`): `Promise`\<`number` \| `false`\>
120960
121012
 
120961
- Defined in: [lib/kv.ts:856](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L856)
121013
+ Defined in: [lib/kv.ts:864](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L864)
120962
121014
 
120963
121015
  添加有序集合元素(多个元素,含 INCR 选项)
120964
121016
 
@@ -120990,7 +121042,7 @@ key 名
120990
121042
 
120991
121043
  > **zAdd**(`key`, `elements`, `options`): `Promise`\<`number` \| `false` \| `null`\>
120992
121044
 
120993
- Defined in: [lib/kv.ts:863](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L863)
121045
+ Defined in: [lib/kv.ts:871](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L871)
120994
121046
 
120995
121047
  添加有序集合元素(多个元素,含 INCR 选项,可空)
120996
121048
 
@@ -121022,7 +121074,7 @@ key 名
121022
121074
 
121023
121075
  > **zAdd**(`key`, `elements`, `options?`): `Promise`\<`number` \| `false`\>
121024
121076
 
121025
- Defined in: [lib/kv.ts:870](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L870)
121077
+ Defined in: [lib/kv.ts:878](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L878)
121026
121078
 
121027
121079
  添加有序集合元素(多个元素)
121028
121080
 
@@ -121056,7 +121108,7 @@ key 名
121056
121108
 
121057
121109
  > **zRangeWithScores**(`key`, `start`, `stop`, `options?`): `Promise`\<`false` \| `object`[]\>
121058
121110
 
121059
- Defined in: [lib/kv.ts:891](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L891)
121111
+ Defined in: [lib/kv.ts:899](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L899)
121060
121112
 
121061
121113
  #### Parameters
121062
121114
 
@@ -121086,7 +121138,7 @@ Defined in: [lib/kv.ts:891](https://github.com/maiyunnet/kebab/blob/master/lib/k
121086
121138
 
121087
121139
  > **zRem**(`key`, `members`): `Promise`\<`number` \| `false`\>
121088
121140
 
121089
- Defined in: [lib/kv.ts:916](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L916)
121141
+ Defined in: [lib/kv.ts:924](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L924)
121090
121142
 
121091
121143
  #### Parameters
121092
121144
 
@@ -121115,7 +121167,7 @@ lib/kv/functions/get.md
121115
121167
 
121116
121168
  > **get**(`ctrEtc`, `oetc?`): [`Kv`](../classes/Kv.md)
121117
121169
 
121118
- Defined in: [lib/kv.ts:977](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L977)
121170
+ Defined in: [lib/kv.ts:985](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L985)
121119
121171
 
121120
121172
  获取 Kv 对象
121121
121173
 
@@ -121182,7 +121234,7 @@ lib/kv/interfaces/IConnectionInfo.md
121182
121234
 
121183
121235
  # Interface: IConnectionInfo
121184
121236
 
121185
- Defined in: [lib/kv.ts:993](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L993)
121237
+ Defined in: [lib/kv.ts:1001](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1001)
121186
121238
 
121187
121239
  连接信息
121188
121240
 
@@ -121192,7 +121244,7 @@ Defined in: [lib/kv.ts:993](https://github.com/maiyunnet/kebab/blob/master/lib/k
121192
121244
 
121193
121245
  > **conn**: `ICommandClient`
121194
121246
 
121195
- Defined in: [lib/kv.ts:997](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L997)
121247
+ Defined in: [lib/kv.ts:1005](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1005)
121196
121248
 
121197
121249
  ***
121198
121250
 
@@ -121200,7 +121252,7 @@ Defined in: [lib/kv.ts:997](https://github.com/maiyunnet/kebab/blob/master/lib/k
121200
121252
 
121201
121253
  > **host**: `string`
121202
121254
 
121203
- Defined in: [lib/kv.ts:994](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L994)
121255
+ Defined in: [lib/kv.ts:1002](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1002)
121204
121256
 
121205
121257
  ***
121206
121258
 
@@ -121208,7 +121260,7 @@ Defined in: [lib/kv.ts:994](https://github.com/maiyunnet/kebab/blob/master/lib/k
121208
121260
 
121209
121261
  > **index**: `number`
121210
121262
 
121211
- Defined in: [lib/kv.ts:996](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L996)
121263
+ Defined in: [lib/kv.ts:1004](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1004)
121212
121264
 
121213
121265
  ***
121214
121266
 
@@ -121216,7 +121268,7 @@ Defined in: [lib/kv.ts:996](https://github.com/maiyunnet/kebab/blob/master/lib/k
121216
121268
 
121217
121269
  > **port**: `number`
121218
121270
 
121219
- Defined in: [lib/kv.ts:995](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L995)
121271
+ Defined in: [lib/kv.ts:1003](https://github.com/maiyunnet/kebab/blob/master/lib/kv.ts#L1003)
121220
121272
 
121221
121273
  lib/kv/interfaces/IZRangeOptions.md
121222
121274
  ---
@@ -124246,6 +124298,48 @@ lib/session/index.md
124246
124298
 
124247
124299
  - [IOptions](interfaces/IOptions.md)
124248
124300
 
124301
+ ## References
124302
+
124303
+ ### IListLogin
124304
+
124305
+ Re-exports [IListLogin](login/interfaces/IListLogin.md)
124306
+
124307
+ ***
124308
+
124309
+ ### ILoginCreateOptions
124310
+
124311
+ Re-exports [ILoginCreateOptions](login/interfaces/ILoginCreateOptions.md)
124312
+
124313
+ ***
124314
+
124315
+ ### ILoginIdentity
124316
+
124317
+ Re-exports [ILoginIdentity](login/interfaces/ILoginIdentity.md)
124318
+
124319
+ ***
124320
+
124321
+ ### ILoginOptions
124322
+
124323
+ Re-exports [ILoginOptions](login/interfaces/ILoginOptions.md)
124324
+
124325
+ ***
124326
+
124327
+ ### ILoginRecord
124328
+
124329
+ Re-exports [ILoginRecord](login/interfaces/ILoginRecord.md)
124330
+
124331
+ ***
124332
+
124333
+ ### Login
124334
+
124335
+ Re-exports [Login](login/classes/Login.md)
124336
+
124337
+ ***
124338
+
124339
+ ### LoginValue
124340
+
124341
+ Re-exports [LoginValue](login/type-aliases/LoginValue.md)
124342
+
124249
124343
  lib/session/interfaces/IOptions.md
124250
124344
  ---
124251
124345
 
@@ -124329,6 +124423,570 @@ Defined in: [lib/session.ts:49](https://github.com/maiyunnet/kebab/blob/master/l
124329
124423
 
124330
124424
  Defined in: [lib/session.ts:44](https://github.com/maiyunnet/kebab/blob/master/lib/session.ts#L44)
124331
124425
 
124426
+ lib/session/login/classes/Login.md
124427
+ ---
124428
+
124429
+ [**Documents for @maiyunnet/kebab**](../../../../index.md)
124430
+
124431
+ ***
124432
+
124433
+ [Documents for @maiyunnet/kebab](../../../../index.md) / [lib/session/login](../index.md) / Login
124434
+
124435
+ # Class: Login
124436
+
124437
+ Defined in: [lib/session/login.ts:63](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L63)
124438
+
124439
+ 管理一个账号在多个客户端的登录授权
124440
+ 基于单节点 Redis;不会修改 Session 数据或 Cookie。业务每次请求须验证账号、权限和授权版本。
124441
+ 失败返回 false;通信失败不能证明写操作未执行,调用方应重新读取后判断。
124442
+
124443
+ ## Constructors
124444
+
124445
+ ### Constructor
124446
+
124447
+ > **new Login**(`kv`, `ctrToken`, `options?`): `Login`
124448
+
124449
+ Defined in: [lib/session/login.ts:77](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L77)
124450
+
124451
+ 创建可复用的登录管理器
124452
+
124453
+ #### Parameters
124454
+
124455
+ ##### kv
124456
+
124457
+ [`Kv`](../../../kv/classes/Kv.md)
124458
+
124459
+ 项目 Kv,自动使用其配置前缀
124460
+
124461
+ ##### ctrToken
124462
+
124463
+ `string` \| [`Ctr`](../../../../sys/ctr/classes/Ctr.md)
124464
+
124465
+ 已初始化 Session 的控制器或服务端验证过的 Session token;未初始化时操作返回 false
124466
+
124467
+ ##### options?
124468
+
124469
+ [`ILoginOptions`](../interfaces/ILoginOptions.md) = `{}`
124470
+
124471
+ 命名空间和有效期;无效选项使操作返回 false
124472
+
124473
+ #### Returns
124474
+
124475
+ `Login`
124476
+
124477
+ ## Methods
124478
+
124479
+ ### create()
124480
+
124481
+ > **create**(`identity`, `options?`): `Promise`\<`false` \| [`ILoginRecord`](../interfaces/ILoginRecord.md)\>
124482
+
124483
+ Defined in: [lib/session/login.ts:97](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L97)
124484
+
124485
+ 创建登录授权并替换同一凭据原来绑定的身份
124486
+ 每次创建生成新 UID,包括同一账号在同一 Session 重复登录;旧 UID 随即失效。
124487
+ single 开启时,同账号同作用域以最后执行成功的创建为准;所有登录入口须采用同一策略。
124488
+
124489
+ #### Parameters
124490
+
124491
+ ##### identity
124492
+
124493
+ [`ILoginIdentity`](../interfaces/ILoginIdentity.md)
124494
+
124495
+ 已由业务验证的账号和附加信息
124496
+
124497
+ ##### options?
124498
+
124499
+ [`ILoginCreateOptions`](../interfaces/ILoginCreateOptions.md) = `{}`
124500
+
124501
+ 是否仅保留本次登录
124502
+
124503
+ #### Returns
124504
+
124505
+ `Promise`\<`false` \| [`ILoginRecord`](../interfaces/ILoginRecord.md)\>
124506
+
124507
+ 新授权;输入无效或存储失败返回 false
124508
+
124509
+ ***
124510
+
124511
+ ### get()
124512
+
124513
+ > **get**(): `Promise`\<`false` \| [`ILoginRecord`](../interfaces/ILoginRecord.md) \| `null`\>
124514
+
124515
+ Defined in: [lib/session/login.ts:105](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L105)
124516
+
124517
+ 读取凭据当前绑定的登录授权,不延长有效期
124518
+
124519
+ #### Returns
124520
+
124521
+ `Promise`\<`false` \| [`ILoginRecord`](../interfaces/ILoginRecord.md) \| `null`\>
124522
+
124523
+ 登录记录;null 表示未登录或已失效,false 表示输入无效或存储失败
124524
+
124525
+ ***
124526
+
124527
+ ### list()
124528
+
124529
+ > **list**(`uid`): `Promise`\<`false` \| [`IListLogin`](../interfaces/IListLogin.md)[] \| `null`\>
124530
+
124531
+ Defined in: [lib/session/login.ts:133](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L133)
124532
+
124533
+ 列出当前账号、作用域及授权版本一致的有效登录
124534
+ 返回登录附加信息,业务响应前须筛选可展示字段;适合交互式账号的登录列表,不用于全站会话统计。
124535
+
124536
+ #### Parameters
124537
+
124538
+ ##### uid
124539
+
124540
+ `string`
124541
+
124542
+ get 返回的当前登录 UID
124543
+
124544
+ #### Returns
124545
+
124546
+ `Promise`\<`false` \| [`IListLogin`](../interfaces/IListLogin.md)[] \| `null`\>
124547
+
124548
+ 登录列表;null 当前登录失效或被替换,false 输入无效或存储失败
124549
+
124550
+ ***
124551
+
124552
+ ### remove()
124553
+
124554
+ > **remove**(`uid`): `Promise`\<`boolean` \| `null`\>
124555
+
124556
+ Defined in: [lib/session/login.ts:123](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L123)
124557
+
124558
+ 退出凭据仍绑定的指定登录,保留 Session 本身
124559
+
124560
+ #### Parameters
124561
+
124562
+ ##### uid
124563
+
124564
+ `string`
124565
+
124566
+ get 返回的登录 UID
124567
+
124568
+ #### Returns
124569
+
124570
+ `Promise`\<`boolean` \| `null`\>
124571
+
124572
+ true 已退出,null 已失效或被替换,false 输入无效或存储失败
124573
+
124574
+ ***
124575
+
124576
+ ### revoke()
124577
+
124578
+ > **revoke**(`uid`, `target?`): `Promise`\<`boolean` \| `null`\>
124579
+
124580
+ Defined in: [lib/session/login.ts:144](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L144)
124581
+
124582
+ 清退当前账号和作用域内的指定登录或其他全部登录
124583
+ 清退覆盖所有授权版本;可指定当前登录,不能撤销其他账号或作用域的登录。
124584
+
124585
+ #### Parameters
124586
+
124587
+ ##### uid
124588
+
124589
+ `string`
124590
+
124591
+ get 返回的当前登录 UID
124592
+
124593
+ ##### target?
124594
+
124595
+ `string` = `'others'`
124596
+
124597
+ 目标登录 UID,默认 others 表示除当前登录以外的全部登录
124598
+
124599
+ #### Returns
124600
+
124601
+ `Promise`\<`boolean` \| `null`\>
124602
+
124603
+ true 已清退,null 当前或目标登录失效,false 输入无效或存储失败
124604
+
124605
+ ***
124606
+
124607
+ ### touch()
124608
+
124609
+ > **touch**(`uid`): `Promise`\<`boolean` \| `null`\>
124610
+
124611
+ Defined in: [lib/session/login.ts:114](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L114)
124612
+
124613
+ 延长仍与本次请求读取的登录 UID 匹配的授权
124614
+
124615
+ #### Parameters
124616
+
124617
+ ##### uid
124618
+
124619
+ `string`
124620
+
124621
+ get 返回的登录 UID
124622
+
124623
+ #### Returns
124624
+
124625
+ `Promise`\<`boolean` \| `null`\>
124626
+
124627
+ true 成功,null 已失效或被替换,false 输入无效或存储失败
124628
+
124629
+ lib/session/login/index.md
124630
+ ---
124631
+
124632
+ [**Documents for @maiyunnet/kebab**](../../../index.md)
124633
+
124634
+ ***
124635
+
124636
+ [Documents for @maiyunnet/kebab](../../../index.md) / lib/session/login
124637
+
124638
+ # lib/session/login
124639
+
124640
+ ## Classes
124641
+
124642
+ - [Login](classes/Login.md)
124643
+
124644
+ ## Interfaces
124645
+
124646
+ - [IListLogin](interfaces/IListLogin.md)
124647
+ - [ILoginCreateOptions](interfaces/ILoginCreateOptions.md)
124648
+ - [ILoginIdentity](interfaces/ILoginIdentity.md)
124649
+ - [ILoginOptions](interfaces/ILoginOptions.md)
124650
+ - [ILoginRecord](interfaces/ILoginRecord.md)
124651
+
124652
+ ## Type Aliases
124653
+
124654
+ - [LoginValue](type-aliases/LoginValue.md)
124655
+
124656
+ lib/session/login/interfaces/IListLogin.md
124657
+ ---
124658
+
124659
+ [**Documents for @maiyunnet/kebab**](../../../../index.md)
124660
+
124661
+ ***
124662
+
124663
+ [Documents for @maiyunnet/kebab](../../../../index.md) / [lib/session/login](../index.md) / IListLogin
124664
+
124665
+ # Interface: IListLogin
124666
+
124667
+ Defined in: [lib/session/login.ts:37](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L37)
124668
+
124669
+ 登录列表中的记录
124670
+
124671
+ ## Extends
124672
+
124673
+ - [`ILoginRecord`](ILoginRecord.md)
124674
+
124675
+ ## Properties
124676
+
124677
+ ### current
124678
+
124679
+ > **current**: `boolean`
124680
+
124681
+ Defined in: [lib/session/login.ts:39](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L39)
124682
+
124683
+ 是否为当前登录
124684
+
124685
+ ***
124686
+
124687
+ ### data
124688
+
124689
+ > **data**: `Record`\<`string`, [`LoginValue`](../type-aliases/LoginValue.md)\>
124690
+
124691
+ Defined in: [lib/session/login.ts:33](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L33)
124692
+
124693
+ 登录时保存的附加信息
124694
+
124695
+ #### Inherited from
124696
+
124697
+ [`ILoginRecord`](ILoginRecord.md).[`data`](ILoginRecord.md#data)
124698
+
124699
+ ***
124700
+
124701
+ ### scope
124702
+
124703
+ > **scope**: `string`
124704
+
124705
+ Defined in: [lib/session/login.ts:27](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L27)
124706
+
124707
+ 账号作用域
124708
+
124709
+ #### Inherited from
124710
+
124711
+ [`ILoginRecord`](ILoginRecord.md).[`scope`](ILoginRecord.md#scope)
124712
+
124713
+ ***
124714
+
124715
+ ### subject
124716
+
124717
+ > **subject**: `string`
124718
+
124719
+ Defined in: [lib/session/login.ts:25](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L25)
124720
+
124721
+ 账号标识
124722
+
124723
+ #### Inherited from
124724
+
124725
+ [`ILoginRecord`](ILoginRecord.md).[`subject`](ILoginRecord.md#subject)
124726
+
124727
+ ***
124728
+
124729
+ ### timeAdd
124730
+
124731
+ > **timeAdd**: `number`
124732
+
124733
+ Defined in: [lib/session/login.ts:31](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L31)
124734
+
124735
+ 登录时间,Redis 服务端 UTC Unix 秒
124736
+
124737
+ #### Inherited from
124738
+
124739
+ [`ILoginRecord`](ILoginRecord.md).[`timeAdd`](ILoginRecord.md#timeadd)
124740
+
124741
+ ***
124742
+
124743
+ ### uid
124744
+
124745
+ > **uid**: `string`
124746
+
124747
+ Defined in: [lib/session/login.ts:23](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L23)
124748
+
124749
+ 本次登录 UID,每次成功登录重新生成
124750
+
124751
+ #### Inherited from
124752
+
124753
+ [`ILoginRecord`](ILoginRecord.md).[`uid`](ILoginRecord.md#uid)
124754
+
124755
+ ***
124756
+
124757
+ ### version
124758
+
124759
+ > **version**: `string`
124760
+
124761
+ Defined in: [lib/session/login.ts:29](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L29)
124762
+
124763
+ 业务授权版本,框架不查询业务数据验证此值
124764
+
124765
+ #### Inherited from
124766
+
124767
+ [`ILoginRecord`](ILoginRecord.md).[`version`](ILoginRecord.md#version)
124768
+
124769
+ lib/session/login/interfaces/ILoginCreateOptions.md
124770
+ ---
124771
+
124772
+ [**Documents for @maiyunnet/kebab**](../../../../index.md)
124773
+
124774
+ ***
124775
+
124776
+ [Documents for @maiyunnet/kebab](../../../../index.md) / [lib/session/login](../index.md) / ILoginCreateOptions
124777
+
124778
+ # Interface: ILoginCreateOptions
124779
+
124780
+ Defined in: [lib/session/login.ts:43](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L43)
124781
+
124782
+ 创建登录时的选项
124783
+
124784
+ ## Properties
124785
+
124786
+ ### single?
124787
+
124788
+ > `optional` **single?**: `boolean`
124789
+
124790
+ Defined in: [lib/session/login.ts:45](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L45)
124791
+
124792
+ 清退同账号、同作用域的其他登录(包含旧版本),默认 false;与创建原子执行
124793
+
124794
+ lib/session/login/interfaces/ILoginIdentity.md
124795
+ ---
124796
+
124797
+ [**Documents for @maiyunnet/kebab**](../../../../index.md)
124798
+
124799
+ ***
124800
+
124801
+ [Documents for @maiyunnet/kebab](../../../../index.md) / [lib/session/login](../index.md) / ILoginIdentity
124802
+
124803
+ # Interface: ILoginIdentity
124804
+
124805
+ Defined in: [lib/session/login.ts:9](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L9)
124806
+
124807
+ 业务验证通过后交给框架保存的登录身份
124808
+
124809
+ ## Properties
124810
+
124811
+ ### data?
124812
+
124813
+ > `optional` **data?**: `Record`\<`string`, [`LoginValue`](../type-aliases/LoginValue.md)\>
124814
+
124815
+ Defined in: [lib/session/login.ts:17](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L17)
124816
+
124817
+ 客户端等附加信息,默认空对象;JSON 编码最多 16 KiB,不保存密码或凭据
124818
+
124819
+ ***
124820
+
124821
+ ### scope?
124822
+
124823
+ > `optional` **scope?**: `string`
124824
+
124825
+ Defined in: [lib/session/login.ts:13](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L13)
124826
+
124827
+ 账号作用域,如租户或账号体系;默认空字符串,最多 256 个字符
124828
+
124829
+ ***
124830
+
124831
+ ### subject
124832
+
124833
+ > **subject**: `string`
124834
+
124835
+ Defined in: [lib/session/login.ts:11](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L11)
124836
+
124837
+ 账号标识,非空,最多 256 个字符
124838
+
124839
+ ***
124840
+
124841
+ ### version?
124842
+
124843
+ > `optional` **version?**: `string`
124844
+
124845
+ Defined in: [lib/session/login.ts:15](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L15)
124846
+
124847
+ 授权版本,如密码指纹;默认空字符串,最多 1024 个字符,由业务与当前数据比较
124848
+
124849
+ lib/session/login/interfaces/ILoginOptions.md
124850
+ ---
124851
+
124852
+ [**Documents for @maiyunnet/kebab**](../../../../index.md)
124853
+
124854
+ ***
124855
+
124856
+ [Documents for @maiyunnet/kebab](../../../../index.md) / [lib/session/login](../index.md) / ILoginOptions
124857
+
124858
+ # Interface: ILoginOptions
124859
+
124860
+ Defined in: [lib/session/login.ts:49](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L49)
124861
+
124862
+ Redis 登录管理选项
124863
+
124864
+ ## Properties
124865
+
124866
+ ### name?
124867
+
124868
+ > `optional` **name?**: `string`
124869
+
124870
+ Defined in: [lib/session/login.ts:51](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L51)
124871
+
124872
+ Session 名称;传 token 时必填,传控制器时使用已初始化 Session 的实际名称
124873
+
124874
+ ***
124875
+
124876
+ ### pre?
124877
+
124878
+ > `optional` **pre?**: `string`
124879
+
124880
+ Defined in: [lib/session/login.ts:53](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L53)
124881
+
124882
+ Session 名称之后的键名前缀,默认 login:;可进一步隔离授权用途
124883
+
124884
+ ***
124885
+
124886
+ ### ttl?
124887
+
124888
+ > `optional` **ttl?**: `number`
124889
+
124890
+ Defined in: [lib/session/login.ts:55](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L55)
124891
+
124892
+ 有效期秒数,默认 172800;整数 0~2147483647,0 表示永久;与业务 Session 有效期一致
124893
+
124894
+ lib/session/login/interfaces/ILoginRecord.md
124895
+ ---
124896
+
124897
+ [**Documents for @maiyunnet/kebab**](../../../../index.md)
124898
+
124899
+ ***
124900
+
124901
+ [Documents for @maiyunnet/kebab](../../../../index.md) / [lib/session/login](../index.md) / ILoginRecord
124902
+
124903
+ # Interface: ILoginRecord
124904
+
124905
+ Defined in: [lib/session/login.ts:21](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L21)
124906
+
124907
+ 已保存的登录授权,不包含 Session 凭据
124908
+
124909
+ ## Extended by
124910
+
124911
+ - [`IListLogin`](IListLogin.md)
124912
+
124913
+ ## Properties
124914
+
124915
+ ### data
124916
+
124917
+ > **data**: `Record`\<`string`, [`LoginValue`](../type-aliases/LoginValue.md)\>
124918
+
124919
+ Defined in: [lib/session/login.ts:33](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L33)
124920
+
124921
+ 登录时保存的附加信息
124922
+
124923
+ ***
124924
+
124925
+ ### scope
124926
+
124927
+ > **scope**: `string`
124928
+
124929
+ Defined in: [lib/session/login.ts:27](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L27)
124930
+
124931
+ 账号作用域
124932
+
124933
+ ***
124934
+
124935
+ ### subject
124936
+
124937
+ > **subject**: `string`
124938
+
124939
+ Defined in: [lib/session/login.ts:25](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L25)
124940
+
124941
+ 账号标识
124942
+
124943
+ ***
124944
+
124945
+ ### timeAdd
124946
+
124947
+ > **timeAdd**: `number`
124948
+
124949
+ Defined in: [lib/session/login.ts:31](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L31)
124950
+
124951
+ 登录时间,Redis 服务端 UTC Unix 秒
124952
+
124953
+ ***
124954
+
124955
+ ### uid
124956
+
124957
+ > **uid**: `string`
124958
+
124959
+ Defined in: [lib/session/login.ts:23](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L23)
124960
+
124961
+ 本次登录 UID,每次成功登录重新生成
124962
+
124963
+ ***
124964
+
124965
+ ### version
124966
+
124967
+ > **version**: `string`
124968
+
124969
+ Defined in: [lib/session/login.ts:29](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L29)
124970
+
124971
+ 业务授权版本,框架不查询业务数据验证此值
124972
+
124973
+ lib/session/login/type-aliases/LoginValue.md
124974
+ ---
124975
+
124976
+ [**Documents for @maiyunnet/kebab**](../../../../index.md)
124977
+
124978
+ ***
124979
+
124980
+ [Documents for @maiyunnet/kebab](../../../../index.md) / [lib/session/login](../index.md) / LoginValue
124981
+
124982
+ # Type Alias: LoginValue
124983
+
124984
+ > **LoginValue** = `string` \| `number` \| `boolean` \| `null` \| `LoginValue`[] \| \{\[`key`: `string`\]: `LoginValue`; \}
124985
+
124986
+ Defined in: [lib/session/login.ts:6](https://github.com/maiyunnet/kebab/blob/master/lib/session/login.ts#L6)
124987
+
124988
+ 登录附加信息支持的 JSON 值
124989
+
124332
124990
  lib/socket/functions/rwebsocket.md
124333
124991
  ---
124334
124992