From 6d989edc66e7b541fcf97c2a4a6f91cbf960060a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 1 Feb 2021 15:39:13 +0100 Subject: Add ability to update plugin auth --- support/doc/api/openapi.yaml | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) (limited to 'support') diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml index b05a113ca..49616bcaa 100644 --- a/support/doc/api/openapi.yaml +++ b/support/doc/api/openapi.yaml @@ -3898,6 +3898,13 @@ components: - 2 description: 'The user role (Admin = `0`, Moderator = `1`, User = `2`)' example: 2 + UserAdminFlags: + type: integer + enum: + - 0 + - 1 + description: 'Admin flags for the user (None = `0`, Bypass video blacklist = `1`)' + example: 1 VideoStateConstant: properties: @@ -5022,6 +5029,9 @@ components: type: string format: email description: The user email + pluginAuth: + type: string + description: Auth plugin to use to authenticate the user theme: type: string description: Theme enabled by this user @@ -5099,8 +5109,13 @@ components: videoQuotaDaily: type: integer description: The user daily video quota + channelName: + type: string + description: The user default channel username role: $ref: '#/components/schemas/UserRole' + adminFlags: + $ref: '#/components/schemas/UserAdminFlags' required: - username - password @@ -5117,20 +5132,26 @@ components: type: string format: email description: The updated email of the user + emailVerified: + type: boolean + description: Set the email as verified videoQuota: type: integer description: The updated video quota of the user videoQuotaDaily: type: integer description: The updated daily video quota of the user + pluginAuth: + type: string + nullable: true + description: The auth plugin to use to authenticate the user + example: 'peertube-plugin-auth-saml2' role: $ref: '#/components/schemas/UserRole' + adminFlags: + $ref: '#/components/schemas/UserAdminFlags' required: - id - - email - - videoQuota - - videoQuotaDaily - - role UpdateMe: properties: password: -- cgit v1.2.3