karin-plugin-mys-core 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/apps/MiHoYoLogin.js +6 -38
- package/lib/apps/MysDevice.js +5 -37
- package/lib/apps/UIDManage.js +6 -38
- package/lib/{chunk-JT3SU5UU.js → chunk-A5FZEOIN.js} +78 -6
- package/lib/{chunk-4BTKE3LO.js → chunk-HTL64YH2.js} +300 -178
- package/lib/chunk-IASM5MM5.js +639 -0
- package/lib/{chunk-5DXIT7UB.js → chunk-RX4VMVAI.js} +0 -5
- package/lib/{chunk-MQ52BX7O.js → chunk-SZHK7OGF.js} +9 -13
- package/lib/chunk-UIPRZFST.js +184 -0
- package/lib/exports/config/index.d.ts +56 -1
- package/lib/exports/config/index.js +3 -9
- package/lib/exports/database/index.d.ts +78 -12
- package/lib/exports/database/index.js +12 -40
- package/lib/exports/mys/index.d.ts +379 -14
- package/lib/exports/mys/index.js +9 -43
- package/lib/exports/render/index.d.ts +38 -4
- package/lib/exports/render/index.js +3 -8
- package/lib/exports/utils/index.d.ts +45 -2
- package/lib/exports/utils/index.js +1 -4
- package/lib/{exports/database/types/dbs/base.d.ts → mysUserInfo-BsyEENbc.d.ts} +60 -1
- package/package.json +1 -1
- package/resources/image/frame-logo.webp +0 -0
- package/resources/image/launcher-icon//345/216/237/347/245/236.webp +0 -0
- package/resources/image/launcher-icon//345/264/251/345/235/2173.webp +0 -0
- package/resources/image/launcher-icon//345/264/251/345/235/217/345/255/246/345/233/2552.webp +0 -0
- package/resources/image/launcher-icon//345/264/251/345/235/217/357/274/232/345/233/240/347/274/230/347/262/276/347/201/265.webp +0 -0
- package/resources/image/launcher-icon//345/264/251/345/235/217/357/274/232/346/230/237/347/251/271/351/223/201/351/201/223.webp +0 -0
- package/resources/image/launcher-icon//346/230/237/345/270/203/350/260/267/345/234/260.webp +0 -0
- package/resources/image/launcher-icon//346/234/252/345/256/232/344/272/213/344/273/266/347/260/277.webp +0 -0
- package/resources/image/launcher-icon//347/273/235/345/214/272/351/233/266.webp +0 -0
- package/resources/image/mys-core-logo.webp +0 -0
- package/resources/image/mys-logo.webp +0 -0
- package/resources/styles/karin-plugin-mys-core.css +4 -4
- package/lib/chunk-2BVJS5VE.js +0 -49
- package/lib/chunk-3ERB3ILC.js +0 -0
- package/lib/chunk-3JN5WYUN.js +0 -135
- package/lib/chunk-7KEG6SDX.js +0 -0
- package/lib/chunk-7VAWV6ZE.js +0 -0
- package/lib/chunk-ARLTXJFJ.js +0 -0
- package/lib/chunk-CFS2WFOO.js +0 -0
- package/lib/chunk-DMJ5OQR6.js +0 -73
- package/lib/chunk-EDNBKOMS.js +0 -30
- package/lib/chunk-FBWSEBAW.js +0 -0
- package/lib/chunk-FOAQZIZ2.js +0 -0
- package/lib/chunk-G5W5WAY5.js +0 -64
- package/lib/chunk-G7TMVDGP.js +0 -68
- package/lib/chunk-HJ6HX5HB.js +0 -29
- package/lib/chunk-I7XZONDN.js +0 -13
- package/lib/chunk-JRH4JC43.js +0 -0
- package/lib/chunk-JVJQKRJ4.js +0 -89
- package/lib/chunk-K5U2O3HH.js +0 -0
- package/lib/chunk-KQVWWGRH.js +0 -31
- package/lib/chunk-LBLGKL3W.js +0 -77
- package/lib/chunk-LJSDSOY6.js +0 -0
- package/lib/chunk-LYTNREAI.js +0 -0
- package/lib/chunk-MPZP23EX.js +0 -219
- package/lib/chunk-MWYDWDR4.js +0 -0
- package/lib/chunk-PMFOX5HA.js +0 -80
- package/lib/chunk-PYTECG57.js +0 -0
- package/lib/chunk-SEWEEPJN.js +0 -0
- package/lib/chunk-SHW6FHIB.js +0 -10
- package/lib/chunk-T7W4DXRM.js +0 -0
- package/lib/chunk-TTN7NFCA.js +0 -109
- package/lib/chunk-W4DBT7AD.js +0 -0
- package/lib/chunk-WCX7WZAQ.js +0 -0
- package/lib/chunk-Z5I6A73Y.js +0 -0
- package/lib/chunk-ZTOR2DXG.js +0 -38
- package/lib/common-BlI5Gsw_.d.ts +0 -35
- package/lib/define-B9r20dK6.d.ts +0 -130
- package/lib/exports/config/array.d.ts +0 -1
- package/lib/exports/config/array.js +0 -7
- package/lib/exports/config/config.d.ts +0 -56
- package/lib/exports/config/config.js +0 -12
- package/lib/exports/database/database.d.ts +0 -30
- package/lib/exports/database/database.js +0 -22
- package/lib/exports/database/dbs/base.d.ts +0 -25
- package/lib/exports/database/dbs/base.js +0 -19
- package/lib/exports/database/dbs/index.d.ts +0 -4
- package/lib/exports/database/dbs/index.js +0 -29
- package/lib/exports/database/dbs/sqlite3.d.ts +0 -27
- package/lib/exports/database/dbs/sqlite3.js +0 -23
- package/lib/exports/database/dbs/table.d.ts +0 -20
- package/lib/exports/database/dbs/table.js +0 -25
- package/lib/exports/database/tables/index.d.ts +0 -9
- package/lib/exports/database/tables/index.js +0 -40
- package/lib/exports/database/tables/mysAccountInfo.d.ts +0 -9
- package/lib/exports/database/tables/mysAccountInfo.js +0 -27
- package/lib/exports/database/tables/mysDeviceInfo.d.ts +0 -9
- package/lib/exports/database/tables/mysDeviceInfo.js +0 -27
- package/lib/exports/database/tables/mysUserInfo.d.ts +0 -9
- package/lib/exports/database/tables/mysUserInfo.js +0 -27
- package/lib/exports/database/types/database.d.ts +0 -6
- package/lib/exports/database/types/database.js +0 -1
- package/lib/exports/database/types/dbs/base.js +0 -11
- package/lib/exports/database/types/dbs/index.d.ts +0 -2
- package/lib/exports/database/types/dbs/index.js +0 -12
- package/lib/exports/database/types/index.d.ts +0 -6
- package/lib/exports/database/types/index.js +0 -24
- package/lib/exports/database/types/tables/index.d.ts +0 -5
- package/lib/exports/database/types/tables/index.js +0 -13
- package/lib/exports/database/types/tables/mysAccountInfo.d.ts +0 -14
- package/lib/exports/database/types/tables/mysAccountInfo.js +0 -7
- package/lib/exports/database/types/tables/mysDeviceInfo.d.ts +0 -19
- package/lib/exports/database/types/tables/mysDeviceInfo.js +0 -1
- package/lib/exports/database/types/tables/mysUserInfo.d.ts +0 -32
- package/lib/exports/database/types/tables/mysUserInfo.js +0 -7
- package/lib/exports/mys/api/apis.d.ts +0 -82
- package/lib/exports/mys/api/apis.js +0 -56
- package/lib/exports/mys/api/app.d.ts +0 -60
- package/lib/exports/mys/api/app.js +0 -32
- package/lib/exports/mys/api/define.d.ts +0 -6
- package/lib/exports/mys/api/define.js +0 -42
- package/lib/exports/mys/api/index.d.ts +0 -11
- package/lib/exports/mys/api/index.js +0 -63
- package/lib/exports/mys/types/api/define.d.ts +0 -6
- package/lib/exports/mys/types/api/define.js +0 -1
- package/lib/exports/mys/types/api/index.d.ts +0 -6
- package/lib/exports/mys/types/api/index.js +0 -2
- package/lib/exports/mys/types/index.d.ts +0 -12
- package/lib/exports/mys/types/index.js +0 -6
- package/lib/exports/mys/types/user/game.d.ts +0 -23
- package/lib/exports/mys/types/user/game.js +0 -1
- package/lib/exports/mys/types/user/index.d.ts +0 -12
- package/lib/exports/mys/types/user/index.js +0 -3
- package/lib/exports/mys/types/user/userInfo.d.ts +0 -42
- package/lib/exports/mys/types/user/userInfo.js +0 -1
- package/lib/exports/mys/user/deviceInfo.d.ts +0 -11
- package/lib/exports/mys/user/deviceInfo.js +0 -30
- package/lib/exports/mys/user/game.d.ts +0 -40
- package/lib/exports/mys/user/game.js +0 -9
- package/lib/exports/mys/user/index.d.ts +0 -14
- package/lib/exports/mys/user/index.js +0 -52
- package/lib/exports/mys/user/userInfo.d.ts +0 -53
- package/lib/exports/mys/user/userInfo.js +0 -44
- package/lib/exports/render/render.d.ts +0 -38
- package/lib/exports/render/render.js +0 -12
- package/lib/exports/utils/common.d.ts +0 -1
- package/lib/exports/utils/common.js +0 -15
- package/lib/exports/utils/types/common.d.ts +0 -11
- package/lib/exports/utils/types/common.js +0 -1
- package/lib/exports/utils/types/index.d.ts +0 -1
- package/lib/exports/utils/types/index.js +0 -2
- package/resources/image/frame-logo.png +0 -0
- package/resources/image/launcher-icon//345/216/237/347/245/236.png +0 -0
- package/resources/image/launcher-icon//345/264/251/345/235/2173.png +0 -0
- package/resources/image/launcher-icon//345/264/251/345/235/217/345/255/246/345/233/2552.png +0 -0
- package/resources/image/launcher-icon//345/264/251/345/235/217/357/274/232/345/233/240/347/274/230/347/262/276/347/201/265.png +0 -0
- package/resources/image/launcher-icon//345/264/251/345/235/217/357/274/232/346/230/237/347/251/271/351/223/201/351/201/223.png +0 -0
- package/resources/image/launcher-icon//346/230/237/345/270/203/350/260/267/345/234/260.png +0 -0
- package/resources/image/launcher-icon//346/234/252/345/256/232/344/272/213/344/273/266/347/260/277.png +0 -0
- package/resources/image/launcher-icon//347/273/235/345/214/272/351/233/266.png +0 -0
- package/resources/image/mys-core-logo.png +0 -0
- package/resources/image/mys-logo.png +0 -0
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { MysDeviceInfoTableType, MysDeviceInfoDatabaseBaseType, MysDeviceInfoDatabaseIdFpType } from '../../database/types/tables/mysDeviceInfo.js';
|
|
2
|
-
|
|
3
|
-
declare class DeviceInfo {
|
|
4
|
-
static get(Md5: string): Promise<(MysDeviceInfoTableType & {
|
|
5
|
-
save: (data: Partial<MysDeviceInfoTableType>) => Promise<MysDeviceInfoTableType & /*elided*/ any>;
|
|
6
|
-
destroy: () => Promise<boolean>;
|
|
7
|
-
}) | undefined>;
|
|
8
|
-
static create(userId: string, deviceInfo: Partial<MysDeviceInfoDatabaseBaseType & MysDeviceInfoDatabaseIdFpType>): Promise<string>;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { DeviceInfo };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DeviceInfo
|
|
3
|
-
} from "../../../chunk-KQVWWGRH.js";
|
|
4
|
-
import "../../../chunk-W4DBT7AD.js";
|
|
5
|
-
import "../../../chunk-Z5I6A73Y.js";
|
|
6
|
-
import "../../../chunk-EDNBKOMS.js";
|
|
7
|
-
import "../../../chunk-ZTOR2DXG.js";
|
|
8
|
-
import "../../../chunk-HJ6HX5HB.js";
|
|
9
|
-
import "../../../chunk-SEWEEPJN.js";
|
|
10
|
-
import "../../../chunk-G7TMVDGP.js";
|
|
11
|
-
import "../../../chunk-DMJ5OQR6.js";
|
|
12
|
-
import "../../../chunk-MPZP23EX.js";
|
|
13
|
-
import "../../../chunk-3JN5WYUN.js";
|
|
14
|
-
import "../../../chunk-7KEG6SDX.js";
|
|
15
|
-
import "../../../chunk-FBWSEBAW.js";
|
|
16
|
-
import "../../../chunk-JVJQKRJ4.js";
|
|
17
|
-
import "../../../chunk-LYTNREAI.js";
|
|
18
|
-
import "../../../chunk-SHW6FHIB.js";
|
|
19
|
-
import "../../../chunk-K5U2O3HH.js";
|
|
20
|
-
import "../../../chunk-I7XZONDN.js";
|
|
21
|
-
import "../../../chunk-JRH4JC43.js";
|
|
22
|
-
import "../../../chunk-SHLPPEAY.js";
|
|
23
|
-
import "../../../chunk-ARLTXJFJ.js";
|
|
24
|
-
import "../../../chunk-PYTECG57.js";
|
|
25
|
-
import "../../../chunk-T7W4DXRM.js";
|
|
26
|
-
import "../../../chunk-5DXIT7UB.js";
|
|
27
|
-
import "../../../chunk-MLKGABMK.js";
|
|
28
|
-
export {
|
|
29
|
-
DeviceInfo
|
|
30
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { BaseUserInfoTableType } from '../../database/types/tables/mysUserInfo.js';
|
|
2
|
-
import { a as BaseltuidInfoType } from '../../../define-B9r20dK6.js';
|
|
3
|
-
import { gameName, GameUserInfoBase } from '../types/user/game.js';
|
|
4
|
-
import { UserGameRoleItemType } from '../types/user/userInfo.js';
|
|
5
|
-
import '../../database/types/dbs/base.js';
|
|
6
|
-
import 'sequelize';
|
|
7
|
-
import '../../database/types/tables/mysAccountInfo.js';
|
|
8
|
-
import 'node-karin';
|
|
9
|
-
import 'node-karin/axios';
|
|
10
|
-
import '../../database/types/tables/mysDeviceInfo.js';
|
|
11
|
-
import '../api/app.js';
|
|
12
|
-
import './userInfo.js';
|
|
13
|
-
|
|
14
|
-
declare const MysGame: {
|
|
15
|
-
"__#private@#games": Map<string, RegisterGameBase<any>>;
|
|
16
|
-
get num(): number;
|
|
17
|
-
match(prefix: string): RegisterGameBase<any> | undefined;
|
|
18
|
-
RegisterGame<GameUserInfoTableType extends BaseUserInfoTableType>(Game: RegisterGameBase<GameUserInfoTableType>): void;
|
|
19
|
-
forEachGame<GameUserInfoTableType extends BaseUserInfoTableType>(fn: (Game: RegisterGameBase<GameUserInfoTableType>) => Promise<void | "break">): Promise<void>;
|
|
20
|
-
};
|
|
21
|
-
declare class RegisterGameBase<GameUserInfoTableType extends BaseUserInfoTableType> {
|
|
22
|
-
game: string;
|
|
23
|
-
columnKey: `${string}-uids`;
|
|
24
|
-
/** @description 游戏名称 */
|
|
25
|
-
name: gameName;
|
|
26
|
-
/** @description 指令前缀 */
|
|
27
|
-
prefixs: string[];
|
|
28
|
-
refresh: (info: UserGameRoleItemType[], options: {
|
|
29
|
-
userId: string;
|
|
30
|
-
cookie: string;
|
|
31
|
-
} & BaseltuidInfoType) => Promise<string[]>;
|
|
32
|
-
UserInfo: typeof GameUserInfoBase<GameUserInfoTableType>;
|
|
33
|
-
constructor(game: string, name: gameName, prefixs: string[], userInfo: typeof GameUserInfoBase<GameUserInfoTableType>, refreshFuc: (info: UserGameRoleItemType[], options: {
|
|
34
|
-
userId: string;
|
|
35
|
-
cookie: string;
|
|
36
|
-
} & BaseltuidInfoType) => Promise<string[]>);
|
|
37
|
-
get prefix(): RegExp;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export { MysGame, RegisterGameBase };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export { DeviceInfo } from './deviceInfo.js';
|
|
2
|
-
export { MysGame, RegisterGameBase } from './game.js';
|
|
3
|
-
export { BaseUserInfo, UserInfo } from './userInfo.js';
|
|
4
|
-
import '../../database/types/tables/mysDeviceInfo.js';
|
|
5
|
-
import '../../database/types/tables/mysUserInfo.js';
|
|
6
|
-
import '../../database/types/dbs/base.js';
|
|
7
|
-
import 'sequelize';
|
|
8
|
-
import '../../../define-B9r20dK6.js';
|
|
9
|
-
import '../../database/types/tables/mysAccountInfo.js';
|
|
10
|
-
import 'node-karin';
|
|
11
|
-
import 'node-karin/axios';
|
|
12
|
-
import '../api/app.js';
|
|
13
|
-
import '../types/user/game.js';
|
|
14
|
-
import '../types/user/userInfo.js';
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BaseUserInfo,
|
|
3
|
-
UserInfo
|
|
4
|
-
} from "../../../chunk-4BTKE3LO.js";
|
|
5
|
-
import {
|
|
6
|
-
MysGame,
|
|
7
|
-
RegisterGameBase
|
|
8
|
-
} from "../../../chunk-2BVJS5VE.js";
|
|
9
|
-
import "../../../chunk-G5W5WAY5.js";
|
|
10
|
-
import "../../../chunk-7VAWV6ZE.js";
|
|
11
|
-
import "../../../chunk-LJSDSOY6.js";
|
|
12
|
-
import "../../../chunk-CFS2WFOO.js";
|
|
13
|
-
import "../../../chunk-MWYDWDR4.js";
|
|
14
|
-
import "../../../chunk-FOAQZIZ2.js";
|
|
15
|
-
import "../../../chunk-WCX7WZAQ.js";
|
|
16
|
-
import {
|
|
17
|
-
DeviceInfo
|
|
18
|
-
} from "../../../chunk-KQVWWGRH.js";
|
|
19
|
-
import "../../../chunk-3ERB3ILC.js";
|
|
20
|
-
import "../../../chunk-W4DBT7AD.js";
|
|
21
|
-
import "../../../chunk-Z5I6A73Y.js";
|
|
22
|
-
import "../../../chunk-EDNBKOMS.js";
|
|
23
|
-
import "../../../chunk-ZTOR2DXG.js";
|
|
24
|
-
import "../../../chunk-HJ6HX5HB.js";
|
|
25
|
-
import "../../../chunk-SEWEEPJN.js";
|
|
26
|
-
import "../../../chunk-G7TMVDGP.js";
|
|
27
|
-
import "../../../chunk-DMJ5OQR6.js";
|
|
28
|
-
import "../../../chunk-MPZP23EX.js";
|
|
29
|
-
import "../../../chunk-3JN5WYUN.js";
|
|
30
|
-
import "../../../chunk-7KEG6SDX.js";
|
|
31
|
-
import "../../../chunk-FBWSEBAW.js";
|
|
32
|
-
import "../../../chunk-JVJQKRJ4.js";
|
|
33
|
-
import "../../../chunk-LYTNREAI.js";
|
|
34
|
-
import "../../../chunk-SHW6FHIB.js";
|
|
35
|
-
import "../../../chunk-K5U2O3HH.js";
|
|
36
|
-
import "../../../chunk-I7XZONDN.js";
|
|
37
|
-
import "../../../chunk-JRH4JC43.js";
|
|
38
|
-
import "../../../chunk-SHLPPEAY.js";
|
|
39
|
-
import "../../../chunk-TTN7NFCA.js";
|
|
40
|
-
import "../../../chunk-ARLTXJFJ.js";
|
|
41
|
-
import "../../../chunk-PYTECG57.js";
|
|
42
|
-
import "../../../chunk-T7W4DXRM.js";
|
|
43
|
-
import "../../../chunk-5DXIT7UB.js";
|
|
44
|
-
import "../../../chunk-PMFOX5HA.js";
|
|
45
|
-
import "../../../chunk-MLKGABMK.js";
|
|
46
|
-
export {
|
|
47
|
-
BaseUserInfo,
|
|
48
|
-
DeviceInfo,
|
|
49
|
-
MysGame,
|
|
50
|
-
RegisterGameBase,
|
|
51
|
-
UserInfo
|
|
52
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { DatabaseReturn, DatabaseType, DatabaseArray } from '../../database/types/dbs/base.js';
|
|
2
|
-
import { MysAccountInfoTableType, MysAccountType } from '../../database/types/tables/mysAccountInfo.js';
|
|
3
|
-
import { MysDeviceInfoTableType } from '../../database/types/tables/mysDeviceInfo.js';
|
|
4
|
-
import { BaseUserInfoTableType, UidPermission } from '../../database/types/tables/mysUserInfo.js';
|
|
5
|
-
import { a as BaseltuidInfoType } from '../../../define-B9r20dK6.js';
|
|
6
|
-
import { RefreshUidResultType, StokenParamsType, CookieParamsType } from '../types/user/userInfo.js';
|
|
7
|
-
import 'sequelize';
|
|
8
|
-
import 'node-karin';
|
|
9
|
-
import 'node-karin/axios';
|
|
10
|
-
import '../api/app.js';
|
|
11
|
-
|
|
12
|
-
declare class BaseUserInfo<U extends BaseUserInfoTableType> {
|
|
13
|
-
userId: BaseUserInfoTableType['userId'];
|
|
14
|
-
ltuidMap: Map<string, MysAccountInfoTableType & {
|
|
15
|
-
save: (data: Partial<MysAccountInfoTableType>) => Promise<MysAccountInfoTableType & /*elided*/ any>;
|
|
16
|
-
destroy: () => Promise<boolean>;
|
|
17
|
-
}>;
|
|
18
|
-
UserInfo: DatabaseReturn<U>[DatabaseType.Db];
|
|
19
|
-
refresh: () => Promise<this>;
|
|
20
|
-
constructor(userId: string);
|
|
21
|
-
get ltuids(): DatabaseArray<string>;
|
|
22
|
-
get stuids(): DatabaseArray<string>;
|
|
23
|
-
get deviceList(): DatabaseArray<string>;
|
|
24
|
-
get LtuidInfoList(): Readonly<MysAccountInfoTableType & {
|
|
25
|
-
save: (data: Partial<MysAccountInfoTableType>) => Promise<MysAccountInfoTableType & /*elided*/ any>;
|
|
26
|
-
destroy: () => Promise<boolean>;
|
|
27
|
-
}>[];
|
|
28
|
-
initMysAccountInfo(UserInfo: DatabaseReturn<U>[DatabaseType.Db], initAll: boolean): Promise<void>;
|
|
29
|
-
getLtuidInfo(ltuid: string): Readonly<(MysAccountInfoTableType & {
|
|
30
|
-
save: (data: Partial<MysAccountInfoTableType>) => Promise<MysAccountInfoTableType & /*elided*/ any>;
|
|
31
|
-
destroy: () => Promise<boolean>;
|
|
32
|
-
}) | undefined>;
|
|
33
|
-
getDeviceInfoList(): Promise<(MysDeviceInfoTableType & {
|
|
34
|
-
save: (data: Partial<MysDeviceInfoTableType>) => Promise<MysDeviceInfoTableType & /*elided*/ any>;
|
|
35
|
-
destroy: () => Promise<boolean>;
|
|
36
|
-
})[]>;
|
|
37
|
-
saveUserInfo(data: Partial<U>): Promise<void>;
|
|
38
|
-
saveMysAccountInfo(ltuid: string, data: Partial<MysAccountInfoTableType>): Promise<void>;
|
|
39
|
-
}
|
|
40
|
-
declare class UserInfo extends BaseUserInfo<BaseUserInfoTableType> {
|
|
41
|
-
static create(userId: string, initAll?: boolean): Promise<UserInfo>;
|
|
42
|
-
static refreshUid(options: {
|
|
43
|
-
userId: string;
|
|
44
|
-
cookie: string;
|
|
45
|
-
} & BaseltuidInfoType, perm: UidPermission): Promise<RefreshUidResultType>;
|
|
46
|
-
static refreshCookie(stokenParams: StokenParamsType, serv: MysAccountType | MysAccountType[]): Promise<{
|
|
47
|
-
Serv: MysAccountType;
|
|
48
|
-
cookieParams: CookieParamsType;
|
|
49
|
-
message: string;
|
|
50
|
-
}>;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export { BaseUserInfo, UserInfo };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BaseUserInfo,
|
|
3
|
-
UserInfo
|
|
4
|
-
} from "../../../chunk-4BTKE3LO.js";
|
|
5
|
-
import "../../../chunk-2BVJS5VE.js";
|
|
6
|
-
import "../../../chunk-G5W5WAY5.js";
|
|
7
|
-
import "../../../chunk-7VAWV6ZE.js";
|
|
8
|
-
import "../../../chunk-LJSDSOY6.js";
|
|
9
|
-
import "../../../chunk-CFS2WFOO.js";
|
|
10
|
-
import "../../../chunk-MWYDWDR4.js";
|
|
11
|
-
import "../../../chunk-FOAQZIZ2.js";
|
|
12
|
-
import "../../../chunk-WCX7WZAQ.js";
|
|
13
|
-
import "../../../chunk-KQVWWGRH.js";
|
|
14
|
-
import "../../../chunk-3ERB3ILC.js";
|
|
15
|
-
import "../../../chunk-W4DBT7AD.js";
|
|
16
|
-
import "../../../chunk-Z5I6A73Y.js";
|
|
17
|
-
import "../../../chunk-EDNBKOMS.js";
|
|
18
|
-
import "../../../chunk-ZTOR2DXG.js";
|
|
19
|
-
import "../../../chunk-HJ6HX5HB.js";
|
|
20
|
-
import "../../../chunk-SEWEEPJN.js";
|
|
21
|
-
import "../../../chunk-G7TMVDGP.js";
|
|
22
|
-
import "../../../chunk-DMJ5OQR6.js";
|
|
23
|
-
import "../../../chunk-MPZP23EX.js";
|
|
24
|
-
import "../../../chunk-3JN5WYUN.js";
|
|
25
|
-
import "../../../chunk-7KEG6SDX.js";
|
|
26
|
-
import "../../../chunk-FBWSEBAW.js";
|
|
27
|
-
import "../../../chunk-JVJQKRJ4.js";
|
|
28
|
-
import "../../../chunk-LYTNREAI.js";
|
|
29
|
-
import "../../../chunk-SHW6FHIB.js";
|
|
30
|
-
import "../../../chunk-K5U2O3HH.js";
|
|
31
|
-
import "../../../chunk-I7XZONDN.js";
|
|
32
|
-
import "../../../chunk-JRH4JC43.js";
|
|
33
|
-
import "../../../chunk-SHLPPEAY.js";
|
|
34
|
-
import "../../../chunk-TTN7NFCA.js";
|
|
35
|
-
import "../../../chunk-ARLTXJFJ.js";
|
|
36
|
-
import "../../../chunk-PYTECG57.js";
|
|
37
|
-
import "../../../chunk-T7W4DXRM.js";
|
|
38
|
-
import "../../../chunk-5DXIT7UB.js";
|
|
39
|
-
import "../../../chunk-PMFOX5HA.js";
|
|
40
|
-
import "../../../chunk-MLKGABMK.js";
|
|
41
|
-
export {
|
|
42
|
-
BaseUserInfo,
|
|
43
|
-
UserInfo
|
|
44
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Options } from 'node-karin';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
|
-
interface RenderCfg {
|
|
5
|
-
/** @description 插件名称 package.json 的 name */
|
|
6
|
-
name: string;
|
|
7
|
-
/** @description 插件版本 package.json 的 version */
|
|
8
|
-
version: string;
|
|
9
|
-
/** @description 根目录绝对路径 */
|
|
10
|
-
pluginDir: string;
|
|
11
|
-
/** @description 插件资源目录 `@karinjs/karin-plugin-xxx/resources` */
|
|
12
|
-
ResourcesDir: string;
|
|
13
|
-
}
|
|
14
|
-
interface DefaultRenderPluginOptionsType {
|
|
15
|
-
name: string;
|
|
16
|
-
version: string;
|
|
17
|
-
resources: {
|
|
18
|
-
/** @description 插件内部资源 */
|
|
19
|
-
default: string;
|
|
20
|
-
/** @description 插件外部资源 @karinjs/karin-plugin-xxx/resources */
|
|
21
|
-
download: string;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
declare class ReactRender<P extends Record<string, any>, K extends string> {
|
|
25
|
-
#private;
|
|
26
|
-
constructor(cfg: RenderCfg, pluginOptions?: Omit<P, 'name' | 'version' | 'resources'>);
|
|
27
|
-
get plugin(): Omit<P, 'name' | 'version' | 'resources'> & DefaultRenderPluginOptionsType;
|
|
28
|
-
get karin(): {
|
|
29
|
-
version: string;
|
|
30
|
-
};
|
|
31
|
-
template<C extends React.ComponentType<any>>(template: K, component: C, props: React.ComponentProps<C>, options?: {
|
|
32
|
-
type?: 'png' | 'jpeg' | 'webp';
|
|
33
|
-
plugin?: Record<string, any>;
|
|
34
|
-
render?: Omit<Options, 'file' | 'data'>;
|
|
35
|
-
}): Promise<string | null>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export { type DefaultRenderPluginOptionsType, ReactRender, type RenderCfg };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ReactRender
|
|
3
|
-
} from "../../chunk-LBLGKL3W.js";
|
|
4
|
-
import "../../chunk-SHLPPEAY.js";
|
|
5
|
-
import "../../chunk-ARLTXJFJ.js";
|
|
6
|
-
import "../../chunk-PYTECG57.js";
|
|
7
|
-
import "../../chunk-T7W4DXRM.js";
|
|
8
|
-
import "../../chunk-5DXIT7UB.js";
|
|
9
|
-
import "../../chunk-MLKGABMK.js";
|
|
10
|
-
export {
|
|
11
|
-
ReactRender
|
|
12
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { O as ObjToStr, S as StrToObj, f as filterData, g as getDeviceGuid, r as randomString } from '../../common-BlI5Gsw_.js';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
interface DefineData<T> {
|
|
2
|
-
defaultConfig: T;
|
|
3
|
-
}
|
|
4
|
-
interface DefineDataArray<T> extends DefineData<T[]> {
|
|
5
|
-
defaultConfigItem: {
|
|
6
|
-
defaultConfig: T;
|
|
7
|
-
required?: T extends Record<string, any> ? (keyof T)[] : never;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export type { DefineData, DefineDataArray };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../../../chunk-T7W4DXRM.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DefineData, DefineDataArray } from './common.js';
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|