Updating documentation
This commit is contained in:
parent
0d0d2daee0
commit
1f2619cbd8
|
@ -741,6 +741,61 @@ paths:
|
||||||
- authenticatedAccount: []
|
- authenticatedAccount: []
|
||||||
- {}
|
- {}
|
||||||
/v1/archives/media:
|
/v1/archives/media:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- Archive
|
||||||
|
summary: List media objects
|
||||||
|
description: |
|
||||||
|
Retrieve a list of media objects stored for this backup-id. A client may have previously stored media objects
|
||||||
|
that are no longer referenced in their current backup. To reclaim storage space used by these orphaned
|
||||||
|
objects, perform a list operation and remove any unreferenced media objects via DELETE /v1/backups/<mediaId>.
|
||||||
|
operationId: listMedia
|
||||||
|
parameters:
|
||||||
|
- name: X-Signal-ZK-Auth
|
||||||
|
in: header
|
||||||
|
description: "Presentation of a ZK backup auth credential acquired from /v1/archives/auth,\
|
||||||
|
\ encoded in standard padded base64"
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: X-Signal-ZK-Auth-Signature
|
||||||
|
in: header
|
||||||
|
description: "Signature of the ZK auth credential's presentation, encoded\
|
||||||
|
\ in standard padded base64"
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: cursor
|
||||||
|
in: query
|
||||||
|
description: A cursor returned by a previous call
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: limit
|
||||||
|
in: query
|
||||||
|
description: The number of entries to return per call
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
format: int32
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ListResponse'
|
||||||
|
"400":
|
||||||
|
description: Bad arguments. The request may have been made on an authenticated
|
||||||
|
channel
|
||||||
|
"429":
|
||||||
|
description: Rate limited.
|
||||||
|
"403":
|
||||||
|
description: Forbidden. The request had insufficient permissions to perform
|
||||||
|
the requested action
|
||||||
|
"401":
|
||||||
|
description: The provided backup auth credential presentation could not
|
||||||
|
be verified
|
||||||
|
security:
|
||||||
|
- authenticatedAccount: []
|
||||||
|
- {}
|
||||||
put:
|
put:
|
||||||
tags:
|
tags:
|
||||||
- Archive
|
- Archive
|
||||||
|
@ -748,9 +803,10 @@ paths:
|
||||||
description: |
|
description: |
|
||||||
Copy and re-encrypt media from the attachments cdn into the backup cdn.
|
Copy and re-encrypt media from the attachments cdn into the backup cdn.
|
||||||
|
|
||||||
The original, already encrypted, attachment will be encrypted with the provided key material before being copied
|
The original, already encrypted, attachment will be encrypted with the provided key material before being copied.
|
||||||
|
|
||||||
If the destination media already exists, the copy will be skipped and a 200 will be returned.
|
A particular destination media id should not be reused with a different source media id or different encryption
|
||||||
|
parameters.
|
||||||
operationId: copyMedia_1
|
operationId: copyMedia_1
|
||||||
parameters:
|
parameters:
|
||||||
- name: X-Signal-ZK-Auth
|
- name: X-Signal-ZK-Auth
|
||||||
|
@ -1569,15 +1625,15 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
done:
|
|
||||||
type: boolean
|
|
||||||
cancelled:
|
|
||||||
type: boolean
|
|
||||||
completedExceptionally:
|
completedExceptionally:
|
||||||
type: boolean
|
type: boolean
|
||||||
numberOfDependents:
|
numberOfDependents:
|
||||||
type: integer
|
type: integer
|
||||||
format: int32
|
format: int32
|
||||||
|
done:
|
||||||
|
type: boolean
|
||||||
|
cancelled:
|
||||||
|
type: boolean
|
||||||
security:
|
security:
|
||||||
- authenticatedAccount: []
|
- authenticatedAccount: []
|
||||||
/v1/messages/uuid/{uuid}:
|
/v1/messages/uuid/{uuid}:
|
||||||
|
@ -2242,15 +2298,15 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
done:
|
|
||||||
type: boolean
|
|
||||||
cancelled:
|
|
||||||
type: boolean
|
|
||||||
completedExceptionally:
|
completedExceptionally:
|
||||||
type: boolean
|
type: boolean
|
||||||
numberOfDependents:
|
numberOfDependents:
|
||||||
type: integer
|
type: integer
|
||||||
format: int32
|
format: int32
|
||||||
|
done:
|
||||||
|
type: boolean
|
||||||
|
cancelled:
|
||||||
|
type: boolean
|
||||||
security:
|
security:
|
||||||
- authenticatedAccount: []
|
- authenticatedAccount: []
|
||||||
- {}
|
- {}
|
||||||
|
@ -2284,15 +2340,15 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
done:
|
|
||||||
type: boolean
|
|
||||||
cancelled:
|
|
||||||
type: boolean
|
|
||||||
completedExceptionally:
|
completedExceptionally:
|
||||||
type: boolean
|
type: boolean
|
||||||
numberOfDependents:
|
numberOfDependents:
|
||||||
type: integer
|
type: integer
|
||||||
format: int32
|
format: int32
|
||||||
|
done:
|
||||||
|
type: boolean
|
||||||
|
cancelled:
|
||||||
|
type: boolean
|
||||||
security:
|
security:
|
||||||
- authenticatedAccount: []
|
- authenticatedAccount: []
|
||||||
- {}
|
- {}
|
||||||
|
@ -2325,15 +2381,15 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
done:
|
|
||||||
type: boolean
|
|
||||||
cancelled:
|
|
||||||
type: boolean
|
|
||||||
completedExceptionally:
|
completedExceptionally:
|
||||||
type: boolean
|
type: boolean
|
||||||
numberOfDependents:
|
numberOfDependents:
|
||||||
type: integer
|
type: integer
|
||||||
format: int32
|
format: int32
|
||||||
|
done:
|
||||||
|
type: boolean
|
||||||
|
cancelled:
|
||||||
|
type: boolean
|
||||||
security:
|
security:
|
||||||
- authenticatedAccount: []
|
- authenticatedAccount: []
|
||||||
- {}
|
- {}
|
||||||
|
@ -2460,15 +2516,15 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
done:
|
|
||||||
type: boolean
|
|
||||||
cancelled:
|
|
||||||
type: boolean
|
|
||||||
completedExceptionally:
|
completedExceptionally:
|
||||||
type: boolean
|
type: boolean
|
||||||
numberOfDependents:
|
numberOfDependents:
|
||||||
type: integer
|
type: integer
|
||||||
format: int32
|
format: int32
|
||||||
|
done:
|
||||||
|
type: boolean
|
||||||
|
cancelled:
|
||||||
|
type: boolean
|
||||||
deprecated: true
|
deprecated: true
|
||||||
security:
|
security:
|
||||||
- authenticatedAccount: []
|
- authenticatedAccount: []
|
||||||
|
@ -2497,15 +2553,15 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
done:
|
|
||||||
type: boolean
|
|
||||||
cancelled:
|
|
||||||
type: boolean
|
|
||||||
completedExceptionally:
|
completedExceptionally:
|
||||||
type: boolean
|
type: boolean
|
||||||
numberOfDependents:
|
numberOfDependents:
|
||||||
type: integer
|
type: integer
|
||||||
format: int32
|
format: int32
|
||||||
|
done:
|
||||||
|
type: boolean
|
||||||
|
cancelled:
|
||||||
|
type: boolean
|
||||||
security:
|
security:
|
||||||
- authenticatedAccount: []
|
- authenticatedAccount: []
|
||||||
- {}
|
- {}
|
||||||
|
@ -2541,15 +2597,15 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
done:
|
|
||||||
type: boolean
|
|
||||||
cancelled:
|
|
||||||
type: boolean
|
|
||||||
completedExceptionally:
|
completedExceptionally:
|
||||||
type: boolean
|
type: boolean
|
||||||
numberOfDependents:
|
numberOfDependents:
|
||||||
type: integer
|
type: integer
|
||||||
format: int32
|
format: int32
|
||||||
|
done:
|
||||||
|
type: boolean
|
||||||
|
cancelled:
|
||||||
|
type: boolean
|
||||||
security:
|
security:
|
||||||
- authenticatedAccount: []
|
- authenticatedAccount: []
|
||||||
- {}
|
- {}
|
||||||
|
@ -2588,15 +2644,15 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
done:
|
|
||||||
type: boolean
|
|
||||||
cancelled:
|
|
||||||
type: boolean
|
|
||||||
completedExceptionally:
|
completedExceptionally:
|
||||||
type: boolean
|
type: boolean
|
||||||
numberOfDependents:
|
numberOfDependents:
|
||||||
type: integer
|
type: integer
|
||||||
format: int32
|
format: int32
|
||||||
|
done:
|
||||||
|
type: boolean
|
||||||
|
cancelled:
|
||||||
|
type: boolean
|
||||||
security:
|
security:
|
||||||
- authenticatedAccount: []
|
- authenticatedAccount: []
|
||||||
- {}
|
- {}
|
||||||
|
@ -3289,7 +3345,9 @@ components:
|
||||||
format: int32
|
format: int32
|
||||||
backupDir:
|
backupDir:
|
||||||
type: string
|
type: string
|
||||||
description: "If present, the directory of your backup data on the cdn."
|
description: |
|
||||||
|
If present, the directory of your backup data on the cdn. The message backup can be found at /backupDir/backupName
|
||||||
|
and stored media can be found at /backupDir/media/mediaId.
|
||||||
backupName:
|
backupName:
|
||||||
type: string
|
type: string
|
||||||
description: "If present, the name of the most recent message backup on\
|
description: "If present, the name of the most recent message backup on\
|
||||||
|
@ -3421,6 +3479,37 @@ components:
|
||||||
description: A list of BackupAuthCredentials and their validity periods
|
description: A list of BackupAuthCredentials and their validity periods
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/BackupAuthCredential'
|
$ref: '#/components/schemas/BackupAuthCredential'
|
||||||
|
ListResponse:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
storedMediaObjects:
|
||||||
|
type: array
|
||||||
|
description: A page of media objects stored for this backup ID
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/StoredMediaObject'
|
||||||
|
cursor:
|
||||||
|
type: string
|
||||||
|
description: "If set, the cursor value to pass to the next list request\
|
||||||
|
\ to continue listing. If absent, all objects have been listed"
|
||||||
|
StoredMediaObject:
|
||||||
|
required:
|
||||||
|
- cdn
|
||||||
|
- mediaId
|
||||||
|
- objectLength
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
cdn:
|
||||||
|
type: integer
|
||||||
|
description: The backup cdn where this media object is stored
|
||||||
|
format: int32
|
||||||
|
mediaId:
|
||||||
|
type: string
|
||||||
|
description: The mediaId of the object in URL-safe base64
|
||||||
|
objectLength:
|
||||||
|
type: integer
|
||||||
|
description: The length of the object in bytes
|
||||||
|
format: int64
|
||||||
|
description: A page of media objects stored for this backup ID
|
||||||
ReadAuthResponse:
|
ReadAuthResponse:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -3720,10 +3809,10 @@ components:
|
||||||
WebSocketClient:
|
WebSocketClient:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
open:
|
|
||||||
type: boolean
|
|
||||||
userAgent:
|
userAgent:
|
||||||
type: string
|
type: string
|
||||||
|
open:
|
||||||
|
type: boolean
|
||||||
createdTimestamp:
|
createdTimestamp:
|
||||||
type: integer
|
type: integer
|
||||||
format: int64
|
format: int64
|
||||||
|
|
Loading…
Reference in New Issue