Updating documentation

This commit is contained in:
Documentation Updater 2024-10-01 19:50:52 +00:00
parent 68b7d824ab
commit 9f89e84b58
1 changed files with 32 additions and 8 deletions

View File

@ -1491,14 +1491,27 @@ paths:
get: get:
tags: tags:
- Devices - Devices
summary: Generate a signed device-linking token
description: |
Generate a signed device-linking token for transmission to a pending linked device via a provisioning message.
operationId: createDeviceToken operationId: createDeviceToken
responses: responses:
default: "200":
description: default response description: Token was generated successfully
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/VerificationCode' $ref: '#/components/schemas/VerificationCode'
"411":
description: The authenticated account already has the maximum allowed number
of linked devices
"429":
description: Too many attempts
headers:
Retry-After:
description: "If present, an positive integer indicating the number\
\ of seconds before a subsequent attempt could succeed"
style: simple
security: security:
- authenticatedAccount: [] - authenticatedAccount: []
/v1/devices: /v1/devices:
@ -2487,10 +2500,16 @@ paths:
put: put:
tags: tags:
- Provisioning - Provisioning
summary: Send a provisioning message to a new device
description: |
Send a provisioning message from an authenticated device to a device that (presumably) is not yet associated
with a Signal account.
operationId: sendProvisioningMessage operationId: sendProvisioningMessage
parameters: parameters:
- name: destination - name: destination
in: path in: path
description: The temporary provisioning address to which to send a provisioning
message
required: true required: true
schema: schema:
type: string type: string
@ -2499,16 +2518,21 @@ paths:
schema: schema:
type: string type: string
requestBody: requestBody:
description: The provisioning message to send to the given provisioning address
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/ProvisioningMessage' $ref: '#/components/schemas/ProvisioningMessage'
required: true required: true
responses: responses:
default: "204":
description: default response description: The provisioning message was delivered to the given provisioning
content: address
application/json: {} "400":
description: The provisioning message was too large
"404":
description: No device with the given provisioning address was connected
at the time of the request
security: security:
- authenticatedAccount: [] - authenticatedAccount: []
/v1/registration: /v1/registration:
@ -3454,8 +3478,6 @@ components:
properties: properties:
apnRegistrationId: apnRegistrationId:
type: string type: string
voipRegistrationId:
type: string
description: | description: |
An APNs token set for the account's primary device. If provided, the account's primary An APNs token set for the account's primary device. If provided, the account's primary
device will be notified of new messages via push notifications to the given token. device will be notified of new messages via push notifications to the given token.
@ -5002,6 +5024,8 @@ components:
properties: properties:
body: body:
type: string type: string
description: The MIME base64-encoded body of the provisioning message to
send to the destination device
RegistrationRequest: RegistrationRequest:
required: required:
- accountAttributes - accountAttributes