Remove deprecated endpoint

This commit is contained in:
Fedor Indutny 2024-08-12 13:38:23 -07:00 committed by GitHub
parent 3a28aaab53
commit 89bdb68129
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 34 deletions

View file

@ -587,7 +587,6 @@ const URL_CALLS = {
storageToken: 'v1/storage/auth',
subscriptions: 'v1/subscription',
subscriptionConfiguration: 'v1/subscription/configuration',
supportUnauthenticatedDelivery: 'v1/devices/unauthenticated_delivery',
updateDeviceName: 'v1/accounts/name',
username: 'v1/accounts/username_hash',
reserveUsername: 'v1/accounts/username_hash/reserve',
@ -619,7 +618,6 @@ const WEBSOCKET_CALLS = new Set<keyof typeof URL_CALLS>([
// Devices
'linkDevice',
'registerCapabilities',
'supportUnauthenticatedDelivery',
// Directory
'directoryAuthV2',
@ -1346,7 +1344,6 @@ export type WebAPIType = {
genKeys: UploadKeysType,
serviceIdKind: ServiceIdKind
) => Promise<void>;
registerSupportForUnauthenticatedDelivery: () => Promise<void>;
reportMessage: (options: ReportMessageOptionsType) => Promise<void>;
requestVerification: (
number: string,
@ -1763,7 +1760,6 @@ export function initialize({
registerCapabilities,
registerKeys,
registerRequestHandler,
registerSupportForUnauthenticatedDelivery,
resolveUsernameLink,
replaceUsernameLink,
reportMessage,
@ -2083,14 +2079,6 @@ export function initialize({
});
}
async function registerSupportForUnauthenticatedDelivery() {
await _ajax({
call: 'supportUnauthenticatedDelivery',
httpType: 'PUT',
responseType: 'json',
});
}
async function registerCapabilities(capabilities: CapabilitiesUploadType) {
await _ajax({
call: 'registerCapabilities',