// Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs

import "github.com/swaggo/swag"

const docTemplate = `{
    "schemes": {{ marshal .Schemes }},
    "swagger": "2.0",
    "info": {
        "description": "{{escape .Description}}",
        "title": "{{.Title}}",
        "termsOfService": "http://swagger.io/terms/",
        "contact": {
            "name": "API Support",
            "email": "dev@tsundata.com"
        },
        "license": {
            "name": "GPL 3.0",
            "url": "https://github.com/flowline-io/flowbot/blob/master/LICENSE"
        },
        "version": "{{.Version}}"
    },
    "host": "{{.Host}}",
    "basePath": "{{.BasePath}}",
    "paths": {
        "/dev/example": {
            "get": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "dev"
                ],
                "summary": "Show example",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/protocol.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/types.KV"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/markdown/data": {
            "post": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "markdown"
                ],
                "summary": "save markdown data",
                "parameters": [
                    {
                        "description": "Data",
                        "name": "data",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "type": "object",
                            "additionalProperties": {
                                "type": "string"
                            }
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/protocol.Response"
                        }
                    }
                }
            }
        },
        "/markdown/editor/{flag}": {
            "get": {
                "produces": [
                    "text/html"
                ],
                "tags": [
                    "markdown"
                ],
                "summary": "markdown editor page",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Flag",
                        "name": "flag",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {}
            }
        },
        "/okr/key_result": {
            "post": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "okr"
                ],
                "summary": "KeyResult create",
                "parameters": [
                    {
                        "description": "KeyResult data",
                        "name": "keyResult",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/model.KeyResult"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/protocol.Response"
                        }
                    }
                }
            }
        },
        "/okr/key_result/{id}/value": {
            "post": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "okr"
                ],
                "summary": "KeyResult value create",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "key result id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "KeyResultValue data",
                        "name": "KeyResultValue",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/model.KeyResultValue"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/protocol.Response"
                        }
                    }
                }
            }
        },
        "/okr/key_result/{id}/values": {
            "get": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "okr"
                ],
                "summary": "key result value list",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "key result id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/protocol.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/model.KeyResultValue"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/okr/key_result/{sequence}": {
            "put": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "okr"
                ],
                "summary": "KeyResult update",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Sequence",
                        "name": "sequence",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "KeyResult data",
                        "name": "objective",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/model.KeyResult"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/protocol.Response"
                        }
                    }
                }
            },
            "delete": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "okr"
                ],
                "summary": "KeyResult delete",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Sequence",
                        "name": "sequence",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/protocol.Response"
                        }
                    }
                }
            }
        },
        "/okr/key_result_value/{id}": {
            "get": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "okr"
                ],
                "summary": "KeyResult value detail",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "key result id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/protocol.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/model.KeyResultValue"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            },
            "delete": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "okr"
                ],
                "summary": "KeyResult value delete",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "key result id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/protocol.Response"
                        }
                    }
                }
            }
        },
        "/okr/objective": {
            "post": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "okr"
                ],
                "summary": "objective create",
                "parameters": [
                    {
                        "description": "objective data",
                        "name": "objective",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/model.Objective"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/protocol.Response"
                        }
                    }
                }
            }
        },
        "/okr/objective/{sequence}": {
            "get": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "okr"
                ],
                "summary": "objective detail",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Sequence",
                        "name": "sequence",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/protocol.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/model.Objective"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            },
            "put": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "okr"
                ],
                "summary": "objective update",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Sequence",
                        "name": "sequence",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "objective data",
                        "name": "objective",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/model.Objective"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/protocol.Response"
                        }
                    }
                }
            },
            "delete": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "okr"
                ],
                "summary": "objective delete",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Sequence",
                        "name": "sequence",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/protocol.Response"
                        }
                    }
                }
            }
        },
        "/okr/objectives": {
            "get": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "okr"
                ],
                "summary": "objective list",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/protocol.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/model.Objective"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/user/dashboard": {
            "get": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "dev"
                ],
                "summary": "Show dashboard",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/protocol.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/types.KV"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/workflow/actions": {
            "get": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "workflow"
                ],
                "summary": "get chatbot actions",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/protocol.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "additionalProperties": {
                                                "type": "array",
                                                "items": {
                                                    "$ref": "#/definitions/workflow.rule"
                                                }
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/workflow/job/{id}": {
            "get": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "workflow"
                ],
                "summary": "workflow job detail",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Job ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/protocol.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/model.Job"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/workflow/job/{id}/rerun": {
            "post": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "workflow"
                ],
                "summary": "workflow job rerun",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Job ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/protocol.Response"
                        }
                    }
                }
            }
        },
        "/workflow/workflow": {
            "post": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "workflow"
                ],
                "summary": "workflow create",
                "parameters": [
                    {
                        "description": "workflow script data",
                        "name": "script",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/model.WorkflowScript"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/protocol.Response"
                        }
                    }
                }
            }
        },
        "/workflow/workflow/{id}": {
            "get": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "workflow"
                ],
                "summary": "workflow detail",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/protocol.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/model.Workflow"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            },
            "put": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "workflow"
                ],
                "summary": "workflow update",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "workflow script data",
                        "name": "script",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/model.WorkflowScript"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/protocol.Response"
                        }
                    }
                }
            },
            "delete": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "workflow"
                ],
                "summary": "workflow delete",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/protocol.Response"
                        }
                    }
                }
            }
        },
        "/workflow/workflow/{id}/jobs": {
            "get": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "workflow"
                ],
                "summary": "workflow job list",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Workflow ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/protocol.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/model.Job"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/workflow/workflow/{id}/script": {
            "get": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "workflow"
                ],
                "summary": "workflow script detail",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Workflow ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/protocol.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/model.WorkflowScript"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/workflow/workflow/{id}/triggers": {
            "get": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "workflow"
                ],
                "summary": "workflow trigger list",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Workflow ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/protocol.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/model.WorkflowTrigger"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/workflow/workflows": {
            "get": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "workflow"
                ],
                "summary": "workflow list",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/protocol.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/model.Workflow"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        }
    },
    "definitions": {
        "model.Dag": {
            "type": "object",
            "properties": {
                "created_at": {
                    "type": "string"
                },
                "edges": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Edge"
                    }
                },
                "id": {
                    "type": "integer"
                },
                "nodes": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Node"
                    }
                },
                "script_id": {
                    "type": "integer"
                },
                "script_version": {
                    "type": "integer"
                },
                "updated_at": {
                    "type": "string"
                },
                "workflow_id": {
                    "type": "integer"
                }
            }
        },
        "model.Edge": {
            "type": "object",
            "properties": {
                "connector": {
                    "type": "object",
                    "properties": {
                        "name": {
                            "type": "string"
                        }
                    }
                },
                "edgeContentHeight": {
                    "type": "integer"
                },
                "edgeContentWidth": {
                    "type": "integer"
                },
                "id": {
                    "type": "string"
                },
                "label": {
                    "type": "string"
                },
                "router": {
                    "type": "object",
                    "properties": {
                        "name": {
                            "type": "string"
                        }
                    }
                },
                "source": {
                    "type": "string"
                },
                "sourcePort": {
                    "type": "string"
                },
                "sourcePortId": {
                    "type": "string"
                },
                "target": {
                    "type": "string"
                },
                "targetPort": {
                    "type": "string"
                },
                "targetPortId": {
                    "type": "string"
                }
            }
        },
        "model.JSON": {
            "type": "object",
            "additionalProperties": true
        },
        "model.Job": {
            "type": "object",
            "properties": {
                "created_at": {
                    "type": "string"
                },
                "dag_id": {
                    "type": "integer"
                },
                "ended_at": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "script_version": {
                    "type": "integer"
                },
                "started_at": {
                    "type": "string"
                },
                "state": {
                    "$ref": "#/definitions/model.JobState"
                },
                "steps": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Step"
                    }
                },
                "topic": {
                    "type": "string"
                },
                "trigger_id": {
                    "type": "integer"
                },
                "uid": {
                    "type": "string"
                },
                "updated_at": {
                    "type": "string"
                },
                "workflow_id": {
                    "type": "integer"
                }
            }
        },
        "model.JobState": {
            "type": "integer",
            "enum": [
                0,
                1,
                2,
                3,
                4,
                5,
                6
            ],
            "x-enum-varnames": [
                "JobStateUnknown",
                "JobReady",
                "JobStart",
                "JobRunning",
                "JobSucceeded",
                "JobCanceled",
                "JobFailed"
            ]
        },
        "model.KeyResult": {
            "type": "object",
            "properties": {
                "created_at": {
                    "type": "string"
                },
                "current_value": {
                    "type": "integer"
                },
                "id": {
                    "type": "integer"
                },
                "initial_value": {
                    "type": "integer"
                },
                "key_result_values": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.KeyResultValue"
                    }
                },
                "memo": {
                    "type": "string"
                },
                "objective_id": {
                    "type": "integer"
                },
                "sequence": {
                    "type": "integer"
                },
                "tag": {
                    "type": "string"
                },
                "target_value": {
                    "type": "integer"
                },
                "title": {
                    "type": "string"
                },
                "todos": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Todo"
                    }
                },
                "topic": {
                    "type": "string"
                },
                "uid": {
                    "type": "string"
                },
                "updated_at": {
                    "type": "string"
                },
                "value_mode": {
                    "$ref": "#/definitions/model.ValueModeType"
                }
            }
        },
        "model.KeyResultValue": {
            "type": "object",
            "properties": {
                "created_at": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "key_result_id": {
                    "type": "integer"
                },
                "memo": {
                    "type": "string"
                },
                "updated_at": {
                    "type": "string"
                },
                "value": {
                    "type": "integer"
                }
            }
        },
        "model.Node": {
            "type": "object",
            "properties": {
                "_order": {
                    "type": "integer"
                },
                "bot": {
                    "type": "string"
                },
                "connections": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "describe": {
                    "type": "string"
                },
                "group": {
                    "type": "string"
                },
                "height": {
                    "type": "integer"
                },
                "id": {
                    "type": "string"
                },
                "isGroup": {
                    "type": "boolean"
                },
                "label": {
                    "type": "string"
                },
                "parameters": {
                    "type": "object",
                    "additionalProperties": true
                },
                "parentId": {
                    "type": "string"
                },
                "ports": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {
                            "connected": {
                                "type": "boolean"
                            },
                            "group": {
                                "type": "string"
                            },
                            "id": {
                                "type": "string"
                            },
                            "tooltip": {
                                "type": "string"
                            },
                            "type": {
                                "type": "string"
                            }
                        }
                    }
                },
                "renderKey": {
                    "type": "string"
                },
                "rule_id": {
                    "type": "string"
                },
                "status": {
                    "$ref": "#/definitions/model.NodeStatus"
                },
                "variables": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "width": {
                    "type": "integer"
                },
                "x": {
                    "type": "integer"
                },
                "y": {
                    "type": "integer"
                }
            }
        },
        "model.NodeStatus": {
            "type": "string",
            "enum": [
                "default",
                "success",
                "processing",
                "error",
                "warning"
            ],
            "x-enum-varnames": [
                "NodeDefault",
                "NodeSuccess",
                "NodeProcessing",
                "NodeError",
                "NodeWarning"
            ]
        },
        "model.Objective": {
            "type": "object",
            "properties": {
                "created_data": {
                    "type": "string"
                },
                "current_value": {
                    "type": "integer"
                },
                "feasibility": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "is_plan": {
                    "type": "integer"
                },
                "key_results": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.KeyResult"
                    }
                },
                "memo": {
                    "type": "string"
                },
                "motive": {
                    "type": "string"
                },
                "plan_end": {
                    "type": "string"
                },
                "plan_start": {
                    "type": "string"
                },
                "progress": {
                    "type": "integer"
                },
                "reviews": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Review"
                    }
                },
                "sequence": {
                    "type": "integer"
                },
                "tag": {
                    "type": "string"
                },
                "title": {
                    "type": "string"
                },
                "topic": {
                    "type": "string"
                },
                "total_value": {
                    "type": "integer"
                },
                "uid": {
                    "type": "string"
                },
                "updated_date": {
                    "type": "string"
                }
            }
        },
        "model.Review": {
            "type": "object",
            "properties": {
                "created_at": {
                    "type": "string"
                },
                "evaluations": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.ReviewEvaluation"
                    }
                },
                "id": {
                    "type": "integer"
                },
                "objective_id": {
                    "type": "integer"
                },
                "rating": {
                    "type": "integer"
                },
                "topic": {
                    "type": "string"
                },
                "type": {
                    "$ref": "#/definitions/model.ReviewType"
                },
                "uid": {
                    "type": "string"
                },
                "updated_at": {
                    "type": "string"
                }
            }
        },
        "model.ReviewEvaluation": {
            "type": "object",
            "properties": {
                "created_at": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "question": {
                    "type": "string"
                },
                "reason": {
                    "type": "string"
                },
                "review_id": {
                    "type": "integer"
                },
                "solving": {
                    "type": "string"
                },
                "topic": {
                    "type": "string"
                },
                "uid": {
                    "type": "string"
                },
                "updated_at": {
                    "type": "string"
                }
            }
        },
        "model.ReviewType": {
            "type": "integer",
            "enum": [
                0,
                1,
                2
            ],
            "x-enum-varnames": [
                "ReviewTypeUnknown",
                "ReviewMid",
                "ReviewEnd"
            ]
        },
        "model.Step": {
            "type": "object",
            "properties": {
                "action": {
                    "$ref": "#/definitions/model.JSON"
                },
                "created_at": {
                    "type": "string"
                },
                "depend": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "describe": {
                    "type": "string"
                },
                "ended_at": {
                    "type": "string"
                },
                "error": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "input": {
                    "$ref": "#/definitions/model.JSON"
                },
                "job_id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                },
                "node_id": {
                    "type": "string"
                },
                "output": {
                    "$ref": "#/definitions/model.JSON"
                },
                "started_at": {
                    "type": "string"
                },
                "state": {
                    "$ref": "#/definitions/model.StepState"
                },
                "topic": {
                    "type": "string"
                },
                "uid": {
                    "type": "string"
                },
                "updated_at": {
                    "type": "string"
                }
            }
        },
        "model.StepState": {
            "type": "integer",
            "enum": [
                0,
                1,
                2,
                3,
                4,
                5,
                6,
                7,
                8
            ],
            "x-enum-varnames": [
                "StepStateUnknown",
                "StepCreated",
                "StepReady",
                "StepStart",
                "StepRunning",
                "StepSucceeded",
                "StepFailed",
                "StepCanceled",
                "StepSkipped"
            ]
        },
        "model.Todo": {
            "type": "object",
            "properties": {
                "category": {
                    "type": "string"
                },
                "complete": {
                    "type": "integer"
                },
                "content": {
                    "type": "string"
                },
                "created_at": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "is_remind_at_time": {
                    "type": "integer"
                },
                "key_result_id": {
                    "type": "integer"
                },
                "parent_id": {
                    "type": "integer"
                },
                "priority": {
                    "type": "integer"
                },
                "remark": {
                    "type": "string"
                },
                "remind_at": {
                    "type": "integer"
                },
                "repeat_end_at": {
                    "type": "integer"
                },
                "repeat_method": {
                    "type": "string"
                },
                "repeat_rule": {
                    "type": "string"
                },
                "sequence": {
                    "type": "integer"
                },
                "sub_todos": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Todo"
                    }
                },
                "topic": {
                    "type": "string"
                },
                "uid": {
                    "type": "string"
                },
                "updated_at": {
                    "type": "string"
                }
            }
        },
        "model.TriggerType": {
            "type": "string",
            "enum": [
                "cron",
                "manual",
                "webhook"
            ],
            "x-enum-varnames": [
                "TriggerCron",
                "TriggerManual",
                "TriggerWebhook"
            ]
        },
        "model.ValueModeType": {
            "type": "string",
            "enum": [
                "sum",
                "last",
                "avg",
                "max"
            ],
            "x-enum-varnames": [
                "ValueSumMode",
                "ValueLastMode",
                "ValueAvgMode",
                "ValueMaxMode"
            ]
        },
        "model.Workflow": {
            "type": "object",
            "properties": {
                "canceled_count": {
                    "type": "integer"
                },
                "created_at": {
                    "type": "string"
                },
                "dag": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Dag"
                    }
                },
                "describe": {
                    "type": "string"
                },
                "failed_count": {
                    "type": "integer"
                },
                "flag": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                },
                "running_count": {
                    "type": "integer"
                },
                "state": {
                    "$ref": "#/definitions/model.WorkflowState"
                },
                "successful_count": {
                    "type": "integer"
                },
                "topic": {
                    "type": "string"
                },
                "triggers": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.WorkflowTrigger"
                    }
                },
                "uid": {
                    "type": "string"
                },
                "updated_at": {
                    "type": "string"
                }
            }
        },
        "model.WorkflowScript": {
            "type": "object",
            "properties": {
                "code": {
                    "type": "string"
                },
                "created_at": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "lang": {
                    "$ref": "#/definitions/model.WorkflowScriptLang"
                },
                "updated_at": {
                    "type": "string"
                },
                "version": {
                    "type": "integer"
                },
                "workflow_id": {
                    "type": "integer"
                }
            }
        },
        "model.WorkflowScriptLang": {
            "type": "string",
            "enum": [
                "yaml"
            ],
            "x-enum-varnames": [
                "WorkflowScriptYaml"
            ]
        },
        "model.WorkflowState": {
            "type": "integer",
            "enum": [
                0,
                1,
                2
            ],
            "x-enum-varnames": [
                "WorkflowStateUnknown",
                "WorkflowEnable",
                "WorkflowDisable"
            ]
        },
        "model.WorkflowTrigger": {
            "type": "object",
            "properties": {
                "count": {
                    "type": "integer"
                },
                "created_at": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "rule": {
                    "$ref": "#/definitions/model.JSON"
                },
                "state": {
                    "$ref": "#/definitions/model.WorkflowTriggerState"
                },
                "type": {
                    "$ref": "#/definitions/model.TriggerType"
                },
                "updated_at": {
                    "type": "string"
                },
                "workflow_id": {
                    "type": "integer"
                }
            }
        },
        "model.WorkflowTriggerState": {
            "type": "integer",
            "enum": [
                0,
                1,
                2
            ],
            "x-enum-varnames": [
                "WorkflowTriggerStateUnknown",
                "WorkflowTriggerEnable",
                "WorkflowTriggerDisable"
            ]
        },
        "protocol.Response": {
            "type": "object",
            "properties": {
                "data": {
                    "description": "Response data"
                },
                "message": {
                    "description": "Error message, it is recommended to fill in a human-readable error message when the action fails to execute,\nor an empty string when it succeeds.",
                    "type": "string"
                },
                "retcode": {
                    "description": "The return code, which must conform to the return code rules defined later on this page",
                    "type": "integer"
                },
                "status": {
                    "description": "Execution status (success or failure), must be one of ok and failed,\nindicating successful and unsuccessful execution, respectively.",
                    "allOf": [
                        {
                            "$ref": "#/definitions/protocol.ResponseStatus"
                        }
                    ]
                }
            }
        },
        "protocol.ResponseStatus": {
            "type": "string",
            "enum": [
                "ok",
                "failed"
            ],
            "x-enum-varnames": [
                "Success",
                "Failed"
            ]
        },
        "types.FormField": {
            "type": "object",
            "properties": {
                "key": {
                    "type": "string"
                },
                "label": {
                    "type": "string"
                },
                "option": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "placeholder": {
                    "type": "string"
                },
                "rule": {
                    "type": "string"
                },
                "type": {
                    "$ref": "#/definitions/types.FormFieldType"
                },
                "value": {},
                "value_type": {
                    "$ref": "#/definitions/types.FormFieldValueType"
                }
            }
        },
        "types.FormFieldType": {
            "type": "string",
            "enum": [
                "text",
                "password",
                "number",
                "color",
                "file",
                "month",
                "date",
                "time",
                "email",
                "url",
                "radio",
                "checkbox",
                "range",
                "select",
                "textarea",
                "hidden"
            ],
            "x-enum-varnames": [
                "FormFieldText",
                "FormFieldPassword",
                "FormFieldNumber",
                "FormFieldColor",
                "FormFieldFile",
                "FormFieldMonth",
                "FormFieldDate",
                "FormFieldTime",
                "FormFieldEmail",
                "FormFieldUrl",
                "FormFieldRadio",
                "FormFieldCheckbox",
                "FormFieldRange",
                "FormFieldSelect",
                "FormFieldTextarea",
                "FormFieldHidden"
            ]
        },
        "types.FormFieldValueType": {
            "type": "string",
            "enum": [
                "string",
                "bool",
                "int64",
                "float64",
                "string_slice",
                "int64_slice",
                "float64_slice"
            ],
            "x-enum-varnames": [
                "FormFieldValueString",
                "FormFieldValueBool",
                "FormFieldValueInt64",
                "FormFieldValueFloat64",
                "FormFieldValueStringSlice",
                "FormFieldValueInt64Slice",
                "FormFieldValueFloat64Slice"
            ]
        },
        "types.KV": {
            "type": "object",
            "additionalProperties": true
        },
        "workflow.rule": {
            "type": "object",
            "properties": {
                "bot": {
                    "type": "string"
                },
                "desc": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "input_schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/types.FormField"
                    }
                },
                "output_schema": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/types.FormField"
                    }
                },
                "title": {
                    "type": "string"
                }
            }
        }
    }
}`

// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
	Version:          "1.0",
	Host:             "localhost:6060",
	BasePath:         "/service",
	Schemes:          []string{},
	Title:            "Flowbot API",
	Description:      "Flowbot Chatbot API",
	InfoInstanceName: "swagger",
	SwaggerTemplate:  docTemplate,
	LeftDelim:        "{{",
	RightDelim:       "}}",
}

func init() {
	swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
}
