Updating documentation

This commit is contained in:
Documentation Updater 2023-07-21 18:15:28 +00:00
parent ab6b6ab09d
commit 3c7632a9dc
1 changed files with 127 additions and 59 deletions

View File

@ -10,23 +10,33 @@ servers:
- url: https://chat.staging.signal.org - url: https://chat.staging.signal.org
description: Staging service description: Staging service
paths: paths:
/v1/accounts/account/{uuid}: /v1/accounts/account/{identifier}:
head: head:
tags: tags:
- Account - Account
summary: Check whether an account exists
description: |
Enforced unauthenticated endpoint. Checks whether an account with a given identifier exists.
operationId: accountExists operationId: accountExists
parameters: parameters:
- name: uuid - name: identifier
in: path in: path
description: An ACI or PNI account identifier to check
required: true required: true
schema: schema:
type: string $ref: '#/components/schemas/ServiceIdentifier'
format: uuid
responses: responses:
default: "200":
description: default response description: An account with the given identifier was found.
content: "400":
'*/*': {} description: "A client made an authenticated to this endpoint, and must\
\ not provide credentials."
"404":
description: An account was not found for the given identifier.
"422":
description: Invalid request format.
"429":
description: Rate-limited.
security: security:
- authenticatedAccount: [] - authenticatedAccount: []
- {} - {}
@ -590,6 +600,38 @@ paths:
$ref: '#/components/schemas/AttachmentDescriptorV3' $ref: '#/components/schemas/AttachmentDescriptorV3'
security: security:
- authenticatedAccount: [] - authenticatedAccount: []
/v4/attachments/form/upload:
get:
tags:
- Attachments
summary: Get an upload form
description: |
Retrieve an upload form that can be used to perform a resumable upload. The response will include a cdn number
indicating what protocol should be used to perform the upload.
operationId: getAttachmentUploadForm_2
responses:
"200":
description: "Success, response body includes upload form"
content:
application/json:
schema:
$ref: '#/components/schemas/AttachmentDescriptorV3'
"413":
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
"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
security:
- authenticatedAccount: []
/v1/call-link/create-auth: /v1/call-link/create-auth:
post: post:
tags: tags:
@ -994,8 +1036,7 @@ paths:
description: the account or phone-number identifier to retrieve keys for description: the account or phone-number identifier to retrieve keys for
required: true required: true
schema: schema:
type: string $ref: '#/components/schemas/ServiceIdentifier'
format: uuid
- name: device_id - name: device_id
in: path in: path
description: "the device id of a single device to retrieve prekeys for, or\ description: "the device id of a single device to retrieve prekeys for, or\
@ -1244,8 +1285,7 @@ paths:
in: path in: path
required: true required: true
schema: schema:
type: string $ref: '#/components/schemas/ServiceIdentifier'
format: uuid
- name: story - name: story
in: query in: query
schema: schema:
@ -1339,7 +1379,7 @@ paths:
$ref: '#/components/schemas/CurrencyConversionEntityList' $ref: '#/components/schemas/CurrencyConversionEntityList'
security: security:
- authenticatedAccount: [] - authenticatedAccount: []
/v1/profile/{uuid}/{version}: /v1/profile/{identifier}/{version}:
get: get:
tags: tags:
- Profile - Profile
@ -1349,12 +1389,11 @@ paths:
in: header in: header
schema: schema:
$ref: '#/components/schemas/Anonymous' $ref: '#/components/schemas/Anonymous'
- name: uuid - name: identifier
in: path in: path
required: true required: true
schema: schema:
type: string $ref: '#/components/schemas/AciServiceIdentifier'
format: uuid
- name: version - name: version
in: path in: path
required: true required: true
@ -1370,7 +1409,7 @@ paths:
security: security:
- authenticatedAccount: [] - authenticatedAccount: []
- {} - {}
/v1/profile/{uuid}/{version}/{credentialRequest}: /v1/profile/{identifier}/{version}/{credentialRequest}:
get: get:
tags: tags:
- Profile - Profile
@ -1380,12 +1419,11 @@ paths:
in: header in: header
schema: schema:
$ref: '#/components/schemas/Anonymous' $ref: '#/components/schemas/Anonymous'
- name: uuid - name: identifier
in: path in: path
required: true required: true
schema: schema:
type: string $ref: '#/components/schemas/AciServiceIdentifier'
format: uuid
- name: version - name: version
in: path in: path
required: true required: true
@ -1428,8 +1466,7 @@ paths:
in: path in: path
required: true required: true
schema: schema:
type: string $ref: '#/components/schemas/ServiceIdentifier'
format: uuid
- name: ca - name: ca
in: query in: query
schema: schema:
@ -2454,26 +2491,31 @@ paths:
$ref: '#/components/schemas/VerificationSessionResponse' $ref: '#/components/schemas/VerificationSessionResponse'
components: components:
schemas: schemas:
AciServiceIdentifier:
type: string
description: An identifier for an account based on the account's ACI
allOf:
- $ref: '#/components/schemas/ServiceIdentifier'
PniServiceIdentifier:
type: string
description: An identifier for an account based on the account's phone number
identifier (PNI)
allOf:
- $ref: '#/components/schemas/ServiceIdentifier'
ServiceIdentifier:
type: object
description: A service identifier is a tuple of a UUID and identity type that
identifies an account and identity within the Signal service.
UsernameHashResponse: UsernameHashResponse:
type: object type: object
properties: properties:
usernameHash: usernameHash:
type: array type: string
description: "The hash of the confirmed username, as supplied in the request" description: "The hash of the confirmed username, as supplied in the request"
items:
type: string
description: "The hash of the confirmed username, as supplied in the request"
format: byte
usernameLinkHandle:
$ref: '#/components/schemas/UsernameLinkHandle'
UsernameLinkHandle:
required:
- usernameLinkHandle
type: object
properties:
usernameLinkHandle: usernameLinkHandle:
type: string type: string
format: uuid description: A handle that can be included in username links to retrieve
the stored encrypted username
ConfirmUsernameHashRequest: ConfirmUsernameHashRequest:
type: object type: object
properties: properties:
@ -2488,19 +2530,11 @@ components:
type: string type: string
format: byte format: byte
encryptedUsername: encryptedUsername:
$ref: '#/components/schemas/EncryptedUsername' maxLength: 128
EncryptedUsername: minLength: 1
required: type: string
- usernameLinkEncryptedValue description: The url-safe base64-encoded encrypted username to be stored
type: object for username links
properties:
usernameLinkEncryptedValue:
maxItems: 128
minItems: 1
type: array
items:
type: string
format: byte
AccountIdentityResponse: AccountIdentityResponse:
type: object type: object
properties: properties:
@ -2543,7 +2577,17 @@ components:
properties: properties:
uuid: uuid:
type: string type: string
format: uuid description: An identifier for an account based on the account's ACI
EncryptedUsername:
required:
- usernameLinkEncryptedValue
type: object
properties:
usernameLinkEncryptedValue:
maxLength: 128
minLength: 1
type: string
description: the URL-safe base64 encoding of the encrypted username
ReserveUsernameHashResponse: ReserveUsernameHashResponse:
type: object type: object
properties: properties:
@ -2673,6 +2717,16 @@ components:
maxLength: 64 maxLength: 64
minLength: 64 minLength: 64
type: string type: string
UsernameLinkHandle:
required:
- usernameLinkHandle
type: object
properties:
usernameLinkHandle:
type: string
description: A handle that can be included in username links to retrieve
the stored encrypted username
format: uuid
MismatchedDevices: MismatchedDevices:
type: object type: object
properties: properties:
@ -3005,15 +3059,26 @@ components:
properties: properties:
cdn: cdn:
type: integer type: integer
description: |
Indicates the CDN type. 2 in the v3 API, 2 or 3 in the v4 API.
2 indicates resumable uploads using GCS,
3 indicates resumable uploads using TUS
format: int32 format: int32
key: key:
type: string type: string
description: The location within the specified cdn where the finished upload
can be found
headers: headers:
type: object type: object
additionalProperties: additionalProperties:
type: string type: string
description: A map of headers to include with all upload requests. Potentially
contains time-limited upload credentials
description: A map of headers to include with all upload requests. Potentially
contains time-limited upload credentials
signedUploadLocation: signedUploadLocation:
type: string type: string
description: The URL to upload to with the appropriate protocol
CreateCallLinkCredential: CreateCallLinkCredential:
type: object type: object
properties: properties:
@ -3388,7 +3453,8 @@ components:
properties: properties:
uuid: uuid:
type: string type: string
format: uuid description: A service identifier is a tuple of a UUID and identity type
that identifies an account and identity within the Signal service.
deviceId: deviceId:
minimum: 1 minimum: 1
type: integer type: integer
@ -3474,7 +3540,8 @@ components:
$ref: '#/components/schemas/Badge' $ref: '#/components/schemas/Badge'
uuid: uuid:
type: string type: string
format: uuid description: A service identifier is a tuple of a UUID and identity type
that identifies an account and identity within the Signal service.
UserCapabilities: UserCapabilities:
type: object type: object
properties: properties:
@ -3511,7 +3578,8 @@ components:
$ref: '#/components/schemas/Badge' $ref: '#/components/schemas/Badge'
uuid: uuid:
type: string type: string
format: uuid description: A service identifier is a tuple of a UUID and identity type
that identifies an account and identity within the Signal service.
name: name:
type: string type: string
about: about:
@ -3539,7 +3607,8 @@ components:
$ref: '#/components/schemas/Badge' $ref: '#/components/schemas/Badge'
uuid: uuid:
type: string type: string
format: uuid description: A service identifier is a tuple of a UUID and identity type
that identifies an account and identity within the Signal service.
name: name:
type: string type: string
about: about:
@ -3564,14 +3633,13 @@ components:
Element: Element:
required: required:
- fingerprint - fingerprint
- uuid
type: object type: object
properties: properties:
aci:
type: string
format: uuid
uuid: uuid:
type: string type: string
format: uuid description: A service identifier is a tuple of a UUID and identity type
that identifies an account and identity within the Signal service.
fingerprint: fingerprint:
type: array type: array
items: items:
@ -3684,10 +3752,10 @@ components:
$ref: '#/components/schemas/ApnRegistrationId' $ref: '#/components/schemas/ApnRegistrationId'
gcmToken: gcmToken:
$ref: '#/components/schemas/GcmRegistrationId' $ref: '#/components/schemas/GcmRegistrationId'
completeRequest:
type: boolean
everySignedKeyValid: everySignedKeyValid:
type: boolean type: boolean
completeRequest:
type: boolean
valid: valid:
type: boolean type: boolean
UserRemoteConfig: UserRemoteConfig: