Add patch data

This commit is contained in:
daydreamer-json
2026-01-26 08:00:33 +09:00
parent 236f86d6a3
commit a355eba85d
11 changed files with 1031 additions and 18 deletions

View File

@@ -17,7 +17,18 @@ type LauncherLatestGame = {
sub_channel: string;
game_files_md5: string;
};
patch: unknown;
patch: {
url: string;
md5: string;
package_size: string;
total_size: string;
file_id: string;
patches: {
url: string;
md5: string;
package_size: string;
}[];
} | null;
state: number;
launcher_action: number;
};
@@ -156,11 +167,33 @@ type AccSrvUserInfoV1Basic = {
type: string;
};
type AccSrvUserInfoV1ThirdParty = {
data: {
thirdPartyInfo: {
name: string;
channelId: number; // 2=google, 3=facebook, 4=apple, 5=twitter
}[];
};
msg: string;
status: number;
type: string;
};
type AccSrvUserOAuth2V2Grant = {
data: {
uid: string; // ???
uid: string; // grant uid (Gxxxxxxxxxx)
code: string; // this is channel token
};
msg: string; // OK | Login status expired.
status: number; // 0=OK, 3=expired
type: string;
};
type AccSrvUserOAuth2V2GrantType1 = {
data: {
hgId: string; // hypergryph account id
token: string;
};
msg: string; // OK, Login status expired.
status: number; // 0=OK, 3=expired
type: string;
@@ -177,6 +210,17 @@ type U8UserAuthV2ChToken = {
type: string;
};
type U8UserAuthV2Grant = {
data: {
uid: string; // game overall uid
code: string;
token: string;
};
msg: string;
status: number;
type: string;
};
type U8GameServerV1ServerList = {
data: {
serverList: {
@@ -194,6 +238,119 @@ type U8GameServerV1ServerList = {
type: string;
};
type U8GameRoleV1ConfirmServer = {
msg: string;
status: number;
type: string;
};
type BindApiAccBindV1BindList = {
data: {
list: {
appCode: string; // endfield
appName: string; // 明日方舟终末地
supportMultiServer: boolean;
bindingList: {
uid: string; // game overall uid
isOfficial: boolean; // maybe always true
isDefault: boolean;
channelMasterId: number; // 6
channelName: string; // 官服
isDeleted: boolean;
isBanned: boolean;
registerTs: number; // unix
roles: {
isBanned: boolean;
serverId: string; // 2
serverName: string; // Asia
roleId: string; // game server uid
nickName: string;
level: number;
isDefault: boolean;
registerTs: number; // unix
}[];
}[];
}[];
};
msg: string;
status: number;
};
type BindApiAccBindV1U8TokenByUid = {
data: {
token: string; // u8 token
};
msg: string;
status: number;
};
type BindApiGeneralV1AuthAppList = {
data: {
appList: {
appCode: 'endfield' | 'arknights';
appName: string;
channel: {
channelMasterId: number;
channelName: string;
isOfficial: boolean;
}[];
supportServer: boolean; // is support multi server loc
serverList: {
serverId: string; // 2 or 3 or something
serverName: string; // Asia
}[];
}[];
};
msg: string;
status: number;
};
type WebViewRecordChar = {
code: number; // 0 = ok
data: {
list: {
poolId: string; // beginner, standard, special_1_0_1, ...
poolName: string; // localized pool name
charId: string; // chr_0016_laevat or something
charName: string; // localized chara name
rarity: number; // 6-4
isFree: boolean;
isNew: boolean;
gachaTs: string; // unix
seqId: string;
}[];
hasMore: boolean;
};
msg: string;
};
type WebViewRecordContent = {
code: number; // 0 = ok
data: {
pool: {
pool_gacha_type: string; // char
pool_name: string; // localized pool name
pool_type: string; // newbie or special or normal
up6_name: string; // localized up6 chara name, may blank
up6_image: string;
up5_name: string;
up5_image: string;
up6_item_name: string; // localized up6 item name (Laevatain's Token or something)
rotate_image: string;
ticket_name: string; // Firewalker's Trail HH Permit or something
ticket_ten_name: string; // Firewalker's Trail 10×Permit or something
all: {
id: string; // chr_0016_laevat or something
name: string; // localized chara name
rarity: number; // 6-4
}[];
rotate_list: unknown[]; // ???
};
timezone: number; // asia is 8 (hour)
};
msg: string;
};
export type {
LauncherLatestGame,
LauncherLatestGameResources,
@@ -205,7 +362,16 @@ export type {
LauncherWebAnnouncement,
AccSrvUserAuthV1TokenByEmail,
AccSrvUserInfoV1Basic,
AccSrvUserInfoV1ThirdParty,
AccSrvUserOAuth2V2Grant,
AccSrvUserOAuth2V2GrantType1,
U8UserAuthV2ChToken,
U8UserAuthV2Grant,
U8GameServerV1ServerList,
U8GameRoleV1ConfirmServer,
BindApiAccBindV1BindList,
BindApiAccBindV1U8TokenByUid,
BindApiGeneralV1AuthAppList,
WebViewRecordChar,
WebViewRecordContent,
};