Updating documentation
This commit is contained in:
parent
728757fbdd
commit
87bcacdeb4
|
@ -807,6 +807,47 @@ paths:
|
||||||
$ref: '#/components/schemas/DeviceInfoList'
|
$ref: '#/components/schemas/DeviceInfoList'
|
||||||
security:
|
security:
|
||||||
- authenticatedAccount: []
|
- authenticatedAccount: []
|
||||||
|
/v1/devices/link:
|
||||||
|
put:
|
||||||
|
tags:
|
||||||
|
- Devices
|
||||||
|
summary: Link a device to an account
|
||||||
|
description: |
|
||||||
|
Links a device to an account identified by a given phone number.
|
||||||
|
operationId: linkDevice
|
||||||
|
parameters:
|
||||||
|
- name: Authorization
|
||||||
|
in: header
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/BasicAuthorizationHeader'
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/LinkDeviceRequest'
|
||||||
|
required: true
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: The new device was linked to the calling account
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/DeviceResponse'
|
||||||
|
"403":
|
||||||
|
description: The given account was not found or the given verification code
|
||||||
|
was incorrect
|
||||||
|
"411":
|
||||||
|
description: The given account already has its maximum number of linked
|
||||||
|
devices
|
||||||
|
"422":
|
||||||
|
description: The request did not pass validation
|
||||||
|
"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
|
||||||
/v1/devices/{device_id}:
|
/v1/devices/{device_id}:
|
||||||
delete:
|
delete:
|
||||||
tags:
|
tags:
|
||||||
|
@ -823,7 +864,7 @@ paths:
|
||||||
default:
|
default:
|
||||||
description: default response
|
description: default response
|
||||||
content:
|
content:
|
||||||
'*/*': {}
|
application/json: {}
|
||||||
security:
|
security:
|
||||||
- authenticatedAccount: []
|
- authenticatedAccount: []
|
||||||
/v1/devices/capabilities:
|
/v1/devices/capabilities:
|
||||||
|
@ -841,7 +882,7 @@ paths:
|
||||||
default:
|
default:
|
||||||
description: default response
|
description: default response
|
||||||
content:
|
content:
|
||||||
'*/*': {}
|
application/json: {}
|
||||||
security:
|
security:
|
||||||
- authenticatedAccount: []
|
- authenticatedAccount: []
|
||||||
/v1/devices/unauthenticated_delivery:
|
/v1/devices/unauthenticated_delivery:
|
||||||
|
@ -853,7 +894,7 @@ paths:
|
||||||
default:
|
default:
|
||||||
description: default response
|
description: default response
|
||||||
content:
|
content:
|
||||||
'*/*': {}
|
application/json: {}
|
||||||
security:
|
security:
|
||||||
- authenticatedAccount: []
|
- authenticatedAccount: []
|
||||||
/v1/devices/{verification_code}:
|
/v1/devices/{verification_code}:
|
||||||
|
@ -871,10 +912,6 @@ paths:
|
||||||
in: header
|
in: header
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/BasicAuthorizationHeader'
|
$ref: '#/components/schemas/BasicAuthorizationHeader'
|
||||||
- name: User-Agent
|
|
||||||
in: header
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
|
@ -888,6 +925,7 @@ paths:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/DeviceResponse'
|
$ref: '#/components/schemas/DeviceResponse'
|
||||||
|
deprecated: true
|
||||||
/v2/directory/auth:
|
/v2/directory/auth:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
|
@ -3121,6 +3159,45 @@ components:
|
||||||
deviceId:
|
deviceId:
|
||||||
type: integer
|
type: integer
|
||||||
format: int64
|
format: int64
|
||||||
|
DeviceActivationRequest:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
aciSignedPreKey:
|
||||||
|
$ref: '#/components/schemas/SignedPreKey'
|
||||||
|
pniSignedPreKey:
|
||||||
|
$ref: '#/components/schemas/SignedPreKey'
|
||||||
|
aciPqLastResortPreKey:
|
||||||
|
$ref: '#/components/schemas/SignedPreKey'
|
||||||
|
pniPqLastResortPreKey:
|
||||||
|
$ref: '#/components/schemas/SignedPreKey'
|
||||||
|
apnToken:
|
||||||
|
$ref: '#/components/schemas/ApnRegistrationId'
|
||||||
|
gcmToken:
|
||||||
|
$ref: '#/components/schemas/GcmRegistrationId'
|
||||||
|
LinkDeviceRequest:
|
||||||
|
required:
|
||||||
|
- verificationCode
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
verificationCode:
|
||||||
|
type: string
|
||||||
|
description: |
|
||||||
|
The verification code associated with this device. Must match the verification code
|
||||||
|
provided by the server when provisioning this device.
|
||||||
|
accountAttributes:
|
||||||
|
$ref: '#/components/schemas/AccountAttributes'
|
||||||
|
aciSignedPreKey:
|
||||||
|
$ref: '#/components/schemas/SignedPreKey'
|
||||||
|
pniSignedPreKey:
|
||||||
|
$ref: '#/components/schemas/SignedPreKey'
|
||||||
|
aciPqLastResortPreKey:
|
||||||
|
$ref: '#/components/schemas/SignedPreKey'
|
||||||
|
pniPqLastResortPreKey:
|
||||||
|
$ref: '#/components/schemas/SignedPreKey'
|
||||||
|
apnToken:
|
||||||
|
$ref: '#/components/schemas/ApnRegistrationId'
|
||||||
|
gcmToken:
|
||||||
|
$ref: '#/components/schemas/GcmRegistrationId'
|
||||||
RedeemReceiptRequest:
|
RedeemReceiptRequest:
|
||||||
required:
|
required:
|
||||||
- receiptCredentialPresentation
|
- receiptCredentialPresentation
|
||||||
|
|
Loading…
Reference in New Issue