Updating documentation
This commit is contained in:
parent
5e1ae88b74
commit
d3f68e7d52
|
@ -570,24 +570,36 @@ paths:
|
||||||
$ref: '#/components/schemas/AttachmentDescriptorV3'
|
$ref: '#/components/schemas/AttachmentDescriptorV3'
|
||||||
security:
|
security:
|
||||||
- authenticatedAccount: []
|
- authenticatedAccount: []
|
||||||
/v1/call-link/auth:
|
/v1/call-link/create-auth:
|
||||||
get:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- CallLink
|
- CallLink
|
||||||
summary: Generate credentials for calling frontend
|
summary: Generate a credential for creating call links
|
||||||
description: |
|
description: |
|
||||||
These credentials enable clients to prove to calling frontend that they were a Signal user within the last day.
|
Generate a credential over a truncated timestamp, room ID, and account UUID. With zero knowledge
|
||||||
For client privacy, timestamps are truncated to 1 day granularity and the token does not include or derive from an ACI.
|
group infrastructure, the server does not know the room ID.
|
||||||
operationId: getAuth_1
|
operationId: getCreateAuth
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
'*/*':
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/GetCreateCallLinkCredentialsRequest'
|
||||||
|
required: true
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: '`JSON` with generated credentials.'
|
description: '`JSON` with generated credentials.'
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/ExternalServiceCredentials'
|
$ref: '#/components/schemas/CreateCallLinkCredential'
|
||||||
|
"400":
|
||||||
|
description: Invalid create call link credential request.
|
||||||
"401":
|
"401":
|
||||||
description: Account authentication check failed.
|
description: Account authentication check failed.
|
||||||
|
"422":
|
||||||
|
description: Invalid request format.
|
||||||
|
"429":
|
||||||
|
description: Ratelimited.
|
||||||
security:
|
security:
|
||||||
- authenticatedAccount: []
|
- authenticatedAccount: []
|
||||||
/v1/certificate/delivery:
|
/v1/certificate/delivery:
|
||||||
|
@ -1020,7 +1032,7 @@ paths:
|
||||||
default:
|
default:
|
||||||
description: default response
|
description: default response
|
||||||
content:
|
content:
|
||||||
'*/*': {}
|
application/json: {}
|
||||||
security:
|
security:
|
||||||
- authenticatedAccount: []
|
- authenticatedAccount: []
|
||||||
/v1/messages:
|
/v1/messages:
|
||||||
|
@ -1213,7 +1225,7 @@ paths:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- Payments
|
- Payments
|
||||||
operationId: getAuth_2
|
operationId: getAuth_1
|
||||||
responses:
|
responses:
|
||||||
default:
|
default:
|
||||||
description: default response
|
description: default response
|
||||||
|
@ -1298,7 +1310,6 @@ paths:
|
||||||
in: query
|
in: query
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
default: profileKey
|
|
||||||
responses:
|
responses:
|
||||||
default:
|
default:
|
||||||
description: default response
|
description: default response
|
||||||
|
@ -1535,7 +1546,7 @@ paths:
|
||||||
description: |
|
description: |
|
||||||
Generate SVR service credentials. Generated credentials have an expiration time of 30 days
|
Generate SVR service credentials. Generated credentials have an expiration time of 30 days
|
||||||
(however, the TTL is fully controlled by the server side and may change even for already generated credentials).
|
(however, the TTL is fully controlled by the server side and may change even for already generated credentials).
|
||||||
operationId: getAuth_3
|
operationId: getAuth_2
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: '`JSON` with generated credentials.'
|
description: '`JSON` with generated credentials.'
|
||||||
|
@ -1551,7 +1562,7 @@ paths:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- Secure Storage
|
- Secure Storage
|
||||||
operationId: getAuth_4
|
operationId: getAuth_3
|
||||||
responses:
|
responses:
|
||||||
default:
|
default:
|
||||||
description: default response
|
description: default response
|
||||||
|
@ -1597,7 +1608,7 @@ paths:
|
||||||
description: |
|
description: |
|
||||||
Generate SVR2 service credentials. Generated credentials have an expiration time of 30 days
|
Generate SVR2 service credentials. Generated credentials have an expiration time of 30 days
|
||||||
(however, the TTL is fully controlled by the server side and may change even for already generated credentials).
|
(however, the TTL is fully controlled by the server side and may change even for already generated credentials).
|
||||||
operationId: getAuth_5
|
operationId: getAuth_4
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: '`JSON` with generated credentials.'
|
description: '`JSON` with generated credentials.'
|
||||||
|
@ -2378,6 +2389,8 @@ components:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: integer
|
type: integer
|
||||||
format: int32
|
format: int32
|
||||||
|
signatureValidOnEachSignedPreKey:
|
||||||
|
type: boolean
|
||||||
IncomingMessage:
|
IncomingMessage:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -2614,6 +2627,8 @@ components:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: integer
|
type: integer
|
||||||
format: int32
|
format: int32
|
||||||
|
signatureValidOnEachSignedPreKey:
|
||||||
|
type: boolean
|
||||||
valid:
|
valid:
|
||||||
type: boolean
|
type: boolean
|
||||||
PhoneNumberIdentityKeyDistributionRequest:
|
PhoneNumberIdentityKeyDistributionRequest:
|
||||||
|
@ -2648,6 +2663,8 @@ components:
|
||||||
format: int32
|
format: int32
|
||||||
description: The new registration ID to use for the phone-number identity
|
description: The new registration ID to use for the phone-number identity
|
||||||
of each device
|
of each device
|
||||||
|
signatureValidOnEachSignedPreKey:
|
||||||
|
type: boolean
|
||||||
AccountAndDevicesDataReport:
|
AccountAndDevicesDataReport:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -2758,6 +2775,27 @@ components:
|
||||||
type: string
|
type: string
|
||||||
signedUploadLocation:
|
signedUploadLocation:
|
||||||
type: string
|
type: string
|
||||||
|
CreateCallLinkCredential:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
credential:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
format: byte
|
||||||
|
redemptionTime:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
|
GetCreateCallLinkCredentialsRequest:
|
||||||
|
required:
|
||||||
|
- createCallLinkCredentialRequest
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
createCallLinkCredentialRequest:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
format: byte
|
||||||
DeliveryCertificate:
|
DeliveryCertificate:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -2766,6 +2804,17 @@ components:
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
format: byte
|
format: byte
|
||||||
|
CallLinkAuthCredential:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
credential:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
format: byte
|
||||||
|
redemptionTime:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
GroupCredential:
|
GroupCredential:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -2784,6 +2833,10 @@ components:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/GroupCredential'
|
$ref: '#/components/schemas/GroupCredential'
|
||||||
|
callLinkAuthCredentials:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/CallLinkAuthCredential'
|
||||||
pni:
|
pni:
|
||||||
type: string
|
type: string
|
||||||
format: uuid
|
format: uuid
|
||||||
|
@ -2880,11 +2933,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:
|
||||||
|
@ -2932,6 +2985,8 @@ components:
|
||||||
$ref: '#/components/schemas/SignedPreKey'
|
$ref: '#/components/schemas/SignedPreKey'
|
||||||
identityKey:
|
identityKey:
|
||||||
type: string
|
type: string
|
||||||
|
signatureValid:
|
||||||
|
type: boolean
|
||||||
SpamReport:
|
SpamReport:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
|
Loading…
Reference in New Issue