mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 17:38:04 +01:00
Add API endpoints for waiting for account restoration requests
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright 2024 Signal Messenger, LLC
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
package org.whispersystems.textsecuregcm.entities;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@Schema(description = """
|
||||
Represents a request from a new device to restore account data by some method.
|
||||
""")
|
||||
public record RestoreAccountRequest(
|
||||
@NotNull
|
||||
@Schema(description = "The method by which the new device has requested account data restoration")
|
||||
Method method) {
|
||||
|
||||
public enum Method {
|
||||
@Schema(description = "Restore account data from a remote message history backup")
|
||||
REMOTE_BACKUP,
|
||||
|
||||
@Schema(description = "Restore account data from a local backup archive")
|
||||
LOCAL_BACKUP,
|
||||
|
||||
@Schema(description = "Restore account data via direct device-to-device transfer")
|
||||
DEVICE_TRANSFER,
|
||||
|
||||
@Schema(description = "Do not restore account data")
|
||||
DECLINE,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user