{
  "openapi": "3.0.1",
  "info": {
    "title": "Zappr API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.zappr.ai"
    }
  ],
  "paths": {
    "/v1/projects/{project-id}/ai/start-conversation": {
      "post": {
        "tags": [
          "Ai"
        ],
        "summary": "Start new conversation.",
        "description": "Initiates a new conversation for a given project.",
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "X-Api-Ver",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/StartConversationSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/StartConversationSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/StartConversationSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "This endpoint returns a JWT (JSON Web Token) as a string if the request is successful (unique conversation token).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        },
        "deprecated": true
      }
    },
    "/v1/projects/{project-id}/ai/set-variables": {
      "post": {
        "tags": [
          "Ai"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/VariablesSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/VariablesSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/VariablesSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/projects/{project-id}/ai/variables": {
      "get": {
        "tags": [
          "Ai"
        ],
        "summary": "Get variables.",
        "description": "Retrieves the variables for a given project.",
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "token",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the variables as a JSON object.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VariablesSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      },
      "delete": {
        "tags": [
          "Ai"
        ],
        "summary": "Delete variables.",
        "description": "Deletes variables for a given project based on a list of keys.",
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/DeleteVariablesSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/DeleteVariablesSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/DeleteVariablesSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns a 200 OK status code if the variables are successfully deleted."
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/ai/conversation": {
      "get": {
        "tags": [
          "Ai"
        ],
        "summary": "Get conversation messages.",
        "description": "Allows clients to retrieve a list of messages from a conversation by providing a project ID and a chat token.",
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "token",
            "in": "query",
            "description": "A JWT token that contains the chat session information.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a list of messages from the conversation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/ai/chat": {
      "post": {
        "tags": [
          "Ai"
        ],
        "summary": "Chat.",
        "description": "Allows users to send a chat message to the AI service and receive a response.",
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "X-Seq-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ChatStringPayloadSchema"
                  }
                ],
                "description": "Data schema designed for handling chat-related payloads."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ChatStringPayloadSchema"
                  }
                ],
                "description": "Data schema designed for handling chat-related payloads."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ChatStringPayloadSchema"
                  }
                ],
                "description": "Data schema designed for handling chat-related payloads."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the chat response in plain text format."
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/ai/chat-voice": {
      "post": {
        "tags": [
          "Ai"
        ],
        "summary": "Chat Voice.",
        "description": "Allows users to send a voice message to the AI service and receive a text response.",
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "X-Seq-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "Audio": {
                    "type": "string",
                    "description": "An audio file to chat.",
                    "format": "binary"
                  },
                  "Token": {
                    "type": "string",
                    "description": "A string representing the authentication JWT token (unique chat token)."
                  },
                  "Stream": {
                    "type": "boolean",
                    "description": "A boolean value indicating whether to stream the response or not."
                  }
                }
              },
              "encoding": {
                "Audio": {
                  "style": "form"
                },
                "Token": {
                  "style": "form"
                },
                "Stream": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the chat response in plain text format."
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        },
        "deprecated": true
      }
    },
    "/v1/projects/{project-id}/ai/attach-file": {
      "post": {
        "tags": [
          "Ai"
        ],
        "summary": "Attach file.",
        "description": "Allows users to attach file to the conversation.",
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "X-Seq-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "Files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    },
                    "description": "Attach array of files to chat."
                  },
                  "Token": {
                    "type": "string",
                    "description": "A string representing the authentication JWT token (unique chat token)."
                  },
                  "Stream": {
                    "type": "boolean",
                    "description": "A boolean value indicating whether to stream the response or not."
                  }
                }
              },
              "encoding": {
                "Files": {
                  "style": "form"
                },
                "Token": {
                  "style": "form"
                },
                "Stream": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the chat response in plain text format."
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        },
        "deprecated": true
      }
    },
    "/v1/projects/{project-id}/ai/{chat-id}/download/{file-name}": {
      "get": {
        "tags": [
          "Ai"
        ],
        "summary": "Download attached file.",
        "description": "Download attached file in a message.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "description": "",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "chat-id",
            "in": "path",
            "description": "A short GUID that represents the chat item ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "file-name",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return a 200 OK status code."
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/ai/ask": {
      "post": {
        "tags": [
          "Ai"
        ],
        "summary": "Ask.",
        "description": "Allows users to ask a question and receive a response from the AI model.",
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ChatStringPayloadSchema"
                  }
                ],
                "description": "Data schema designed for handling chat-related payloads."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ChatStringPayloadSchema"
                  }
                ],
                "description": "Data schema designed for handling chat-related payloads."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ChatStringPayloadSchema"
                  }
                ],
                "description": "Data schema designed for handling chat-related payloads."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the AI model's response as a plain text."
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/ai/completion": {
      "post": {
        "tags": [
          "Ai"
        ],
        "summary": "Completion.",
        "description": "Generates completion for a given message in a project.",
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CompletionPayloadSchema"
                  }
                ],
                "description": "Data schema designed for generating completion responses."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CompletionPayloadSchema"
                  }
                ],
                "description": "Data schema designed for generating completion responses."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CompletionPayloadSchema"
                  }
                ],
                "description": "Data schema designed for generating completion responses."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the completion response as a plain text."
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/ai/trace": {
      "post": {
        "tags": [
          "Ai"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/LlmTracePayloadSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/LlmTracePayloadSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/LlmTracePayloadSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LlmTraceResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/analytics/project/{project-id}/track": {
      "post": {
        "tags": [
          "Analytics"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UserAnalyticsSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UserAnalyticsSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UserAnalyticsSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/analytics/track": {
      "post": {
        "tags": [
          "Analytics"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "projectId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UserAnalyticsSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UserAnalyticsSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UserAnalyticsSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/analytics/usage": {
      "post": {
        "tags": [
          "Analytics"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/GetUsageSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/GetUsageSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/GetUsageSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/analytics/metrics": {
      "post": {
        "tags": [
          "Analytics"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/GetMetricsSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/GetMetricsSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/GetMetricsSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/blocks-definitions": {
      "get": {
        "tags": [
          "BlocksDefinitions"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/communication/send-mail": {
      "post": {
        "tags": [
          "Communication"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/MailSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/MailSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/MailSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/packages": {
      "post": {
        "tags": [
          "DeveloperPackaging"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CreatePackageSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CreatePackageSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CreatePackageSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "DeveloperPackaging"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/packages/{name}": {
      "delete": {
        "tags": [
          "DeveloperPackaging"
        ],
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/packages/{name}/force": {
      "delete": {
        "tags": [
          "DeveloperPackaging"
        ],
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/packages/{name}/versions": {
      "post": {
        "tags": [
          "DeveloperPackaging"
        ],
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "ZipFile": {
                    "type": "string",
                    "format": "binary"
                  },
                  "DisplayVersion": {
                    "type": "string"
                  },
                  "Tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "Force": {
                    "type": "boolean"
                  }
                }
              },
              "encoding": {
                "ZipFile": {
                  "style": "form"
                },
                "DisplayVersion": {
                  "style": "form"
                },
                "Tags": {
                  "style": "form"
                },
                "Force": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "DeveloperPackaging"
        ],
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/packages/{name}/versions/{ver}/submit": {
      "post": {
        "tags": [
          "DeveloperPackaging"
        ],
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ver",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/packages/{name}/versions/{ver}/approve": {
      "post": {
        "tags": [
          "DeveloperPackaging"
        ],
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ver",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/packages/{name}/versions/{ver}/reject": {
      "post": {
        "tags": [
          "DeveloperPackaging"
        ],
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ver",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/packages/{name}/versions/{ver}": {
      "delete": {
        "tags": [
          "DeveloperPackaging"
        ],
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ver",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/packages/{name}/versions/{ver}/force": {
      "delete": {
        "tags": [
          "DeveloperPackaging"
        ],
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ver",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/packages/{name}/publish": {
      "post": {
        "tags": [
          "DeveloperPackaging"
        ],
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "ZipFile": {
                    "type": "string",
                    "format": "binary"
                  },
                  "DisplayVersion": {
                    "type": "string"
                  },
                  "Tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "Force": {
                    "type": "boolean"
                  }
                }
              },
              "encoding": {
                "ZipFile": {
                  "style": "form"
                },
                "DisplayVersion": {
                  "style": "form"
                },
                "Tags": {
                  "style": "form"
                },
                "Force": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/documents/{collection}/{key}": {
      "post": {
        "tags": [
          "DocumentStorage"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "collection",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": { }
            },
            "text/json": {
              "schema": { }
            },
            "application/*+json": {
              "schema": { }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "DocumentStorage"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "collection",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "DocumentStorage"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "collection",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/documents/{collection}/size": {
      "get": {
        "tags": [
          "DocumentStorage"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "collection",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/documents/{collection}": {
      "get": {
        "tags": [
          "DocumentStorage"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "collection",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "DocumentStorage"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "collection",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/documents/{collection}/{key}/enqueue": {
      "post": {
        "tags": [
          "DocumentStorage"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "collection",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": { }
            },
            "text/json": {
              "schema": { }
            },
            "application/*+json": {
              "schema": { }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/documents/{collection}/dequeue": {
      "delete": {
        "tags": [
          "DocumentStorage"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "collection",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/end-user-records/tables": {
      "get": {
        "tags": [
          "EndUserRecords"
        ],
        "summary": "Get End User Tables.",
        "description": "Returns a list of tables within a specific project for end user records.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "X-Domain",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "zappr.ai"
            }
          },
          {
            "name": "X-Scope-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a list of tables for end user records.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EndUserTableSchema"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/end-user-records/{table}/records": {
      "get": {
        "tags": [
          "EndUserRecords"
        ],
        "summary": "Get End User Records.",
        "description": "Retrieves end user records for a specific project and table with pagination options.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "table",
            "in": "path",
            "description": "The name of the table for which the records are being retrieved.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "The start date of the range.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "The end date of the range.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "X-Domain",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "zappr.ai"
            }
          },
          {
            "name": "X-Scope-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the end user records.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EndUserRecordSchemaPaginatedResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/end-user-records/{table}/all": {
      "get": {
        "tags": [
          "EndUserRecords"
        ],
        "summary": "Get all of the End User Records.",
        "description": "Retrieves end user records for a specific project and table without pagination options.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "table",
            "in": "path",
            "description": "The name of the table for which the records are being retrieved.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "The start date of the range.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "The end date of the range.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "X-Domain",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "zappr.ai"
            }
          },
          {
            "name": "X-Scope-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the end user records.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EndUserRecordSchemaPaginatedResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/end-user-records/{table}/list": {
      "post": {
        "tags": [
          "EndUserRecords"
        ],
        "summary": "Get list of the End User Records by ids.",
        "description": "Retrieves end user records for a specific project and table with pagination options.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "table",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Domain",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "zappr.ai"
            }
          },
          {
            "name": "X-Scope-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "List of records' ids.",
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/EndUserRecordMarkAsReadSchema"
                  }
                ],
                "description": "Schema designed specifically for marking multiple end-user records as read within a system or project."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/EndUserRecordMarkAsReadSchema"
                  }
                ],
                "description": "Schema designed specifically for marking multiple end-user records as read within a system or project."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/EndUserRecordMarkAsReadSchema"
                  }
                ],
                "description": "Schema designed specifically for marking multiple end-user records as read within a system or project."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the end user records."
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/end-user-records/mark-as-read": {
      "post": {
        "tags": [
          "EndUserRecords"
        ],
        "summary": "Set as Read.",
        "description": "Marks end user records as read within a specific project.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "X-Domain",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "zappr.ai"
            }
          },
          {
            "name": "X-Scope-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/EndUserRecordMarkAsReadSchema"
                  }
                ],
                "description": "Schema designed specifically for marking multiple end-user records as read within a system or project."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/EndUserRecordMarkAsReadSchema"
                  }
                ],
                "description": "Schema designed specifically for marking multiple end-user records as read within a system or project."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/EndUserRecordMarkAsReadSchema"
                  }
                ],
                "description": "Schema designed specifically for marking multiple end-user records as read within a system or project."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns a 200 OK status.."
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/end-user-records/mark-as-unread": {
      "post": {
        "tags": [
          "EndUserRecords"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "X-Domain",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "zappr.ai"
            }
          },
          {
            "name": "X-Scope-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/EndUserRecordMarkAsReadSchema"
                  }
                ],
                "description": "Schema designed specifically for marking multiple end-user records as read within a system or project."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/EndUserRecordMarkAsReadSchema"
                  }
                ],
                "description": "Schema designed specifically for marking multiple end-user records as read within a system or project."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/EndUserRecordMarkAsReadSchema"
                  }
                ],
                "description": "Schema designed specifically for marking multiple end-user records as read within a system or project."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/end-user-records/delete": {
      "delete": {
        "tags": [
          "EndUserRecords"
        ],
        "summary": "Delete End User Record.",
        "description": "Deletes end user records within a specific project.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "X-Domain",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "zappr.ai"
            }
          },
          {
            "name": "X-Scope-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/EndUserRecordMarkAsReadSchema"
                  }
                ],
                "description": "Schema designed specifically for marking multiple end-user records as read within a system or project."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/EndUserRecordMarkAsReadSchema"
                  }
                ],
                "description": "Schema designed specifically for marking multiple end-user records as read within a system or project."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/EndUserRecordMarkAsReadSchema"
                  }
                ],
                "description": "Schema designed specifically for marking multiple end-user records as read within a system or project."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns a 200 OK status.."
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/end-user-records": {
      "post": {
        "tags": [
          "EndUserRecords"
        ],
        "summary": "Add a new End User Record.",
        "description": "Creates a new end user record in the specified project and table.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "X-Domain",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "zappr.ai"
            }
          },
          {
            "name": "X-Scope-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The record data to add.",
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewEndUserRecordSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewEndUserRecordSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewEndUserRecordSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the created end user record.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EndUserRecordSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/file-storage/directories": {
      "post": {
        "tags": [
          "FileStorage"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CreateDirectoriesSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CreateDirectoriesSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CreateDirectoriesSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "FileStorage"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/DeleteDirectoriesSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/DeleteDirectoriesSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/DeleteDirectoriesSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/file-storage/files": {
      "post": {
        "tags": [
          "FileStorage"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "Overwrite": {
                    "type": "boolean"
                  },
                  "Paths": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "Files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  },
                  "CopyMetadata": {
                    "type": "boolean"
                  }
                }
              },
              "encoding": {
                "Overwrite": {
                  "style": "form"
                },
                "Paths": {
                  "style": "form"
                },
                "Files": {
                  "style": "form"
                },
                "CopyMetadata": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "FileStorage"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/DeleteFilesSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/DeleteFilesSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/DeleteFilesSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/file-storage/files/content": {
      "get": {
        "tags": [
          "FileStorage"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "path",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/file-storage": {
      "get": {
        "tags": [
          "FileStorage"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "path",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/file-storage/files/{filename}/append": {
      "put": {
        "tags": [
          "FileStorage"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "filename",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/file-storage/files/share": {
      "post": {
        "tags": [
          "FileStorage"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/FileStorageSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/FileStorageSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/FileStorageSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/file-storage/files/share-token": {
      "get": {
        "tags": [
          "FileStorage"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "path",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/file-storage/files/shared": {
      "get": {
        "tags": [
          "FileStorage"
        ],
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/file-storage/files/shared/{filename}": {
      "get": {
        "tags": [
          "FileStorage"
        ],
        "parameters": [
          {
            "name": "filename",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "token",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/fine-tuning": {
      "get": {
        "tags": [
          "FineTuning"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "Name",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Status",
            "in": "query",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/FineTuningStatus"
                }
              ]
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FineTuningSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "FineTuning"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewFineTuningSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewFineTuningSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewFineTuningSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FineTuningSchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/fine-tuning/finetuned-llms": {
      "get": {
        "tags": [
          "FineTuning"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/fine-tuning/available-models": {
      "get": {
        "tags": [
          "FineTuning"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "gpt3": {
                      "type": "string"
                    },
                    "gpt4": {
                      "type": "string"
                    },
                    "gpt4_1": {
                      "type": "string"
                    },
                    "gpt4_1_mini": {
                      "type": "string"
                    },
                    "gpt4_1_nano": {
                      "type": "string"
                    },
                    "o1": {
                      "type": "string"
                    },
                    "o1_pro": {
                      "type": "string"
                    },
                    "o3": {
                      "type": "string"
                    },
                    "o3_mini": {
                      "type": "string"
                    },
                    "o3_pro": {
                      "type": "string"
                    },
                    "o4_mini": {
                      "type": "string"
                    },
                    "gpt4Turbo": {
                      "type": "string"
                    },
                    "gpt4Turbo0125": {
                      "type": "string"
                    },
                    "gpt4o": {
                      "type": "string"
                    },
                    "gpt4oMini": {
                      "type": "string"
                    },
                    "gpt4oFinetuned": {
                      "type": "string"
                    },
                    "gpt4oMiniFinetuned": {
                      "type": "string"
                    },
                    "gpt3Finetuned": {
                      "type": "string"
                    },
                    "gpt_5": {
                      "type": "string"
                    },
                    "gpt_5_mini": {
                      "type": "string"
                    },
                    "gpt_5_nano": {
                      "type": "string"
                    },
                    "gpt_5_2": {
                      "type": "string"
                    },
                    "gpt_5_4": {
                      "type": "string"
                    },
                    "gpt_5_4_mini": {
                      "type": "string"
                    },
                    "gpt_5_5": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/fine-tuning/{fine-tuning-id}/start": {
      "post": {
        "tags": [
          "FineTuning"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "fine-tuning-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/fine-tuning/{fine-tuning-id}/cancel": {
      "post": {
        "tags": [
          "FineTuning"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "fine-tuning-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/fine-tuning/{fine-tuning-id}/training-examples": {
      "get": {
        "tags": [
          "FineTuning"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "fine-tuning-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "MessageContains",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FineTuningSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "FineTuning"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "fine-tuning-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewTrainingExampleFineTuningSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewTrainingExampleFineTuningSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewTrainingExampleFineTuningSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingExampleFineTuningSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "FineTuning"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "fine-tuning-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/UpdateTrainingExampleFineTuningSchema"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/UpdateTrainingExampleFineTuningSchema"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/UpdateTrainingExampleFineTuningSchema"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/fine-tuning/{fine-tuning-id}/training-examples/{pair-id}": {
      "delete": {
        "tags": [
          "FineTuning"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "fine-tuning-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "pair-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/inbound-webhooks": {
      "get": {
        "tags": [
          "InboundWebhooks"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "InboundWebhooks"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewInboundWebhookRequestSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewInboundWebhookRequestSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewInboundWebhookRequestSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/inbound-webhooks/{id}": {
      "get": {
        "tags": [
          "InboundWebhooks"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "InboundWebhooks"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/inbound-webhooks/{id}/subscribe": {
      "post": {
        "tags": [
          "InboundWebhooks"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewInboundSubscriptionSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewInboundSubscriptionSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewInboundSubscriptionSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/inbound-webhooks/{id}/unsubscribe": {
      "post": {
        "tags": [
          "InboundWebhooks"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/inbound-webhooks/{id}/fire": {
      "post": {
        "tags": [
          "InboundWebhooks"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": { }
            },
            "text/json": {
              "schema": { }
            },
            "application/*+json": {
              "schema": { }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/conversations/insights/reactions": {
      "get": {
        "tags": [
          "Insights"
        ],
        "summary": "Get reacts by project.",
        "description": "Returns the reacts for a specific project.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "X-Domain",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "zappr.ai"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the reacts for the specified project.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Reacts"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/conversations/insights/insights": {
      "get": {
        "tags": [
          "Insights"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "X-Domain",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "zappr.ai"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/conversations/insights/definitions": {
      "get": {
        "tags": [
          "Insights"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "X-Domain",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "zappr.ai"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/conversations/insights/report": {
      "get": {
        "tags": [
          "Insights"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "X-Domain",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "zappr.ai"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/conversations/insights/force-generate-report": {
      "post": {
        "tags": [
          "Insights"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "model",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 100
            }
          },
          {
            "name": "force",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "X-Domain",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "zappr.ai"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/conversations/insights/clean-up": {
      "post": {
        "tags": [
          "Insights"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "X-Domain",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "zappr.ai"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/conversations/insights/chats/category/{name}/{value}": {
      "get": {
        "tags": [
          "Insights"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "value",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "X-Domain",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "zappr.ai"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatSchemaPaginatedResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/conversations/insights/chats/cluster/{id}": {
      "get": {
        "tags": [
          "Insights"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "X-Domain",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "zappr.ai"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatSchemaPaginatedResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge": {
      "get": {
        "tags": [
          "Knowledge"
        ],
        "summary": "Get knowledge.",
        "description": "Returns a list of knowledge items for a given project.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "Name",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Type",
            "in": "query",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/KnowledgeType"
                }
              ]
            }
          },
          {
            "name": "Status",
            "in": "query",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/KnowledgeStatus"
                }
              ]
            }
          },
          {
            "name": "ParentId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "SortBy",
            "in": "query",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/KnowledgeSortField"
                }
              ]
            }
          },
          {
            "name": "Descending",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a list of knowledge items.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/KnowledgeSchema"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/all": {
      "get": {
        "tags": [
          "Knowledge"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/KnowledgeSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/{knowledge-id}/info": {
      "get": {
        "tags": [
          "Knowledge"
        ],
        "summary": "Get Knowledge Info.",
        "description": "Returns detailed information about a specific knowledge item in a project.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "knowledge-id",
            "in": "path",
            "description": "A short GUID that represents the knowledge item ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the knowledge item details.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/move": {
      "put": {
        "tags": [
          "Knowledge"
        ],
        "summary": "Move Knowledge Items.",
        "description": "Moves a list of knowledge items to a new location within a project.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "description": "The schema containing the list of knowledge item IDs and the new parent ID.",
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/MoveKnowledgeSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/MoveKnowledgeSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/MoveKnowledgeSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns a 200 OK status code."
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/folders": {
      "get": {
        "tags": [
          "Knowledge"
        ],
        "summary": "Get Folders.",
        "description": "Returns a list of folders for a given project.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a list of folders.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/KnowledgeSchema"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/children": {
      "post": {
        "tags": [
          "Knowledge"
        ],
        "summary": "Children.",
        "description": "Returns a list of child knowledge items for a given parent knowledge item in a project.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NestedKnowledgeSchema"
                  }
                ],
                "description": "Schema designed to manage hierarchical relationships between knowledge items."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NestedKnowledgeSchema"
                  }
                ],
                "description": "Schema designed to manage hierarchical relationships between knowledge items."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NestedKnowledgeSchema"
                  }
                ],
                "description": "Schema designed to manage hierarchical relationships between knowledge items."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns a list of child knowledge items.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/KnowledgeSchema"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/children-paged": {
      "post": {
        "tags": [
          "Knowledge"
        ],
        "summary": "Children Paged.",
        "description": "Returns a paginated list of child knowledge items for a given project.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NestedKnowledgeSchema"
                  }
                ],
                "description": "Schema designed to manage hierarchical relationships between knowledge items."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NestedKnowledgeSchema"
                  }
                ],
                "description": "Schema designed to manage hierarchical relationships between knowledge items."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NestedKnowledgeSchema"
                  }
                ],
                "description": "Schema designed to manage hierarchical relationships between knowledge items."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns a knowledge children paginated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeSchemaPaginatedResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/folders/create": {
      "post": {
        "tags": [
          "Knowledge"
        ],
        "summary": "Create Folder.",
        "description": "Creates a new folder in a given project.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "description": "The schema containing the folder name.",
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewFolderSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewFolderSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewFolderSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the created folder.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/file": {
      "post": {
        "tags": [
          "Knowledge"
        ],
        "summary": "File.",
        "description": "Uploads a file to create a new knowledge item for a given project. To train the model based on all created items, you need to make request to \"projects/{id}/apply-changes\" endpoint. List of supported type of files: Txt, Pdf, Docx, Md, Csv.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "fileOptionsJson": {
                    "type": "string",
                    "default": ""
                  }
                }
              },
              "encoding": {
                "file": {
                  "style": "form"
                },
                "fileOptionsJson": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns a created knowledge item.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/text": {
      "post": {
        "tags": [
          "Knowledge"
        ],
        "summary": "Text.",
        "description": "Creates a new knowledge item from text for a given project. To train the model based on all created items, you need to make request to \"projects/{id}/apply-changes\" endpoint.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeTextSchema"
                  }
                ],
                "description": "Schema designed to capture and organize textual information for creating new knowledge items."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeTextSchema"
                  }
                ],
                "description": "Schema designed to capture and organize textual information for creating new knowledge items."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeTextSchema"
                  }
                ],
                "description": "Schema designed to capture and organize textual information for creating new knowledge items."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns a created knowledge item.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/loom": {
      "post": {
        "tags": [
          "Knowledge"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewLoomKnowledgeSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewLoomKnowledgeSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewLoomKnowledgeSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeSchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/text-with-reference": {
      "post": {
        "tags": [
          "Knowledge"
        ],
        "summary": "Text.",
        "description": "Creates a new knowledge item with custom reference from text for a given project. To train the model based on all created items, you need to make request to \"projects/{id}/apply-changes\" endpoint.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeTextWithReferenceSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeTextWithReferenceSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeTextWithReferenceSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns a created knowledge item.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/qna": {
      "post": {
        "tags": [
          "Knowledge"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeQnaSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeQnaSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeQnaSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeSchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/{knowledge-id}/qna-edit": {
      "put": {
        "tags": [
          "Knowledge"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "knowledge-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeQnaSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeQnaSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeQnaSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeSchema"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/projects/{project-id}/knowledge/{knowledge-id}/qna-content": {
      "get": {
        "tags": [
          "Knowledge"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "knowledge-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeContentSchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/train-qna/{feedback-id}": {
      "post": {
        "tags": [
          "Knowledge"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "feedback-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeQnaSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeQnaSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeQnaSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeSchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/train-qna": {
      "post": {
        "tags": [
          "Knowledge"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeQnaSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeQnaSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeQnaSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeSchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/suggest-from-chat/{chat-id}": {
      "post": {
        "tags": [
          "Knowledge"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "chat-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/qna/prepare/stream": {
      "post": {
        "tags": [
          "Knowledge"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/QnaPrepareTextSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/QnaPrepareTextSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/QnaPrepareTextSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/train/{feedback-id}": {
      "post": {
        "tags": [
          "Knowledge"
        ],
        "summary": "Teach Model with Feedback.",
        "description": "Teaches the model with feedback by creating a new knowledge item in a project.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "feedback-id",
            "in": "path",
            "description": "A short GUID that represents the feedback ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeTextSchema"
                  }
                ],
                "description": "Schema designed to capture and organize textual information for creating new knowledge items."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeTextSchema"
                  }
                ],
                "description": "Schema designed to capture and organize textual information for creating new knowledge items."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeTextSchema"
                  }
                ],
                "description": "Schema designed to capture and organize textual information for creating new knowledge items."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns a created knowledge item.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/train": {
      "post": {
        "tags": [
          "Knowledge"
        ],
        "summary": "Train Model.",
        "description": "Trains a model with new knowledge text for a given project.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeTextSchema"
                  }
                ],
                "description": "Schema designed to capture and organize textual information for creating new knowledge items."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeTextSchema"
                  }
                ],
                "description": "Schema designed to capture and organize textual information for creating new knowledge items."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeTextSchema"
                  }
                ],
                "description": "Schema designed to capture and organize textual information for creating new knowledge items."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns a created knowledge item.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/github": {
      "post": {
        "tags": [
          "Knowledge"
        ],
        "summary": "Github.",
        "description": "Creates a new knowledge item from a Github repository in a project. To train the model based on all created items, you need to make request to \"projects/{id}/apply-changes\" endpoint.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeGithubSchema"
                  }
                ],
                "description": "Schema designed to capture and manage information related to knowledge items sourced from GitHub repositories."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeGithubSchema"
                  }
                ],
                "description": "Schema designed to capture and manage information related to knowledge items sourced from GitHub repositories."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeGithubSchema"
                  }
                ],
                "description": "Schema designed to capture and manage information related to knowledge items sourced from GitHub repositories."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns a created knowledge item.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/sitemap": {
      "post": {
        "tags": [
          "Knowledge"
        ],
        "summary": "Sitemap.",
        "description": "Creates a new knowledge item from a sitemap URL in a project. To train the model based on all created items, you need to make request to \"projects/{id}/apply-changes\" endpoint.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeSitemapSchema"
                  }
                ],
                "description": "Schema intended to manage and organize information related to knowledge items sourced from sitemaps."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeSitemapSchema"
                  }
                ],
                "description": "Schema intended to manage and organize information related to knowledge items sourced from sitemaps."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeSitemapSchema"
                  }
                ],
                "description": "Schema intended to manage and organize information related to knowledge items sourced from sitemaps."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns a created knowledge item.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/website": {
      "post": {
        "tags": [
          "Knowledge"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeWebsiteSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeWebsiteSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeWebsiteSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeSchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/youtube": {
      "post": {
        "tags": [
          "Knowledge"
        ],
        "summary": "Youtube.",
        "description": "Creates a new knowledge item from a Youtube video URL. To train the model based on all created items, you need to make request to \"projects/{id}/apply-changes\" endpoint.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeYoutubeSchema"
                  }
                ],
                "description": "Schema designed to capture and manage information related to knowledge items sourced from YouTube videos."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeYoutubeSchema"
                  }
                ],
                "description": "Schema designed to capture and manage information related to knowledge items sourced from YouTube videos."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeYoutubeSchema"
                  }
                ],
                "description": "Schema designed to capture and manage information related to knowledge items sourced from YouTube videos."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns a created knowledge item.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/table": {
      "post": {
        "tags": [
          "Knowledge"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeTableSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeTableSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewKnowledgeTableSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeSchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/table/import": {
      "post": {
        "tags": [
          "Knowledge"
        ],
        "summary": "Import table.",
        "description": "Uploads a file to create a new knowledge table item for a given project. List of supported file types: Csv.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "schemaJson": {
                    "type": "string"
                  }
                }
              },
              "encoding": {
                "file": {
                  "style": "form"
                },
                "schemaJson": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns a created knowledge item.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        },
        "deprecated": true
      }
    },
    "/v1/projects/{project-id}/knowledge/{knowledge-id}/table": {
      "get": {
        "tags": [
          "Knowledge"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "knowledge-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TableSchema"
                }
              }
            }
          }
        },
        "deprecated": true
      }
    },
    "/v1/projects/{project-id}/knowledge/{knowledge-id}": {
      "put": {
        "tags": [
          "Knowledge"
        ],
        "summary": "Edit Knowledge.",
        "description": "Edits a knowledge item in a project. To train the model based on all created items, you need to make request to \"projects/{id}/apply-changes\" endpoint.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "knowledge-id",
            "in": "path",
            "description": "A short GUID that represents the knowledge item ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateKnowledgeSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateKnowledgeSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateKnowledgeSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns an updated knowledge item.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/{knowledge-id}/edit": {
      "put": {
        "tags": [
          "Knowledge"
        ],
        "summary": "Edit Knowledge.",
        "description": "Edits a knowledge item in a project. To train the model based on all created items, you need to make request to \"projects/{id}/apply-changes\" endpoint.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "knowledge-id",
            "in": "path",
            "description": "A short GUID that represents the knowledge item ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateKnowledgeTextSchema"
                  }
                ],
                "description": "Schema designed for updating or modifying existing textual information associated with a knowledge item within a system."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateKnowledgeTextSchema"
                  }
                ],
                "description": "Schema designed for updating or modifying existing textual information associated with a knowledge item within a system."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateKnowledgeTextSchema"
                  }
                ],
                "description": "Schema designed for updating or modifying existing textual information associated with a knowledge item within a system."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns an updated knowledge item.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        },
        "deprecated": true
      }
    },
    "/v1/projects/{project-id}/knowledge/{knowledge-id}/generate": {
      "post": {
        "tags": [
          "Knowledge"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "knowledge-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "force",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeSchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/{knowledge-id}/content": {
      "get": {
        "tags": [
          "Knowledge"
        ],
        "summary": "Get Knowledge Content.",
        "description": "Returns the content of a specific knowledge item in a project.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "knowledge-id",
            "in": "path",
            "description": "A short GUID that represents the knowledge item ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a knowledge content.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeContentSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/{knowledge-id}/download": {
      "get": {
        "tags": [
          "Knowledge"
        ],
        "summary": "download Knowledge.",
        "description": "downloads a knowledge item in a project.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "knowledge-id",
            "in": "path",
            "description": "A short GUID that represents the knowledge item ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return a 200 OK status code."
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/{knowledge-id}/delete": {
      "delete": {
        "tags": [
          "Knowledge"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "knowledge-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/delete": {
      "delete": {
        "tags": [
          "Knowledge"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uid"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uid"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uid"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/knowledge/search": {
      "post": {
        "tags": [
          "Knowledge"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/SearchSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/SearchSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/SearchSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SearchResultSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/plugins/knowledge-retrieval-ver/{plugin-id}/{project-plugin-id}/search": {
      "get": {
        "tags": [
          "KnowledgeRetrievalVer"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "plugin-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-plugin-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "topic",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeRetrievalSearchResult"
                }
              }
            }
          }
        }
      }
    },
    "/limits/{key}": {
      "get": {
        "tags": [
          "Limits"
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "Limits"
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/LimitsRequest"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/LimitsRequest"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/LimitsRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/outbound/twilio": {
      "get": {
        "tags": [
          "Outbound"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "name",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name-operator",
            "in": "query",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/CampaignFilterOperator"
                }
              ]
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/OutboundStatus"
                }
              ]
            }
          },
          {
            "name": "status-operator",
            "in": "query",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/CampaignFilterOperator"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CampaignSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Outbound"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewCampaignSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewCampaignSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewCampaignSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignSchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/outbound/twilio/options": {
      "get": {
        "tags": [
          "Outbound"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignOptionsSchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/outbound/twilio/template/{template-id}/preview": {
      "get": {
        "tags": [
          "Outbound"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "template-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TwilioTemplate"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/outbound/twilio/template": {
      "post": {
        "tags": [
          "Outbound"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewTwilioTemplateSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewTwilioTemplateSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewTwilioTemplateSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TwilioTemplate"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/outbound/twilio/template/{template-id}": {
      "delete": {
        "tags": [
          "Outbound"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "template-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TwilioTemplate"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/outbound/twilio/{campaign-id}": {
      "get": {
        "tags": [
          "Outbound"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "campaign-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignSchema"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Outbound"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "campaign-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateCampaignSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateCampaignSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateCampaignSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Outbound"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "campaign-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignSchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/outbound/twilio/{campaign-id}/validate": {
      "post": {
        "tags": [
          "Outbound"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "campaign-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/outbound/twilio/{campaign-id}/run": {
      "post": {
        "tags": [
          "Outbound"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "campaign-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/outbound/twilio/{campaign-id}/stop": {
      "post": {
        "tags": [
          "Outbound"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "campaign-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/outbound/twilio/{campaign-id}/import": {
      "post": {
        "tags": [
          "Outbound"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "campaign-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "schemaJson": {
                    "type": "string"
                  }
                }
              },
              "encoding": {
                "file": {
                  "style": "form"
                },
                "schemaJson": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TableSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/outbound/twilio/{campaign-id}/archive": {
      "post": {
        "tags": [
          "Outbound"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "campaign-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignSchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/outbound-webhooks": {
      "get": {
        "tags": [
          "OutboundWebhooks"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "OutboundWebhooks"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewSubscribeRequestSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewSubscribeRequestSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewSubscribeRequestSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/outbound-webhooks/{id}": {
      "get": {
        "tags": [
          "OutboundWebhooks"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "OutboundWebhooks"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/plugins": {
      "get": {
        "tags": [
          "Plugins"
        ],
        "summary": "Get Plugins from all project.",
        "description": "Returns all active plugins from all project with their schemas and commands.",
        "parameters": [
          {
            "name": "X-Domain",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "zappr.ai"
            }
          },
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the list of all active plugins in all project.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PluginSchema"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/plugins": {
      "get": {
        "tags": [
          "Plugins"
        ],
        "summary": "Get Plugins List.",
        "description": "Returns project plugins for a specific project with the option to filter by tenant.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "X-Domain",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "zappr.ai"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the project plugins.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProjectPluginSchema"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/plugins/{plugin-id}/request": {
      "post": {
        "tags": [
          "Plugins"
        ],
        "summary": "Request Demo.",
        "description": "Requests a demo for a specific plugin within a project.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "plugin-id",
            "in": "path",
            "description": "A short GUID that represents the plugin ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "X-Domain",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "zappr.ai"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a boolean value indicating the success of the demo request.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/plugins/{plugin-id}/install": {
      "post": {
        "tags": [
          "Plugins"
        ],
        "summary": "Install Plugin.",
        "description": "Installs a plugin for a specific project.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "plugin-id",
            "in": "path",
            "description": "A short GUID that represents the plugin ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "X-Domain",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "zappr.ai"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the installed plugin details.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectPluginSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/plugins/{project-plugin-id}/uninstall": {
      "post": {
        "tags": [
          "Plugins"
        ],
        "summary": "Uninstall Plugin.",
        "description": "Uninstalls a project plugin.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-plugin-id",
            "in": "path",
            "description": "A short GUID that represents the project plugin ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "X-Domain",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "zappr.ai"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PluginUninstallSchema"
                  }
                ],
                "description": "Schema designed to manage the uninstallation process of a plugin."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PluginUninstallSchema"
                  }
                ],
                "description": "Schema designed to manage the uninstallation process of a plugin."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PluginUninstallSchema"
                  }
                ],
                "description": "Schema designed to manage the uninstallation process of a plugin."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the project plugin fetails.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectPluginSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/plugins/{project-plugin-id}": {
      "put": {
        "tags": [
          "Plugins"
        ],
        "summary": "Put Plugin.",
        "description": "Updates a project plugin with the specified ID.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-plugin-id",
            "in": "path",
            "description": "A short GUID that represents the project plugin ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "X-Domain",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "zappr.ai"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ProjectPutSchema"
                  }
                ],
                "description": "Schema designed to handle and manage updates to project plugins."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ProjectPutSchema"
                  }
                ],
                "description": "Schema designed to handle and manage updates to project plugins."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ProjectPutSchema"
                  }
                ],
                "description": "Schema designed to handle and manage updates to project plugins."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the updated project plugin.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectPluginSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/options": {
      "get": {
        "tags": [
          "Projects"
        ],
        "summary": "Get a project options.",
        "description": "Returns the project options, including bot roles and personalities.",
        "responses": {
          "200": {
            "description": "Returns the project options.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectOptionsSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects": {
      "get": {
        "tags": [
          "Projects"
        ],
        "summary": "Get a projects.",
        "description": "Returns a list of created projects.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a list of created projects.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProjectSchema"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      },
      "post": {
        "tags": [
          "Projects"
        ],
        "summary": "Creates a new project.",
        "description": "Creates a new project with the specified details.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ProjectSchemaNew"
                  }
                ],
                "description": "The schema containing project details."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ProjectSchemaNew"
                  }
                ],
                "description": "The schema containing project details."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ProjectSchemaNew"
                  }
                ],
                "description": "The schema containing project details."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the created project.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{id}": {
      "get": {
        "tags": [
          "Projects"
        ],
        "summary": "Get a project.",
        "description": "Returns a specific project.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a specific project.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      },
      "put": {
        "tags": [
          "Projects"
        ],
        "summary": "Update a project.",
        "description": "Updates the specified project with the provided information.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the project to update.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ProjectSchemaUpdate"
                  }
                ],
                "description": "Scheme for updating information related to the project."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ProjectSchemaUpdate"
                  }
                ],
                "description": "Scheme for updating information related to the project."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ProjectSchemaUpdate"
                  }
                ],
                "description": "Scheme for updating information related to the project."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the updated project.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      },
      "delete": {
        "tags": [
          "Projects"
        ],
        "summary": "Delete a project.",
        "description": "Deletes a project with the specified ID.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "A short GUID that represents the ID of the project to delete.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a 200 OK response."
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{id}/info": {
      "get": {
        "tags": [
          "Projects"
        ],
        "summary": "Get a project info.",
        "description": "Returns information about a specific project.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a project information.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectInfoSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{id}/templates": {
      "get": {
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectTemplatesSchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/clone": {
      "post": {
        "tags": [
          "Projects"
        ],
        "summary": "Clone the project.",
        "description": "Clone the project with the specified details.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ProjectCloneSchema"
                  }
                ],
                "description": "An integer property that defines the duration, in milliseconds, for which the speech bubble remains visible."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ProjectCloneSchema"
                  }
                ],
                "description": "An integer property that defines the duration, in milliseconds, for which the speech bubble remains visible."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ProjectCloneSchema"
                  }
                ],
                "description": "An integer property that defines the duration, in milliseconds, for which the speech bubble remains visible."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the cloned project.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{id}/migrate-to-v2": {
      "post": {
        "tags": [
          "Projects"
        ],
        "summary": "Migrates a project to V2.",
        "description": "Initiates migration of the specified project to version V2.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "description": "The tenant identifier extracted from the header.",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The project identifier from the route.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the migrated project.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{id}/logo": {
      "post": {
        "tags": [
          "Projects"
        ],
        "summary": "Upload a project logo.",
        "description": "Uploads the logo for a specific project. The logo image should have dimensions of 256x256 pixels and must be in PNG format.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "A short GUID that represents the ID of the project.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "file": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns a 200 OK response."
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      },
      "delete": {
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{id}/widget-background-img": {
      "post": {
        "tags": [
          "Projects"
        ],
        "summary": "Upload a project widget background image.",
        "description": "Uploads the widget background image for a specific project. The widget background image should have dimensions at least of 256x256 pixels but less then 2048x2048 pixels and must be in PNG format.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "A short GUID that represents the ID of the project.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "file": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns a 200 OK response."
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{id}/apply-changes": {
      "post": {
        "tags": [
          "Projects"
        ],
        "summary": "Apply changes.",
        "description": "Applies changes to the knowledge entities within a project.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the list of updated knowledge entities object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/KnowledgeSchema"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{id}/react": {
      "post": {
        "tags": [
          "Projects"
        ],
        "summary": "React to message.",
        "description": "Allows users to react to a message in a project.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/MessageFeedbackSchema"
                  }
                ],
                "description": "The schema containing message feedback details."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/MessageFeedbackSchema"
                  }
                ],
                "description": "The schema containing message feedback details."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/MessageFeedbackSchema"
                  }
                ],
                "description": "The schema containing message feedback details."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns a 200 OK response."
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{id}/resolve-react/{feedback-id}": {
      "get": {
        "tags": [
          "Projects"
        ],
        "summary": "Resolve react.",
        "description": "Resolves a reaction for a specific project feedback.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "feedback-id",
            "in": "path",
            "description": "A short GUID that represents the feedback ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the resolved feedback.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeedbackSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{id}/conversations": {
      "get": {
        "tags": [
          "Projects"
        ],
        "summary": "Get a conversations.",
        "description": "Returns a list of conversations for the specified project.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "action",
            "in": "query",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/ChatActionFilterOptions"
                }
              ]
            }
          },
          {
            "name": "thread-control",
            "in": "query",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/ChatThreadControlFilterOptions"
                }
              ]
            }
          },
          {
            "name": "review-status",
            "in": "query",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/ChatReviewStatusFilterOptions"
                }
              ]
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "The start date of the range.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "The end date of the range.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "order-by",
            "in": "query",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/ChatSortAttributeOptions"
                }
              ]
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a list of conversations objects.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatLegacySchemaPaginatedResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{id}/conversations/unread/count": {
      "get": {
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int64"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{id}/messages/{token}": {
      "get": {
        "tags": [
          "Projects"
        ],
        "summary": "Retrieve all messages from the conversation.",
        "description": "Allows clients to retrieve a list of messages from a conversation by providing a project ID and a chat token.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "token",
            "in": "path",
            "description": "A JWT token that contains the chat session information.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a list of messages from the conversation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        },
        "deprecated": true
      }
    },
    "/v1/projects/{id}/generate-share-link/{chat-id}": {
      "post": {
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "chat-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{id}/conversations/{conversation-id}": {
      "get": {
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "conversation-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatLegacySchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{id}/conversations/{conversation-id}/mark-as-read": {
      "post": {
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "conversation-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{id}/conversations/{conversation-id}/mark-as-unread": {
      "post": {
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "conversation-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{id}/conversations/{conversation-id}/mark-as-reviewed": {
      "post": {
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "conversation-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{id}/conversations/{conversation-id}/mark-as-for-review": {
      "post": {
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "conversation-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{id}/conversations/{conversation-id}/tags": {
      "post": {
        "tags": [
          "Projects"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "conversation-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{id}/conversations/{conversation-id}/messages": {
      "get": {
        "tags": [
          "Projects"
        ],
        "summary": "Returns all conversation messages.",
        "description": "Retrieves the messages of a specific conversation within a project.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "conversation-id",
            "in": "path",
            "description": "A short GUID that represents the conversation ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a list of messages object.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MessageSchema"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{id}/conversations/{conversation-id}/messages/{message-id}": {
      "get": {
        "tags": [
          "Projects"
        ],
        "summary": "Retrieves a specific message from a conversation within a project.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "description": "The tenant identifier extracted from the header.",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The project identifier from the route.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "conversation-id",
            "in": "path",
            "description": "The conversation identifier from the route.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "message-id",
            "in": "path",
            "description": "The message identifier from the route.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the message.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MessageSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/llms": {
      "get": {
        "tags": [
          "Projects"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "gpt3": {
                      "type": "string"
                    },
                    "gpt4": {
                      "type": "string"
                    },
                    "gpt4_1": {
                      "type": "string"
                    },
                    "gpt4_1_mini": {
                      "type": "string"
                    },
                    "gpt4_1_nano": {
                      "type": "string"
                    },
                    "o1": {
                      "type": "string"
                    },
                    "o1_pro": {
                      "type": "string"
                    },
                    "o3": {
                      "type": "string"
                    },
                    "o3_mini": {
                      "type": "string"
                    },
                    "o3_pro": {
                      "type": "string"
                    },
                    "o4_mini": {
                      "type": "string"
                    },
                    "gpt4Turbo": {
                      "type": "string"
                    },
                    "gpt4Turbo0125": {
                      "type": "string"
                    },
                    "gpt4o": {
                      "type": "string"
                    },
                    "gpt4oMini": {
                      "type": "string"
                    },
                    "gpt4oFinetuned": {
                      "type": "string"
                    },
                    "gpt4oMiniFinetuned": {
                      "type": "string"
                    },
                    "gpt3Finetuned": {
                      "type": "string"
                    },
                    "gpt_5": {
                      "type": "string"
                    },
                    "gpt_5_mini": {
                      "type": "string"
                    },
                    "gpt_5_nano": {
                      "type": "string"
                    },
                    "gpt_5_2": {
                      "type": "string"
                    },
                    "gpt_5_4": {
                      "type": "string"
                    },
                    "gpt_5_4_mini": {
                      "type": "string"
                    },
                    "gpt_5_5": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/vector-stores": {
      "get": {
        "tags": [
          "Projects"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/VectorStoreType"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/rates/{key}": {
      "get": {
        "tags": [
          "Rates"
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/rates/{key}/increment": {
      "post": {
        "tags": [
          "Rates"
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "number",
                "format": "double"
              }
            },
            "text/json": {
              "schema": {
                "type": "number",
                "format": "double"
              }
            },
            "application/*+json": {
              "schema": {
                "type": "number",
                "format": "double"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/routines/{routine-id}/blocks": {
      "post": {
        "tags": [
          "RoutineEditor"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "routine-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewBlockSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewBlockSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewBlockSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "RoutineEditor"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "routine-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/RemoveBlockSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/RemoveBlockSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/RemoveBlockSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "RoutineEditor"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "routine-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/MoveBlockSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/MoveBlockSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/MoveBlockSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/routines/{routine-id}/blocks/properties": {
      "put": {
        "tags": [
          "RoutineEditor"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "routine-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdatePropertiesSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdatePropertiesSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdatePropertiesSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/routines/{routine-id}/blocks/dynamic-properties": {
      "put": {
        "tags": [
          "RoutineEditor"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "routine-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdatePropertiesSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdatePropertiesSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdatePropertiesSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/routines/{routine-id}/blocks/supported-functions": {
      "get": {
        "tags": [
          "RoutineEditor"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "routine-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/routines/{routine-id}/blocks/magic": {
      "post": {
        "tags": [
          "RoutineEditor"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "routine-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/MagicSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/MagicSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/MagicSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/routines/{routine-id}/runs": {
      "get": {
        "tags": [
          "RoutineRuns"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "routine-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/routines/{routine-id}/runs/{run-id}": {
      "get": {
        "tags": [
          "RoutineRuns"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "routine-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "run-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/routines/{routine-id}/runs/{run-id}/blocks/{block-name}/continue": {
      "post": {
        "tags": [
          "RoutineRuns"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "routine-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "run-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "block-name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": { }
            },
            "text/json": {
              "schema": { }
            },
            "application/*+json": {
              "schema": { }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/routines": {
      "post": {
        "tags": [
          "Routines"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewRoutineSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewRoutineSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewRoutineSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "Routines"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/routines/{id}": {
      "put": {
        "tags": [
          "Routines"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateRoutineSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateRoutineSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateRoutineSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "Routines"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Routines"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/routines/{routine-id}/debug": {
      "post": {
        "tags": [
          "Routines"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "routine-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "blockName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Routines"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "routine-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/routines/{routine-id}/trigger": {
      "post": {
        "tags": [
          "Routines"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "routine-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": { }
            },
            "text/json": {
              "schema": { }
            },
            "application/*+json": {
              "schema": { }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/routines/{routine-id}/publish": {
      "post": {
        "tags": [
          "Routines"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "routine-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/routines/{routine-id}/unpublish": {
      "post": {
        "tags": [
          "Routines"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "routine-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/routines/ws": {
      "get": {
        "tags": [
          "Routines"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/secret-definitions": {
      "get": {
        "tags": [
          "SecretDefinitions"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/secrets": {
      "post": {
        "tags": [
          "Secrets"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CreateSecretSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CreateSecretSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CreateSecretSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "Secrets"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "name",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/secrets/{secret-id}": {
      "put": {
        "tags": [
          "Secrets"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "secret-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateSecretSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateSecretSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateSecretSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "Secrets"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "secret-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Secrets"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "secret-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/secrets/{secret-id}/{key}": {
      "get": {
        "tags": [
          "Secrets"
        ],
        "parameters": [
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "secret-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/subscription/is-active": {
      "get": {
        "tags": [
          "Subscription"
        ],
        "summary": "Is Active.",
        "description": "Check if the user's subscription is active.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a boolean value indicating whether the user's subscription is active or not.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/subscription/usage": {
      "get": {
        "tags": [
          "Subscription"
        ],
        "summary": "Get Usage.",
        "description": "Returns the usage details for the current user within the tenant.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the usage details.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserUsageSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/subscription/has-enterprise": {
      "get": {
        "tags": [
          "Subscription"
        ],
        "summary": "Check for Active Enterprise.",
        "description": "Checks if the user has an active enterprise subscription.",
        "responses": {
          "200": {
            "description": "Returns the result of the active enterprise subscription check.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/subscription/usage-tenant/{id}": {
      "get": {
        "tags": [
          "Subscription"
        ],
        "summary": "Get Usage Organization.",
        "description": "Returns the usage details for a specific tenant.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "A short GUID that represents the tenant ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the usage details for a specific tenant.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserUsageSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/subscription/me": {
      "get": {
        "tags": [
          "Subscription"
        ],
        "summary": "Get My Info.",
        "description": "Returns the subscription information for the current user within the tenant.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the subscription information.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/subscription/payment": {
      "post": {
        "tags": [
          "Subscription"
        ],
        "summary": "Purchase.",
        "description": "Allows users to purchase a subscription for a specific billing type and plan type.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PaymentSchema"
                  }
                ],
                "description": "A short GUID that represents the subscription ID."
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PaymentSchema"
                  }
                ],
                "description": "A short GUID that represents the subscription ID."
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PaymentSchema"
                  }
                ],
                "description": "A short GUID that represents the subscription ID."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the URL for the purchased subscription.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/subscription/buy-extra-credits": {
      "post": {
        "tags": [
          "Subscription"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ExtraCreditsSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ExtraCreditsSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ExtraCreditsSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/v1/subscription/calculate-extra-price/{amount}": {
      "get": {
        "tags": [
          "Subscription"
        ],
        "parameters": [
          {
            "name": "amount",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserUsageSchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/subscription/cancel": {
      "get": {
        "tags": [
          "Subscription"
        ],
        "summary": "Cancel.",
        "description": "Cancels the subscription for the current user.",
        "responses": {
          "200": {
            "description": "Returns a 200 OK."
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/subscription/cancel-closure": {
      "get": {
        "tags": [
          "Subscription"
        ],
        "summary": "Cancel Closure.",
        "description": "Cancels closure the subscription for the current user.",
        "responses": {
          "200": {
            "description": "Returns a 200 OK."
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/subscription/webhook": {
      "post": {
        "tags": [
          "Subscription"
        ],
        "summary": "Webhook.",
        "description": "Activates the subscription and handles various webhook events related to subscription management.",
        "responses": {
          "200": {
            "description": "Returns a 200 OK."
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/tables": {
      "get": {
        "tags": [
          "Tables"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "includeLabels",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "excludeLabels",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TableSchemaPaginatedResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Tables"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TableNewSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TableNewSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TableNewSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TableSchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/tables/{id}": {
      "get": {
        "tags": [
          "Tables"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TableSchema"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Tables"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TablePutSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TablePutSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TablePutSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TableSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Tables"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/tables/import": {
      "post": {
        "tags": [
          "Tables"
        ],
        "summary": "Import table.",
        "description": "Uploads a file to create a new table item for a given project. List of supported file types: Csv.",
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "description": "A short GUID that represents the project ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "tableId",
            "in": "query",
            "description": "A short GUID that represents the table ID. Optional.",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "schemaJson": {
                    "type": "string"
                  }
                }
              },
              "encoding": {
                "file": {
                  "style": "form"
                },
                "schemaJson": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns a created knowledge item.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TableSchema"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/projects/{project-id}/tables/{id}/export": {
      "get": {
        "tags": [
          "Tables"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TablesFilter"
              }
            }
          },
          {
            "name": "order-by",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order-in",
            "in": "query",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/SortOrder"
                }
              ]
            }
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/TableExportFormat"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/tables/{id}/columns": {
      "post": {
        "tags": [
          "Tables"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TableColumnNewSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TableColumnNewSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TableColumnNewSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TableSchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/tables/{id}/columns/{key}": {
      "delete": {
        "tags": [
          "Tables"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TableSchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/tables/{id}/records": {
      "get": {
        "tags": [
          "Tables"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TablesFilter"
              }
            }
          },
          {
            "name": "order-by",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order-in",
            "in": "query",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/SortOrder"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TableRecordSchemaPaginatedResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Tables"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/TableRecordNewSchema"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/TableRecordNewSchema"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/TableRecordNewSchema"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TableSchema"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Tables"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/TableRecordUpdateSchema"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/TableRecordUpdateSchema"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/TableRecordUpdateSchema"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TableRecordSchema"
                  }
                }
              }
            }
          },
          "207": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TableRecordBatchItemResultSchema"
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Tables"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TableRecordDeleteSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TableRecordDeleteSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TableRecordDeleteSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/tables/{id}/records/invalid": {
      "get": {
        "tags": [
          "Tables"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TableRecordSchemaPaginatedResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/tables/{id}/records/{record-id}": {
      "get": {
        "tags": [
          "Tables"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "record-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TableRecordSchemaPaginatedResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/tables/{id}/records/ids": {
      "get": {
        "tags": [
          "Tables"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "recordIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uid"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TableRecordSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/projects/{project-id}/tables/{id}/records/upsert": {
      "post": {
        "tags": [
          "Tables"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/TableRecordUpsertSchema"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/TableRecordUpsertSchema"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/TableRecordUpsertSchema"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TableRecordSchema"
                  }
                }
              }
            }
          },
          "207": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TableRecordBatchItemResultSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/tenants/{id}": {
      "get": {
        "tags": [
          "Tenants"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantSchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tenants": {
      "get": {
        "tags": [
          "Tenants"
        ],
        "parameters": [
          {
            "name": "sideLoadOptions",
            "in": "query",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/TenantSideLoadOptions"
                }
              ],
              "default": "none"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TenantSchema"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Tenants"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewTenantSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewTenantSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewTenantSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantSchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tenants/{tenant-id}": {
      "put": {
        "tags": [
          "Tenants"
        ],
        "parameters": [
          {
            "name": "tenant-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateTenantSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateTenantSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateTenantSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantSchema"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Tenants"
        ],
        "parameters": [
          {
            "name": "tenant-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/tenants/{tenant-id}/add-member": {
      "post": {
        "tags": [
          "Tenants"
        ],
        "parameters": [
          {
            "name": "tenant-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewTenantMemberSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewTenantMemberSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewTenantMemberSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantSchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tenants/accept-invitation": {
      "post": {
        "tags": [
          "Tenants"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/AcceptTenantInvitationSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/AcceptTenantInvitationSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/AcceptTenantInvitationSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantSchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tenants/resend-invitation": {
      "post": {
        "tags": [
          "Tenants"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ResendTenantInvitationSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ResendTenantInvitationSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ResendTenantInvitationSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantSchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tenants/{tenant-id}/branding-image": {
      "post": {
        "tags": [
          "Tenants"
        ],
        "summary": "Upload a project branding image.",
        "description": "Uploads the logo for a specific project. The logo image should have dimensions of 256x256 pixels and must be in PNG format.",
        "parameters": [
          {
            "name": "tenant-id",
            "in": "path",
            "description": "A short GUID that represents the ID of the project.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "file": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns a 200 OK response."
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      },
      "delete": {
        "tags": [
          "Tenants"
        ],
        "summary": "Delete a project branding image.",
        "description": "Delete the branding image for a specific project.",
        "parameters": [
          {
            "name": "tenant-id",
            "in": "path",
            "description": "A short GUID that represents the ID of the project.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a 200 OK response."
          },
          "401": {
            "description": "Unauthorized. User lacks necessary permissions."
          }
        }
      }
    },
    "/v1/tenants/{tenant-id}/remove-member/{member-id}": {
      "get": {
        "tags": [
          "Tenants"
        ],
        "parameters": [
          {
            "name": "tenant-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "member-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantSchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tenants/{tenant-id}/update-member-role": {
      "post": {
        "tags": [
          "Tenants"
        ],
        "parameters": [
          {
            "name": "tenant-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewTenantMemberSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewTenantMemberSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/NewTenantMemberSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantSchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tenants/{tenant-id}/get-member/{member-id}": {
      "get": {
        "tags": [
          "Tenants"
        ],
        "parameters": [
          {
            "name": "tenant-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "member-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserSchema"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tenants/{tenant-id}/get-members": {
      "get": {
        "tags": [
          "Tenants"
        ],
        "parameters": [
          {
            "name": "tenant-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "sideLoadOptions",
            "in": "query",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/MembersSideLoadOptions"
                }
              ],
              "default": "none"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TenantMemberSchema"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/tenants/{tenant-id}/update-branding": {
      "post": {
        "tags": [
          "Tenants"
        ],
        "parameters": [
          {
            "name": "tenant-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateTenantBrandingSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateTenantBrandingSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateTenantBrandingSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/tenants/{tenant-id}/transfer": {
      "post": {
        "tags": [
          "Tenants"
        ],
        "parameters": [
          {
            "name": "tenant-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TenantTransferSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TenantTransferSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TenantTransferSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/api/plugins/twilio/call-outbound-prod": {
      "post": {
        "tags": [
          "TwilioTrigger"
        ],
        "parameters": [
          {
            "name": "projectId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "phone",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/api/plugins/twilio/recording": {
      "get": {
        "tags": [
          "TwilioTrigger"
        ],
        "parameters": [
          {
            "name": "projectId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "chatId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "callSid",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "recordingSid",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/events/fire": {
      "post": {
        "tags": [
          "UserEvents"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/FireEventRequestSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/FireEventRequestSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/FireEventRequestSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/projects/{project-id}/events/schedule": {
      "post": {
        "tags": [
          "UserEvents"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ScheduleEventRequestSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ScheduleEventRequestSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ScheduleEventRequestSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "UserEvents"
        ],
        "parameters": [
          {
            "name": "X-Tenant-Id",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "project-id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/DeleteScheduledEventRequestSchema"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/DeleteScheduledEventRequestSchema"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/DeleteScheduledEventRequestSchema"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/packages/{id}/install": {
      "post": {
        "tags": [
          "UserPackaging"
        ],
        "parameters": [
          {
            "name": "packageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AcceptTenantInvitationSchema": {
        "required": [
          "email",
          "token"
        ],
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uid"
          },
          "email": {
            "minLength": 1,
            "type": "string"
          },
          "token": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "ArgumentSchema": {
        "type": "object",
        "properties": {
          "value": {
            "nullable": true
          },
          "expression": {
            "type": "string",
            "nullable": true
          },
          "isExpression": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Attachment": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "contentType": {
            "type": "string",
            "nullable": true
          },
          "contentBytesBase64": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BadgeType": {
        "enum": [
          "blueFlower"
        ],
        "type": "string"
      },
      "BillingType": {
        "enum": [
          "monthly",
          "yearly"
        ],
        "type": "string"
      },
      "BotPersonalitySchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A string representing the ID of the bot personality.",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "A string representing the name of the bot personality.",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "A string representing the description of the bot personality.",
            "nullable": true
          },
          "prompt": {
            "type": "string",
            "description": "A string representing the prompt for the bot personality.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BotRoleSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A string representing the ID of the bot role.",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "A string representing the name of the bot role.",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "A string representing the description of the bot role.",
            "nullable": true
          },
          "prompt": {
            "type": "string",
            "description": "A string representing the prompt for the bot role.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CampaignAnalyticsSchema": {
        "type": "object",
        "properties": {
          "queued": {
            "type": "integer",
            "format": "int32"
          },
          "queuedPercent": {
            "type": "number",
            "format": "float"
          },
          "sent": {
            "type": "integer",
            "format": "int32"
          },
          "sentPercent": {
            "type": "number",
            "format": "float"
          },
          "failed": {
            "type": "integer",
            "format": "int32"
          },
          "failedPercent": {
            "type": "number",
            "format": "float"
          },
          "delivered": {
            "type": "integer",
            "format": "int32"
          },
          "deliveredPercent": {
            "type": "number",
            "format": "float"
          },
          "undelivered": {
            "type": "integer",
            "format": "int32"
          },
          "undeliveredPercent": {
            "type": "number",
            "format": "float"
          },
          "read": {
            "type": "integer",
            "format": "int32"
          },
          "readPercent": {
            "type": "number",
            "format": "float"
          },
          "optOut": {
            "type": "integer",
            "format": "int32"
          },
          "optOutPercent": {
            "type": "number",
            "format": "float"
          },
          "replied": {
            "type": "integer",
            "format": "int32"
          },
          "repliedPercent": {
            "type": "number",
            "format": "float"
          },
          "lead": {
            "type": "integer",
            "format": "int32"
          },
          "leadPercent": {
            "type": "number",
            "format": "float"
          }
        },
        "additionalProperties": false
      },
      "CampaignFilterOperator": {
        "enum": [
          "is",
          "isNot",
          "contains",
          "doesNotContain"
        ],
        "type": "string"
      },
      "CampaignOptionsSchema": {
        "type": "object",
        "properties": {
          "messagingServices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CampaignServiceOptionSchema"
            },
            "nullable": true
          },
          "contentTemplates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CampaignResourceOptionSchema"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CampaignResourceOptionSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "language": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "dateCreated": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "rejectionReason": {
            "type": "string",
            "nullable": true
          },
          "content": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TwilioTemplateContentData"
              }
            ],
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CampaignSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uid"
          },
          "projectId": {
            "type": "string",
            "format": "uid"
          },
          "tableId": {
            "type": "string",
            "format": "uid",
            "nullable": true
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OutboundType"
              }
            ]
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "fromId": {
            "type": "string",
            "nullable": true
          },
          "channel": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OutboundChannel"
              }
            ],
            "nullable": true
          },
          "templateId": {
            "type": "string",
            "nullable": true
          },
          "variablesPair": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OutboundStatus"
              }
            ]
          },
          "firstNameHeader": {
            "type": "string",
            "nullable": true
          },
          "phoneHeader": {
            "type": "string",
            "nullable": true
          },
          "conversationsDailyLimit": {
            "type": "integer",
            "format": "int32"
          },
          "startAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "timeZone": {
            "type": "string",
            "nullable": true
          },
          "startedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "estimatedFinishTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "finishedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "analytics": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CampaignAnalyticsSchema"
              }
            ],
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CampaignServiceOptionSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "language": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "dateCreated": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "rejectionReason": {
            "type": "string",
            "nullable": true
          },
          "content": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TwilioTemplateContentData"
              }
            ],
            "nullable": true
          },
          "channels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OutboundChannel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChannelReferrer": {
        "enum": [
          "whatsAppOutbound",
          "twilioVoiceInbound"
        ],
        "type": "string"
      },
      "ChannelReferrerSchema": {
        "type": "object",
        "properties": {
          "name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ChannelReferrer"
              }
            ]
          },
          "properties": {
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChannelSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "referrer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ChannelReferrerSchema"
              }
            ],
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChatActionFilterOptions": {
        "enum": [
          "all",
          "repliedByUser",
          "unRepliedByUser"
        ],
        "type": "string"
      },
      "ChatChannel": {
        "type": "object",
        "additionalProperties": false
      },
      "ChatLastMessage": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uid",
            "nullable": true
          },
          "memberId": {
            "type": "string",
            "format": "uid",
            "nullable": true
          },
          "preview": {
            "type": "string",
            "nullable": true
          },
          "receivedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChatLegacySchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A short GUID that represents the conversation ID.",
            "format": "uid"
          },
          "projectId": {
            "type": "string",
            "description": "A short GUID that represents the project ID.",
            "format": "uid"
          },
          "createAt": {
            "type": "string",
            "description": "The date and time when the conversation was created.",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "description": "The date and time when the conversation was last updated.",
            "format": "date-time",
            "nullable": true
          },
          "lastUserMessageAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "reviewedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "The name of the conversation.",
            "nullable": true
          },
          "channel": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ChannelSchema"
              }
            ],
            "nullable": true
          },
          "threadControl": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ThreadControlSchema"
              }
            ],
            "nullable": true
          },
          "sessionControl": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SessionControlSchema"
              }
            ],
            "nullable": true
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChatTag"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Schema designed to represent and organize information related to a conversation within a project."
      },
      "ChatLegacySchemaPaginatedResponse": {
        "type": "object",
        "properties": {
          "offset": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int64"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "currentPage": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChatLegacySchema"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChatMemberType": {
        "enum": [
          "customer",
          "ai",
          "operator"
        ],
        "type": "string"
      },
      "ChatReviewStatusFilterOptions": {
        "enum": [
          "all",
          "read",
          "unRead",
          "reviewed",
          "forReview"
        ],
        "type": "string"
      },
      "ChatRole": {
        "enum": [
          "admin",
          "member"
        ],
        "type": "string"
      },
      "ChatSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uid"
          },
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MemberSchema"
            },
            "nullable": true
          },
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "threadControl": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ThreadControlEntity"
              }
            ],
            "nullable": true
          },
          "lastMessage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ChatLastMessage"
              }
            ],
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChatSchemaPaginatedResponse": {
        "type": "object",
        "properties": {
          "offset": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int64"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "currentPage": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChatSchema"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChatSortAttributeOptions": {
        "enum": [
          "updated",
          "lastUserMessage"
        ],
        "type": "string"
      },
      "ChatStringPayloadSchema": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "description": "A string representing the authentication JWT token (unique chat token).",
            "nullable": true
          },
          "stream": {
            "type": "boolean",
            "description": "A boolean value indicating whether to stream the response or not."
          },
          "message": {
            "type": "string",
            "description": "A string representing the chat message.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Data schema designed for handling chat-related payloads."
      },
      "ChatTag": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChatThreadControlFilterOptions": {
        "enum": [
          "all",
          "bot",
          "liveAgent"
        ],
        "type": "string"
      },
      "ColumnCustomAttribute": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "properties": {
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CommandArgumentTemplateSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "required": {
            "type": "boolean"
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CommandArgumentType"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "CommandArgumentType": {
        "enum": [
          "string",
          "int",
          "float",
          "dateTime",
          "date",
          "time",
          "keyValueArray",
          "boolean",
          "enum",
          "array"
        ],
        "type": "string"
      },
      "CommandTemplateSchema": {
        "type": "object",
        "properties": {
          "pluginId": {
            "type": "string",
            "format": "uid"
          },
          "pluginName": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "arguments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommandArgumentTemplateSchema"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompletionPayloadSchema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "The message for which completion needs to be generated.",
            "nullable": true
          },
          "search": {
            "type": "string",
            "description": "The search query to be used for generating completion.",
            "nullable": true
          },
          "stream": {
            "type": "boolean",
            "description": "Specifies whether to stream the completion response or not."
          },
          "patterns": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "description": "A dictionary of patterns to be used for generating completion.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Data schema designed for generating completion responses."
      },
      "CreateDirectoriesSchema": {
        "type": "object",
        "properties": {
          "paths": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreatePackageSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "license": {
            "type": "string",
            "nullable": true
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateSecretSchema": {
        "type": "object",
        "properties": {
          "secretDefinitionId": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "properties": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DataExposureLevel": {
        "enum": [
          "safe",
          "low",
          "high",
          "critical"
        ],
        "type": "string",
        "description": "The data exposure level of the plugin."
      },
      "DeleteDirectoriesSchema": {
        "type": "object",
        "properties": {
          "paths": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DeleteFilesSchema": {
        "type": "object",
        "properties": {
          "paths": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DeleteScheduledEventRequestSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uid"
          }
        },
        "additionalProperties": false
      },
      "DeleteVariablesSchema": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "nullable": true
          },
          "variables": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EndUserColumnType": {
        "enum": [
          "text",
          "number",
          "boolean",
          "date",
          "email",
          "url",
          "contact"
        ],
        "type": "string"
      },
      "EndUserRecordItem": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "value": { }
        },
        "additionalProperties": false
      },
      "EndUserRecordMarkAsReadSchema": {
        "type": "object",
        "properties": {
          "recordIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uid"
            },
            "description": "An array of ShortGuids representing the IDs of the end user records to be marked as read.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Schema designed specifically for marking multiple end-user records as read within a system or project."
      },
      "EndUserRecordSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A short GUID that represents the records ID.",
            "format": "uid"
          },
          "table": {
            "type": "string",
            "description": "A string for the name of the table for the end user record.",
            "nullable": true
          },
          "data": {
            "type": "string",
            "description": "A string for the data of the end user record.",
            "nullable": true
          },
          "dataJson": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EndUserRecordItem"
            },
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EndUserRecordStatus"
              }
            ],
            "description": "The status of the end user record."
          },
          "createdAt": {
            "type": "string",
            "description": "The date and time when the end user record was created.",
            "format": "date-time"
          },
          "chatId": {
            "type": "string",
            "description": "A short GUID that represents the conversation ID.",
            "format": "uid",
            "nullable": true
          },
          "contactId": {
            "type": "string",
            "format": "uid",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Schema designed to manage and organize individual records within an end-user table in a project or system."
      },
      "EndUserRecordSchemaPaginatedResponse": {
        "type": "object",
        "properties": {
          "offset": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int64"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "currentPage": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EndUserRecordSchema"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EndUserRecordStatus": {
        "enum": [
          "new",
          "read"
        ],
        "type": "string"
      },
      "EndUserTableSchema": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string",
            "description": "A string representing the project ID.",
            "format": "uid"
          },
          "name": {
            "type": "string",
            "description": "A string for the name of the table.",
            "nullable": true
          },
          "columns": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "An array of strings representing the columns of the table.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Schema designed to represent and organize information related to an end-user table within a project or system."
      },
      "ExtraCreditsSchema": {
        "type": "object",
        "properties": {
          "amountTokens": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "FeedbackMessageSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uid"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MessageItemSchema"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FeedbackSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A short GUID that represents the feedback ID.",
            "format": "uid"
          },
          "projectId": {
            "type": "string",
            "description": "A short GUID that represents the project ID.",
            "format": "uid"
          },
          "createAt": {
            "type": "string",
            "description": "A datetime representing the creation date of the feedback.",
            "format": "date-time"
          },
          "isResolved": {
            "type": "boolean",
            "description": "A boolean indicating whether the feedback is resolved or not."
          },
          "react": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TypeFeedback"
              }
            ],
            "description": "A string representing the type of feedback."
          },
          "message": {
            "type": "string",
            "description": "A string representing the feedback message.",
            "nullable": true,
            "deprecated": true
          },
          "inputMessage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FeedbackMessageSchema"
              }
            ],
            "nullable": true
          },
          "answer": {
            "type": "string",
            "nullable": true,
            "deprecated": true
          },
          "outputMessage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FeedbackMessageSchema"
              }
            ],
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Schema designed to capture and organize information related to user feedback."
      },
      "FileSearchOptions": {
        "type": "object",
        "properties": {
          "max_num_results": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "readOnly": true
          },
          "ranking_options": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RankingOptions"
              }
            ],
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "FileStorageSchema": {
        "required": [
          "path"
        ],
        "type": "object",
        "properties": {
          "path": {
            "minLength": 1,
            "type": "string"
          },
          "isShared": {
            "type": "boolean"
          },
          "lastModified": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FineTuningMessageSchema": {
        "type": "object",
        "properties": {
          "role": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TrainingExampleRole"
              }
            ]
          },
          "content": {
            "type": "string",
            "nullable": true
          },
          "toolCalls": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToolCallSchema"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FineTuningSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uid"
          },
          "partitionKey": {
            "type": "string",
            "nullable": true
          },
          "projectId": {
            "type": "string",
            "format": "uid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "model": {
            "type": "string",
            "nullable": true
          },
          "baseModel": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LlmModelType"
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FineTuningStatus"
              }
            ]
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "trainingSamples": {
            "type": "integer",
            "format": "int32"
          },
          "validationSamples": {
            "type": "integer",
            "format": "int32"
          },
          "loss": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "validationLoss": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "accuracy": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FineTuningStatus": {
        "enum": [
          "succeeded",
          "running",
          "queued",
          "pending",
          "failed",
          "canceled"
        ],
        "type": "string"
      },
      "FireEventRequestSchema": {
        "type": "object",
        "properties": {
          "eventName": {
            "type": "string",
            "nullable": true
          },
          "payload": {
            "nullable": true
          },
          "scheduledTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "extraAttributes": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Function": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "type": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "description": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "parameters": {
            "allOf": [
              {
                "$ref": "#/components/schemas/JsonNode"
              }
            ],
            "nullable": true,
            "readOnly": true
          },
          "arguments": {
            "allOf": [
              {
                "$ref": "#/components/schemas/JsonNode"
              }
            ],
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "GetMetricsSchema": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string",
            "format": "uid"
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "endDate": {
            "type": "string",
            "format": "date-time"
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "properties": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetUsageSchema": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string",
            "format": "uid"
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "endDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "JsonNode": {
        "type": "object",
        "properties": {
          "options": {
            "allOf": [
              {
                "$ref": "#/components/schemas/JsonNodeOptions"
              }
            ],
            "nullable": true,
            "readOnly": true
          },
          "parent": {
            "allOf": [
              {
                "$ref": "#/components/schemas/JsonNode"
              }
            ],
            "nullable": true,
            "readOnly": true
          },
          "root": {
            "allOf": [
              {
                "$ref": "#/components/schemas/JsonNode"
              }
            ],
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "JsonNodeOptions": {
        "type": "object",
        "properties": {
          "propertyNameCaseInsensitive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "KnowledgeContentSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A short GUID that represents the knowledge item ID.",
            "format": "uid"
          },
          "name": {
            "type": "string",
            "description": "A string representing the name of the knowledge entity.",
            "nullable": true
          },
          "content": {
            "type": "string",
            "description": "A string representing the content of the knowledge entity.",
            "nullable": true
          },
          "qas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QaSchema"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Schema designed to manage and organize knowledge text content."
      },
      "KnowledgeFormat": {
        "enum": [
          "unknown",
          "txt",
          "pdf",
          "docx",
          "md",
          "csv"
        ],
        "type": "string"
      },
      "KnowledgeRetrievalSearchKnowledge": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uid"
          }
        },
        "additionalProperties": false
      },
      "KnowledgeRetrievalSearchResult": {
        "type": "object",
        "properties": {
          "knowledge": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KnowledgeRetrievalSearchKnowledge"
            },
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KnowledgeRetrievalSearchResultItem"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "KnowledgeRetrievalSearchResultItem": {
        "type": "object",
        "properties": {
          "knowledgeId": {
            "type": "string",
            "format": "uid"
          },
          "score": {
            "type": "number",
            "format": "float"
          }
        },
        "additionalProperties": false
      },
      "KnowledgeSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A short GUID that represents the ID of the knowledge entity.",
            "format": "uid"
          },
          "parentId": {
            "type": "string",
            "description": "A short GUID that represents the parent ID of the knowledge entity.",
            "format": "uid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "A string representing the name of the knowledge entity.",
            "nullable": true
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/KnowledgeType"
              }
            ],
            "description": "An enum representing the type of the knowledge entity."
          },
          "format": {
            "allOf": [
              {
                "$ref": "#/components/schemas/KnowledgeFormat"
              }
            ],
            "description": "An enum representing the format of the knowledge entity."
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/KnowledgeStatus"
              }
            ],
            "description": "An enum representing the status of the knowledge entity."
          },
          "path": {
            "type": "string",
            "description": "A string representing the path of the knowledge entity.",
            "nullable": true
          },
          "progress": {
            "type": "number",
            "description": "A float representing the progress of the knowledge entity.",
            "format": "float"
          },
          "lastError": {
            "type": "string",
            "description": "A string representing the last error of the knowledge entity.",
            "nullable": true
          },
          "lastErrorStackTrace": {
            "type": "string",
            "description": "A string representing the last error stack trace of the knowledge entity.",
            "nullable": true
          },
          "text": {
            "type": "string",
            "description": "A string representing the text of the knowledge entity.",
            "nullable": true
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "A list of labels associated with the knowledge item.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Schema designed to manage and represent information related to a knowledge entity."
      },
      "KnowledgeSchemaPaginatedResponse": {
        "type": "object",
        "properties": {
          "offset": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int64"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "currentPage": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KnowledgeSchema"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "KnowledgeSortField": {
        "enum": [
          "name",
          "type",
          "status",
          "createdAt",
          "updatedAt",
          "deletedAt",
          "progress"
        ],
        "type": "string"
      },
      "KnowledgeStatus": {
        "enum": [
          "unsaved",
          "pending",
          "processing",
          "ready",
          "error",
          "canceled",
          "paused",
          "skipped"
        ],
        "type": "string"
      },
      "KnowledgeType": {
        "enum": [
          "file",
          "text",
          "website",
          "webpage",
          "sitemap",
          "site",
          "page",
          "gitHub",
          "gitHubUrl",
          "youtubeUrl",
          "loom",
          "zendesk",
          "zendeskTicket",
          "fama",
          "famaProduct",
          "qnA",
          "table",
          "folder"
        ],
        "type": "string"
      },
      "LimitsRequest": {
        "required": [
          "limit",
          "resetInterval"
        ],
        "type": "object",
        "properties": {
          "limit": {
            "minimum": 1,
            "type": "number",
            "format": "double"
          },
          "resetInterval": {
            "maximum": 2147483647,
            "minimum": 1,
            "type": "integer",
            "format": "int32",
            "default": 60
          }
        },
        "additionalProperties": false
      },
      "LlmModelType": {
        "enum": [
          "gpt3",
          "gpt4",
          "gpt4_1",
          "gpt4_1_mini",
          "gpt4_1_nano",
          "o1",
          "o1_pro",
          "o3",
          "o3_mini",
          "o3_pro",
          "o4_mini",
          "gpt4Turbo",
          "gpt4Turbo0125",
          "gpt4o",
          "gpt4oMini",
          "gpt4oFinetuned",
          "gpt4oMiniFinetuned",
          "gpt3Finetuned",
          "gpt_5",
          "gpt_5_mini",
          "gpt_5_nano",
          "gpt_5_2",
          "gpt_5_4",
          "gpt_5_4_mini",
          "gpt_5_5"
        ],
        "type": "string"
      },
      "LlmRequestMessageEntity": {
        "type": "object",
        "properties": {
          "role": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Role"
              }
            ]
          },
          "content": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LlmTraceFunctionResponseSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "argsJson": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LlmTracePayloadSchema": {
        "type": "object",
        "properties": {
          "apiType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OpenAiApiType"
              }
            ]
          },
          "model": {
            "type": "string",
            "nullable": true
          },
          "temperature": {
            "type": "number",
            "format": "float"
          },
          "instructionPrompt": {
            "type": "string",
            "nullable": true
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LlmRequestMessageEntity"
            },
            "nullable": true
          },
          "functions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Function"
            },
            "nullable": true
          },
          "tools": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tool"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LlmTraceResponseSchema": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "nullable": true
          },
          "tools": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LlmTraceFunctionResponseSchema"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MagicSchema": {
        "type": "object",
        "properties": {
          "blockName": {
            "type": "string",
            "nullable": true
          },
          "prompt": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MailSchema": {
        "type": "object",
        "properties": {
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "subject": {
            "type": "string",
            "nullable": true
          },
          "body": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "attachments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Attachment"
            },
            "nullable": true
          },
          "isHtml": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "MemberSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uid"
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ChatMemberType"
              }
            ]
          },
          "role": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ChatRole"
              }
            ]
          },
          "externalId": {
            "type": "string",
            "nullable": true
          },
          "channel": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ChatChannel"
              }
            ],
            "nullable": true
          },
          "contactId": {
            "type": "string",
            "format": "uid",
            "nullable": true
          },
          "unreadCount": {
            "type": "integer",
            "format": "int32"
          },
          "unseenCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "MembersSideLoadOptions": {
        "enum": [
          "none",
          "user"
        ],
        "type": "string"
      },
      "MessageFeedbackSchema": {
        "type": "object",
        "properties": {
          "answerId": {
            "type": "string",
            "description": "A short GUID that represents the ID of the answer.",
            "format": "uid"
          },
          "messageId": {
            "type": "string",
            "description": "A short GUID that represents the ID of the message.",
            "format": "uid"
          },
          "chatId": {
            "type": "string",
            "description": "A short GUID that represents the ID of the chat.",
            "format": "uid"
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TypeFeedback"
              }
            ],
            "description": "The type of feedback."
          }
        },
        "additionalProperties": false,
        "description": "The schema containing message feedback details."
      },
      "MessageItemSchema": {
        "type": "object",
        "additionalProperties": false
      },
      "MessageSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A short GUID that represents the message ID.",
            "format": "uid"
          },
          "message": {
            "type": "string",
            "description": "A string representing the content of the message.",
            "nullable": true,
            "deprecated": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MessageItemSchema"
            },
            "nullable": true
          },
          "isUserSender": {
            "type": "boolean",
            "description": "A boolean indicating whether the user is the sender of the message."
          },
          "replyToId": {
            "type": "string",
            "format": "uid",
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MessageStatus"
              }
            ]
          },
          "createAt": {
            "type": "string",
            "description": "A datetime representing the creation date of the message.",
            "format": "date-time",
            "deprecated": true
          },
          "react": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TypeFeedback"
              }
            ],
            "description": "An enum indicating the type of feedback for the message.",
            "nullable": true
          },
          "reactId": {
            "type": "string",
            "description": "A short GUID that represents the ID of the feedback reaction.",
            "format": "uid",
            "nullable": true
          },
          "costs": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PriceInfo"
              }
            ],
            "description": "An object containing price information for the message.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Schema designed to capture and organize information related to messages within a conversation or chat context."
      },
      "MessageStatus": {
        "enum": [
          "processing",
          "completed"
        ],
        "type": "string"
      },
      "MoveBlockSchema": {
        "type": "object",
        "properties": {
          "blockName": {
            "type": "string",
            "nullable": true
          },
          "newParentBlockName": {
            "type": "string",
            "nullable": true
          },
          "newBranchKey": {
            "type": "string",
            "nullable": true
          },
          "newIndex": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MoveKnowledgeSchema": {
        "type": "object",
        "properties": {
          "knowledgeIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uid"
            },
            "nullable": true
          },
          "newParentId": {
            "type": "string",
            "format": "uid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NestedKnowledgeSchema": {
        "type": "object",
        "properties": {
          "parentId": {
            "type": "string",
            "description": "A short GUID that represents the parent knowledge item ID.",
            "format": "uid"
          }
        },
        "additionalProperties": false,
        "description": "Schema designed to manage hierarchical relationships between knowledge items."
      },
      "NewBlockSchema": {
        "type": "object",
        "properties": {
          "blockName": {
            "type": "string",
            "nullable": true
          },
          "definitionId": {
            "type": "string",
            "nullable": true
          },
          "branchKey": {
            "type": "string",
            "nullable": true
          },
          "parentBlockName": {
            "type": "string",
            "nullable": true
          },
          "index": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NewCampaignSchema": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OutboundType"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "NewEndUserRecordItemSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "value": { },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EndUserColumnType"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "NewEndUserRecordSchema": {
        "type": "object",
        "properties": {
          "table": {
            "type": "string",
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NewEndUserRecordItemSchema"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NewFineTuningSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "baseModel": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LlmModelType"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "NewFolderSchema": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "name": {
            "maxLength": 512,
            "minLength": 1,
            "type": "string"
          },
          "parentId": {
            "type": "string",
            "format": "uid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NewInboundSubscriptionSchema": {
        "type": "object",
        "properties": {
          "callbackUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NewInboundWebhookRequestSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NewKnowledgeGithubSchema": {
        "required": [
          "branch",
          "url"
        ],
        "type": "object",
        "properties": {
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "url": {
            "maxLength": 512,
            "minLength": 19,
            "type": "string",
            "description": "The URL of the Github repository."
          },
          "branch": {
            "maxLength": 244,
            "minLength": 1,
            "type": "string",
            "description": "The branch of the Github repository."
          }
        },
        "additionalProperties": false,
        "description": "Schema designed to capture and manage information related to knowledge items sourced from GitHub repositories."
      },
      "NewKnowledgeQnaSchema": {
        "required": [
          "answer",
          "question",
          "type"
        ],
        "type": "object",
        "properties": {
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "question": {
            "maxLength": 2048,
            "minLength": 1,
            "type": "string"
          },
          "answer": {
            "maxLength": 2048,
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TypeQnAKnowledge"
              }
            ]
          },
          "command": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NewKnowledgeSitemapSchema": {
        "required": [
          "url"
        ],
        "type": "object",
        "properties": {
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "url": {
            "maxLength": 512,
            "minLength": 3,
            "type": "string",
            "description": "The URL of the sitemap."
          }
        },
        "additionalProperties": false,
        "description": "Schema intended to manage and organize information related to knowledge items sourced from sitemaps."
      },
      "NewKnowledgeTableSchema": {
        "type": "object",
        "properties": {
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "tableId": {
            "type": "string",
            "format": "uid"
          }
        },
        "additionalProperties": false
      },
      "NewKnowledgeTextSchema": {
        "required": [
          "name",
          "text"
        ],
        "type": "object",
        "properties": {
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "name": {
            "maxLength": 512,
            "minLength": 4,
            "type": "string",
            "description": "The name of the knowledge item."
          },
          "text": {
            "maxLength": 1048576,
            "minLength": 1,
            "type": "string",
            "description": "The text content of the knowledge item."
          }
        },
        "additionalProperties": false,
        "description": "Schema designed to capture and organize textual information for creating new knowledge items."
      },
      "NewKnowledgeTextWithReferenceSchema": {
        "required": [
          "customReference",
          "name",
          "text"
        ],
        "type": "object",
        "properties": {
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "name": {
            "maxLength": 512,
            "minLength": 4,
            "type": "string",
            "description": "The name of the knowledge item."
          },
          "text": {
            "maxLength": 1048576,
            "minLength": 1,
            "type": "string",
            "description": "The text content of the knowledge item."
          },
          "customReference": {
            "maxLength": 512,
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "NewKnowledgeWebsiteSchema": {
        "required": [
          "url"
        ],
        "type": "object",
        "properties": {
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "url": {
            "maxLength": 512,
            "minLength": 3,
            "type": "string"
          },
          "crawlAllWebsite": {
            "type": "boolean"
          },
          "useSitemap": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "NewKnowledgeYoutubeSchema": {
        "required": [
          "url"
        ],
        "type": "object",
        "properties": {
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "url": {
            "maxLength": 512,
            "minLength": 3,
            "type": "string",
            "description": "The URL of the Youtube video."
          }
        },
        "additionalProperties": false,
        "description": "Schema designed to capture and manage information related to knowledge items sourced from YouTube videos."
      },
      "NewLoomKnowledgeSchema": {
        "required": [
          "url"
        ],
        "type": "object",
        "properties": {
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "url": {
            "maxLength": 512,
            "minLength": 4,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "NewRoutineSchema": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "NewSubscribeRequestSchema": {
        "type": "object",
        "properties": {
          "eventName": {
            "type": "string",
            "nullable": true
          },
          "callbackUrl": {
            "type": "string",
            "nullable": true
          },
          "attributes": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          },
          "headers": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          },
          "once": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NewTenantMemberSchema": {
        "required": [
          "email"
        ],
        "type": "object",
        "properties": {
          "email": {
            "minLength": 1,
            "type": "string"
          },
          "role": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TenantMemberRole"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "NewTenantSchema": {
        "required": [
          "displayName",
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 32,
            "minLength": 3,
            "type": "string"
          },
          "displayName": {
            "maxLength": 32,
            "minLength": 3,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "NewTrainingExampleFineTuningSchema": {
        "type": "object",
        "properties": {
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FineTuningMessageSchema"
            },
            "nullable": true
          },
          "tools": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToolDefinitionSchema"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NewTwilioTemplateSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "language": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TwilioTemplateType"
              }
            ]
          },
          "body": {
            "type": "string",
            "nullable": true
          },
          "variables": {
            "nullable": true
          },
          "data": {
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OpenAiApiType": {
        "enum": [
          "completions",
          "responses"
        ],
        "type": "string"
      },
      "OutboundChannel": {
        "enum": [
          "whatsApp",
          "sms"
        ],
        "type": "string"
      },
      "OutboundStatus": {
        "enum": [
          "ready",
          "running",
          "canceled",
          "finished"
        ],
        "type": "string"
      },
      "OutboundType": {
        "enum": [
          "fixed",
          "continuous"
        ],
        "type": "string"
      },
      "PaymentSchema": {
        "type": "object",
        "properties": {
          "billingType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BillingType"
              }
            ]
          },
          "planId": {
            "type": "string",
            "format": "uid"
          }
        },
        "additionalProperties": false,
        "description": "A short GUID that represents the subscription ID."
      },
      "PlanEntity": {
        "type": "object",
        "properties": {
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "id": {
            "type": "string",
            "format": "uid"
          },
          "partitionKey": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "domainId": {
            "type": "string",
            "format": "uid"
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PlanType"
              }
            ]
          },
          "isFree": {
            "type": "boolean"
          },
          "isCustom": {
            "type": "boolean"
          },
          "stripeMonthlyPriceId": {
            "type": "string",
            "nullable": true
          },
          "stripeMonthlyAnualPriceId": {
            "type": "string",
            "nullable": true
          },
          "monthlyPrice": {
            "type": "string",
            "format": "number"
          },
          "monthlyPriceAnualBilling": {
            "type": "string",
            "format": "number"
          },
          "isActive": {
            "type": "boolean"
          },
          "isVisible": {
            "type": "boolean"
          },
          "revision": {
            "type": "integer",
            "format": "int32"
          },
          "credits": {
            "type": "integer",
            "format": "int32"
          },
          "features": {
            "type": "object",
            "additionalProperties": {
              "type": "boolean"
            },
            "nullable": true
          },
          "averageLimits": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32",
              "nullable": true
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PlanType": {
        "enum": [
          "free",
          "standard",
          "enterprise",
          "premium",
          "starter"
        ],
        "type": "string"
      },
      "PluginProperty": {
        "type": "object",
        "properties": {
          "displayName": {
            "type": "string",
            "description": "The display name of the property.",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "The description of the property.",
            "nullable": true
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PluginPropertyType"
              }
            ],
            "description": "The type of the property."
          },
          "defaultValue": {
            "description": "The default value of the property.",
            "nullable": true
          },
          "isRequired": {
            "type": "boolean",
            "description": "Indicates if the property is required."
          },
          "readOnly": {
            "type": "boolean",
            "description": "Indicates if the property is read-only."
          },
          "placeholder": {
            "type": "string",
            "description": "The placeholder for the property.",
            "nullable": true
          },
          "values": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "A list of possible values for the property (if applicable).",
            "nullable": true
          },
          "order": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "clonable": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A dictionary of properties associated with the plugin."
      },
      "PluginPropertyType": {
        "enum": [
          "string",
          "multiline",
          "integer",
          "boolean",
          "float",
          "dateTime",
          "time",
          "timeZone",
          "weeklyHours",
          "timeInterval",
          "phone",
          "email",
          "url",
          "holidays",
          "enum",
          "object",
          "array",
          "keyValueArray",
          "file",
          "image",
          "video",
          "audio",
          "location",
          "color",
          "password",
          "markdown",
          "percentage",
          "auth",
          "googleAuth",
          "facebookAuth",
          "instagramAuth"
        ],
        "type": "string",
        "description": "The type of the property."
      },
      "PluginSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A short GUID that represents the plugin ID.",
            "format": "uid"
          },
          "name": {
            "type": "string",
            "description": "The name of the plugin.",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "description": "The display name of the plugin.",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "The description of the plugin.",
            "nullable": true
          },
          "version": {
            "type": "string",
            "description": "The version of the plugin.",
            "nullable": true
          },
          "author": {
            "type": "string",
            "description": "The author of the plugin.",
            "nullable": true
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PluginType"
              }
            ],
            "description": "The type of the plugin."
          },
          "properties": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/PluginProperty"
            },
            "description": "A dictionary of properties associated with the plugin.",
            "nullable": true
          },
          "isDemoPlugin": {
            "type": "boolean",
            "description": "Indicates if the plugin is a demo plugin."
          },
          "dataExposureLevel": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DataExposureLevel"
              }
            ],
            "description": "The data exposure level of the plugin."
          },
          "dataExposureMessage": {
            "type": "string",
            "description": "The message related to data exposure for the plugin.",
            "nullable": true
          },
          "commands": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "A list of commands associated with the plugin.",
            "nullable": true
          },
          "isBeta": {
            "type": "boolean",
            "nullable": true
          },
          "isExperimental": {
            "type": "boolean",
            "nullable": true
          },
          "isDeprecated": {
            "type": "boolean",
            "nullable": true
          },
          "requiredProjectVersion": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectVersion"
              }
            ],
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Schema designed to manage and organize information."
      },
      "PluginType": {
        "enum": [
          "communication",
          "customer",
          "data",
          "automation",
          "intelligence",
          "domain",
          "unknown"
        ],
        "type": "string",
        "description": "The type of the plugin."
      },
      "PluginUninstallSchema": {
        "type": "object",
        "properties": {
          "pluginId": {
            "type": "string",
            "description": "The ID of the plugin to be uninstalled.",
            "format": "uid"
          }
        },
        "additionalProperties": false,
        "description": "Schema designed to manage the uninstallation process of a plugin."
      },
      "PriceInfo": {
        "type": "object",
        "properties": {
          "costUsd": {
            "type": "string",
            "description": "A decimal representing the cost in USD.",
            "format": "number"
          },
          "priceUsd": {
            "type": "string",
            "description": "A decimal representing the price in USD.",
            "format": "number"
          },
          "costCredits": {
            "type": "string",
            "description": "A decimal representing the cost in credits.",
            "format": "number"
          },
          "priceCredits": {
            "type": "string",
            "description": "A decimal representing the price in credits.",
            "format": "number"
          }
        },
        "additionalProperties": false
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": { }
      },
      "ProjectCloneSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A ShortGuid property that uniquely identifies the original project.",
            "format": "uid"
          },
          "name": {
            "type": "string",
            "description": "A string property representing the name of the cloned project.",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "description": "A ShortGuid property indicating the unique identifier of the new owner of the cloned project.",
            "format": "uid"
          },
          "withKnowledge": {
            "type": "boolean",
            "description": "A boolean property that determines whether to include the original project's knowledge base in the clone."
          },
          "autoTrain": {
            "type": "boolean",
            "description": "A boolean property that specifies whether the cloned project should automatically start training based on the original project's data."
          },
          "withPlugins": {
            "type": "boolean",
            "description": "A boolean property that determines whether to include the original project's plugins in the clone."
          }
        },
        "additionalProperties": false,
        "description": "An integer property that defines the duration, in milliseconds, for which the speech bubble remains visible."
      },
      "ProjectInfoSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A short GUID that represents the project ID.",
            "format": "uid"
          },
          "tenantId": {
            "type": "string",
            "description": "A short GUID that represents the organization ID.",
            "format": "uid"
          },
          "name": {
            "type": "string",
            "description": "A string for the name of the project.",
            "nullable": true
          },
          "subTitle": {
            "type": "string",
            "description": "A string for the subtitle of the project.",
            "nullable": true
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectType"
              }
            ],
            "description": "Specifies the type of the project."
          },
          "startMessage": {
            "type": "string",
            "description": "A string for the start message of the project.",
            "nullable": true
          },
          "logoFileName": {
            "type": "string",
            "description": "A string for the filename of image.",
            "nullable": true
          },
          "suggestedQuestions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "A list of strings for suggested questions in the project.",
            "nullable": true
          },
          "isActive": {
            "type": "boolean",
            "description": "A boolean value indicating whether the project is active."
          },
          "customBranding": {
            "type": "boolean",
            "description": "A boolean value indicating whether the project has custom branding."
          },
          "brandName": {
            "type": "string",
            "description": "A string for the brand name of the project.",
            "nullable": true
          },
          "hasBrandImage": {
            "type": "boolean",
            "description": "A boolean value indicating whether the project has a brand image."
          },
          "customDomain": {
            "type": "boolean",
            "description": "A boolean value indicating whether the project has a custom domain."
          },
          "customDomainName": {
            "type": "string",
            "description": "A string for the domain of the project.",
            "nullable": true
          },
          "domain": {
            "type": "string",
            "description": "A string for the X-Domain of the project.",
            "nullable": true
          },
          "widgetSettings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectWidgetSettingsSchema"
              }
            ],
            "description": "Schema defines a set of properties that encapsulate various settings for a project widget.",
            "nullable": true
          },
          "regionalSettings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectRegionalSettingsSchema"
              }
            ],
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Schema designed to provide essential information and settings for a project."
      },
      "ProjectOptionsSchema": {
        "type": "object",
        "properties": {
          "roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BotRoleSchema"
            },
            "description": "A collection of parameters related to bot roles in a project.",
            "nullable": true
          },
          "personalities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BotPersonalitySchema"
            },
            "description": "A collection of parameters defining bot personalities within the project.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Data schema designed for managing key aspects of a project."
      },
      "ProjectPluginSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A short GUID that represents the project ID.",
            "format": "uid"
          },
          "name": {
            "type": "string",
            "description": "A string that represents the plugin name.",
            "nullable": true
          },
          "pluginId": {
            "type": "string",
            "description": "A short GUID that represents the plugin ID.",
            "format": "uid"
          },
          "isDemoRequested": {
            "type": "boolean",
            "description": "A boolean indicating if a demo is requested for the plugin."
          },
          "properties": {
            "type": "object",
            "additionalProperties": { },
            "description": "A JSON object containing the properties of the project plugin.",
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectPluginStatus"
              }
            ],
            "description": "The status of the project plugin."
          },
          "lastError": {
            "type": "string",
            "description": "A string representing the last error encountered by the project plugin.",
            "nullable": true
          },
          "lastErrorStackTrace": {
            "type": "string",
            "description": "A string representing the stack trace of the last error encountered by the project plugin.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The data exposure level of the plugin."
      },
      "ProjectPluginStatus": {
        "enum": [
          "unknown",
          "starting",
          "running",
          "error"
        ],
        "type": "string",
        "description": "The status of the project plugin."
      },
      "ProjectPromptSizeSchema": {
        "type": "object",
        "properties": {
          "knowledgeMaxChars": {
            "maximum": 100000,
            "minimum": 0,
            "type": "integer",
            "description": "The maximum number of characters for knowledge.",
            "format": "int32"
          },
          "embeddingChunkChars": {
            "maximum": 4000,
            "minimum": 200,
            "type": "integer",
            "description": "The number of characters for embedding chunk.",
            "format": "int32"
          },
          "recentHistoryMaxChars": {
            "maximum": 60000,
            "minimum": 0,
            "type": "integer",
            "description": "The maximum number of characters for recent history.",
            "format": "int32"
          },
          "recentHistoryMinMessages": {
            "maximum": 100,
            "minimum": 0,
            "type": "integer",
            "description": "The minimum number of messages for recent history.",
            "format": "int32"
          },
          "summarizeMessages": {
            "maximum": 100,
            "minimum": 0,
            "type": "integer",
            "description": "The number of messages to summarize.",
            "format": "int32"
          },
          "contextBudgetOverride": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "summaryRefreshPercent": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "An object representing the prompt size of the project."
      },
      "ProjectPutSchema": {
        "type": "object",
        "properties": {
          "properties": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          },
          "pluginId": {
            "type": "string",
            "description": "A short GUID that represents the plugin ID.",
            "format": "uid"
          }
        },
        "additionalProperties": false,
        "description": "Schema designed to handle and manage updates to project plugins."
      },
      "ProjectRegionalSettingsSchema": {
        "type": "object",
        "properties": {
          "timeZone": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectTimeZoneSchema"
              }
            ],
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProjectSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A short GUID that represents the project ID.",
            "format": "uid"
          },
          "tenantId": {
            "type": "string",
            "description": "A short GUID that represents the tenant ID.",
            "format": "uid"
          },
          "userId": {
            "type": "string",
            "description": "A short GUID that represents the user ID.",
            "format": "uid"
          },
          "name": {
            "type": "string",
            "description": "A string for the name of the project.",
            "nullable": true
          },
          "subTitle": {
            "type": "string",
            "description": "A string for the subtitle of the project.",
            "nullable": true
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectType"
              }
            ],
            "description": "Specifies the type of the project."
          },
          "engine": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LlmModelType"
              }
            ],
            "description": "Specifies the engine type of the project."
          },
          "reasoningEffort": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReasoningEffort"
              }
            ],
            "nullable": true
          },
          "verbosity": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Verbosity"
              }
            ],
            "nullable": true
          },
          "startMessage": {
            "type": "string",
            "description": "A string for the start message of the project.",
            "nullable": true
          },
          "logoFileName": {
            "type": "string",
            "description": "A string for the filename of image.",
            "nullable": true
          },
          "systemPrompt": {
            "type": "string",
            "description": "A string for the system prompt of the project.",
            "nullable": true
          },
          "instructionPrompt": {
            "type": "string",
            "description": "A string for the instruction prompt of the project.",
            "nullable": true
          },
          "variablesPrompt": {
            "type": "string",
            "nullable": true
          },
          "qAndAKnowledgePrompt": {
            "type": "string",
            "nullable": true
          },
          "memorySummaryPrompt": {
            "type": "string",
            "description": "A string for the memory summary prompt of the project.",
            "nullable": true
          },
          "knowledgePrompt": {
            "type": "string",
            "description": "A string for the knowledge prompt of the project.",
            "nullable": true
          },
          "recentPrompt": {
            "type": "string",
            "description": "A string for the recent prompt of the project.",
            "nullable": true
          },
          "suggestedQuestions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "A list of strings for the suggested questions of the project.",
            "nullable": true
          },
          "examples": {
            "type": "string",
            "description": "A string for the examples of the project.",
            "nullable": true
          },
          "isActive": {
            "type": "boolean",
            "description": "A boolean value indicating if the project is active."
          },
          "availableCommands": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "A list of strings for the available commands of the project.",
            "nullable": true
          },
          "roleId": {
            "type": "string",
            "description": "A string for the role ID of the project.",
            "nullable": true
          },
          "personalityId": {
            "type": "string",
            "description": "A string for the personality ID of the project.",
            "nullable": true
          },
          "promptSize": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectPromptSizeSchema"
              }
            ],
            "description": "An object representing the prompt size of the project.",
            "nullable": true
          },
          "creativity": {
            "maximum": 1,
            "minimum": 0,
            "type": "number",
            "format": "float"
          },
          "widgetSettings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectWidgetSettingsSchema"
              }
            ],
            "description": "Schema defines a set of properties that encapsulate various settings for a project widget.",
            "nullable": true
          },
          "regionalSettings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectRegionalSettingsSchema"
              }
            ],
            "nullable": true
          },
          "version": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectVersion"
              }
            ],
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Schema designed to encapsulate key attributes and configurations for a project."
      },
      "ProjectSchemaNew": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the project.",
            "nullable": true
          },
          "subTitle": {
            "type": "string",
            "description": "The subtitle of the project.",
            "nullable": true
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectType"
              }
            ],
            "description": "The type of the project."
          },
          "engine": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LlmModelType"
              }
            ],
            "description": "The engine type of the project."
          },
          "reasoningEffort": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReasoningEffort"
              }
            ],
            "nullable": true
          },
          "verbosity": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Verbosity"
              }
            ],
            "nullable": true
          },
          "roleId": {
            "type": "string",
            "description": "The ID of the bot role for the project.",
            "nullable": true
          },
          "personalityId": {
            "type": "string",
            "description": "The ID of the bot personality for the project.",
            "nullable": true
          },
          "vectorStore": {
            "allOf": [
              {
                "$ref": "#/components/schemas/VectorStoreType"
              }
            ],
            "description": "The type of the vector store."
          },
          "widgetSettings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectWidgetSettingsSchema"
              }
            ],
            "description": "Schema defines a set of properties that encapsulate various settings for a project widget.",
            "nullable": true
          },
          "version": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectVersion"
              }
            ],
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The schema containing project details."
      },
      "ProjectSchemaUpdate": {
        "required": [
          "promptSize",
          "widgetSettings"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The updated name of the project.",
            "nullable": true
          },
          "subTitle": {
            "type": "string",
            "description": "The updated subtitle of the project.",
            "nullable": true
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectType"
              }
            ],
            "description": "The updated type of the project."
          },
          "engine": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LlmModelType"
              }
            ],
            "description": "The updated engine type of the project."
          },
          "reasoningEffort": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReasoningEffort"
              }
            ],
            "nullable": true
          },
          "verbosity": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Verbosity"
              }
            ],
            "nullable": true
          },
          "fineTunedEngineId": {
            "type": "string",
            "description": "The updated finetuned model ID for the project.",
            "format": "uid",
            "nullable": true
          },
          "startMessage": {
            "type": "string",
            "description": "The updated start message of the project.",
            "nullable": true
          },
          "systemPrompt": {
            "type": "string",
            "description": "The updated system prompt of the project.",
            "nullable": true
          },
          "instructionPrompt": {
            "type": "string",
            "description": "The updated instruction prompt of the project.",
            "nullable": true
          },
          "variablesPrompt": {
            "type": "string",
            "nullable": true
          },
          "qAndAKnowledgePrompt": {
            "type": "string",
            "nullable": true
          },
          "memorySummaryPrompt": {
            "type": "string",
            "description": "The updated memory summary prompt of the project.",
            "nullable": true
          },
          "knowledgePrompt": {
            "type": "string",
            "description": "The updated knowledge prompt of the project.",
            "nullable": true
          },
          "recentPrompt": {
            "type": "string",
            "description": "The updated recent prompt of the project.",
            "nullable": true
          },
          "suggestedQuestions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "An array of suggested questions for the project.",
            "nullable": true
          },
          "examples": {
            "type": "string",
            "description": "The updated examples of the project.",
            "nullable": true
          },
          "roleId": {
            "type": "string",
            "description": "The updated role ID of the project.",
            "nullable": true
          },
          "personalityId": {
            "type": "string",
            "description": "The updated personality ID of the project.",
            "nullable": true
          },
          "promptSize": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectPromptSizeSchema"
              }
            ],
            "description": "An object representing the prompt size of the project."
          },
          "creativity": {
            "maximum": 1,
            "minimum": 0,
            "type": "number",
            "format": "float"
          },
          "widgetSettings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectWidgetSettingsSchema"
              }
            ],
            "description": "Schema defines a set of properties that encapsulate various settings for a project widget."
          },
          "regionalSettings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectRegionalSettingsSchema"
              }
            ],
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Scheme for updating information related to the project."
      },
      "ProjectTemplatesSchema": {
        "type": "object",
        "properties": {
          "commands": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommandTemplateSchema"
            },
            "nullable": true
          },
          "statics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StaticTemplateSchema"
            },
            "nullable": true
          },
          "variables": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VariableTemplateSchema"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProjectTimeZoneSchema": {
        "type": "object",
        "properties": {
          "offset": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProjectType": {
        "enum": [
          "ask",
          "chat",
          "assistance"
        ],
        "type": "string"
      },
      "ProjectVersion": {
        "enum": [
          "v1",
          "v2"
        ],
        "type": "string"
      },
      "ProjectWidgetSettingsSchema": {
        "type": "object",
        "properties": {
          "agentName": {
            "type": "string",
            "description": "A string representing the name of the bot personality.",
            "nullable": true
          },
          "userLabel": {
            "type": "string",
            "description": "A string representing the label of the user personality.",
            "nullable": true
          },
          "placeHolder": {
            "type": "string",
            "description": "A string property that represents the input's placeholder of the widget.",
            "nullable": true
          },
          "followPages": {
            "type": "boolean",
            "description": "A boolean property indicating whether the chat's saving history is enabled across different pages."
          },
          "theme": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectWidgetThemeType"
              }
            ],
            "description": "A string property that represents the theme of the widget."
          },
          "color": {
            "type": "string",
            "description": "A string property that represents the color scheme for the project widget.",
            "nullable": true
          },
          "speechBubble": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SpeechBubbleSchema"
              }
            ],
            "description": "A schema of properties that represents the theme of the chat speech bubble.",
            "nullable": true
          },
          "hasBackgroundImage": {
            "type": "boolean",
            "description": "A boolean property that indicates whether the project widget should have a background image or not."
          },
          "enableMicrophone": {
            "type": "boolean",
            "description": "A boolean property that controls whether the microphone feature is enabled for the project widget."
          },
          "enableAttachments": {
            "type": "boolean",
            "description": "A boolean property that controls whether attachments are enabled for the project widget."
          },
          "enableReferences": {
            "type": "boolean",
            "description": "A boolean property that control whether references are enabled for the project widget."
          },
          "streamMode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectWidgetStreamMode"
              }
            ],
            "description": "A string property that represents the stream mode of the widget."
          },
          "title": {
            "type": "string",
            "description": "A string property that represents the title of the widget.",
            "nullable": true
          },
          "fileAttachmentEnabled": {
            "type": "boolean",
            "description": "A boolean property that controls whether the project widget allows file attachments."
          }
        },
        "additionalProperties": false,
        "description": "Schema defines a set of properties that encapsulate various settings for a project widget."
      },
      "ProjectWidgetStreamMode": {
        "enum": [
          "default",
          "typing",
          "off"
        ],
        "type": "string"
      },
      "ProjectWidgetThemeType": {
        "enum": [
          "dark",
          "light"
        ],
        "type": "string"
      },
      "QaSchema": {
        "type": "object",
        "properties": {
          "question": {
            "type": "string",
            "nullable": true
          },
          "answer": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QnaPrepareTextSchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "nullable": true
          },
          "chunkSize": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "overlap": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "maxChunks": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RankingOptions": {
        "type": "object",
        "properties": {
          "score_threshold": {
            "type": "number",
            "format": "float"
          },
          "ranker": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Reacts": {
        "type": "object",
        "properties": {
          "feedback": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FeedbackSchema"
            },
            "description": "An array of feedback objects.",
            "nullable": true
          },
          "statistic": {
            "type": "object",
            "additionalProperties": {
              "type": "number",
              "format": "double",
              "nullable": true
            },
            "description": "A dictionary containing statistics related to the feedback.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Data structure that encapsulates feedback-related information"
      },
      "ReasoningEffort": {
        "enum": [
          "none",
          "minimal",
          "low",
          "medium",
          "high"
        ],
        "type": "string"
      },
      "RecordCustomError": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "nullable": true
          },
          "component": {
            "type": "string",
            "nullable": true
          },
          "properties": {
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RecordError": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RecordErrorCollection": {
        "type": "object",
        "properties": {
          "system": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RecordError"
              },
              "nullable": true
            },
            "nullable": true
          },
          "custom": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RecordCustomError"
              },
              "nullable": true
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RecordPlacementSchema": {
        "type": "object",
        "properties": {
          "recordId": {
            "type": "string",
            "format": "uid"
          },
          "position": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordPosition"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "RecordPosition": {
        "enum": [
          "above",
          "below"
        ],
        "type": "string"
      },
      "RemoveBlockSchema": {
        "type": "object",
        "properties": {
          "blockName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ResendTenantInvitationSchema": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uid"
          },
          "memberId": {
            "type": "string",
            "format": "uid"
          }
        },
        "additionalProperties": false
      },
      "Role": {
        "enum": [
          "system",
          "developer",
          "assistant",
          "user",
          "function",
          "tool"
        ],
        "type": "string"
      },
      "ScheduleEventRequestSchema": {
        "type": "object",
        "properties": {
          "eventName": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "payload": {
            "nullable": true
          },
          "cronExpression": {
            "type": "string",
            "nullable": true
          },
          "startAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "maxOccurrences": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "extraAttributes": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SearchResultSchema": {
        "type": "object",
        "properties": {
          "knowledgeId": {
            "type": "string",
            "format": "uid"
          },
          "text": {
            "type": "string",
            "nullable": true
          },
          "knowledgeType": {
            "type": "string",
            "nullable": true
          },
          "reference": {
            "type": "string",
            "nullable": true
          },
          "score": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "SearchSchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "nullable": true
          },
          "topK": {
            "type": "integer",
            "format": "int32"
          },
          "threshold": {
            "type": "number",
            "format": "float"
          }
        },
        "additionalProperties": false
      },
      "SessionControlSchema": {
        "type": "object",
        "properties": {
          "isFinished": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SortOrder": {
        "enum": [
          "asc",
          "desc"
        ],
        "type": "string"
      },
      "SpeechBubbleItemSchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "A string property that represents the text inside the speech bubble.",
            "nullable": true
          },
          "startDelay": {
            "type": "integer",
            "description": "An integer property that specifies the delay, in seconds, before the speech bubble appears.",
            "format": "int32"
          },
          "duration": {
            "type": "integer",
            "description": "An integer property that defines the duration, in milliseconds, for which the speech bubble remains visible.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "A schema of properties that represents the speech bubble item."
      },
      "SpeechBubbleSchema": {
        "type": "object",
        "properties": {
          "isEnabled": {
            "type": "boolean",
            "description": "A boolean property that controls whether the speech bubble feature is enabled for the project widget."
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SpeechBubbleItemSchema"
            },
            "description": "An array of schemes of properties that represents the speech bubble item.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A schema of properties that represents the theme of the chat speech bubble."
      },
      "StartConversationSchema": {
        "type": "object",
        "properties": {
          "initialMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "StaticTemplateSchema": {
        "type": "object",
        "additionalProperties": false
      },
      "SubscriptionSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uid"
          },
          "userId": {
            "type": "string",
            "format": "uid"
          },
          "planId": {
            "type": "string",
            "format": "uid"
          },
          "billingDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "billingType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BillingType"
              }
            ],
            "nullable": true
          },
          "paymentMethod": {
            "type": "string",
            "nullable": true
          },
          "overdue": {
            "type": "boolean"
          },
          "emailOverdueSentAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "sessionId": {
            "type": "string",
            "nullable": true
          },
          "expiredSession": {
            "type": "boolean"
          },
          "isLimitReachedMailSent": {
            "type": "boolean"
          },
          "isCanceled": {
            "type": "boolean"
          },
          "cancelationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "currentPlan": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PlanEntity"
              }
            ],
            "nullable": true
          },
          "creditsLeft": {
            "type": "string",
            "format": "number"
          },
          "extraCredits": {
            "type": "string",
            "format": "number"
          },
          "discount": {
            "type": "number",
            "format": "float"
          },
          "badge": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BadgeType"
              }
            ],
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "TableColumnNewSchema": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "isSystem": {
            "type": "boolean",
            "nullable": true
          },
          "view": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TableColumnViewEntity"
              }
            ],
            "nullable": true
          },
          "attributes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ColumnCustomAttribute"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TableColumnSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "isSystem": {
            "type": "boolean",
            "nullable": true
          },
          "view": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TableColumnViewEntity"
              }
            ],
            "nullable": true
          },
          "attributes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ColumnCustomAttribute"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TableColumnViewEntity": {
        "type": "object",
        "properties": {
          "order": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "width": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TableExportFormat": {
        "enum": [
          "csv",
          "json"
        ],
        "type": "string"
      },
      "TableNewSchema": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "columns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TableColumnNewSchema"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TablePutSchema": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "columns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TableColumnSchema"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TableRecordBatchItemResultSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "integer",
            "format": "int32"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "inputValue": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TableRecordBatchItemSchema"
              }
            ],
            "nullable": true
          },
          "outputValue": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TableRecordSchema"
              }
            ],
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TableRecordBatchItemSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uid",
            "nullable": true
          },
          "items": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "nullable": true
          },
          "isValid": {
            "type": "boolean"
          },
          "errors": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordErrorCollection"
              }
            ],
            "nullable": true
          },
          "position": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "etag": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TableRecordDeleteSchema": {
        "type": "object",
        "properties": {
          "ids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uid"
            },
            "nullable": true
          },
          "exceptIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TableRecordNewSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          },
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RecordCustomError"
              },
              "nullable": true
            },
            "nullable": true
          },
          "placement": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordPlacementSchema"
              }
            ],
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TableRecordSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uid"
          },
          "items": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          },
          "isValid": {
            "type": "boolean"
          },
          "errors": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordErrorCollection"
              }
            ],
            "nullable": true
          },
          "position": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "etag": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TableRecordSchemaPaginatedResponse": {
        "type": "object",
        "properties": {
          "offset": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int64"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "currentPage": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TableRecordSchema"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TableRecordUpdateSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          },
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RecordCustomError"
              },
              "nullable": true
            },
            "nullable": true
          },
          "id": {
            "type": "string",
            "format": "uid"
          },
          "etag": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TableRecordUpsertSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          },
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RecordCustomError"
              },
              "nullable": true
            },
            "nullable": true
          },
          "id": {
            "type": "string",
            "format": "uid",
            "nullable": true
          },
          "placement": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RecordPlacementSchema"
              }
            ],
            "nullable": true
          },
          "etag": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TableSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "columns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TableColumnSchema"
            },
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isReadOnly": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "TableSchemaPaginatedResponse": {
        "type": "object",
        "properties": {
          "offset": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int64"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "currentPage": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TableSchema"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TablesFilter": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string",
            "nullable": true
          },
          "operator": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TablesFilterOperator"
              }
            ]
          },
          "value": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TablesFilterOperator": {
        "enum": [
          "is",
          "isNot",
          "contains",
          "doesNotContain",
          "isEmpty",
          "isNotEmpty"
        ],
        "type": "string"
      },
      "TenantMemberRole": {
        "enum": [
          "owner",
          "admin",
          "member",
          "client"
        ],
        "type": "string"
      },
      "TenantMemberSchema": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "format": "uid"
          },
          "role": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TenantMemberRole"
              }
            ]
          },
          "isAccepted": {
            "type": "boolean"
          },
          "user": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UserSchema"
              }
            ],
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TenantSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "customBranding": {
            "type": "boolean"
          },
          "customDomain": {
            "type": "boolean"
          },
          "customDomainName": {
            "type": "string",
            "nullable": true
          },
          "hasLogo": {
            "type": "boolean"
          },
          "emailForPlugin": {
            "type": "string",
            "nullable": true
          },
          "emailSenderAPIKey": {
            "type": "string",
            "nullable": true
          },
          "isPersonal": {
            "type": "boolean"
          },
          "owner": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UserSchema"
              }
            ],
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TenantSideLoadOptions": {
        "enum": [
          "none",
          "owner"
        ],
        "type": "string"
      },
      "TenantTransferSchema": {
        "required": [
          "email"
        ],
        "type": "object",
        "properties": {
          "domainId": {
            "type": "string",
            "format": "uid"
          },
          "email": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "ThreadControlEntity": {
        "type": "object",
        "properties": {
          "memberId": {
            "type": "string",
            "format": "uid"
          }
        },
        "additionalProperties": false
      },
      "ThreadControlSchema": {
        "type": "object",
        "properties": {
          "isLiveAgentRequested": {
            "type": "boolean"
          },
          "readAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Tool": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "index": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "readOnly": true
          },
          "type": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "function": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Function"
              }
            ],
            "nullable": true,
            "readOnly": true
          },
          "file_search": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FileSearchOptions"
              }
            ],
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "ToolCallSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "function": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TrainingFunctionSchema"
              }
            ],
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ToolDefinitionSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "parameters": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ToolParametersSchema"
              }
            ],
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ToolParametersSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "properties": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/ToolPropertySchema"
            },
            "nullable": true
          },
          "required": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ToolPropertySchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TrainingExampleFineTuningSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "fineTuningJobId": {
            "type": "string",
            "nullable": true
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FineTuningMessageSchema"
            },
            "nullable": true
          },
          "tools": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToolDefinitionSchema"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TrainingExampleRole": {
        "enum": [
          "system",
          "user",
          "assistant",
          "tool"
        ],
        "type": "string"
      },
      "TrainingFunctionSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "arguments": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TwilioTemplate": {
        "type": "object",
        "properties": {
          "body": {
            "type": "string",
            "nullable": true
          },
          "variables": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TwilioTemplateVariable"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TwilioTemplateContentData": {
        "type": "object",
        "properties": {
          "body": {
            "type": "string",
            "nullable": true
          },
          "data": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TwilioTemplateType": {
        "enum": [
          "text",
          "image",
          "video",
          "media",
          "quickReply",
          "callToAction",
          "card",
          "listPicker"
        ],
        "type": "string"
      },
      "TwilioTemplateVariable": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TypeFeedback": {
        "enum": [
          "negative",
          "positive",
          "notRated"
        ],
        "type": "string"
      },
      "TypeQnAKnowledge": {
        "enum": [
          "userAsks",
          "commandResponds"
        ],
        "type": "string"
      },
      "UpdateCampaignSchema": {
        "required": [
          "firstNameHeader",
          "name",
          "phoneHeader"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "fromId": {
            "type": "string",
            "nullable": true
          },
          "channel": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OutboundChannel"
              }
            ],
            "nullable": true
          },
          "templateId": {
            "type": "string",
            "nullable": true
          },
          "variablesPair": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "nullable": true
          },
          "firstNameHeader": {
            "minLength": 1,
            "type": "string"
          },
          "phoneHeader": {
            "minLength": 1,
            "type": "string"
          },
          "conversationsDailyLimit": {
            "maximum": 1000,
            "minimum": 1,
            "type": "integer",
            "format": "int32"
          },
          "startAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "timeZone": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateKnowledgeSchema": {
        "type": "object",
        "properties": {
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateKnowledgeTextSchema": {
        "required": [
          "name",
          "text"
        ],
        "type": "object",
        "properties": {
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "name": {
            "maxLength": 64,
            "minLength": 4,
            "type": "string",
            "description": "A string for the name of the knowledge item."
          },
          "text": {
            "maxLength": 1048576,
            "minLength": 1,
            "type": "string",
            "description": "A string for the text of the knowledge item."
          }
        },
        "additionalProperties": false,
        "description": "Schema designed for updating or modifying existing textual information associated with a knowledge item within a system."
      },
      "UpdatePropertiesSchema": {
        "type": "object",
        "properties": {
          "blockName": {
            "type": "string",
            "nullable": true
          },
          "properties": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/ArgumentSchema"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateRoutineSchema": {
        "required": [
          "name",
          "triggerBlockName"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "triggerBlockName": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "UpdateSecretSchema": {
        "type": "object",
        "properties": {
          "properties": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateTenantBrandingSchema": {
        "type": "object",
        "properties": {
          "removeBranding": {
            "type": "boolean"
          },
          "customEmail": {
            "type": "string",
            "nullable": true
          },
          "emailSenderAPIKey": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateTenantSchema": {
        "required": [
          "displayName"
        ],
        "type": "object",
        "properties": {
          "customDomainName": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "maxLength": 32,
            "minLength": 3,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "UpdateTrainingExampleFineTuningSchema": {
        "type": "object",
        "properties": {
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FineTuningMessageSchema"
            },
            "nullable": true
          },
          "tools": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToolDefinitionSchema"
            },
            "nullable": true
          },
          "id": {
            "type": "string",
            "format": "uid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UserAnalyticsSchema": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string",
            "format": "uid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "values": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UserSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uid"
          },
          "userName": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "emailConfirmed": {
            "type": "boolean"
          },
          "hasAvatar": {
            "type": "boolean"
          },
          "features": {
            "type": "object",
            "properties": {
              "tables": {
                "type": "boolean"
              },
              "contacts": {
                "type": "boolean"
              },
              "routines": {
                "type": "boolean"
              },
              "fineTuning": {
                "type": "boolean"
              },
              "outbound": {
                "type": "boolean"
              },
              "inbox": {
                "type": "boolean"
              },
              "tags": {
                "type": "boolean"
              },
              "pipeline": {
                "type": "boolean"
              },
              "assets": {
                "type": "boolean"
              }
            },
            "additionalProperties": false,
            "nullable": true
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UserUsageSchema": {
        "type": "object",
        "properties": {
          "totalTokens": {
            "type": "integer",
            "description": "An integer representing the total tokens available for the tenant.",
            "format": "int32"
          },
          "creditsLeft": {
            "type": "integer",
            "description": "An integer representing the remaining credits for the tenant.",
            "format": "int32"
          },
          "extraCredits": {
            "type": "integer",
            "format": "int32"
          },
          "softLimitReached": {
            "type": "boolean",
            "description": "A boolean indicating if the soft limit has been reached for the tenant."
          },
          "hardLimitReached": {
            "type": "boolean",
            "description": "A boolean indicating if the hard limit has been reached for the tenant."
          },
          "daysUntilRenewal": {
            "type": "integer",
            "description": "A number of days until a plan renews.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Schema designed to manage and convey information related to user usage statistics within a tenant."
      },
      "VariableTemplateSchema": {
        "type": "object",
        "additionalProperties": false
      },
      "VariablesSchema": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "nullable": true
          },
          "variables": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "VectorStoreType": {
        "enum": [
          "pinecone",
          "qdrant"
        ],
        "type": "string"
      },
      "Verbosity": {
        "enum": [
          "low",
          "medium",
          "high"
        ],
        "type": "string"
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "description": "Enter the Bearer Authorization string as following: `Bearer {jwt}`",
        "name": "Authorization",
        "in": "header"
      },
      "WidgetBearer": {
        "type": "apiKey",
        "description": "Widget token: Bearer {jwt}",
        "name": "Authorization",
        "in": "header"
      },
      "InboxSharedBearer": {
        "type": "apiKey",
        "description": "Inbox token: InboxSharedBearer {jwt}",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "Bearer": [ ]
    }
  ]
}