mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-26 19:56:02 +01:00
Split archive deletes and reconciliations into separate jobs.
This commit is contained in:
@@ -276,6 +276,14 @@ class ArchiveApi(
|
||||
|
||||
/**
|
||||
* Retrieves a page of media items in the user's archive.
|
||||
*
|
||||
* GET /v1/archives/media?limit={limit}&cursor={cursor}
|
||||
*
|
||||
* - 200: Success
|
||||
* - 400: Bad request, or made on authenticated channel
|
||||
* - 403: Forbidden
|
||||
* - 429: Rate-limited
|
||||
*
|
||||
* @param limit The maximum number of items to return.
|
||||
* @param cursor A token that can be read from your previous response, telling the server where to start the next page.
|
||||
*/
|
||||
@@ -291,13 +299,15 @@ class ArchiveApi(
|
||||
/**
|
||||
* Copy and re-encrypt media from the attachments cdn into the backup cdn.
|
||||
*
|
||||
* Possible errors:
|
||||
* 400: Bad arguments, or made on an authenticated channel
|
||||
* 401: Invalid presentation or signature
|
||||
* 403: Insufficient permissions
|
||||
* 410: The source object was not found
|
||||
* 413: No media space remaining
|
||||
* 429: Rate-limited
|
||||
* PUT /v1/archives/media
|
||||
*
|
||||
* - 200: Success
|
||||
* - 400: Bad arguments, or made on an authenticated channel
|
||||
* - 401: Invalid presentation or signature
|
||||
* - 403: Insufficient permissions
|
||||
* - 410: The source object was not found
|
||||
* - 413: No media space remaining
|
||||
* - 429: Rate-limited
|
||||
*/
|
||||
fun copyAttachmentToArchive(
|
||||
aci: ACI,
|
||||
|
||||
Reference in New Issue
Block a user