object ReplyResponse
{
  "allOf": [
    {
      "$ref": "#/components/schemas/BaseResponse"
    },
    {
      "type": "object",
      "properties": {
        "reactions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "example": [
            "๐Ÿ‘"
          ],
          "description": "Represents the emoji reactions to a question."
        },
        "accepted_answer": {
          "type": "boolean",
          "example": false,
          "description": "Indicates if the answer is accepted or not. Values can be - <ul> <li> True <li> False</ul>"
        }
      }
    }
  ]
}
object SchemasListWithFilterResponse
{
  "allOf": [
    {
      "$ref": "#/components/schemas/ListResponse"
    },
    {
      "type": "object",
      "properties": {
        "results": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/BaseResponse"
          }
        }
      }
    }
  ]
}
object TableResponse
{
  "allOf": [
    {
      "$ref": "#/components/schemas/BaseResponse"
    },
    {
      "type": "object",
      "properties": {
        "schema": {
          "type": "string",
          "example": "secoda-glue",
          "description": "Indicates the name of the schema that the table belongs to."
        },
        "cluster": {
          "type": "string",
          "description": "This is a deprecated field."
        },
        "database": {
          "type": "string",
          "example": "awsdatacatalog",
          "description": "Indicates the name of the database that the table belongs to."
        },
        "creation_query": {
          "type": "string",
          "example": "select * from customers where country=='CAN'",
          "description": "If the table is a view, this indicates the query written to generate the view."
        }
      }
    }
  ]
}
object TablesListTablesByFilterResponse
{
  "allOf": [
    {
      "$ref": "#/components/schemas/ListResponse"
    },
    {
      "type": "object",
      "properties": {
        "results": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/TableResponse"
          }
        }
      }
    }
  ]
}
object TagsCreateNewTagRequest
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "example": "Sample Tag",
      "description": "Indicates the name of the tag."
    },
    "color": {
      "type": "string",
      "example": "#4299E1",
      "description": "Defines the different colors of the tags."
    },
    "description": {
      "type": "string",
      "example": "This is a sample tag.",
      "description": "Indicates the description of the tag."
    }
  }
}
object TagsListResponse
{
  "allOf": [
    {
      "$ref": "#/components/schemas/ListResponse"
    },
    {
      "type": "object",
      "properties": {
        "results": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/TagsResponse"
          }
        }
      }
    }
  ]
}
object TagsResponse
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "example": "69e0b863-8bb8-47e1-b566-8b8d57441c70",
      "description": "The unique identifier of the resource."
    },
    "name": {
      "type": "string",
      "example": "Sample Tag",
      "description": "Indicates the name of the tag."
    },
    "color": {
      "type": "string",
      "example": "#4299E1",
      "description": "Defines the different colors of the tags in HEX format."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "example": "2023-09-05T17:32:56.571134Z",
      "description": "The timestamp when the resource was created in Secoda in UTC format."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "example": "2023-09-05T17:32:56.571151Z",
      "description": "The timestamp when the resource was last updated in Secoda in UTC format."
    },
    "description": {
      "type": "string",
      "example": "This is a sample tag.",
      "description": "Indicates the description of the tag."
    },
    "workspace_id": {
      "type": "string",
      "example": "f71585fa-251c-4102-8d81-c97c57c8d435",
      "description": "Indiactes the workspace ID where the tag belongs."
    },
    "integration_id": {
      "type": "string",
      "example": "69e0b863-8bb8-47e1-b566-8b8d57441c70",
      "description": "The unique identifier of the integration the tag is pulled from. Null if the tag is created manually in Secoda."
    }
  }
}
object TagsUpdateByIdRequest
{
  "type": "object",
  "required": [
    "color"
  ],
  "properties": {
    "color": {
      "type": "string",
      "example": "#316650",
      "description": "Represents the color of the tags."
    }
  }
}
object TeamsCreateNewTeamRequest
{
  "type": "object",
  "properties": {
    "icon": {
      "type": "string",
      "example": "๐Ÿ˜€",
      "description": "Indicates the icon of the team."
    },
    "name": {
      "type": "string",
      "example": "Test Team",
      "description": "Indicates the name of the team."
    },
    "type": {
      "type": "string",
      "example": "OPEN",
      "description": "Indicates the type of the team. If a team is Open, this means it is Public and can be joined by anyone in the workspace. If a team is Closed, the team is private and only admins can invite members into the team. Values can be - <ul><li> OPEN <li> CLOSED </ul>"
    },
    "description": {
      "type": "string",
      "example": "This is the best team in this workspace.",
      "description": "Description of the team."
    },
    "sidebar_settings": {
      "type": "object",
      "properties": {
        "home": {
          "type": "boolean",
          "example": true,
          "description": "Whether to show the home page to team members."
        },
        "catalog": {
          "type": "boolean",
          "example": true,
          "description": "Whether to show the catalog page to team members."
        },
        "documents": {
          "type": "boolean",
          "example": true,
          "description": "Whether to show the documents page to team members."
        },
        "questions": {
          "type": "boolean",
          "example": true,
          "description": "Whether to show the questions page to team members."
        },
        "dictionary": {
          "type": "boolean",
          "example": true,
          "description": "Whether to show the dictionary page to team members."
        },
        "collections": {
          "type": "boolean",
          "example": true,
          "description": "Whether to show the collections page to team members."
        }
      },
      "description": "Use these settings to toggle which pages should be shown to team members in the side bar."
    }
  }
}
object TeamsGetListResponse
{
  "allOf": [
    {
      "$ref": "#/components/schemas/ListResponse"
    },
    {
      "type": "object",
      "properties": {
        "results": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/TeamsResponse"
          }
        }
      }
    }
  ]
}
object TeamsResponse
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "example": "3131f219-16bb-4c95-853a-894ae12db42a",
      "description": "Indicates the UUID of the team."
    },
    "icon": {
      "type": "string",
      "example": "๐Ÿ˜€",
      "description": "Indicates the icon of the team."
    },
    "name": {
      "type": "string",
      "example": "Test Team",
      "description": "Indicates the name of the team."
    },
    "type": {
      "type": "string",
      "example": "OPEN",
      "description": "Indicates the type of the team. If a team is Open, this means it is Public and can be joined by anyone in the workspace. If a team is Closed, the team is private and only admins can invite members into the team. Values can be - <ul><li> OPEN <li> CLOSED </ul>"
    },
    "archived": {
      "type": "boolean",
      "example": false,
      "description": "Indicates if the team has been deleted."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "example": "2023-09-22T15:30:00Z",
      "description": "The timestamp when the team was created in Secoda in UTC format."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "example": "2023-09-22T15:30:00Z",
      "description": "The timestamp when the team was last updated in Secoda UTC format."
    },
    "description": {
      "type": "string",
      "example": "This is the best team in this workspace.",
      "description": "Description of the team."
    },
    "workspace_id": {
      "type": "string",
      "example": "f71585fa-251c-4102-8d81-c97c57c8d435",
      "description": "Indicates the workspace ID of the user."
    },
    "is_default_team": {
      "type": "boolean",
      "example": true,
      "description": "Indicates if the team is the default team. Any resource without a specified team will automatically get added to this team."
    },
    "sidebar_settings": {
      "type": "object",
      "properties": {
        "home": {
          "type": "boolean",
          "example": true,
          "description": "Whether to show the home page to team members."
        },
        "catalog": {
          "type": "boolean",
          "example": true,
          "description": "Whether to show the catalog page to team members."
        },
        "documents": {
          "type": "boolean",
          "example": true,
          "description": "Whether to show the documents page to team members."
        },
        "questions": {
          "type": "boolean",
          "example": true,
          "description": "Whether to show the questions page to team members."
        },
        "dictionary": {
          "type": "boolean",
          "example": true,
          "description": "Whether to show the dictionary page to team members."
        },
        "collections": {
          "type": "boolean",
          "example": true,
          "description": "Whether to show the collections page to team members."
        }
      },
      "description": "Use these settings to toggle which pages should be shown to team members in the side bar."
    },
    "onboarding_complete": {
      "type": "boolean",
      "example": true,
      "description": "This field will be deprecated."
    }
  }
}
object TeamsUpdateByIdRequest
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "example": "New Team",
      "description": "Indicates the name of the team."
    }
  }
}
object TermsGetListByTitleResponse
{
  "allOf": [
    {
      "$ref": "#/components/schemas/ListResponse"
    },
    {
      "type": "object",
      "properties": {
        "results": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/BaseResponse"
          }
        }
      }
    }
  ]
}
object UserGroupResponse
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "example": "f3bdd4f8-d6ea-4f9b-8384-e179fa8eb3da",
      "description": "The ID of the group."
    },
    "icon": {
      "type": "string",
      "example": "๐Ÿงช",
      "description": "The icon associated with the group."
    },
    "name": {
      "type": "string",
      "example": "Data Stewards",
      "description": "The name of the group."
    },
    "users": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "example": [
        "33733f42-8ff7-460b-9e20-50a2133d3bb0",
        "c90dedee-40ee-47ec-9c27-96dc3b2ec363"
      ],
      "description": "List of user IDs of the members in the group."
    },
    "created_at": {
      "type": "string",
      "example": "2023-05-10T14:27:23.797657Z",
      "description": "The creation timestamp of the group."
    },
    "updated_at": {
      "type": "string",
      "example": "2023-10-20T13:53:06.088248Z",
      "description": "The last update timestamp of the group."
    },
    "description": {
      "type": "string",
      "example": "Group of users that are responsible for keeping documentation updated.",
      "description": "The description of the group."
    },
    "workspace_id": {
      "type": "string",
      "example": "f71585fa-251c-4102-8d81-c97c57c8d435",
      "description": "The ID of the workspace associated with the grop."
    },
    "snowflake_role": {
      "description": "This field can be ignored."
    }
  }
}
object UserGroupsCreateNewGroupRequest
{
  "type": "object",
  "properties": {
    "icon": {
      "type": "string",
      "example": "๐Ÿ˜€",
      "description": "Indicates the icon of the team."
    },
    "name": {
      "type": "string",
      "example": "Data Stewards",
      "description": "Indicates the name of the group."
    },
    "users": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "example": [
        "33733f42-8ff7-460b-9e20-50a2133d3bb0",
        "c90dedee-40ee-47ec-9c27-96dc3b2ec363"
      ],
      "description": "A list of user IDs that are part of this group."
    },
    "description": {
      "type": "string",
      "example": "Users responsible for keeping documentation up to date.",
      "description": "Description of the group."
    }
  }
}
object UserGroupsListResponse
{
  "allOf": [
    {
      "$ref": "#/components/schemas/ListResponse"
    },
    {
      "type": "object",
      "properties": {
        "results": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/UserGroupResponse"
          }
        }
      }
    }
  ]
}
object UserGroupsUpdateByIdRequest
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "example": "New Group",
      "description": "Indicates the name of the group."
    }
  }
}
object UsersCreateNewUserRequest
{
  "type": "object",
  "properties": {
    "role": {
      "type": "string",
      "example": "editor",
      "description": "Indicates the role of the user. Values can be - <ul><li> Admin <li> Editor <li> Viewer </ul>"
    },
    "_role": {
      "type": "string",
      "example": "editor",
      "description": "Indicates the role of the user. Values can be - <ul><li> Admin <li> Editor <li> Viewer </ul>"
    },
    "email": {
      "type": "string",
      "example": "sample@sample.com",
      "description": "Indicates the email id of the user."
    },
    "last_name": {
      "type": "string",
      "example": "User",
      "description": "Indicates the last name of the user."
    },
    "first_name": {
      "type": "string",
      "example": "Sample",
      "description": "Indicates the first name of the user."
    }
  }
}
object UsersListResponse
{
  "allOf": [
    {
      "$ref": "#/components/schemas/ListResponse"
    },
    {
      "type": "object",
      "properties": {
        "results": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/UsersResponse"
          }
        }
      }
    }
  ]
}
object UsersResponse
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "example": "3131f219-16bb-4c95-853a-894ae12db42a",
      "description": "Indicates the UUID of the user."
    },
    "role": {
      "type": "string",
      "example": "editor",
      "description": "Indicates the role of the user. Values can be - <ul><li> Admin <li> Editor <li> Viewer </ul>"
    },
    "_role": {
      "type": "string",
      "example": "editor",
      "description": "Indicates the role of the user. Is the same value as the `role` parameter. Values can be - <ul><li> Admin <li> Editor <li> Viewer </ul>"
    },
    "email": {
      "type": "string",
      "example": "sample@sample.com",
      "description": "Indicates the email id of the user."
    },
    "pending": {
      "type": "boolean",
      "example": true,
      "description": "Represents if the user has been invited to the space but not accepted yet. Values can be - <ul> <li> \"True\" <li> \"False\" </ul>"
    },
    "disabled": {
      "type": "boolean",
      "example": false,
      "description": "Represents if the account is disabled or not. Values can be - <ul> <li >True <li> False </ul>"
    },
    "bookmarks": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "example": [
        "f71585fa-251c-4102-8d81-c97c57c8d435"
      ],
      "description": "Represents the resorces that the user has bookmarked."
    },
    "last_name": {
      "type": "string",
      "example": "User",
      "description": "Indicates the last name of the user."
    },
    "workspace": {
      "type": "string",
      "example": "f71585fa-251c-4102-8d81-c97c57c8d435",
      "description": "Indicates the workspace of the user."
    },
    "first_name": {
      "type": "string",
      "example": "Sample",
      "description": "Indicates the first name of the user."
    },
    "last_login": {
      "type": "string",
      "format": "date-time",
      "example": "None",
      "description": "Indicates the last time account was logged in to Secoda in UTC format."
    },
    "user_groups": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "example": [
        "f71585fa-251c-4102-8d81-c97c57c8d435"
      ],
      "description": "A list of UUIDs of groups the user belongs to."
    },
    "viewer_mode": {
      "type": "boolean",
      "example": false,
      "description": "Indicates if the user is in Preview mode. Values can be - <ul> <li>True <li>False </ul>"
    },
    "workspace_id": {
      "type": "string",
      "example": "f71585fa-251c-4102-8d81-c97c57c8d435",
      "description": "Indicates the workspace ID of the user."
    },
    "profile_picture": {
      "type": "string",
      "example": "image.jpg",
      "description": "Indicates the file name of the profile picture for the user."
    },
    "is_service_account": {
      "type": "boolean",
      "example": false,
      "description": "Indicates if the user account is a service account or not. Values can be - <ul> <li >True <li> False </ul>"
    },
    "secoda_is_superuser": {
      "type": "boolean",
      "example": false,
      "description": "Represents if the user is super user or not. Values can be - <ul> <li >True <li> False </ul>"
    },
    "new_feature_acknowledged": {
      "type": "boolean",
      "example": true,
      "description": "Indicates if the new feature has been acknowleged or not. Values can be - <ul> <li >True <li> False </ul>"
    },
    "service_account_count_popularity": {
      "type": "boolean",
      "example": true,
      "description": "Indicates if the account counts towards popularity calculations. Values can be - <ul> <li> True <li> False </ul>"
    }
  }
}
object UsersUpdateByIdRequest
{
  "type": "object",
  "properties": {
    "last_name": {
      "type": "string",
      "example": "User",
      "description": "Indicates the last name of the user."
    },
    "first_name": {
      "type": "string",
      "example": "Sample",
      "description": "Indicates the first name of the user."
    }
  }
}