object snippet_commit
{
  "allOf": [
    {
      "$ref": "#/components/schemas/base_commit"
    },
    {
      "type": "object",
      "title": "Snippet Commit",
      "properties": {
        "links": {
          "type": "object",
          "properties": {
            "diff": {
              "type": "object",
              "title": "Link",
              "properties": {
                "href": {
                  "type": "string",
                  "format": "uri"
                },
                "name": {
                  "type": "string"
                }
              },
              "description": "A link to a resource related to this object."
            },
            "html": {
              "type": "object",
              "title": "Link",
              "properties": {
                "href": {
                  "type": "string",
                  "format": "uri"
                },
                "name": {
                  "type": "string"
                }
              },
              "description": "A link to a resource related to this object."
            },
            "self": {
              "type": "object",
              "title": "Link",
              "properties": {
                "href": {
                  "type": "string",
                  "format": "uri"
                },
                "name": {
                  "type": "string"
                }
              },
              "description": "A link to a resource related to this object."
            }
          }
        },
        "snippet": {
          "$ref": "#/components/schemas/snippet"
        }
      },
      "description": "",
      "additionalProperties": true
    }
  ]
}
object ssh_account_key
{
  "allOf": [
    {
      "$ref": "#/components/schemas/ssh_key"
    },
    {
      "type": "object",
      "title": "SSH Account Key",
      "properties": {
        "owner": {
          "$ref": "#/components/schemas/account"
        }
      },
      "description": "Represents an SSH public key for a user.",
      "additionalProperties": true
    }
  ]
}
object ssh_key
{
  "allOf": [
    {
      "$ref": "#/components/schemas/object"
    },
    {
      "type": "object",
      "title": "SSH Key",
      "properties": {
        "key": {
          "type": "string",
          "description": "The SSH public key value in OpenSSH format."
        },
        "uuid": {
          "type": "string",
          "description": "The SSH key's immutable ID."
        },
        "label": {
          "type": "string",
          "description": "The user-defined label for the SSH key"
        },
        "links": {
          "type": "object",
          "properties": {
            "self": {
              "type": "object",
              "title": "Link",
              "properties": {
                "href": {
                  "type": "string",
                  "format": "uri"
                },
                "name": {
                  "type": "string"
                }
              },
              "description": "A link to a resource related to this object."
            }
          }
        },
        "comment": {
          "type": "string",
          "description": "The comment parsed from the SSH key (if present)"
        },
        "last_used": {
          "type": "string",
          "format": "date-time"
        },
        "created_on": {
          "type": "string",
          "format": "date-time"
        }
      },
      "description": "Base type for representing SSH public keys.",
      "additionalProperties": true
    }
  ]
}
object stg_west_report
{
  "allOf": [
    {
      "$ref": "#/components/schemas/object"
    },
    {
      "type": "object",
      "description": "A report for a commit.",
      "additionalProperties": true
    }
  ],
  "x-bb-url": "/rest/2.0/accounts/{target_user.uuid}/repositories/{repository.uuid}/commits/{commitHash}/reports/{uuid}",
  "x-bb-default-fields": [
    "uuid",
    "commitHash"
  ]
}
object subject_types
{
  "type": "object",
  "title": "Subject Types",
  "properties": {
    "workspace": {
      "type": "object",
      "properties": {
        "events": {
          "type": "object",
          "title": "Link",
          "properties": {
            "href": {
              "type": "string",
              "format": "uri"
            },
            "name": {
              "type": "string"
            }
          },
          "description": "A link to a resource related to this object."
        }
      }
    },
    "repository": {
      "type": "object",
      "properties": {
        "events": {
          "type": "object",
          "title": "Link",
          "properties": {
            "href": {
              "type": "string",
              "format": "uri"
            },
            "name": {
              "type": "string"
            }
          },
          "description": "A link to a resource related to this object."
        }
      }
    }
  },
  "description": "The mapping of resource/subject types pointing to their individual event types."
}
object tag
{
  "allOf": [
    {
      "$ref": "#/components/schemas/ref"
    },
    {
      "type": "object",
      "title": "Tag",
      "properties": {
        "date": {
          "type": "string",
          "format": "date-time",
          "description": "The date that the tag was created, if available"
        },
        "tagger": {
          "$ref": "#/components/schemas/author"
        },
        "message": {
          "type": "string",
          "description": "The message associated with the tag, if available."
        }
      },
      "description": "A tag object, representing a tag in a repository.",
      "additionalProperties": true
    }
  ]
}
object task
{
  "type": "object",
  "title": "Task",
  "required": [
    "created_on",
    "updated_on",
    "state",
    "content",
    "creator"
  ],
  "properties": {
    "id": {
      "type": "integer"
    },
    "state": {
      "enum": [
        "RESOLVED",
        "UNRESOLVED"
      ],
      "type": "string"
    },
    "content": {
      "type": "object",
      "properties": {
        "raw": {
          "type": "string",
          "description": "The text as it was typed by a user."
        },
        "html": {
          "type": "string",
          "description": "The user's content rendered as HTML."
        },
        "markup": {
          "enum": [
            "markdown",
            "creole",
            "plaintext"
          ],
          "type": "string",
          "description": "The type of markup language the raw content is to be interpreted in."
        }
      }
    },
    "creator": {
      "$ref": "#/components/schemas/account"
    },
    "pending": {
      "type": "boolean"
    },
    "created_on": {
      "type": "string",
      "format": "date-time"
    },
    "updated_on": {
      "type": "string",
      "format": "date-time"
    },
    "resolved_by": {
      "$ref": "#/components/schemas/account"
    },
    "resolved_on": {
      "type": "string",
      "format": "date-time",
      "description": "The ISO8601 timestamp for when the task was resolved."
    }
  },
  "description": "A task object."
}
object team
{
  "allOf": [
    {
      "$ref": "#/components/schemas/account"
    },
    {
      "type": "object",
      "title": "Team",
      "properties": {
        "links": {
          "$ref": "#/components/schemas/team_links"
        }
      },
      "description": "A team object.",
      "additionalProperties": true
    }
  ]
}
object team_links
{
  "allOf": [
    {
      "$ref": "#/components/schemas/account_links"
    },
    {
      "type": "object",
      "title": "Team Links",
      "properties": {
        "html": {
          "$ref": "#/components/schemas/link"
        },
        "self": {
          "$ref": "#/components/schemas/link"
        },
        "members": {
          "$ref": "#/components/schemas/link"
        },
        "projects": {
          "$ref": "#/components/schemas/link"
        },
        "repositories": {
          "$ref": "#/components/schemas/link"
        }
      },
      "description": "Links related to a Team.",
      "additionalProperties": true
    }
  ]
}
object treeentry
{
  "type": "object",
  "title": "Tree Entry",
  "required": [
    "type"
  ],
  "properties": {
    "path": {
      "type": "string",
      "description": "The path in the repository"
    },
    "type": {
      "type": "string"
    },
    "commit": {
      "$ref": "#/components/schemas/commit"
    }
  },
  "description": "Base type for most resource objects. It defines the common `type` element that identifies an object's type. It also identifies the element as Swagger's `discriminator`.",
  "additionalProperties": true
}
object user
{
  "allOf": [
    {
      "$ref": "#/components/schemas/account"
    },
    {
      "type": "object",
      "title": "User",
      "properties": {
        "links": {
          "$ref": "#/components/schemas/user_links"
        },
        "website": {
          "type": "string"
        },
        "is_staff": {
          "type": "boolean"
        },
        "nickname": {
          "type": "string",
          "description": "Account name defined by the owner. Should be used instead of the \"username\" field. Note that \"nickname\" cannot be used in place of \"username\" in URLs and queries, as \"nickname\" is not guaranteed to be unique."
        },
        "account_id": {
          "type": "string",
          "description": "The user's Atlassian account ID."
        },
        "account_status": {
          "type": "string",
          "description": "The status of the account. Currently the only possible value is \"active\", but more values may be added in the future."
        },
        "has_2fa_enabled": {
          "type": "boolean"
        }
      },
      "description": "A user object.",
      "additionalProperties": true
    }
  ]
}
object user_links
{
  "allOf": [
    {
      "$ref": "#/components/schemas/account_links"
    },
    {
      "type": "object",
      "title": "User Links",
      "properties": {
        "html": {
          "$ref": "#/components/schemas/link"
        },
        "self": {
          "$ref": "#/components/schemas/link"
        },
        "repositories": {
          "$ref": "#/components/schemas/link"
        }
      },
      "description": "Links related to a User.",
      "additionalProperties": true
    }
  ]
}
object version
{
  "allOf": [
    {
      "$ref": "#/components/schemas/object"
    },
    {
      "type": "object",
      "title": "Version",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "links": {
          "type": "object",
          "properties": {
            "self": {
              "type": "object",
              "title": "Link",
              "properties": {
                "href": {
                  "type": "string",
                  "format": "uri"
                },
                "name": {
                  "type": "string"
                }
              },
              "description": "A link to a resource related to this object."
            }
          }
        }
      },
      "description": "A version as defined in a repository's issue tracker.",
      "additionalProperties": true
    }
  ]
}
object webhook_subscription
{
  "allOf": [
    {
      "$ref": "#/components/schemas/object"
    },
    {
      "type": "object",
      "title": "Webhook Subscription",
      "properties": {
        "url": {
          "type": "string",
          "format": "uri",
          "description": "The URL events get delivered to."
        },
        "uuid": {
          "type": "string",
          "description": "The webhook's id"
        },
        "active": {
          "type": "boolean"
        },
        "events": {
          "type": "array",
          "items": {
            "enum": [
              "pullrequest:updated",
              "issue:comment_created",
              "repo:transfer",
              "issue:created",
              "pullrequest:rejected",
              "repo:deleted",
              "pullrequest:fulfilled",
              "repo:commit_status_created",
              "repo:imported",
              "pullrequest:changes_request_created",
              "repo:push",
              "pullrequest:created",
              "pullrequest:comment_created",
              "project:updated",
              "repo:created",
              "repo:commit_status_updated",
              "pullrequest:unapproved",
              "repo:commit_comment_created",
              "pullrequest:comment_reopened",
              "repo:fork",
              "repo:updated",
              "pullrequest:comment_deleted",
              "issue:updated",
              "pullrequest:changes_request_removed",
              "pullrequest:comment_resolved",
              "pullrequest:approved",
              "pullrequest:comment_updated"
            ],
            "type": "string"
          },
          "minItems": 1,
          "description": "The events this webhook is subscribed to.",
          "uniqueItems": true
        },
        "secret": {
          "type": "string",
          "maxLength": 128,
          "minLength": 0,
          "description": "The secret to associate with the hook. The secret is never returned via the API. As such, this field is only used during updates. The secret can be set to `null` or \"\" to remove the secret (or create a hook with no secret). Leaving out the secret field during updates will leave the secret unchanged. Leaving out the secret during creation will create a hook with no secret."
        },
        "subject": {
          "$ref": "#/components/schemas/object"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "secret_set": {
          "type": "boolean",
          "description": "Indicates whether or not the hook has an associated secret. It is not possible to see the hook's secret. This field is ignored during updates."
        },
        "description": {
          "type": "string",
          "description": "A user-defined description of the webhook."
        },
        "subject_type": {
          "enum": [
            "repository",
            "workspace"
          ],
          "type": "string",
          "description": "The type of entity. Set to either `repository` or `workspace` based on where the subscription is defined."
        }
      },
      "description": "A Webhook subscription.",
      "additionalProperties": true
    }
  ]
}
object workspace
{
  "allOf": [
    {
      "$ref": "#/components/schemas/object"
    },
    {
      "type": "object",
      "title": "Workspace",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the workspace."
        },
        "slug": {
          "type": "string",
          "description": "The short label that identifies this workspace."
        },
        "uuid": {
          "type": "string",
          "description": "The workspace's immutable id."
        },
        "links": {
          "type": "object",
          "properties": {
            "html": {
              "type": "object",
              "title": "Link",
              "properties": {
                "href": {
                  "type": "string",
                  "format": "uri"
                },
                "name": {
                  "type": "string"
                }
              },
              "description": "A link to a resource related to this object."
            },
            "self": {
              "type": "object",
              "title": "Link",
              "properties": {
                "href": {
                  "type": "string",
                  "format": "uri"
                },
                "name": {
                  "type": "string"
                }
              },
              "description": "A link to a resource related to this object."
            },
            "avatar": {
              "type": "object",
              "title": "Link",
              "properties": {
                "href": {
                  "type": "string",
                  "format": "uri"
                },
                "name": {
                  "type": "string"
                }
              },
              "description": "A link to a resource related to this object."
            },
            "owners": {
              "type": "object",
              "title": "Link",
              "properties": {
                "href": {
                  "type": "string",
                  "format": "uri"
                },
                "name": {
                  "type": "string"
                }
              },
              "description": "A link to a resource related to this object."
            },
            "members": {
              "type": "object",
              "title": "Link",
              "properties": {
                "href": {
                  "type": "string",
                  "format": "uri"
                },
                "name": {
                  "type": "string"
                }
              },
              "description": "A link to a resource related to this object."
            },
            "projects": {
              "type": "object",
              "title": "Link",
              "properties": {
                "href": {
                  "type": "string",
                  "format": "uri"
                },
                "name": {
                  "type": "string"
                }
              },
              "description": "A link to a resource related to this object."
            },
            "snippets": {
              "type": "object",
              "title": "Link",
              "properties": {
                "href": {
                  "type": "string",
                  "format": "uri"
                },
                "name": {
                  "type": "string"
                }
              },
              "description": "A link to a resource related to this object."
            },
            "repositories": {
              "type": "object",
              "title": "Link",
              "properties": {
                "href": {
                  "type": "string",
                  "format": "uri"
                },
                "name": {
                  "type": "string"
                }
              },
              "description": "A link to a resource related to this object."
            }
          }
        },
        "created_on": {
          "type": "string",
          "format": "date-time"
        },
        "is_private": {
          "type": "boolean",
          "description": "Indicates whether the workspace is publicly accessible, or whether it is\nprivate to the members and consequently only visible to members."
        },
        "updated_on": {
          "type": "string",
          "format": "date-time"
        }
      },
      "description": "A Bitbucket workspace.\n            Workspaces are used to organize repositories.",
      "additionalProperties": true
    }
  ]
}
object workspace_membership
{
  "allOf": [
    {
      "$ref": "#/components/schemas/object"
    },
    {
      "type": "object",
      "title": "Workspace Membership",
      "properties": {
        "user": {
          "$ref": "#/components/schemas/account"
        },
        "links": {
          "type": "object",
          "properties": {
            "self": {
              "type": "object",
              "title": "Link",
              "properties": {
                "href": {
                  "type": "string",
                  "format": "uri"
                },
                "name": {
                  "type": "string"
                }
              },
              "description": "A link to a resource related to this object."
            }
          }
        },
        "workspace": {
          "$ref": "#/components/schemas/workspace"
        }
      },
      "description": "A Bitbucket workspace membership.\n            Links a user to a workspace.",
      "additionalProperties": true
    }
  ]
}