Rename PreKeyState to SetKeysRequest

This commit is contained in:
Jon Chambers
2023-11-28 22:03:41 -05:00
committed by Jon Chambers
parent f10f772e94
commit e2037dea6c
3 changed files with 20 additions and 20 deletions

View File

@@ -54,7 +54,7 @@ import org.whispersystems.textsecuregcm.entities.KEMSignedPreKey;
import org.whispersystems.textsecuregcm.entities.PreKeyCount;
import org.whispersystems.textsecuregcm.entities.PreKeyResponse;
import org.whispersystems.textsecuregcm.entities.PreKeyResponseItem;
import org.whispersystems.textsecuregcm.entities.PreKeyState;
import org.whispersystems.textsecuregcm.entities.SetKeysRequest;
import org.whispersystems.textsecuregcm.experiment.Experiment;
import org.whispersystems.textsecuregcm.identity.IdentityType;
import org.whispersystems.textsecuregcm.identity.ServiceIdentifier;
@@ -122,7 +122,7 @@ public class KeysController {
@ApiResponse(responseCode = "403", description = "Attempt to change identity key from a non-primary device.")
@ApiResponse(responseCode = "422", description = "Invalid request format.")
public CompletableFuture<Response> setKeys(@Auth final DisabledPermittedAuthenticatedAccount disabledPermittedAuth,
@RequestBody @NotNull @Valid final PreKeyState preKeys,
@RequestBody @NotNull @Valid final SetKeysRequest preKeys,
@Parameter(allowEmptyValue=true)
@Schema(

View File

@@ -15,7 +15,7 @@ import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;
public record PreKeyState(
public record SetKeysRequest(
@Valid
@Schema(description = """
A list of unsigned elliptic-curve prekeys to use for this device. If present and not empty, replaces all stored