Updating documentation

This commit is contained in:
Documentation Updater 2024-11-25 21:40:54 +00:00
parent 238f896837
commit 36d86e83cf
1 changed files with 48 additions and 15 deletions

View File

@ -1686,11 +1686,12 @@ paths:
default: 30 default: 30
responses: responses:
"200": "200":
description: A new transfer archive was uploaded for the authenticated device description: "Either a new transfer archive was uploaded for the authenticated\
\ device, or the upload has failed"
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/RemoteAttachment' $ref: '#/components/schemas/TransferArchiveResult'
"204": "204":
description: No transfer archive was uploaded before the call completed; description: No transfer archive was uploaded before the call completed;
clients may repeat the call to continue waiting clients may repeat the call to continue waiting
@ -1706,8 +1707,10 @@ paths:
summary: Signals that a transfer archive has been uploaded for a specific linked summary: Signals that a transfer archive has been uploaded for a specific linked
device device
description: | description: |
Signals that a transfer archive has been uploaded for a specific linked device. Devices waiting via the "wait Signals that a transfer archive has been uploaded or failed for a specific linked device. Devices waiting via
for transfer archive" endpoint will be notified that the new archive is available. the "wait for transfer archive" endpoint will be notified that the new archive is available.
If the uploader cannot upload the transfer archive, they must signal an error.
operationId: recordTransferArchiveUploaded operationId: recordTransferArchiveUploaded
requestBody: requestBody:
content: content:
@ -4261,14 +4264,19 @@ components:
- cdn - cdn
- key - key
type: object type: object
properties: allOf:
cdn: - $ref: '#/components/schemas/TransferArchiveResult'
type: integer - type: object
description: The attachment cdn properties:
format: int32 cdn:
key: type: integer
type: string description: The attachment cdn
description: The attachment key format: int32
key:
maxLength: 64
minLength: 0
type: string
description: The attachment key
CopyMediaResponse: CopyMediaResponse:
required: required:
- cdn - cdn
@ -4652,7 +4660,32 @@ components:
- DECLINE - DECLINE
description: | description: |
Represents a request from a new device to restore account data by some method. Represents a request from a new device to restore account data by some method.
RemoteAttachmentError:
required:
- error
type: object
description: Indicates an attachment failed to upload
allOf:
- $ref: '#/components/schemas/TransferArchiveResult'
- type: object
properties:
error:
type: string
description: The type of error encountered
enum:
- RELINK_REQUESTED
- CONTINUE_WITHOUT_UPLOAD
TransferArchiveResult:
type: object
description: |
The location of the transfer archive if the archive was successfully uploaded, otherwise a error indicating that
the upload has failed and the destination device should stop waiting
oneOf:
- $ref: '#/components/schemas/RemoteAttachmentError'
- $ref: '#/components/schemas/RemoteAttachment'
TransferArchiveUploadedRequest: TransferArchiveUploadedRequest:
required:
- transferArchive
type: object type: object
properties: properties:
destinationDeviceId: destinationDeviceId:
@ -4666,7 +4699,7 @@ components:
\ destination device was created" \ destination device was created"
format: int64 format: int64
transferArchive: transferArchive:
$ref: '#/components/schemas/RemoteAttachment' $ref: '#/components/schemas/TransferArchiveResult'
RedeemReceiptRequest: RedeemReceiptRequest:
required: required:
- receiptCredentialPresentation - receiptCredentialPresentation
@ -4685,10 +4718,10 @@ components:
created: created:
type: string type: string
format: date-time format: date-time
open:
type: boolean
userAgent: userAgent:
type: string type: string
open:
type: boolean
WebSocketSessionContext: WebSocketSessionContext:
type: object type: object
properties: properties: