[+] Data support APIs (#151)

This commit is contained in:
Menci
2025-07-04 12:01:32 +08:00
committed by GitHub
parent 068b6179e5
commit d79a4e5499
9 changed files with 273 additions and 4 deletions

View File

@@ -254,5 +254,14 @@ export const TRANSFER = {
post('/api/v2/transfer/push', {}, { json: { client: d, data } }),
}
export const FEDY = {
status: (): Promise<{ linkedAt: number }> =>
post('/api/v2/fedy/status'),
link: (nonce: string): Promise<{ linkedAt: number }> =>
post('/api/v2/fedy/link', { nonce }),
unlink: () =>
post('/api/v2/fedy/unlink'),
}
// @ts-ignore
window.sdk = { USER, USERBOX, CARD, GAME, DATA, SETTING, TRANSFER }
window.sdk = { USER, USERBOX, CARD, GAME, DATA, SETTING, TRANSFER, FEDY }