Rename PreKeyState to SetKeysRequest

This commit is contained in:
Jon Chambers authored and Jon Chambers committed 2023-12-05 14:14:24 -05:00
1 parent f10f772e94
commit e2037dea6c
3 files changed
+20 -20

No files matched your search

@@ -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(
@@ -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