Updating documentation
This commit is contained in:
parent
8eaf4b97b9
commit
ff4f9f77f2
|
@ -1709,10 +1709,16 @@ paths:
|
||||||
put:
|
put:
|
||||||
tags:
|
tags:
|
||||||
- Messages
|
- Messages
|
||||||
|
summary: Send multi-recipient sealed-sender message
|
||||||
|
description: |
|
||||||
|
Deliver a common-payload message to multiple recipients.
|
||||||
|
An unidentifed-access key for all recipients must be provided, unless the message is a story.
|
||||||
operationId: sendMultiRecipientMessage
|
operationId: sendMultiRecipientMessage
|
||||||
parameters:
|
parameters:
|
||||||
- name: Unidentified-Access-Key
|
- name: Unidentified-Access-Key
|
||||||
in: header
|
in: header
|
||||||
|
description: The bitwise xor of the unidentified access keys for every recipient
|
||||||
|
of the message
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/CombinedUnidentifiedSenderAccessKeys'
|
$ref: '#/components/schemas/CombinedUnidentifiedSenderAccessKeys'
|
||||||
- name: User-Agent
|
- name: User-Agent
|
||||||
|
@ -1721,33 +1727,61 @@ paths:
|
||||||
type: string
|
type: string
|
||||||
- name: online
|
- name: online
|
||||||
in: query
|
in: query
|
||||||
|
description: "If true, deliver the message only to recipients that are online\
|
||||||
|
\ when it is sent"
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
- name: ts
|
- name: ts
|
||||||
in: query
|
in: query
|
||||||
|
description: The sender's timestamp for the envelope
|
||||||
schema:
|
schema:
|
||||||
type: integer
|
type: integer
|
||||||
format: int64
|
format: int64
|
||||||
- name: urgent
|
- name: urgent
|
||||||
in: query
|
in: query
|
||||||
|
description: "If true, this message should cause push notifications to be\
|
||||||
|
\ sent to recipients"
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
- 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 sealed-sender multi-recipient message payload as serialized
|
||||||
|
by libsignal
|
||||||
content:
|
content:
|
||||||
application/vnd.signal-messenger.mrm:
|
application/vnd.signal-messenger.mrm:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/MultiRecipientMessage'
|
$ref: '#/components/schemas/SealedSenderMultiRecipientMessage'
|
||||||
required: true
|
required: true
|
||||||
responses:
|
responses:
|
||||||
default:
|
"200":
|
||||||
description: default response
|
description: Message was successfully sent to all recipients
|
||||||
|
"400":
|
||||||
|
description: The envelope specified delivery to the same recipient device
|
||||||
|
multiple times
|
||||||
|
"401":
|
||||||
|
description: The message is not a story and the unauthorized access key
|
||||||
|
is incorrect
|
||||||
|
"404":
|
||||||
|
description: The message is not a story and some of the recipient service
|
||||||
|
IDs do not correspond to registered Signal users
|
||||||
|
"409":
|
||||||
|
description: Incorrect set of devices supplied for some recipients
|
||||||
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
|
||||||
/v1/payments/auth:
|
/v1/payments/auth:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
|
@ -3842,6 +3876,24 @@ components:
|
||||||
timestamp:
|
timestamp:
|
||||||
type: integer
|
type: integer
|
||||||
format: int64
|
format: int64
|
||||||
|
AccountMismatchedDevices:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
uuid:
|
||||||
|
type: string
|
||||||
|
description: A service identifier is a tuple of a UUID and identity type
|
||||||
|
that identifies an account and identity within the Signal service.
|
||||||
|
devices:
|
||||||
|
$ref: '#/components/schemas/MismatchedDevices'
|
||||||
|
AccountStaleDevices:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
uuid:
|
||||||
|
type: string
|
||||||
|
description: A service identifier is a tuple of a UUID and identity type
|
||||||
|
that identifies an account and identity within the Signal service.
|
||||||
|
devices:
|
||||||
|
$ref: '#/components/schemas/StaleDevices'
|
||||||
CombinedUnidentifiedSenderAccessKeys:
|
CombinedUnidentifiedSenderAccessKeys:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -3850,50 +3902,36 @@ components:
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
format: byte
|
format: byte
|
||||||
MultiRecipientMessage:
|
Recipient:
|
||||||
required:
|
type: object
|
||||||
- commonPayload
|
properties:
|
||||||
- recipients
|
devices:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
format: byte
|
||||||
|
devicesAndRegistrationIds:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
parallel:
|
||||||
|
type: boolean
|
||||||
|
SealedSenderMultiRecipientMessage:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
recipients:
|
recipients:
|
||||||
maxItems: 5000
|
type: object
|
||||||
minItems: 1
|
additionalProperties:
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/Recipient'
|
$ref: '#/components/schemas/Recipient'
|
||||||
commonPayload:
|
excludedRecipients:
|
||||||
maxItems: 2147483647
|
|
||||||
minItems: 32
|
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: string
|
$ref: '#/components/schemas/ServiceId'
|
||||||
format: byte
|
ServiceId:
|
||||||
Recipient:
|
|
||||||
required:
|
|
||||||
- perRecipientKeyMaterial
|
|
||||||
- uuid
|
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
uuid:
|
rawUUID:
|
||||||
type: string
|
type: string
|
||||||
description: A service identifier is a tuple of a UUID and identity type
|
format: uuid
|
||||||
that identifies an account and identity within the Signal service.
|
|
||||||
deviceId:
|
|
||||||
type: string
|
|
||||||
format: byte
|
|
||||||
registrationId:
|
|
||||||
maximum: 65535
|
|
||||||
minimum: 0
|
|
||||||
type: integer
|
|
||||||
format: int32
|
|
||||||
perRecipientKeyMaterial:
|
|
||||||
maxItems: 48
|
|
||||||
minItems: 48
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
format: byte
|
|
||||||
CurrencyConversionEntity:
|
CurrencyConversionEntity:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
|
Loading…
Reference in New Issue