Updating documentation

This commit is contained in:
Documentation Updater 2024-06-24 20:06:40 +00:00
parent f4d35aefb7
commit f1c599a166
1 changed files with 126 additions and 231 deletions

View File

@ -1547,6 +1547,9 @@ paths:
"403": "403":
description: The given account was not found or the given verification code description: The given account was not found or the given verification code
was incorrect was incorrect
"409":
description: The new device is missing a capability supported by all other
devices on the account
"411": "411":
description: The given account already has its maximum number of linked description: The given account already has its maximum number of linked
devices devices
@ -2037,13 +2040,17 @@ paths:
content: content:
application/json: application/json:
schema: schema:
type: string type: array
items:
$ref: '#/components/schemas/AccountMismatchedDevices'
"410": "410":
description: Mismatched registration ids supplied for some recipient devices description: Mismatched registration ids supplied for some recipient devices
content: content:
application/json: application/json:
schema: schema:
type: string type: array
items:
$ref: '#/components/schemas/AccountStaleDevices'
security: security:
- authenticatedAccount: [] - authenticatedAccount: []
- {} - {}
@ -2123,13 +2130,17 @@ paths:
content: content:
application/json: application/json:
schema: schema:
type: string type: array
items:
$ref: '#/components/schemas/AccountMismatchedDevices'
"410": "410":
description: Mismatched registration ids supplied for some recipient devices description: Mismatched registration ids supplied for some recipient devices
content: content:
application/json: application/json:
schema: schema:
type: string type: array
items:
$ref: '#/components/schemas/AccountStaleDevices'
/v1/payments/auth: /v1/payments/auth:
get: get:
tags: tags:
@ -3178,13 +3189,9 @@ components:
type: object type: object
properties: properties:
usernameHash: usernameHash:
type: array
items:
type: string type: string
format: byte format: byte
zkProof: zkProof:
type: array
items:
type: string type: string
format: byte format: byte
encryptedUsername: encryptedUsername:
@ -3208,9 +3215,6 @@ components:
description: the account identifier for this account's phone-number identity description: the account identifier for this account's phone-number identity
format: uuid format: uuid
usernameHash: usernameHash:
type: array
description: "a hash of this account's username, if set"
items:
type: string type: string
description: "a hash of this account's username, if set" description: "a hash of this account's username, if set"
format: byte format: byte
@ -3261,8 +3265,6 @@ components:
type: object type: object
properties: properties:
usernameHash: usernameHash:
type: array
items:
type: string type: string
format: byte format: byte
ReserveUsernameHashRequest: ReserveUsernameHashRequest:
@ -3273,8 +3275,6 @@ components:
usernameHashes: usernameHashes:
maxItems: 20 maxItems: 20
minItems: 1 minItems: 1
type: array
items:
type: array type: array
items: items:
type: string type: string
@ -3288,17 +3288,13 @@ components:
type: integer type: integer
format: int32 format: int32
name: name:
maxItems: 225 maxLength: 225
minItems: 0 minLength: 0
type: array
items:
type: string type: string
format: byte format: byte
registrationLock: registrationLock:
type: string type: string
unidentifiedAccessKey: unidentifiedAccessKey:
type: array
items:
type: string type: string
format: byte format: byte
unrestrictedUnidentifiedAccess: unrestrictedUnidentifiedAccess:
@ -3308,8 +3304,6 @@ components:
discoverableByPhoneNumber: discoverableByPhoneNumber:
type: boolean type: boolean
recoveryPassword: recoveryPassword:
type: array
items:
type: string type: string
format: byte format: byte
eachRegistrationIdValid: eachRegistrationIdValid:
@ -3360,10 +3354,8 @@ components:
type: object type: object
properties: properties:
deviceName: deviceName:
maxItems: 225 maxLength: 225
minItems: 0 minLength: 0
type: array
items:
type: string type: string
format: byte format: byte
RegistrationLock: RegistrationLock:
@ -3459,10 +3451,6 @@ components:
- pniRegistrationIds - pniRegistrationIds
type: object type: object
properties: properties:
reglock:
type: string
description: "the registration lock password for the new phone number, if\
\ necessary"
sessionId: sessionId:
type: string type: string
description: |- description: |-
@ -3516,6 +3504,10 @@ components:
type: boolean type: boolean
valid: valid:
type: boolean type: boolean
reglock:
type: string
description: "the registration lock password for the new phone number, if\
\ necessary"
ECPublicKey: ECPublicKey:
type: object type: object
properties: properties:
@ -3523,8 +3515,6 @@ components:
type: integer type: integer
format: int32 format: int32
publicKeyBytes: publicKeyBytes:
type: array
items:
type: string type: string
format: byte format: byte
ECSignedPreKey: ECSignedPreKey:
@ -3875,9 +3865,6 @@ components:
type: object type: object
properties: properties:
credential: credential:
type: array
description: "A BackupAuthCredential, encoded in standard padded base64"
items:
type: string type: string
description: "A BackupAuthCredential, encoded in standard padded base64" description: "A BackupAuthCredential, encoded in standard padded base64"
format: byte format: byte
@ -4019,8 +4006,6 @@ components:
type: object type: object
properties: properties:
credential: credential:
type: array
items:
type: string type: string
format: byte format: byte
redemptionTime: redemptionTime:
@ -4032,24 +4017,18 @@ components:
type: object type: object
properties: properties:
createCallLinkCredentialRequest: createCallLinkCredentialRequest:
type: array
items:
type: string type: string
format: byte format: byte
DeliveryCertificate: DeliveryCertificate:
type: object type: object
properties: properties:
certificate: certificate:
type: array
items:
type: string type: string
format: byte format: byte
CallLinkAuthCredential: CallLinkAuthCredential:
type: object type: object
properties: properties:
credential: credential:
type: array
items:
type: string type: string
format: byte format: byte
redemptionTime: redemptionTime:
@ -4059,8 +4038,6 @@ components:
type: object type: object
properties: properties:
credential: credential:
type: array
items:
type: string type: string
format: byte format: byte
redemptionTime: redemptionTime:
@ -4128,8 +4105,6 @@ components:
type: integer type: integer
format: int64 format: int64
name: name:
type: array
items:
type: string type: string
format: byte format: byte
lastSeen: lastSeen:
@ -4221,8 +4196,6 @@ components:
type: object type: object
properties: properties:
receiptCredentialPresentation: receiptCredentialPresentation:
type: array
items:
type: string type: string
format: byte format: byte
visible: visible:
@ -4260,23 +4233,6 @@ components:
- ACI - ACI
- PNI - PNI
digest: digest:
type: array
description: |
A 32-byte digest of the client's repeated-use keys for the given identity type. The digest is calculated as:
SHA256(identityKeyBytes || signedEcPreKeyId || signedEcPreKeyIdBytes || lastResortKeyId || lastResortKeyBytes)
…where the elements of the hash are:
- identityKeyBytes: the serialized form of the client's public identity key as produced by libsignal (i.e. one
version byte followed by 32 bytes of key material for a total of 33 bytes)
- signedEcPreKeyId: an 8-byte, big-endian representation of the ID of the client's signed EC pre-key
- signedEcPreKeyBytes: the serialized form of the client's signed EC pre-key as produced by libsignal (i.e. one
version byte followed by 32 bytes of key material for a total of 33 bytes)
- lastResortKeyId: an 8-byte, big-endian representation of the ID of the client's last-resort Kyber key
- lastResortKeyBytes: the serialized form of the client's last-resort Kyber key as produced by libsignal (i.e.
one version byte followed by 1568 bytes of key material for a total of 1569 bytes)
items:
type: string type: string
description: | description: |
A 32-byte digest of the client's repeated-use keys for the given identity type. The digest is calculated as: A 32-byte digest of the client's repeated-use keys for the given identity type. The digest is calculated as:
@ -4343,8 +4299,6 @@ components:
type: object type: object
properties: properties:
accessKey: accessKey:
type: array
items:
type: string type: string
format: byte format: byte
GroupSendFullToken: GroupSendFullToken:
@ -4354,8 +4308,6 @@ components:
type: string type: string
format: date-time format: date-time
internalContentsForJNI: internalContentsForJNI:
type: array
items:
type: string type: string
format: byte format: byte
GroupSendTokenHeader: GroupSendTokenHeader:
@ -4403,8 +4355,6 @@ components:
type: object type: object
properties: properties:
token: token:
type: array
items:
type: string type: string
format: byte format: byte
AccountMismatchedDevices: AccountMismatchedDevices:
@ -4445,16 +4395,12 @@ components:
type: object type: object
properties: properties:
accessKeys: accessKeys:
type: array
items:
type: string type: string
format: byte format: byte
Recipient: Recipient:
type: object type: object
properties: properties:
devices: devices:
type: array
items:
type: string type: string
format: byte format: byte
devicesAndRegistrationIds: devicesAndRegistrationIds:
@ -4537,8 +4483,6 @@ components:
identityKey: identityKey:
$ref: '#/components/schemas/IdentityKey' $ref: '#/components/schemas/IdentityKey'
unidentifiedAccess: unidentifiedAccess:
type: array
items:
type: string type: string
format: byte format: byte
unrestrictedUnidentifiedAccess: unrestrictedUnidentifiedAccess:
@ -4566,8 +4510,6 @@ components:
identityKey: identityKey:
$ref: '#/components/schemas/IdentityKey' $ref: '#/components/schemas/IdentityKey'
unidentifiedAccess: unidentifiedAccess:
type: array
items:
type: string type: string
format: byte format: byte
unrestrictedUnidentifiedAccess: unrestrictedUnidentifiedAccess:
@ -4583,30 +4525,20 @@ components:
description: A service identifier is a tuple of a UUID and identity type description: A service identifier is a tuple of a UUID and identity type
that identifies an account and identity within the Signal service. that identifies an account and identity within the Signal service.
name: name:
type: array
items:
type: string type: string
format: byte format: byte
about: about:
type: array
items:
type: string type: string
format: byte format: byte
aboutEmoji: aboutEmoji:
type: array
items:
type: string type: string
format: byte format: byte
avatar: avatar:
type: string type: string
paymentAddress: paymentAddress:
type: array
items:
type: string type: string
format: byte format: byte
phoneNumberSharing: phoneNumberSharing:
type: array
items:
type: string type: string
format: byte format: byte
CredentialProfileResponse: CredentialProfileResponse:
@ -4615,8 +4547,6 @@ components:
identityKey: identityKey:
$ref: '#/components/schemas/IdentityKey' $ref: '#/components/schemas/IdentityKey'
unidentifiedAccess: unidentifiedAccess:
type: array
items:
type: string type: string
format: byte format: byte
unrestrictedUnidentifiedAccess: unrestrictedUnidentifiedAccess:
@ -4632,30 +4562,20 @@ components:
description: A service identifier is a tuple of a UUID and identity type description: A service identifier is a tuple of a UUID and identity type
that identifies an account and identity within the Signal service. that identifies an account and identity within the Signal service.
name: name:
type: array
items:
type: string type: string
format: byte format: byte
about: about:
type: array
items:
type: string type: string
format: byte format: byte
aboutEmoji: aboutEmoji:
type: array
items:
type: string type: string
format: byte format: byte
avatar: avatar:
type: string type: string
paymentAddress: paymentAddress:
type: array
items:
type: string type: string
format: byte format: byte
phoneNumberSharing: phoneNumberSharing:
type: array
items:
type: string type: string
format: byte format: byte
BatchIdentityCheckResponse: BatchIdentityCheckResponse:
@ -4678,8 +4598,6 @@ components:
type: string type: string
description: An identifier for an account based on the account's ACI description: An identifier for an account based on the account's ACI
fingerprint: fingerprint:
type: array
items:
type: string type: string
format: byte format: byte
BatchIdentityCheckRequest: BatchIdentityCheckRequest:
@ -4699,41 +4617,25 @@ components:
- version - version
type: object type: object
properties: properties:
avatar:
type: boolean
badgeIds:
type: array
items:
type: string
commitment: commitment:
$ref: '#/components/schemas/ProfileKeyCommitment' $ref: '#/components/schemas/ProfileKeyCommitment'
version: version:
type: string type: string
name: name:
type: array
items:
type: string type: string
format: byte format: byte
aboutEmoji: aboutEmoji:
type: array
items:
type: string type: string
format: byte format: byte
about: about:
type: array
items:
type: string type: string
format: byte format: byte
paymentAddress: paymentAddress:
type: array
items:
type: string type: string
format: byte format: byte
sameAvatar: sameAvatar:
type: boolean type: boolean
phoneNumberSharing: phoneNumberSharing:
type: array
items:
type: string type: string
format: byte format: byte
avatarChange: avatarChange:
@ -4742,12 +4644,16 @@ components:
- UNCHANGED - UNCHANGED
- CLEAR - CLEAR
- UPDATE - UPDATE
avatar:
type: boolean
badgeIds:
type: array
items:
type: string
ProfileKeyCommitment: ProfileKeyCommitment:
type: object type: object
properties: properties:
internalContentsForJNI: internalContentsForJNI:
type: array
items:
type: string type: string
format: byte format: byte
ProvisioningMessage: ProvisioningMessage:
@ -4776,11 +4682,6 @@ components:
metadata object. Must be provided if `recoveryPassword` is not provided; must not be metadata object. Must be provided if `recoveryPassword` is not provided; must not be
provided if `recoveryPassword` is provided. provided if `recoveryPassword` is provided.
recoveryPassword: recoveryPassword:
type: array
description: |
A base64-encoded registration recovery password. Must be provided if `sessionId` is
not provided; must not be provided if `sessionId` is provided
items:
type: string type: string
description: | description: |
A base64-encoded registration recovery password. Must be provided if `sessionId` is A base64-encoded registration recovery password. Must be provided if `sessionId` is
@ -4857,6 +4758,9 @@ components:
- tokens - tokens
type: object type: object
properties: properties:
number:
type: string
description: The e164-formatted phone number.
tokens: tokens:
maxItems: 10 maxItems: 10
minItems: 0 minItems: 0
@ -4865,15 +4769,10 @@ components:
A list of SVR tokens, previously retrieved from `backup/auth`. Tokens should be the A list of SVR tokens, previously retrieved from `backup/auth`. Tokens should be the
of the form "username:password". May contain at most 10 tokens. of the form "username:password". May contain at most 10 tokens.
items: items:
maxLength: 10
minLength: 0
type: string type: string
description: |- description: |-
A list of SVR tokens, previously retrieved from `backup/auth`. Tokens should be the A list of SVR tokens, previously retrieved from `backup/auth`. Tokens should be the
of the form "username:password". May contain at most 10 tokens. of the form "username:password". May contain at most 10 tokens.
number:
type: string
description: The e164-formatted phone number.
AuthCheckResponseV3: AuthCheckResponseV3:
required: required:
- matches - matches
@ -5005,8 +4904,6 @@ components:
paymentIntentId: paymentIntentId:
type: string type: string
receiptCredentialRequest: receiptCredentialRequest:
type: array
items:
type: string type: string
format: byte format: byte
processor: processor:
@ -5058,8 +4955,6 @@ components:
type: object type: object
properties: properties:
receiptCredentialRequest: receiptCredentialRequest:
type: array
items:
type: string type: string
format: byte format: byte
VerificationSessionResponse: VerificationSessionResponse: