Updating documentation
This commit is contained in:
parent
6ffb8264a2
commit
ca80ce3806
|
@ -1910,36 +1910,68 @@ paths:
|
||||||
put:
|
put:
|
||||||
tags:
|
tags:
|
||||||
- Messages
|
- Messages
|
||||||
|
summary: Send a message
|
||||||
|
description: |
|
||||||
|
Deliver a message to a single recipient. May be authenticated or unauthenticated; if unauthenticated,
|
||||||
|
an unidentifed-access key or group-send endorsement token must be provided, unless the message is a story.
|
||||||
operationId: sendMessage
|
operationId: sendMessage
|
||||||
parameters:
|
parameters:
|
||||||
- name: Unidentified-Access-Key
|
- name: Unidentified-Access-Key
|
||||||
in: header
|
in: header
|
||||||
|
description: The recipient's unidentified access key
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/Anonymous'
|
$ref: '#/components/schemas/Anonymous'
|
||||||
|
- name: Group-Send-Token
|
||||||
|
in: header
|
||||||
|
description: A group send endorsement token covering the recipient. Must not
|
||||||
|
be combined with `Unidentified-Access-Key` or set on a story message.
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/GroupSendTokenHeader'
|
||||||
- name: User-Agent
|
- name: User-Agent
|
||||||
in: header
|
in: header
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- name: destination
|
- name: destination
|
||||||
in: path
|
in: path
|
||||||
|
description: "If true, deliver the message only to recipients that are online\
|
||||||
|
\ when it is sent"
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/ServiceIdentifier'
|
$ref: '#/components/schemas/ServiceIdentifier'
|
||||||
- name: story
|
- name: story
|
||||||
in: query
|
in: query
|
||||||
|
description: "If true, the message is a story; access tokens are not checked\
|
||||||
|
\ and sending to nonexistent recipients is permitted"
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
requestBody:
|
requestBody:
|
||||||
|
description: The encrypted message payloads for each recipient device
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/IncomingMessageList'
|
$ref: '#/components/schemas/IncomingMessageList'
|
||||||
required: true
|
required: true
|
||||||
responses:
|
responses:
|
||||||
default:
|
"200":
|
||||||
description: default response
|
description: Message was successfully sent
|
||||||
|
"401":
|
||||||
|
description: "The message is not a story and the authorization, unauthorized\
|
||||||
|
\ access key, or group send endorsement token is missing or incorrect"
|
||||||
|
"404":
|
||||||
|
description: The message is not a story and some the recipient service ID
|
||||||
|
does not correspond to a registered Signal user
|
||||||
|
"409":
|
||||||
|
description: Incorrect set of devices supplied for recipient
|
||||||
content:
|
content:
|
||||||
application/json: {}
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
"410":
|
||||||
|
description: Mismatched registration ids supplied for some recipient devices
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
security:
|
security:
|
||||||
- authenticatedAccount: []
|
- authenticatedAccount: []
|
||||||
- {}
|
- {}
|
||||||
|
@ -4214,22 +4246,6 @@ components:
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
format: byte
|
format: byte
|
||||||
IncomingMessageList:
|
|
||||||
required:
|
|
||||||
- messages
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
messages:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/IncomingMessage'
|
|
||||||
online:
|
|
||||||
type: boolean
|
|
||||||
urgent:
|
|
||||||
type: boolean
|
|
||||||
timestamp:
|
|
||||||
type: integer
|
|
||||||
format: int64
|
|
||||||
AccountMismatchedDevices:
|
AccountMismatchedDevices:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -4248,14 +4264,6 @@ components:
|
||||||
that identifies an account and identity within the Signal service.
|
that identifies an account and identity within the Signal service.
|
||||||
devices:
|
devices:
|
||||||
$ref: '#/components/schemas/StaleDevices'
|
$ref: '#/components/schemas/StaleDevices'
|
||||||
CombinedUnidentifiedSenderAccessKeys:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
accessKeys:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
format: byte
|
|
||||||
GroupSendFullToken:
|
GroupSendFullToken:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -4272,6 +4280,30 @@ components:
|
||||||
properties:
|
properties:
|
||||||
token:
|
token:
|
||||||
$ref: '#/components/schemas/GroupSendFullToken'
|
$ref: '#/components/schemas/GroupSendFullToken'
|
||||||
|
IncomingMessageList:
|
||||||
|
required:
|
||||||
|
- messages
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
messages:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/IncomingMessage'
|
||||||
|
online:
|
||||||
|
type: boolean
|
||||||
|
urgent:
|
||||||
|
type: boolean
|
||||||
|
timestamp:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
|
CombinedUnidentifiedSenderAccessKeys:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
accessKeys:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
format: byte
|
||||||
Recipient:
|
Recipient:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
|
Loading…
Reference in New Issue