Updating documentation

This commit is contained in:
Documentation Updater 2023-04-21 20:28:41 +00:00
parent c81cbe9550
commit 5d0e6ff464
1 changed files with 73 additions and 57 deletions

View File

@ -322,18 +322,6 @@ paths:
'*/*': {} '*/*': {}
security: security:
- authenticatedAccount: [] - authenticatedAccount: []
/v1/accounts/signaling_key:
delete:
tags:
- Account
operationId: removeSignalingKey
responses:
default:
description: default response
content:
'*/*': {}
security:
- authenticatedAccount: []
/v1/accounts/username_hash/reserve: /v1/accounts/username_hash/reserve:
put: put:
tags: tags:
@ -479,6 +467,28 @@ paths:
$ref: '#/components/schemas/AccountIdentityResponse' $ref: '#/components/schemas/AccountIdentityResponse'
security: security:
- authenticatedAccount: [] - authenticatedAccount: []
/v2/accounts/phone_number_identity_key_distribution:
put:
tags:
- Account
summary: Updates key material for the phone-number identity for all devices
and sends a synchronization message to companion devices
operationId: distributePhoneNumberIdentityKeys
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PhoneNumberIdentityKeyDistributionRequest'
required: true
responses:
default:
description: default response
content:
application/json:
schema:
$ref: '#/components/schemas/AccountIdentityResponse'
security:
- authenticatedAccount: []
/v2/accounts/data_report: /v2/accounts/data_report:
get: get:
tags: tags:
@ -575,38 +585,6 @@ paths:
description: Account authentication check failed. description: Account authentication check failed.
security: security:
- authenticatedAccount: [] - authenticatedAccount: []
/v1/certificate/group/{startRedemptionTime}/{endRedemptionTime}:
get:
tags:
- Certificate
operationId: getAuthenticationCredentials
parameters:
- name: startRedemptionTime
in: path
required: true
schema:
type: integer
format: int32
- name: endRedemptionTime
in: path
required: true
schema:
type: integer
format: int32
- name: identity
in: query
schema:
type: string
responses:
default:
description: default response
content:
application/json:
schema:
$ref: '#/components/schemas/GroupCredentials'
deprecated: true
security:
- authenticatedAccount: []
/v1/certificate/delivery: /v1/certificate/delivery:
get: get:
tags: tags:
@ -2369,19 +2347,25 @@ components:
properties: properties:
uuid: uuid:
type: string type: string
description: the account identifier for this account
format: uuid format: uuid
number: number:
type: string type: string
description: the phone number associated with this account
pni: pni:
type: string type: string
description: the account identifier for this account's phone-number identity
format: uuid format: uuid
usernameHash: usernameHash:
type: array type: array
description: "a hash of this account's username, if set"
items: items:
type: string type: string
description: "a hash of this account's username, if set"
format: byte format: byte
storageCapable: storageCapable:
type: boolean type: boolean
description: whether any of this account's devices support storage
ChangePhoneNumberRequest: ChangePhoneNumberRequest:
required: required:
- code - code
@ -2647,6 +2631,38 @@ components:
format: int32 format: int32
valid: valid:
type: boolean type: boolean
PhoneNumberIdentityKeyDistributionRequest:
required:
- deviceMessages
- devicePniSignedPrekeys
- pniIdentityKey
- pniRegistrationIds
type: object
properties:
pniIdentityKey:
type: string
description: the new identity key for this account's phone-number identity
deviceMessages:
type: array
description: A message for each companion device to pass its new private
keys
items:
$ref: '#/components/schemas/IncomingMessage'
devicePniSignedPrekeys:
type: object
additionalProperties:
$ref: '#/components/schemas/SignedPreKey'
description: The public key of a new signed elliptic-curve prekey pair for
each device
pniRegistrationIds:
type: object
additionalProperties:
type: integer
description: The new registration ID to use for the phone-number identity
of each device
format: int32
description: The new registration ID to use for the phone-number identity
of each device
AccountAndDevicesDataReport: AccountAndDevicesDataReport:
type: object type: object
properties: properties:
@ -2724,6 +2740,9 @@ components:
AttachmentDescriptorV2: AttachmentDescriptorV2:
type: object type: object
properties: properties:
attachmentId:
type: integer
format: int64
key: key:
type: string type: string
credential: credential:
@ -2738,9 +2757,6 @@ components:
type: string type: string
signature: signature:
type: string type: string
attachmentId:
type: integer
format: int64
attachmentIdString: attachmentIdString:
type: string type: string
AttachmentDescriptorV3: AttachmentDescriptorV3:
@ -2757,6 +2773,14 @@ components:
type: string type: string
signedUploadLocation: signedUploadLocation:
type: string type: string
DeliveryCertificate:
type: object
properties:
certificate:
type: array
items:
type: string
format: byte
GroupCredential: GroupCredential:
type: object type: object
properties: properties:
@ -2778,14 +2802,6 @@ components:
pni: pni:
type: string type: string
format: uuid format: uuid
DeliveryCertificate:
type: object
properties:
certificate:
type: array
items:
type: string
format: byte
AnswerPushChallengeRequest: AnswerPushChallengeRequest:
required: required:
- challenge - challenge
@ -2879,11 +2895,11 @@ components:
properties: properties:
open: open:
type: boolean type: boolean
userAgent:
type: string
createdTimestamp: createdTimestamp:
type: integer type: integer
format: int64 format: int64
userAgent:
type: string
WebSocketSessionContext: WebSocketSessionContext:
type: object type: object
properties: properties: