diff --git a/pkg/swagger/docs.go b/pkg/swagger/docs.go index 124e751cd..f3199a2b0 100644 --- a/pkg/swagger/docs.go +++ b/pkg/swagger/docs.go @@ -6439,6 +6439,30 @@ const docTemplate = `{ } } }, + "/user/export": { + "get": { + "security": [ + { + "JWTKeyAuth": [] + } + ], + "produces": [ + "application/json" + ], + "tags": [ + "user" + ], + "summary": "Get current user data export", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.UserExportStatus" + } + } + } + } + }, "/user/export/download": { "post": { "security": [ @@ -9537,6 +9561,23 @@ const docTemplate = `{ } } }, + "v1.UserExportStatus": { + "type": "object", + "properties": { + "created": { + "type": "string" + }, + "expires": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "size": { + "type": "integer" + } + } + }, "v1.UserPassword": { "type": "object", "properties": { diff --git a/pkg/swagger/swagger.json b/pkg/swagger/swagger.json index b332da35c..f82e69b01 100644 --- a/pkg/swagger/swagger.json +++ b/pkg/swagger/swagger.json @@ -6431,6 +6431,30 @@ } } }, + "/user/export": { + "get": { + "security": [ + { + "JWTKeyAuth": [] + } + ], + "produces": [ + "application/json" + ], + "tags": [ + "user" + ], + "summary": "Get current user data export", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.UserExportStatus" + } + } + } + } + }, "/user/export/download": { "post": { "security": [ @@ -9529,6 +9553,23 @@ } } }, + "v1.UserExportStatus": { + "type": "object", + "properties": { + "created": { + "type": "string" + }, + "expires": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "size": { + "type": "integer" + } + } + }, "v1.UserPassword": { "type": "object", "properties": { diff --git a/pkg/swagger/swagger.yaml b/pkg/swagger/swagger.yaml index 250295ae0..4fe40e011 100644 --- a/pkg/swagger/swagger.yaml +++ b/pkg/swagger/swagger.yaml @@ -1408,6 +1408,17 @@ definitions: token: type: string type: object + v1.UserExportStatus: + properties: + created: + type: string + expires: + type: string + id: + type: integer + size: + type: integer + type: object v1.UserPassword: properties: new_password: @@ -6065,6 +6076,20 @@ paths: summary: Request the deletion of the user tags: - user + /user/export: + get: + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/v1.UserExportStatus' + security: + - JWTKeyAuth: [] + summary: Get current user data export + tags: + - user /user/export/download: post: consumes: