Skip to content

Fully autonomous AI Agents system capable of performing complex penetration testing tasks

docs(swagger): regenerate for the container-files Failures field

Sergey Kozyrenko345b91e4c1b4
diff --git a/backend/pkg/server/docs/docs.go b/backend/pkg/server/docs/docs.go
index 69a00d2a..cd477efe 100644
--- a/backend/pkg/server/docs/docs.go
+++ b/backend/pkg/server/docs/docs.go
@@ -7150,6 +7150,57 @@ const docTemplate = `{
}
}
},
+ "/user/name": {
+ "put": {
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "User"
+ ],
+ "summary": "Change current account display name",
+ "parameters": [
+ {
+ "description": "new display name",
+ "name": "json",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/models.NameChange"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "account name updated successful",
+ "schema": {
+ "$ref": "#/definitions/SuccessResponse"
+ }
+ },
+ "400": {
+ "description": "invalid account name form data",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ },
+ "404": {
+ "description": "current user not found",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ },
+ "500": {
+ "description": "internal error on updating account name",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
"/user/password": {
"put": {
"consumes": [
@@ -8289,9 +8340,29 @@ const docTemplate = `{
}
}
},
+ "models.ContainerFileError": {
+ "type": "object",
+ "properties": {
+ "message": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ }
+ }
+ },
"models.ContainerFiles": {
"type": "object",
"properties": {
+ "failures": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/models.ContainerFileError"
+ }
+ },
"files": {
"type": "array",
"items": {
@@ -9115,6 +9186,19 @@ const docTemplate = `{
}
}
},
+ "models.NameChange": {
+ "type": "object",
+ "required": [
+ "name"
+ ],
+ "properties": {
+ "name": {
+ "type": "string",
+ "maxLength": 70,
+ "minLength": 1
+ }
+ }
+ },
"models.Password": {
"type": "object",
"required": [
diff --git a/backend/pkg/server/docs/swagger.json b/backend/pkg/server/docs/swagger.json
index 43e9a260..989a8805 100644
--- a/backend/pkg/server/docs/swagger.json
+++ b/backend/pkg/server/docs/swagger.json
@@ -7142,6 +7142,57 @@
}
}
},
+ "/user/name": {
+ "put": {
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "User"
+ ],
+ "summary": "Change current account display name",
+ "parameters": [
+ {
+ "description": "new display name",
+ "name": "json",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/models.NameChange"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "account name updated successful",
+ "schema": {
+ "$ref": "#/definitions/SuccessResponse"
+ }
+ },
+ "400": {
+ "description": "invalid account name form data",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ },
+ "404": {
+ "description": "current user not found",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ },
+ "500": {
+ "description": "internal error on updating account name",
+ "schema": {
+ "$ref": "#/definitions/ErrorResponse"
+ }
+ }
+ }
+ }
+ },
"/user/password": {
"put": {
"consumes": [
@@ -8281,9 +8332,29 @@
}
}
},
+ "models.ContainerFileError": {
+ "type": "object",
+ "properties": {
+ "message": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "type": "string"
+ }
+ }
+ },
"models.ContainerFiles": {
"type": "object",
"properties": {
+ "failures": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/models.ContainerFileError"
+ }
+ },
"files": {
"type": "array",
"items": {
@@ -9107,6 +9178,19 @@
}
}
},
+ "models.NameChange": {
+ "type": "object",
+ "required": [
+ "name"
+ ],
+ "properties": {
+ "name": {
+ "type": "string",
+ "maxLength": 70,
+ "minLength": 1
+ }
+ }
+ },
"models.Password": {
"type": "object",
"required": [
diff --git a/backend/pkg/server/docs/swagger.yaml b/backend/pkg/server/docs/swagger.yaml
index 66cbeb70..3f2172a5 100644
--- a/backend/pkg/server/docs/swagger.yaml
+++ b/backend/pkg/server/docs/swagger.yaml
@@ -442,8 +442,21 @@ definitions:
size:
type: integer
type: object
+ models.ContainerFileError:
+ properties:
+ message:
+ type: string
+ name:
+ type: string
+ path:
+ type: string
+ type: object
models.ContainerFiles:
properties:
+ failures:
+ items:
+ $ref: '#/definitions/models.ContainerFileError'
+ type: array
files:
items:
$ref: '#/definitions/models.ContainerFile'
@@ -1033,6 +1046,15 @@ definitions:
- result_format
- type
type: object
+ models.NameChange:
+ properties:
+ name:
+ maxLength: 70
+ minLength: 1
+ type: string
+ required:
+ - name
+ type: object
models.Password:
properties:
confirm_password:
@@ -6766,6 +6788,39 @@ paths:
summary: Update email for current user (account)
tags:
- Users
+ /user/name:
+ put:
+ consumes:
+ - application/json
+ parameters:
+ - description: new display name
+ in: body
+ name: json
+ required: true
+ schema:
+ $ref: '#/definitions/models.NameChange'
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: account name updated successful
+ schema:
+ $ref: '#/definitions/SuccessResponse'
+ "400":
+ description: invalid account name form data
+ schema:
+ $ref: '#/definitions/ErrorResponse'
+ "404":
+ description: current user not found
+ schema:
+ $ref: '#/definitions/ErrorResponse'
+ "500":
+ description: internal error on updating account name
+ schema:
+ $ref: '#/definitions/ErrorResponse'
+ summary: Change current account display name
+ tags:
+ - User
/user/password:
put:
consumes: