adding sealing support to api spec

This commit is contained in:
Roland Osborne 2022-12-03 15:30:12 -08:00
parent 6e4d2cb80d
commit 67c4469dcc

View File

@ -563,6 +563,34 @@ paths:
schema: schema:
type: boolean type: boolean
/account/seal:
put:
tags:
- account
description: Set sealing key for account.
operationId: set-account-seal
parameters:
- name: agent
in: query
description: agent token
required: false
schema:
type: string
responses:
'201':
description: success
'401':
description: permission denied
'410':
description: account disabled
'500':
description: internal server error
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Seal'
/account/searchable: /account/searchable:
put: put:
tags: tags:
@ -3664,6 +3692,23 @@ components:
pushSupported: pushSupported:
type: boolean type: boolean
Seal:
type: object
required:
- salt
- privateKeyEncrypted
- publicKey
properties:
salt:
type: string
format: base64 encoded data
privateKeyEncrypted:
type: string
format: base64 encoded data
publicKey:
type: string
format: base64 encoded data
AccountStatus: AccountStatus:
type: object type: object
required: required:
@ -3688,6 +3733,10 @@ components:
type: boolean type: boolean
pushEnabled: pushEnabled:
type: boolean type: boolean
sealable:
type: boolean
seal:
$ref: '#/components/schemas/Seal'
AccountProfile: AccountProfile:
type: object type: object
@ -3737,6 +3786,9 @@ components:
revision: revision:
type: integer type: integer
format: int64 format: int64
seal:
type: string
format: base64 encoded data
version: version:
type: string type: string
node: node: