{
  "openapi": "3.1.0",
  "info": {
    "title": "Initiative API",
    "version": "0.82.0"
  },
  "paths": {
    "/api/v1/recurrence/preview": {
      "post": {
        "tags": [
          "recurrence"
        ],
        "summary": "Preview Recurrence",
        "description": "The rule as it would be stored, its shift, and its next starts.",
        "operationId": "preview_recurrence",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecurrencePreviewRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecurrencePreview"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/version": {
      "get": {
        "tags": [
          "version"
        ],
        "summary": "Get Version",
        "description": "Get application version.",
        "operationId": "get_version",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object",
                  "title": "Response Get Version"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/version/latest": {
      "get": {
        "tags": [
          "version"
        ],
        "summary": "Get Latest Release Version",
        "description": "The latest released version (e.g. \"0.3.1\"), read from the project's\nGitHub releases. When GitHub cannot be reached this is the last version it\nnamed, or ``None`` if it has named none since the process started.\n\nThe answer is fetched once and reused for every caller until it expires,\nso a request never waits on GitHub unless the answer has run out.",
        "operationId": "get_latest_release_version",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "type": "object",
                  "title": "Response Get Latest Release Version"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/changelog": {
      "get": {
        "tags": [
          "version"
        ],
        "summary": "Get Changelog",
        "description": "Get changelog entries.\n\nA page of ``page_size`` entries, newest first. With ``version``, the entry\nfor that version.",
        "operationId": "get_changelog",
        "parameters": [
          {
            "name": "version",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Version"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 1,
              "title": "Page Size"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChangelogResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/page-views": {
      "post": {
        "tags": [
          "health"
        ],
        "summary": "Record Page View",
        "operationId": "record_page_view",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PageView"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/native/bundle/manifest": {
      "get": {
        "tags": [
          "native"
        ],
        "summary": "Get Bundle Manifest",
        "description": "Describe the OTA bundle this backend serves.\n\nReturns the bundle ``version`` (equal to the app version) and a ``url`` the client\njoins to its server origin to download the zip. A release image also carries\n``statement`` \u2014 the bundle's version, sha256 digest and app floors as JSON \u2014 and its\n``signature``, made with the project's release key when the image was built. The app\ninstalls only a bundle whose statement verifies against a key it was built with, and\nrefuses one whose floor is above its installed app (prompting a store update).",
        "operationId": "get_bundle_manifest",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Get Bundle Manifest"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/native/bundle/download": {
      "get": {
        "tags": [
          "native"
        ],
        "summary": "Download Bundle",
        "description": "Serve the Capacitor web bundle zip (immutable per version).",
        "operationId": "download_bundle",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/config": {
      "get": {
        "tags": [
          "config"
        ],
        "summary": "Get App Config",
        "operationId": "get_app_config",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppConfig"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/legal": {
      "get": {
        "tags": [
          "legal"
        ],
        "summary": "Read Legal Index",
        "operationId": "read_legal_index",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegalIndexRead"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/legal/{slug}": {
      "get": {
        "tags": [
          "legal"
        ],
        "summary": "Read Legal Document",
        "operationId": "read_legal_document",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Slug"
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-None-Match"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ideas": {
      "get": {
        "tags": [
          "ideas"
        ],
        "summary": "List Ideas",
        "description": "The published ideas: those whose title holds ``search``, that read as\n``status_id``, in the category named ``category``, or that the reader\nvoted for, as asked; most voted or newest first. With them, the statuses\nthey read as, and how many of them each category holds, the category\nasked for aside.",
        "operationId": "list_ideas",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 200
                },
                {
                  "type": "null"
                }
              ],
              "title": "Search"
            }
          },
          {
            "name": "status_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status Id"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "title": "Category"
            }
          },
          {
            "name": "voted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Voted"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/IdeaSort",
              "default": "votes"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 50,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdeaListRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ideas/roadmap": {
      "get": {
        "tags": [
          "ideas"
        ],
        "summary": "Read Roadmap",
        "description": "The board's in-progress statuses in its order, then its shipped\nstatus, each with the published ideas that read as it, most voted\nfirst.",
        "operationId": "read_roadmap",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdeaRoadmapRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ideas/shipped": {
      "get": {
        "tags": [
          "ideas"
        ],
        "summary": "List Shipped",
        "description": "The published ideas that shipped in ``release``, most voted first:\nnone for a release this server is not yet on.",
        "operationId": "list_shipped",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "release",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 32,
              "title": "Release"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/IdeaRead"
                  },
                  "title": "Response List Shipped"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ideas/similar": {
      "get": {
        "tags": [
          "ideas"
        ],
        "summary": "Similar Ideas",
        "description": "The open published ideas whose title is close to ``text``, closest\nfirst: what somebody writing feedback may vote for instead.",
        "operationId": "similar_ideas",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "text",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1000,
              "title": "Text"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/IdeaRead"
                  },
                  "title": "Response Similar Ideas"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ideas/{task_id}": {
      "get": {
        "tags": [
          "ideas"
        ],
        "summary": "Read Idea",
        "description": "One published idea, with its description. An idea joined into another\nanswers with the one it joined, which has another ``task_id``.",
        "operationId": "read_idea",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Task Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdeaRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ideas/{task_id}/vote": {
      "put": {
        "tags": [
          "ideas"
        ],
        "summary": "Vote For Idea",
        "description": "Vote for an open idea. Voting twice is one vote.",
        "operationId": "vote_for_idea",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Task Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdeaRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "ideas"
        ],
        "summary": "Take Vote Back",
        "description": "Take a vote back from an open idea.",
        "operationId": "take_vote_back",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Task Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdeaRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/register": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Register User",
        "operationId": "register_user",
        "parameters": [
          {
            "name": "invite_code",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Invite Code"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/register/passkey/begin": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Begin Passkey Sign Up",
        "description": "Options for making the credential a new account will sign in with.\n\nEverything a registration is refused for is asked here, before the browser\nis sent to an authenticator: a ceremony that ends in a refusal has already\ncost somebody's key a resident credential it cannot take back.\n\nNo account exists yet, so the ceremony is told a handle of its own rather\nthan an account id. Nothing reads it back \u2014 a credential is found by its\nown id \u2014 and it is what the authenticator files this deployment's entry\nunder.",
        "operationId": "begin_passkey_sign_up",
        "parameters": [
          {
            "name": "invite_code",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Invite Code"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasskeySignUpStart"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PasskeyRegistrationOptions"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/register/passkey/finish": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Finish Passkey Sign Up",
        "description": "Make the account, keep the credential, and sign it in.\n\nThe gates are asked again here \u2014 the details are said again rather than\nkept between the calls \u2014 except the captcha, which the begin above took\nand which a token is spent by.\n\nThe account is signed in on the spot. The ceremony verified the person as\nwell as the device, which is what a sign-in with this key will prove, so\nasking for it twice in a row would say nothing new. Its recovery set comes\nback with it: there is no password to reset, so the codes are how this\naccount gets one later, and they are shown once.",
        "operationId": "finish_passkey_sign_up",
        "parameters": [
          {
            "name": "invite_code",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Invite Code"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasskeySignUpFinish"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PasskeySignUpResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/bootstrap": {
      "get": {
        "tags": [
          "auth"
        ],
        "summary": "Bootstrap Status",
        "operationId": "bootstrap_status",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {
                    "type": "boolean"
                  },
                  "type": "object",
                  "title": "Response Bootstrap Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/token": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Login Access Token",
        "description": "Sign in with an address and password, from a browser or a device.\n\nA device (:func:`is_device`) is handed its refresh token in the body as well\nand opens a device session, labelled ``device_name``.",
        "operationId": "login_access_token",
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/Body_login_access_token"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Token"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/token/totp": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Answer Second Factor",
        "description": "The second leg of a sign-in: the challenge, and the code.\n\nThe first leg was a password or a code sent to one of the account's\naddresses; the challenge says which, and the session records both halves.\n\nA recovery code is accepted here too \u2014 it is what the account holds when\nthe authenticator is out of reach, and the set exists to be used this way.\nWhich one answered is recorded, and told apart in ``amr``.",
        "operationId": "answer_second_factor",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SecondFactorChallengeAnswer"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Token"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/refresh": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Refresh Access Token",
        "description": "Rotate the refresh cookie \u2192 a fresh short-lived access token + new refresh.\n\nSingle-use rotation with theft detection lives in the session service; this\nendpoint is the ``rotate \u2192 commit \u2192 branch`` caller (see\n``services.auth.sessions``). Reuse of a spent token revokes the whole chain,\nbut the client is always told the same generic thing \u2014 never that a replay\nwas detected. Runs on the system engine: validation is a pre-auth lookup by\nrefresh-token hash.",
        "operationId": "refresh_access_token",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/RefreshRequest"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Payload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Token"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/username-suggestions": {
      "get": {
        "tags": [
          "auth"
        ],
        "summary": "Suggest Usernames",
        "description": "Name parts that can still be handed out, offered while somebody picks one.\n\nUnauthenticated for the reason the availability check is. ``seed`` is what\nthey have typed so far; the suggestions start from it where it is usable.",
        "operationId": "suggest_usernames",
        "parameters": [
          {
            "name": "seed",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 64
                },
                {
                  "type": "null"
                }
              ],
              "title": "Seed"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsernameSuggestionsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/username-available": {
      "get": {
        "tags": [
          "auth"
        ],
        "summary": "Check Username Available",
        "description": "Whether a name part can still be handed out.\n\nRegistration happens before there is a session, so this is unauthenticated.\nIt answers about the exact candidate typed and nothing else \u2014 it does not\nenumerate \u2014 and it answers about the name part only: the number behind it\nis drawn server-side.",
        "operationId": "check_username_available",
        "parameters": [
          {
            "name": "username",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64,
              "description": "The name part to check",
              "title": "Username"
            },
            "description": "The name part to check"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsernameAvailabilityResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/logout": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Logout",
        "description": "End the session this request is on, and leave the account's others.\n\nSigning out is per device: the rotation chain behind this login is revoked\nand the cookies that carried it are cleared, so a phone signing out does\nnot close the laptop. What signs an account out everywhere is a credential\nchange \u2014 a password change or reset, a second factor disabled, an account\naction taken by an operator \u2014 each of which bumps\n``users.token_version`` on its own path.\n\nWhat is revoked here is the refresh side \u2014 the rotation chain behind this\nlogin. The access token it came in on is short-lived and the client drops\nit.\n\nA client whose access token has already expired still signs out: the\nrefresh token it presents names its session, and holding it is what\nrenewing would have asked for. That session's chain is revoked and no\nother.\n\nConnections opened on the ended session are re-checked once it commits, and\nclose.",
        "operationId": "logout",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/RefreshRequest"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Payload"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/upload-token": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Issue Upload Token",
        "description": "Mint a short-lived, uploads-scoped token for the authenticated user.\n\nNative (Capacitor) clients call this to load ``/uploads/*`` media and\nfile downloads via ``?token=`` without putting the long-lived session\nJWT in the URL. The\ntoken is accepted only by the uploads/download routes and is useless as a\ngeneral API credential.",
        "operationId": "issue_upload_token",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadTokenResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/native/token": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Redeem Native Sign In",
        "description": "Open the session a sign-in in the phone's browser earned.\n\nThe app presents the code the browser handed back and the PKCE verifier it\nbegan the sign-in with, and is given an access token and a refresh token to\nkeep. The session carries what the sign-in proved, satisfied providers\nincluded.",
        "operationId": "redeem_native_sign_in",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NativeSignInRedeem"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Token"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/providers": {
      "get": {
        "tags": [
          "auth"
        ],
        "summary": "List Login Providers",
        "description": "The sign-in providers the login page offers \u2014 non-secret metadata only.\n\nListed in both postures \u2014 an operator-global provider signs a person into\ntheir account and is authoritative for no guild \u2014 and empty on instances\nwith no SSO configured. Strictly read-only: the platform entry, like every\nother, is its registry row (the source of truth) \u2014 no write path is\nreachable from here. Registry rows are read on the system engine\n(``auth_providers`` carries no request-path grant).",
        "operationId": "list_login_providers",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginProvidersResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/c/{community_id}/providers": {
      "get": {
        "tags": [
          "auth"
        ],
        "summary": "List Community Login Providers",
        "description": "The ways in this community counts as its own \u2014 non-secret metadata\nonly, plus its display name for its sign-in page when it is listed.\n\nA community does not authenticate anybody: these are the deployment's own\nproviders, and the buttons lead to the deployment's sign-in. What the\ncommunity has said about them is applied when somebody reaches it. Empty\nwhere it connects to nothing and where single sign-on is not permitted.\nOnly a listed community is named: a private community's page and an\nunknown id's both carry no name.",
        "operationId": "list_community_login_providers",
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginProvidersResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/{provider_slug}/login": {
      "get": {
        "tags": [
          "auth"
        ],
        "summary": "Provider Login",
        "description": "Begin the relying-party flow for one operator-global provider. The\nplatform provider's slug is ``oidc``, so the pre-generalization\n``/auth/oidc/login`` URL is this same route.\n\nThe app sends ``code_challenge`` (S256) and gets back a one-time code bound\nto it; see :mod:`app.services.auth.native_handoff`.",
        "operationId": "provider_login",
        "parameters": [
          {
            "name": "provider_slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Provider Slug"
            }
          },
          {
            "name": "mobile",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Mobile"
            }
          },
          {
            "name": "device_name",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "Mobile Device",
              "title": "Device Name"
            }
          },
          {
            "name": "next",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "",
              "title": "Next"
            }
          },
          {
            "name": "code_challenge",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "",
              "title": "Code Challenge"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/{provider_slug}/callback": {
      "get": {
        "tags": [
          "auth"
        ],
        "summary": "Provider Callback",
        "description": "Complete the relying-party flow for one operator-global provider (see\nprovider_login: the platform provider's slug is ``oidc``, so the URL\noperators registered at their IdP is this same route).",
        "operationId": "provider_callback",
        "parameters": [
          {
            "name": "provider_slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Provider Slug"
            }
          },
          {
            "name": "code",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Code"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "State"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/verification/confirm": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Confirm Verification",
        "operationId": "confirm_verification",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerificationConfirmRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VerificationSendResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/password/forgot": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Request Password Reset",
        "description": "Send a reset link to the account an address reaches.\n\nAnswered the same way for every address: whether mail can be sent at all is\nasked before the address is looked up, the address's mail allowance is\ntaken whether or not anybody holds it, and the letter is posted after the\nresponse.",
        "operationId": "request_password_reset",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasswordResetRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VerificationSendResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/password/reset": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Reset Password",
        "operationId": "reset_password",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasswordResetSubmit"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VerificationSendResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/demo/redeem": {
      "post": {
        "tags": [
          "demo"
        ],
        "summary": "Redeem Demo Link",
        "description": "Open a demo link: a new account in a new copy of the link's pitch,\nsigned in for as long as the copy lasts, with ``email`` kept for a\nfollow-up when one is given. Answers 503 ``DEMO_BUSY`` when no copy is\nfree.",
        "operationId": "redeem_demo_link",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DemoRedeem"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DemoRedemption"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/demo/copy": {
      "get": {
        "tags": [
          "demo"
        ],
        "summary": "Read Demo Copy",
        "description": "The signed-in visitor's copy, and whether the import filling it has\nfinished, or failed. 404 for an account not made for a copy.",
        "operationId": "read_demo_copy",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DemoCopyRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/demo/lead": {
      "post": {
        "tags": [
          "demo"
        ],
        "summary": "Leave Demo Lead",
        "description": "Leave an address for a follow-up about the visitor's demo, on the link\ntheir copy was opened from. Kept apart from the account.",
        "operationId": "leave_demo_lead",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DemoLeadCreate"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/totp": {
      "get": {
        "tags": [
          "auth"
        ],
        "summary": "Read Second Factor",
        "description": "What the account holds. A started-but-unproved enrolment reads as not\nenrolled, because that is what the sign-in makes of it too.",
        "operationId": "read_second_factor",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecondFactorStatus"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/totp/enroll": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Begin Second Factor",
        "description": "Mint a seed and hand it over, once.\n\nNothing is asked for at sign-in until it is confirmed, so an enrolment\nbegun and abandoned costs the account nothing. Beginning again replaces it.",
        "operationId": "begin_second_factor",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SecondFactorEnrolStart"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecondFactorEnrolment"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/totp/confirm": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Confirm Second Factor",
        "description": "Prove the enrolment with a code it produced, and hand back the recovery\nset \u2014 the one time those exist in the clear.\n\nSessions are left alone: the person is where they are and has just proved\nit.",
        "operationId": "confirm_second_factor",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SecondFactorConfirm"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecoveryCodes"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/totp/disable": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Disable Second Factor",
        "description": "Remove the factor, its seed and its recovery codes.\n\nAsks for the password \u2014 or, where the password is not asked for, a\nrecent sign-in \u2014 and for the factor itself: a live code, or one of the\nrecovery codes. Every other session goes with it; this one stays. Asked\nfor from somewhere the account does not yet know, it waits two days\n(``202``).",
        "operationId": "disable_second_factor",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SecondFactorDisable"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HeldChangeOutcome"
                }
              }
            }
          },
          "202": {
            "description": "The change waits until held.applies_at.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HeldChangeOutcome"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/step-up/totp": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Step Up With Factor",
        "description": "Add the account's second factor to the session already signed in.\n\nA community that asks for one refuses a session that never presented it,\nand signing out to sign back in would be a strange way to answer that. This\ntakes the code against the live session instead.\n\nThe session is upgraded rather than replaced from nothing: its factors and\nits satisfied providers carry forward and the old row is revoked, the same\nshape the provider step-up uses \u2014 satisfying one community's requirement\nnever un-satisfies another's.",
        "operationId": "step_up_with_factor",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SecondFactorStepUpAnswer"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Token"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/recovery-codes/regenerate": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Regenerate Recovery Codes",
        "description": "Retire the account's codes and hand over a fresh set, once.\n\nFor an account that is enrolled, and for one that signs in without a\npassword \u2014 there the codes answer for the account itself, and are how it\nsets a password again.",
        "operationId": "regenerate_recovery_codes",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecoveryCodesRegenerate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecoveryCodes"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/passkeys": {
      "get": {
        "tags": [
          "auth"
        ],
        "summary": "List Passkeys",
        "description": "The account's passkeys, oldest first.",
        "operationId": "list_passkeys",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PasskeyList"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/passkeys/register/begin": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Begin Passkey Registration",
        "description": "Options for the browser to make a new credential with.\n\nThe challenge inside them stands for a few minutes and is spent when the\ncredential comes back. Beginning again issues another.\n\nThe name arrives here as well as on the finish route, so a name this\ndeployment will not keep is answered before the browser makes anything.\nThe one stored is the one finish carries.",
        "operationId": "begin_passkey_registration",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasskeyRegisterStart"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PasskeyRegistrationOptions"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/passkeys/register/finish": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Finish Passkey Registration",
        "description": "Keep the credential the browser made, under the name given.",
        "operationId": "finish_passkey_registration",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasskeyRegisterFinish"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PasskeyRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/passkeys/{passkey_id}": {
      "patch": {
        "tags": [
          "auth"
        ],
        "summary": "Rename Passkey",
        "description": "Give the credential another name. Nothing about signing in changes.",
        "operationId": "rename_passkey",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "passkey_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Passkey Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasskeyRename"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PasskeyRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/passkeys/{passkey_id}/remove": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Remove Passkey",
        "description": "Forget the credential. The password is asked for again, as it is for a\npassword change, because a way in is being taken away. The account's last\npasskey, removed from somewhere the account does not yet know, waits two\ndays (``202``).",
        "operationId": "remove_passkey",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "passkey_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Passkey Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasskeyRemove"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HeldChangeOutcome"
                }
              }
            }
          },
          "202": {
            "description": "The change waits until held.applies_at.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HeldChangeOutcome"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/passkeys/authenticate/begin": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Begin Passkey Sign In",
        "description": "Options for signing in with a passkey. Nobody is named yet: the\nauthenticator offers what it holds for this site, and the assertion that\ncomes back says which credential answered.",
        "operationId": "begin_passkey_sign_in",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasskeySignInStart"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PasskeyAuthenticationOptions"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/passkeys/authenticate/finish": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Finish Passkey Sign In",
        "description": "Open the session a passkey earned.\n\nEvery ceremony verifies the person as well as the device, so an assertion\nis a multi-factor authentication on its own and no code is asked for after\nit. What answered is recorded in the session's ``amr``.",
        "operationId": "finish_passkey_sign_in",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasskeySignInFinish"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Token"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/step-up/passkey/begin": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Begin Passkey Step Up",
        "description": "Options for presenting one of this account's passkeys against the\nsession already open \u2014 the allow-list names the account's own.",
        "operationId": "begin_passkey_step_up",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PasskeyAuthenticationOptions"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/step-up/passkey/finish": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Finish Passkey Step Up",
        "description": "Add the passkey to the session already signed in.\n\nA community that asks for one refuses a session that was not opened with\none, and signing out to sign back in would be a strange way to answer that.\nThe session is upgraded rather than replaced from nothing: what it had\nproved carries forward and the old row is retired, the shape the other\nstep-ups take.",
        "operationId": "finish_passkey_step_up",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasskeyStepUpFinish"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Token"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/password/remove": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Remove Password",
        "description": "Give up the password, keeping the passkey or the sign-in provider that\nwill open sessions from now on.\n\nHands back a fresh recovery set where the account is down to fewer than a\nhandful of codes \u2014 the one time those exist in the clear, and the ones it\nheld stop working \u2014 and an empty list where it still holds enough.\n\nDone from a browser. The answer retires every credential the account holds\nand hands this caller a replacement session in cookies, which is not what\nthe native app carries, so the app is told to do this on the web instead.",
        "operationId": "remove_password",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasswordRemove"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecoveryCodes"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/password/recover": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Recover With Code",
        "description": "Set a password with a recovery code, for an account that holds none.\n\nThe way back in when the passkey is gone and no mail can be sent. An\naccount that holds a password recovers it through the mailed reset instead.\n\nNo session is opened here. The password is what the account signs in with\nafterwards, and the authenticator is still asked for where one is enrolled.",
        "operationId": "recover_with_code",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasswordRecover"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VerificationSendResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/account-change/read": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Read Account Change",
        "description": "What a link answers and may do, for its page to say before anything is\ndone. Reading spends nothing.",
        "operationId": "read_account_change",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AccountChangeToken"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountChangeRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/account-change/sign-out": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Sign Out Everywhere",
        "description": "Sign the account out of every browser, phone and computer, and turn off\nits API keys, and tell the people who run the server. Its password,\naddresses and other ways in stay as they are. The link is spent with the\nwork, so a sign-out that fails leaves it good.",
        "operationId": "sign_out_everywhere",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AccountChangeToken"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountChangeDone"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/account-change/undo": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Undo Account Change",
        "description": "Undo the change the notice reported and sign the account out\neverywhere, where this copy of the notice may, and tell the people who run\nthe server. The account is told what the undo changed.",
        "operationId": "undo_account_change",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AccountChangeToken"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountChangeDone"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/email-otp/send": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Send Sign In Code",
        "description": "Post a code to an address, and hand back the handle that names it.\n\nThe captcha is answered before the address is resolved: it says something\nabout the request, not about the address. Past it, the one refusal is the\naddress's mail allowance, taken whether or not anybody holds the address.",
        "operationId": "send_sign_in_code",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailOtpSend"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailOtpSent"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/email-otp/verify": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Verify Sign In Code",
        "description": "Take the code back and open the session it earned.",
        "operationId": "verify_sign_in_code",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailOtpVerify"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Token"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/email-otp/register": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Register With Code",
        "description": "Make the account a proved address earned, and sign it in.\n\nThe gates are asked again here \u2014 the ticket says which address, and\nnothing else about the registration was settled when it was issued. The\ncaptcha is not among them: it was answered when the code was asked for,\nand a token is spent by being checked.\n\nThe account is made with no password. Its way in is the address it just\nproved; it sets a password afterwards if it wants one.",
        "operationId": "register_with_code",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailOtpRegister"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Token"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/step-up/email-otp/send": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Send Step Up Code",
        "description": "Post a code confirming the session already open.\n\nTo the account's primary proved address, or its first proved one: an\naddress that was added and never proved is not known to be the account's.",
        "operationId": "send_step_up_code",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailOtpSent"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/step-up/email-otp/verify": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Verify Step Up Code",
        "description": "Take the code back and confirm the session with it.\n\nThe session is upgraded as the other step-ups upgrade it, which opens a\nnew chain: a change asking for a recent sign-in takes it from here.",
        "operationId": "verify_step_up_code",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailOtpVerify"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Token"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/sessions": {
      "get": {
        "tags": [
          "auth"
        ],
        "summary": "List My Sessions",
        "description": "Every session this account can still use, newest activity first, each\nbeside the message device that collects under it, then the message devices\nno live session names.\n\nEach row is one sign-in rather than one renewal \u2014 the service walks each\nlive session back to the sign-in it descends from, so a browser left open\nfor a month says so. A key store names the live row its sign-in has\nreached, which is the one listed here.",
        "operationId": "list_my_sessions",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SignedInSessionInfo"
                  },
                  "title": "Response List My Sessions"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/sessions/{session_id}": {
      "delete": {
        "tags": [
          "auth"
        ],
        "summary": "Revoke My Session",
        "description": "End one of the account's sessions, and withdraw the message device that\ncollects under it.\n\nThe whole rotation chain, so the session cannot renew its way out of it.\nNothing more is encrypted to the device: a phone somebody cuts off from\nhere is one they no longer trust, and a browser's keys go with its\nsession.\nA session belonging to somebody else answers the same as one that does not\nexist, because the id is the only thing the caller supplied and it should\nnot learn which of the two it got wrong.",
        "operationId": "revoke_my_session",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Session Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/sessions/revoke-others": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Revoke My Other Sessions",
        "description": "End every session the account holds except the one asking.\n\nThe browsers' message devices go with them; a phone or desktop app keeps\nits keys and picks up where it left off at its next sign-in, as after any\nlapse. Both tables are the system engine's, so the revocation, the\nwithdrawal and the record commit together.",
        "operationId": "revoke_my_other_sessions",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/operator/users": {
      "get": {
        "tags": [
          "operator"
        ],
        "summary": "List All Users",
        "description": "One page of the platform's accounts (``users.read``).\n\nPlatform-scoped: runs on the role-scoped session (``platform_<tier>``), so the\ncross-user read is authorized by RLS (``users_platform_read``, support+) rather\nthan the system engine. Initiative roles are guild-scoped and\ndeliberately NOT loaded here \u2014 a platform user view exposes platform data only.\n\nOrdered by ``sort_by`` when given; otherwise nearest match first while\nsearching, and oldest account first while not.",
        "operationId": "list_all_users",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Matches the handle's name part; a whole handle (`foobar#1234`) pins one account.",
              "title": "Search"
            },
            "description": "Matches the handle's name part; a whole handle (`foobar#1234`) pins one account."
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "id",
                    "username",
                    "status"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Sort By"
            }
          },
          {
            "name": "sort_dir",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string",
              "default": "asc",
              "title": "Sort Dir"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorUserListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/operator/users/export.csv": {
      "get": {
        "tags": [
          "operator"
        ],
        "summary": "Export Platform Users Csv",
        "description": "Export platform users as a CSV file. Pass `user_id` one or more times to\nrestrict the export to a subset. Without `user_id`, every user is included.\nSupport and above (``users.read``).",
        "operationId": "export_platform_users_csv",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "User Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/operator/users/{user_id}/second-factor": {
      "delete": {
        "tags": [
          "operator"
        ],
        "summary": "Clear Second Factor",
        "description": "Remove somebody's second factor for them.\n\nThe lost-phone path: the person cannot present the factor and cannot reach\nthe recovery codes either, so somebody with the run of platform accounts\ntakes it off and they enrol again.\n\nA clear, never a read \u2014 nothing here hands back the seed or the codes, to\nthis caller or any other. Their sessions and any part-way sign-in go with\nit, and the account is told.",
        "operationId": "clear_second_factor",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "case_task_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act.",
              "title": "Case Task Id"
            },
            "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/operator/users/{user_id}/sessions": {
      "delete": {
        "tags": [
          "operator"
        ],
        "summary": "Sign User Out Everywhere",
        "description": "End every session an account has, on every device (``users.manage``).\n\nFor an account somebody else may be signed in to: its holder signs in\nagain, and whoever else had it does not. Its open connections close now.",
        "operationId": "sign_user_out_everywhere",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "case_task_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act.",
              "title": "Case Task Id"
            },
            "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorUserRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/operator/users/{user_id}/profile/{field}": {
      "delete": {
        "tags": [
          "operator"
        ],
        "summary": "Clear Profile Field",
        "description": "Clear part of how an account appears to others (``content.moderate``).\n\n``display_names`` clears the names it goes by in its communities, all of\nthem; ``custom_status`` its status line; ``decorations`` its banner, frame\nand trophies. Like a picture takedown, for what breaches the terms of use:\nits holder may set them again.",
        "operationId": "clear_profile_field",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "field",
            "in": "path",
            "required": true,
            "schema": {
              "enum": [
                "display_names",
                "custom_status",
                "decorations"
              ],
              "type": "string",
              "title": "Field"
            }
          },
          {
            "name": "case_task_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act.",
              "title": "Case Task Id"
            },
            "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorUserRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/operator/users/{user_id}/cases": {
      "get": {
        "tags": [
          "operator"
        ],
        "summary": "List Account Cases",
        "description": "The open operations cases an account filed or is the subject of\n(``users.read``): where each lives, to open it, and nothing it says.",
        "operationId": "list_account_cases",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OperatorAccountCaseRead"
                  },
                  "title": "Response List Account Cases"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/operator/users/{user_id}/reset-password": {
      "post": {
        "tags": [
          "operator"
        ],
        "summary": "Trigger Password Reset",
        "description": "Trigger a password reset email for a user (``users.manage``).\n\nRefused where the deployment takes no password, as the reset it links to is.",
        "operationId": "trigger_password_reset",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "case_task_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act.",
              "title": "Case Task Id"
            },
            "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VerificationSendResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/operator/users/{user_id}/verification-email": {
      "post": {
        "tags": [
          "operator"
        ],
        "summary": "Resend Verification Email",
        "description": "Send an account's sign-up confirmation letter again (``users.manage``).\n\nFor somebody whose first letter expired or never arrived. It goes to the\naddress they signed up with and replaces the one they were sent; the\ninvite that letter was waiting on still joins when they confirm.",
        "operationId": "resend_verification_email",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VerificationSendResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/operator/users/{user_id}/reactivate": {
      "post": {
        "tags": [
          "operator"
        ],
        "summary": "Reactivate User",
        "description": "Reactivate a deactivated user account (``users.manage``).\n\nA suspension is lifted through ``suspension`` and a pending deletion\ncalled off through ``restore``; this reopens only a deactivated account.",
        "operationId": "reactivate_user",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "case_task_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act.",
              "title": "Case Task Id"
            },
            "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorUserRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/operator/users/{user_id}/restore": {
      "post": {
        "tags": [
          "operator"
        ],
        "summary": "Restore Deleted User",
        "description": "Call off a pending erasure from the users table (``users.manage``).\n\nThe account's holder can do this themselves simply by signing in, which is\nthe ordinary way it happens. This is for when they cannot \u2014 the address is\ngone, the phone is gone, they asked somebody \u2014 and for an operator undoing\na deletion they made on somebody's behalf.\n\nNothing is restored as such: the account never lost anything. It kept its\nmemberships, its initiative roles and the files it owns for the whole\nwindow, so this puts it back exactly where it was.\n\nSeparate from ``reactivate``, which is for a *deactivated* account and\ngives back an account with no communities \u2014 the memberships that one\ndropped are not coming back.",
        "operationId": "restore_deleted_user",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "case_task_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act.",
              "title": "Case Task Id"
            },
            "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorUserRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/operator/users/{user_id}/avatar": {
      "delete": {
        "tags": [
          "operator"
        ],
        "summary": "Remove User Avatar",
        "description": "Take down a user's profile picture.\n\nPeople occasionally upload images that breach the terms of use, so removal\ncannot wait for the uploader to do it. Gated on ``content.moderate``, which\nis a platform capability \u2014 a guild admin is a tenancy role and has no part\nin this, so a guild's administrator cannot reach a member's profile image.\n\nRemoval only. There is deliberately no path by which one account sets\nanother account's picture.\n\nThe bytes are destroyed rather than hidden. Runs on the system engine\nbecause the row policies scope every request-path write to the caller's own\navatar, so the capability check above, bounded by rank, is what admits it.",
        "operationId": "remove_user_avatar",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "case_task_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act.",
              "title": "Case Task Id"
            },
            "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/operator/users/{user_id}/username": {
      "patch": {
        "tags": [
          "operator"
        ],
        "summary": "Set User Username",
        "description": "Change someone's username.\n\nPeople occasionally pick a handle that breaches the terms of use, and it is\nthe one part of an account everyone else sees, so changing it cannot wait\nfor its owner. Gated on ``content.moderate`` \u2014 a platform capability, like\nthe picture takedown beside it; a guild's administrator has no part in this.\n\nThe name part is validated exactly as registration validates it. The number\nis not the moderator's to choose either: the existing one is kept, and a\nnew one drawn only if that pair is already held.\n\nThis also marks the handle as chosen, so its owner cannot immediately spend\na pick on undoing a moderation decision.",
        "operationId": "set_user_username",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "case_task_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act.",
              "title": "Case Task Id"
            },
            "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OperatorUsernameUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorUserRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/operator/users/{user_id}/suspension": {
      "post": {
        "tags": [
          "operator"
        ],
        "summary": "Set User Suspension",
        "description": "Freeze an account, or let it go.\n\nSuspension takes nothing away: memberships, grants, assignments and\neverything the account authored stay exactly where they are, so lifting it\nrestores the account whole. What it does is close every guild \u2014 the holder\nstill signs in and reaches their own account, which is how they can be told\nwhy.\n\nGated on ``content.moderate`` (moderator and above). No PAM grant is involved:\nthis is a platform action about an account, not access to a guild's\ncontent.",
        "operationId": "set_user_suspension",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "case_task_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act.",
              "title": "Case Task Id"
            },
            "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OperatorSuspensionUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorUserRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/operator/users/{user_id}/sign-in-lock": {
      "delete": {
        "tags": [
          "operator"
        ],
        "summary": "Lift Sign In Lock",
        "description": "Turn an account's password and code sign-in back on.\n\nWrong passwords or codes turn them off for a while, longer for each lock\nwithin a day. This lifts the lock now, and starts both counts over.\n\nGated on ``users.manage`` (moderator and above), like a suspension.",
        "operationId": "lift_sign_in_lock",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "case_task_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act.",
              "title": "Case Task Id"
            },
            "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorUserRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/operator/users/{user_id}/api-keys": {
      "delete": {
        "tags": [
          "operator"
        ],
        "summary": "Revoke User Api Keys",
        "description": "Switch off every API key on an account that still works.\n\nThe keys stay on the account's own list, marked off, so its holder can see\nwhat stopped and make new ones. Gated on ``users.manage``, like a\nsuspension.",
        "operationId": "revoke_user_api_keys",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "case_task_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act.",
              "title": "Case Task Id"
            },
            "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorUserRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/operator/users/{user_id}/age-block": {
      "delete": {
        "tags": [
          "operator"
        ],
        "summary": "Clear Age Block",
        "description": "Let an account answer the age question again.\n\nAn answer stands \u2014 an under-age one, and any kept date of birth \u2014 and the\nquestion is not re-asked, otherwise it is not a question. This is the way\nback for the case that is nearly all of them: a mistyped year. It clears\nthe under-age record, the confirmation and the kept date, and nothing\nelse; the account answers again from scratch.\n\nAn account whose answer closed it (under the minimum for an account where\nit was, ``age_below_account_minimum_at``) is still scheduled for erasure\nafter this. Clearing the marks is what lets its holder sign in, and that\nsign-in is what calls the erasure off and restores the account whole \u2014\nor ``restore`` below does, for an operator doing both at once.\n\nGated on ``users.age_unblock``, which the support tier holds \u2014 the lowest\nrung, because getting somebody back into their account after a typo is\nsupport work rather than a moderation decision. Recorded either way: it is\none person restoring another's access, which is exactly the kind of thing\na log is for.",
        "operationId": "clear_age_block",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "case_task_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act.",
              "title": "Case Task Id"
            },
            "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorUserRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/operator/users/{user_id}/platform-role": {
      "patch": {
        "tags": [
          "operator"
        ],
        "summary": "Update Platform Role",
        "description": "Update a user's platform role (``roles.assign``).\n\nRestrictions:\n- Cannot change your own role\n- Cannot demote the last owner",
        "operationId": "update_platform_role",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "case_task_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act.",
              "title": "Case Task Id"
            },
            "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlatformRoleUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorUserRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/operator/users/{user_id}/deletion-eligibility": {
      "get": {
        "tags": [
          "operator"
        ],
        "summary": "Check User Deletion Eligibility",
        "description": "Check if a user can be deleted (``users.delete``).\n\nReturns the blockers ``delete_user`` refuses on: being the last platform\nowner, and the communities the user holds the only superadmin seat of.\nOwning content does not stop a deletion, because ownership is released on\nthe way out and the content is left unowned for a guild admin to claim.",
        "operationId": "check_user_deletion_eligibility",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorDeletionEligibilityResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/operator/users/{user_id}": {
      "delete": {
        "tags": [
          "operator"
        ],
        "summary": "Delete User",
        "description": "Delete, anonymize, or deactivate a user account (``users.delete``).\n\n`action` selects the path:\n  - `deactivate` \u2014 reversible; flips status to deactivated, drops memberships.\n  - `soft_delete` \u2014 anonymizes PII; keeps the row so historical FKs still resolve.\n  - `hard_delete` \u2014 permanently removes the row and cascades cleanup.\n\nFor both `soft_delete` and `hard_delete`, projects the user solely owns\nmust be transferred \u2014 only owners hold certain permissions, and an\nanonymized owner row can't act on them.\n\nRestrictions:\n- Cannot delete yourself (use /me/delete-account)\n- Cannot delete the last owner",
        "operationId": "delete_user",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "case_task_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "exclusiveMinimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act.",
              "title": "Case Task Id"
            },
            "description": "The operations case this act is for: one the caller can read, still open. The case is told of the act."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OperatorUserDeleteRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountDeletionResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/": {
      "get": {
        "tags": [
          "communities"
        ],
        "summary": "List Communities",
        "description": "The communities the caller belongs to, in the order they keep them.\n\nEvery community-scoped route takes one of these ids as its\n``community_id``. A personal API key is shown the communities it can\naddress: one limited to a community sees that one alone, and a community\nthat turned off this member's API access is left out.",
        "operationId": "list_communities",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CommunityRead"
                  },
                  "title": "Response List Communities"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "communities"
        ],
        "summary": "Create Community",
        "description": "Create a new guild. Uses the system session because the guild doesn't exist\nyet \u2014 no guild context or membership exists for RLS to match against.\n\nThe caller becomes the guild's admin, unless they hold ``communities.manage``\nand name an ``owner_user_id``, which hands the guild to that account\ninstead and leaves the caller holding nothing in it.",
        "operationId": "create_community",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/order": {
      "put": {
        "tags": [
          "communities"
        ],
        "summary": "Reorder Communities",
        "operationId": "reorder_communities",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityOrderUpdate"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/directory": {
      "get": {
        "tags": [
          "communities"
        ],
        "summary": "List Directory Communities",
        "description": "Browse the guilds that opted into the community directory.\n\nRuns on the system engine for the reason ``GET /invite/{code}`` does: the\ncaller is a stranger to every guild here, so no guild-scoped role exists to\nread them under, and the RLS policy that scopes ``guilds`` to the caller's\nown memberships would return an empty directory. What that engine may see\nis not what this returns \u2014 the filters live in the service (listed AND\nactive, always), and :class:`DirectoryCommunityRead` carries only what a guild\npublished by opting in: no lifecycle status, no administration, no roster,\nand nothing at all from inside the guild's own schema. How many people have\nit open is a count of live connections, named to nobody.\n\nThe directory is a deployment-level feature an owner switches on; where it\nis off there is nothing to browse and the request is refused rather than\nanswered with an empty page.",
        "operationId": "list_directory_communities",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 200
                },
                {
                  "type": "null"
                }
              ],
              "title": "Search"
            }
          },
          {
            "name": "search_country",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "maxItems": 50,
              "default": [],
              "title": "Search Country"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CommunityCategory"
              },
              "default": [],
              "title": "Category"
            }
          },
          {
            "name": "near_country",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^[A-Za-z]{2}$"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Near Country"
            }
          },
          {
            "name": "near_lat",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "number",
                  "maximum": 90,
                  "minimum": -90
                },
                {
                  "type": "null"
                }
              ],
              "title": "Near Lat"
            }
          },
          {
            "name": "near_lon",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "number",
                  "maximum": 180,
                  "minimum": -180
                },
                {
                  "type": "null"
                }
              ],
              "title": "Near Lon"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 60,
              "minimum": 1,
              "default": 24,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectoryCommunityPage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/directory/{community_id}/join": {
      "post": {
        "tags": [
          "communities"
        ],
        "summary": "Join Directory Community",
        "description": "Join a listed community guild. Its listing is the authorization.\n\nThe system engine for the same reason ``accept_invite`` uses it \u2014 the user\nhas no membership yet, so there is no guild role to write one under. Joining\nan already-joined guild is not an error; it returns the guild the caller is\nalready in.",
        "operationId": "join_directory_community",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/invite/{code}": {
      "get": {
        "tags": [
          "communities"
        ],
        "summary": "Get Invite Status",
        "operationId": "get_invite_status",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Code"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityInviteStatus"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/invites": {
      "get": {
        "tags": [
          "communities"
        ],
        "summary": "List Community Invites",
        "operationId": "list_community_invites",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CommunityInviteRead"
                  },
                  "title": "Response List Community Invites"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "communities"
        ],
        "summary": "Create Community Invite",
        "operationId": "create_community_invite",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityInviteCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityInviteCreated"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}": {
      "get": {
        "tags": [
          "communities"
        ],
        "summary": "Read Community",
        "description": "The community as the caller's standing sees it \u2014 how a community\nreached by a settings grant, which has no entry in ``GET /communities/``, gets\nits entry and the answer to what the caller may change there.",
        "operationId": "read_community",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "communities"
        ],
        "summary": "Update Community",
        "operationId": "update_community",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "communities"
        ],
        "summary": "Delete Community",
        "operationId": "delete_community",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityDeletionRequest"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/entitlements": {
      "get": {
        "tags": [
          "communities"
        ],
        "summary": "Read Community Entitlements",
        "description": "What an operator has turned on for this guild, for its own admins.\n\nIts own read rather than fields on the guild payload: these are decisions\nmade *about* a guild rather than by it, they are its paid rules, and a\nmember has no use for them. A guild admin does \u2014 it is how their settings\npage knows to offer the banner colour alone rather than an upload that\nwould come back refused.",
        "operationId": "read_community_entitlements",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityEntitlementsRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/icon": {
      "put": {
        "tags": [
          "communities"
        ],
        "summary": "Set Community Icon",
        "description": "Replace the guild's icon. One square picture, resized by the client.",
        "operationId": "set_community_icon",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_set_community_icon"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "communities"
        ],
        "summary": "Clear Community Icon",
        "description": "Remove the guild's icon. It falls back to its lettered avatar.",
        "operationId": "clear_community_icon",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/banner": {
      "put": {
        "tags": [
          "communities"
        ],
        "summary": "Set Community Banner",
        "description": "Replace the guild's banner with the two renditions of one picture.\n\nThe admin chooses a single image; the settings page resizes it to both\nrenditions and sends them together, so a guild is never left showing a new\ncard over an old front page.",
        "operationId": "set_community_banner",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_set_community_banner"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "communities"
        ],
        "summary": "Clear Community Banner",
        "description": "Remove the guild's banner. Both surfaces fall back to their plain form.",
        "operationId": "clear_community_banner",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/billing/handoff": {
      "post": {
        "tags": [
          "communities"
        ],
        "summary": "Create Community Billing Handoff",
        "description": "Mint a billing-portal handoff. The guild's superadmin only.\n\nWhat a community pays for is the top seat's, like its sign-in: an ordinary\nadmin runs the place without holding its card. The seat reaches it while\nthe community is on hold too, since paying is how a hold is lifted.",
        "operationId": "create_community_billing_handoff",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingPortalHandoffResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/billing/payment-issue": {
      "get": {
        "tags": [
          "communities"
        ],
        "summary": "Read Community Payment Issue",
        "operationId": "read_community_payment_issue",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityPaymentIssueRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/billing/summary": {
      "get": {
        "tags": [
          "communities"
        ],
        "summary": "Read Community Billing Summary",
        "description": "The guild's plan, asked of billing for this response and kept nowhere.\n\nDisplay only: initiative never writes to billing, and nothing here changes\na plan \u2014 every change, cancelation included, is made in the billing\nportal. The seat that may open the portal, as the handoff mint asks: the\nsummary is what that seat would act on there.",
        "operationId": "read_community_billing_summary",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityBillingSummaryRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/auth-settings": {
      "get": {
        "tags": [
          "communities"
        ],
        "summary": "Get Community Auth Settings",
        "description": "Read the controls held by this community's superadmin seat.",
        "operationId": "get_community_auth_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityAuthSettingsRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "communities"
        ],
        "summary": "Update Community Auth Settings",
        "description": "Change what reaching this community asks of somebody, and what its\nnotifications may leave the app carrying.\n\nThese sit with the seat rather than with running the community: they say\nwhat may be used to reach it and what is done on its behalf. Tightening a\nrule needs the option it belongs to \u2014 ``providers`` for the sign-in\nrequirement, ``restrictions`` for the rest; loosening one never does. A\nrule applies while the community holds that option.\n\nThe sign-in requirement: ``open`` clears it. ``required`` names one of the\ncommunity's own login-ready providers, asks for its own single sign-on, a\nsecond factor or a passkey, or several at once \u2014 and the account writing\nit must already meet it, which both proves a provider works end to end and\nkeeps an admin from locking the community behind a sign-in they have not\ncompleted.\n\nThe guests' requirement takes the same shapes and is asked of guests\ninstead of the members' one. Its writer is not a guest, so is not asked\nto meet it.\n\nNobody is signed out by a change. Existing API\nkeys are left alone when keys are refused, so accepting them again\nrestores them. Every notification answer only narrows what the deployment\npermits.",
        "operationId": "update_community_auth_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityAuthSettingsUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityAuthSettingsRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/invites/{invite_id}": {
      "delete": {
        "tags": [
          "communities"
        ],
        "summary": "Delete Community Invite",
        "operationId": "delete_community_invite",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "invite_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Invite Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/invite/accept": {
      "post": {
        "tags": [
          "communities"
        ],
        "summary": "Accept Invite",
        "description": "Accept a guild invite. Uses the system session because the user doesn't\nbelong to the guild yet \u2014 the invite code is the authorization.",
        "operationId": "accept_invite",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityInviteAcceptRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/members/{user_id}": {
      "patch": {
        "tags": [
          "communities"
        ],
        "summary": "Update Community Membership",
        "description": "Update a user's guild membership role. Guild admin only.\n\nRestrictions:\n- Cannot change your own role\n- Cannot demote the last guild admin",
        "operationId": "update_community_membership",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityMembershipUpdate"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/guests/{user_id}": {
      "patch": {
        "tags": [
          "communities"
        ],
        "summary": "Extend Community Guest",
        "description": "Set when a guest's time ends, ``days`` from now. On the system engine,\nas a role change is: the guild role holds no UPDATE on memberships.",
        "operationId": "extend_community_guest",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityGuestExtend"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/guests/{user_id}/member": {
      "post": {
        "tags": [
          "communities"
        ],
        "summary": "Make Community Guest A Member",
        "description": "Make a guest a member. They take a seat, so the member cap applies.",
        "operationId": "make_community_guest_a_member",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/members/{user_id}/display-name": {
      "put": {
        "tags": [
          "communities"
        ],
        "summary": "Set Member Display Name",
        "description": "Set what a member is called in this community, or clear it. Guild admin\nonly, or a settings grant beside a read_write one.\n\nOn the system engine, as a role change is: the guild role writes only the\ncaller's own membership row.",
        "operationId": "set_member_display_name",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MemberDisplayNameUpdate"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/members/{user_id}/api-access": {
      "put": {
        "tags": [
          "communities"
        ],
        "summary": "Set Member Api Access",
        "description": "Turn one member's personal API keys off or on for this community. The\nseat only.\n\nTurning them off needs the ``restrictions`` option, and applies while the\ncommunity holds it; turning them back on never needs it. Keys the member\nalready made are left alone either way: the gate refuses them here while\naccess is off, and they reach the community again when it is turned back\non.\n\nOn the system engine, as a role change is: the guild role writes only the\ncaller's own membership row.",
        "operationId": "set_member_api_access",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MemberApiAccessUpdate"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/membership/display-name": {
      "put": {
        "tags": [
          "communities"
        ],
        "summary": "Set Own Display Name",
        "description": "Set what the caller is called in this community, or clear it.\n\nRouted as the community's own configuration is, so a member keeps it while\ncontent is frozen and not while the community is in time out.",
        "operationId": "set_own_display_name",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MemberDisplayNameUpdate"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/leave/eligibility": {
      "get": {
        "tags": [
          "communities"
        ],
        "summary": "Check Leave Eligibility",
        "description": "Check if the current user can leave a guild.\n\nHolding its only superadmin seat is the one thing that stops them. Content\nthey own is released on the way out and left unowned for a guild admin to\nclaim, so there is nothing to hand over first.",
        "operationId": "check_leave_eligibility",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LeaveCommunityEligibilityResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/leave": {
      "delete": {
        "tags": [
          "communities"
        ],
        "summary": "Leave Community",
        "description": "Leave a guild.\n\nBeing the guild's last admin is the only restriction. Content the leaver\nowns is released \u2014 left unowned for a guild admin to claim \u2014 rather than\nhanded to someone who did not ask for it.",
        "operationId": "leave_community",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/directory/{community_id}/join-requests": {
      "post": {
        "tags": [
          "communities"
        ],
        "summary": "Ask To Join Community",
        "description": "Ask a listed ``request`` community to let the caller in. Asking again\nwhile a request waits changes nothing.",
        "operationId": "ask_to_join_community",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityJoinRequestCreate"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "communities"
        ],
        "summary": "Withdraw Community Join Request",
        "description": "Take back the caller's own request. Nothing to take back is not an\nerror.",
        "operationId": "withdraw_community_join_request",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/join-requests": {
      "get": {
        "tags": [
          "communities"
        ],
        "summary": "List Community Join Requests",
        "description": "Who is asking to join, oldest first.",
        "operationId": "list_community_join_requests",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CommunityJoinRequestRead"
                  },
                  "title": "Response List Community Join Requests"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/join-requests/{request_id}/approve": {
      "post": {
        "tags": [
          "communities"
        ],
        "summary": "Approve Community Join Request",
        "description": "Let the asker in as a member. A refusal on the way in (the community is\nfull, the asker under age) leaves the request where it was. Somebody who\ncame in as a guest while they waited becomes a member, as making a guest\none does. The claim and the notice commit together, once the membership\nhas.",
        "operationId": "approve_community_join_request",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "request_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Request Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/join-requests/{request_id}/deny": {
      "post": {
        "tags": [
          "communities"
        ],
        "summary": "Deny Community Join Request",
        "description": "Turn the asker down. They may ask again.",
        "operationId": "deny_community_join_request",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "request_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Request Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/users/{handle}/profile": {
      "get": {
        "tags": [
          "users"
        ],
        "summary": "Read User Profile",
        "description": "One person's profile, addressed by their handle.\n\n``jordan1234`` \u2014 the name and the number it is always written with, run\ntogether. ``#`` never survives a URL, and the number's four digits are\nfixed width, so the two come apart again exactly.\n\nA profile is public and has no guild in it: it carries the handle, the\nface, the status, the look and how they appear, and it is the same page\nwhoever opens it. That is why it is not reached through a guild \u2014 no\npart of the answer depends on one.\n\nRead from ``public.user_profiles``, the view that *is* the public\nprojection: which columns are public is decided by the view and the column\ngrant behind it (migration 0214), not here. An ordinary platform-tier\nsession, RLS enforced. A suspended account has no profile.",
        "operationId": "read_user_profile",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "handle",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Handle"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserProfile"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/users/{handle}/communities": {
      "get": {
        "tags": [
          "users"
        ],
        "summary": "Read User Communities",
        "description": "The listed communities one person belongs to.\n\nA separate read from the profile on purpose: the profile is the public\nprojection of ``public.users`` and this is not about that row at all. It\nalso cannot run on the same session \u2014 ``guild_memberships`` is scoped to\nthe caller's own rows on the request path, and the question is about\nsomebody else \u2014 so it takes the system engine, exactly as the directory\ndoes, with the same service-side filters deciding what may appear.\n\nOnly guilds that opted into the directory. One someone is in that did not\nis nobody else's business, and does not appear here for anyone.",
        "operationId": "read_user_communities",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "handle",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Handle"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DirectoryCommunityRead"
                  },
                  "title": "Response Read User Communities"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/users/{user_id}/dm/session-keys": {
      "post": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Claim Session Keys",
        "description": "Claim what is needed to open a session with each of that account's\ndevices.\n\nA POST rather than a GET because a claim spends a prekey \u2014 this writes.",
        "operationId": "claim_session_keys",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "title": "User Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/DmSessionKeysRequest"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DmSessionKeysResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/users/{user_id}/dm/devices": {
      "get": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Read Directory",
        "description": "That account's devices and their public keys, claiming nothing.\n\nWhat a recipient reads to derive the session an inbound pre-key message\ndescribes. Separate from the claim above because claiming spends a prekey,\nand answering a message should not cost one.",
        "operationId": "read_directory",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "title": "User Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DmSessionKeysResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/marketplace/operator-catalog/rescan": {
      "post": {
        "tags": [
          "marketplace"
        ],
        "summary": "Rescan Operator Catalog",
        "description": "Re-read the deployment's own catalog directory (``config.manage``).\n\nThe same scan the boot runs, so a manifest dropped into the mounted\ndirectory appears without a restart, and one removed from it retires its\nlisting. Answers 400 when no directory is configured or the configured one\nis not there, and 409 while a scan is already running.",
        "operationId": "rescan_operator_catalog",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperatorCatalogScanResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/marketplace/registry/status": {
      "get": {
        "tags": [
          "marketplace"
        ],
        "summary": "Read Registry Status",
        "description": "Where this deployment stands with the registry (``config.manage``).\n\nThe switch, whether this build has a trusted root, and how the last\nrefresh or bundle went.",
        "operationId": "read_registry_status",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegistryStatusRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/marketplace/registry/settings": {
      "put": {
        "tags": [
          "marketplace"
        ],
        "summary": "Update Registry Settings",
        "description": "Follow the registry, or stop (``config.manage``). What already arrived\nstays; switching back on picks up from where it left off.",
        "operationId": "update_registry_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegistrySettings"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegistrySettings"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/marketplace/registry/refresh": {
      "post": {
        "tags": [
          "marketplace"
        ],
        "summary": "Refresh Registry Now",
        "description": "Fetch, verify and apply the registry now (``config.manage``).\n\nThe same code the background refresh runs. A refresh already in flight is\nreported rather than queued, and a refusal answers with the code naming it.",
        "operationId": "refresh_registry_now",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegistryRefreshRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/marketplace/registry/bundle": {
      "post": {
        "tags": [
          "marketplace"
        ],
        "summary": "Upload Registry Bundle",
        "description": "Apply a registry bundle (``config.manage``).\n\nA tar of a registry's ``metadata/`` and ``targets/`` directories, for a\ndeployment that cannot reach the registry. It is verified against the\ntrusted root exactly as a fetched repository is, and applied the same way.",
        "operationId": "upload_registry_bundle",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_upload_registry_bundle"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegistryRefreshRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/marketplace/local/settings": {
      "get": {
        "tags": [
          "marketplace"
        ],
        "summary": "Read Local Marketplace Settings",
        "description": "How this deployment takes its members' shares (``config.manage``).",
        "operationId": "read_local_marketplace_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceLocalSettings"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "marketplace"
        ],
        "summary": "Update Local Marketplace Settings",
        "description": "Let members publish straight to the shelf, or have each share wait for\nreview. Changing it moves nothing already waiting.",
        "operationId": "update_local_marketplace_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketplaceLocalSettings"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceLocalSettings"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/marketplace/local/pending": {
      "get": {
        "tags": [
          "marketplace"
        ],
        "summary": "List Pending Shares",
        "description": "Every shared version waiting for review, oldest first, with what it\nwould publish \u2014 the envelope and its example, as the shelf would carry\nthem.",
        "operationId": "list_pending_shares",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MarketplacePendingVersionRead"
                  },
                  "title": "Response List Pending Shares"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/marketplace/local/{uid}/versions/{version}/approve": {
      "post": {
        "tags": [
          "marketplace"
        ],
        "summary": "Approve Shared Version",
        "description": "Put a shared version on the shelf. It becomes the listing's latest.",
        "operationId": "approve_shared_version",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "uid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Uid"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Version"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/marketplace/local/{uid}/versions/{version}/refuse": {
      "post": {
        "tags": [
          "marketplace"
        ],
        "summary": "Refuse Shared Version",
        "description": "Refuse a shared version. It is deleted, and so is a listing left with no\nversion \u2014 it was never offered, so nothing depends on it.",
        "operationId": "refuse_shared_version",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "uid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Uid"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Version"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/marketplace/local/upload": {
      "post": {
        "tags": [
          "marketplace"
        ],
        "summary": "Upload Listing File",
        "description": "Publish a listing file (``config.manage``).\n\nThe manifest a catalog directory or a registry carries, published as a\n``local`` listing, on the shelf straight away. A file the catalogue will\nnot take answers 422 with the validator's reason beside the code, so the\nperson who uploaded it can see what to fix.",
        "operationId": "upload_listing_file",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListingUploadRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListingUploadResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/marketplace/local/mine": {
      "get": {
        "tags": [
          "marketplace"
        ],
        "summary": "List My Shares",
        "description": "The listings the signed-in member shared, with any version still\nwaiting for review.",
        "operationId": "list_my_shares",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MarketplaceSharedListingRead"
                  },
                  "title": "Response List My Shares"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/marketplace/local/{uid}": {
      "delete": {
        "tags": [
          "marketplace"
        ],
        "summary": "Withdraw My Share",
        "description": "Take down a listing the signed-in member shared. Communities that\ninstalled a copy keep it.",
        "operationId": "withdraw_my_share",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "uid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Uid"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/marketplace/local/media": {
      "post": {
        "tags": [
          "marketplace"
        ],
        "summary": "Upload Listing Picture",
        "description": "Upload a picture for a listing file (``config.manage``).\n\nReturns the path the marketplace serves it from, for the manifest to name \u2014\nas the listing's artwork, or as a picture in its content (a library's, an\nimage in a document). A listing's pictures are only ever uploaded like\nthis; none is taken from a community.",
        "operationId": "upload_listing_picture",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_upload_listing_picture"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListingMediaRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/push/register": {
      "post": {
        "tags": [
          "push"
        ],
        "summary": "Register Push Token",
        "description": "Register a push notification token for the current user.\n\nThis endpoint registers a new push token or updates an existing one.\nThe token will be used to send push notifications to the user's device.\n\nWhich installation the token belongs to is read off the session that made\nthe call, not the body: the device's message key store names the same\nsign-in, and matching the two is what lets a message wake the phone that can\nactually read it. A device is sent to while that sign-in stands, and the app\nregisters again each time it starts.\nOnly a sign-in registers one: a device receives the account's notifications\nfrom every community, which is more than any key or app is lent.\n\nA deployment that has switched push notifications off declines (403) and\nstores nothing: there is nothing for the token to be used for, and holding\nit would be keeping an address this deployment has said it does not send to.\n\nA sign-in holds one registration: a new token replaces the one it held\nbefore (the device's token rotated, or it moved between Firebase and the\npush relay). That, and the limit per account, keep one account from\npiling up tokens the push relay will answer as dead: enough dead answers\nand the relay suspends this whole server.",
        "operationId": "register_push_token",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PushTokenRegisterRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PushTokenResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/push/unregister": {
      "delete": {
        "tags": [
          "push"
        ],
        "summary": "Unregister Push Token",
        "description": "Unregister a push notification token.\n\nThis endpoint removes a push token from the database. The device will\nno longer receive push notifications.",
        "operationId": "unregister_push_token",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PushTokenUnregisterRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PushTokenResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/announcements": {
      "get": {
        "tags": [
          "announcements"
        ],
        "summary": "List Announcements",
        "description": "Live announcements for this reader, newest first.\n\nA bell line opening a notice again asks for the dismissed ones too; an\nexpired notice is gone from both, which is what an end date is for.",
        "operationId": "list_announcements",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "include_dismissed",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Include Dismissed"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnnouncementListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/announcements/{key}/seen": {
      "post": {
        "tags": [
          "announcements"
        ],
        "summary": "Mark Seen",
        "description": "Note that this announcement has been put in front of the reader.",
        "operationId": "mark_seen",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 3,
              "maxLength": 120,
              "pattern": "^(db:[0-9]+|builtin:[A-Za-z0-9_.\\-]+)$",
              "description": "Announcement key \u2014 'db:<id>' or 'builtin:<slug>'.",
              "title": "Key"
            },
            "description": "Announcement key \u2014 'db:<id>' or 'builtin:<slug>'."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/announcements/{key}/dismiss": {
      "post": {
        "tags": [
          "announcements"
        ],
        "summary": "Dismiss",
        "description": "The reader is done with this one; stop queueing it.",
        "operationId": "dismiss",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 3,
              "maxLength": 120,
              "pattern": "^(db:[0-9]+|builtin:[A-Za-z0-9_.\\-]+)$",
              "description": "Announcement key \u2014 'db:<id>' or 'builtin:<slug>'.",
              "title": "Key"
            },
            "description": "Announcement key \u2014 'db:<id>' or 'builtin:<slug>'."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/announcements/operator": {
      "get": {
        "tags": [
          "announcements"
        ],
        "summary": "List All Announcements",
        "description": "Every announcement, drafts and compiled-in notices included.",
        "operationId": "list_all_announcements",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnnouncementOperatorListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "announcements"
        ],
        "summary": "Create Announcement",
        "operationId": "create_announcement",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AnnouncementWrite"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnnouncementOperatorRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/announcements/operator/{announcement_id}": {
      "patch": {
        "tags": [
          "announcements"
        ],
        "summary": "Update Announcement",
        "operationId": "update_announcement",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "announcement_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Announcement Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AnnouncementUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnnouncementOperatorRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "announcements"
        ],
        "summary": "Delete Announcement",
        "operationId": "delete_announcement",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "announcement_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Announcement Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/announcements/operator/images": {
      "post": {
        "tags": [
          "announcements"
        ],
        "summary": "Upload Announcement Image",
        "description": "Store one picture and return the URL a section should point at.",
        "operationId": "upload_announcement_image",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_upload_announcement_image"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnnouncementImageRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/access-grants/": {
      "post": {
        "tags": [
          "access-grants"
        ],
        "summary": "Create Access Request",
        "description": "Request time-bound access to a guild (requires ``access.request``;\nanything but a ``moderate`` grant also takes ``access.request_any``).\n\nA body may ask for content, settings, or both; each becomes its own pending\ngrant so an approver decides about them separately and the log keeps them\napart. The content one is returned, being the one a caller routes in under.\n\nWhere the operations community takes cases a grant may serve, the request\nnames the case it is for (``case_task_id``): one the requester can read,\nstill open, and about this community or none yet. The case is told.",
        "operationId": "create_access_request",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AccessGrantCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccessGrantRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "access-grants"
        ],
        "summary": "List Access Grants",
        "description": "List your own access grants.\n\nNewest first, a page at a time; ``live=true`` narrows to grants that are\nstill within their window. The full queue is ``GET /access-grants/queue``.",
        "operationId": "list_access_grants",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "live",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Keep only grants that haven't expired yet.",
              "default": false,
              "title": "Live"
            },
            "description": "Keep only grants that haven't expired yet."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccessGrantListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/access-grants/break-glass": {
      "get": {
        "tags": [
          "access-grants"
        ],
        "summary": "Break Glass Requirements",
        "description": "What a break-glass request will be asked for.\n\nThe form reads this to know whether to offer a code field, whether the\ncaller has a factor to answer with, and the longest window it may ask for.",
        "operationId": "break_glass_requirements",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BreakGlassRequirements"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "access-grants"
        ],
        "summary": "Break Glass Access",
        "description": "Self-issue a time-bound break-glass grant to a guild (requires\n``data.bypass``).\n\nRepurposes the old standing all-guild bypass: instead of ambient god-mode,\nthe holder records scoped, expiring, self-approved PAM grants in one step.\nThe grants are the audit trail; the holder then routes into the guild via\nthe normal PAM path until they expire.\n\n**Two grants, not one.** Write access to the community's content, and its\nsettings at ``superadmin``. They are separate rows with separate purposes,\nso the log says which authority was exercised \u2014 and so that asking for one\nof them, rather than both, is what the ordinary request flow is for. The\ncontent grant is returned, being the one the caller routes in under; both\nare in the list.",
        "operationId": "break_glass_access",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BreakGlassCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccessGrantRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/access-grants/break-glass/passkey": {
      "post": {
        "tags": [
          "access-grants"
        ],
        "summary": "Begin Break Glass Passkey",
        "description": "Options for answering a break-glass request with one of this account's\npasskeys.\n\nThe challenge is bound to the account and to this purpose, and the request\nthat carries the assertion spends it. Presenting a key here adds nothing to\nthe session it was made on: what it answers for is the grant.",
        "operationId": "begin_break_glass_passkey",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PasskeyAuthenticationOptions"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/access-grants/queue": {
      "get": {
        "tags": [
          "access-grants"
        ],
        "summary": "List Access Grant Queue",
        "description": "Every grant on the platform, for approvers (``access.approve``).\n\nNewest-first and paged like the caller's own list; ``live=true`` keeps only\ngrants still within their window.",
        "operationId": "list_access_grant_queue",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "live",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Keep only grants that haven't expired yet.",
              "default": false,
              "title": "Live"
            },
            "description": "Keep only grants that haven't expired yet."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccessGrantListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/access-grants/limits": {
      "get": {
        "tags": [
          "access-grants"
        ],
        "summary": "Read Access Grant Limits",
        "description": "The longest grant the caller may ask for, as this deployment sets it.",
        "operationId": "read_access_grant_limits",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccessGrantLimits"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/access-grants/cases": {
      "get": {
        "tags": [
          "access-grants"
        ],
        "summary": "List Grant Cases",
        "description": "The open operations cases the reader can read that a grant may serve,\nthose assigned to them first \u2014 what the request and break-glass forms\noffer. Read as the reader, so it lists only cases they can open. At most\nfifty; ``search`` finds the rest.",
        "operationId": "list_grant_cases",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 200
                },
                {
                  "type": "null"
                }
              ],
              "description": "A title holding this, or the case with this number.",
              "title": "Search"
            },
            "description": "A title holding this, or the case with this number."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GrantCaseList"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/access-grants/{grant_id}/approve": {
      "post": {
        "tags": [
          "access-grants"
        ],
        "summary": "Approve Access Grant",
        "operationId": "approve_access_grant",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "grant_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Grant Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AccessGrantApprove"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccessGrantRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/access-grants/{grant_id}/deny": {
      "post": {
        "tags": [
          "access-grants"
        ],
        "summary": "Deny Access Grant",
        "operationId": "deny_access_grant",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "grant_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Grant Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccessGrantRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/access-grants/{grant_id}/revoke": {
      "post": {
        "tags": [
          "access-grants"
        ],
        "summary": "Revoke Access Grant",
        "operationId": "revoke_access_grant",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "grant_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Grant Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccessGrantRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/access-grants/{grant_id}": {
      "delete": {
        "tags": [
          "access-grants"
        ],
        "summary": "Cancel Access Request",
        "description": "Withdraw your own still-pending request.",
        "operationId": "cancel_access_request",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "grant_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Grant Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/auth": {
      "get": {
        "tags": [
          "settings"
        ],
        "summary": "Get Oidc Settings",
        "description": "The install's redirect addresses. System engine: ``auth_providers``\ncarries no request-path grant; the capability gate stays\n``config.manage``.",
        "operationId": "get_oidc_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OIDCSettingsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/auth/platform": {
      "get": {
        "tags": [
          "settings"
        ],
        "summary": "Get Platform Auth Settings",
        "description": "Which ways in are permitted. System engine: the guard counts read\n``auth_providers`` and ``federated_identities``, neither of which carries a\nrequest-path grant.",
        "operationId": "get_platform_auth_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlatformAuthSettingsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "settings"
        ],
        "summary": "Update Platform Auth Settings",
        "description": "Change how somebody reaches this deployment: the ways in it permits,\nwho it asks for a second factor, and how long a session lasts.\n\nLoosening a rule is never refused. Tightening one is refused when the\ndeployment permits nothing that could answer it (409), and when the\naccount writing it does not meet it itself (400, naming the unmet\nmethod). Withdrawing a way in that is somebody's only one is refused (409)\nwith the count in ``X-Affected-Count``, and proceeds only when the caller\nechoes that exact number back in ``acknowledge_stranded``.\n\nNobody is signed out. A session already open keeps the terms it was\nopened under.",
        "operationId": "update_platform_auth_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlatformAuthSettingsUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlatformAuthSettingsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/notifications": {
      "get": {
        "tags": [
          "settings"
        ],
        "summary": "Get Notification Settings",
        "description": "What this deployment permits a notification to leave the app carrying.",
        "operationId": "get_notification_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationSettingsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "settings"
        ],
        "summary": "Update Notification Settings",
        "description": "Decide what this deployment permits a notification to leave the app with.\n\nEvery community is held to this as a ceiling: one may decline a channel the\ndeployment permits, and none may take back one the deployment has declined.\n\nSwitching push off drops the push tokens this deployment was holding, and\nthe registration endpoint declines while it stays off \u2014 so the deployment\nstops sending and stops keeping the addresses it was sending to. Devices\nregister again the next time the app starts, which is what restores\ndelivery when it is switched back on.\n\nSwitching email off stops notification email and nothing else: a sign-in\ncode, an address to confirm, a password reset and the notices an account\ngets about itself keep going, because this must not lock anybody out of\ntheir account.",
        "operationId": "update_notification_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NotificationSettingsUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationSettingsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/interface": {
      "put": {
        "tags": [
          "settings"
        ],
        "summary": "Update Interface Settings",
        "description": "The accent colours, and whether arriving visitors are asked about\ncookies. ``cookie_consent_enabled`` is left alone when omitted, so saving a\ncolour does not silently answer it.",
        "operationId": "update_interface_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InterfaceSettingsUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterfaceSettingsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/community": {
      "get": {
        "tags": [
          "settings"
        ],
        "summary": "Read Community Settings",
        "description": "The community-wide decisions, for the owner's settings page.\n\nThree of them are also on ``GET /config``, which is where every signed-in\npage reads them. ``default_dm_policy`` is not: nothing in the SPA acts on it\n\u2014 the server applies it when an account is made \u2014 so it is served here,\nbehind the capability that writes it, rather than added to everyone's boot\npayload.",
        "operationId": "read_community_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunitySettingsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "settings"
        ],
        "summary": "Update Community Settings",
        "description": "Turn the community directory on or off for the whole deployment.\n\nWrite-only on purpose: the current value is public \u2014 every signed-in page\nneeds it to decide whether to offer the directory \u2014 so it is served from\n``GET /config`` with the rest of the SPA's boot configuration rather than\nfrom a second, capability-gated read of the same boolean.\n\nSwitching it off hides the directory and refuses new listings; it does not\nclear the opt-in a guild already made, so switching it back on restores the\nsame set of listed guilds.\n\n``default_dm_policy`` is the third decision here and behaves like the\nsecond: omitted, it is left alone. It is the policy a newly created account\nstarts on, and changing it moves no existing account.\n\n``age_gate_enabled`` is the second switch: whether an account must confirm\nit belongs to somebody 16 or older before it takes a place in a listed\nguild. That join is all it gates; an invited guild asks nobody's age. Turning it off is the owner asserting that every account on this\ndeployment already belongs to an adult, which is why it is a deliberate\nwrite and not a side effect of the first \u2014 omitting it leaves it alone.\n\n``direct_messages_enabled`` is the fourth, and independent of the other\nthree: a deployment can run a directory without messaging, or messaging\nwithout a directory. Off, My Messages is not offered and every\ndirect-message route refuses; nothing is deleted, so turning it back on\nrestores the channels people already had.\n\n``deleted_community_retention_days`` is the fifth: how long a deleted\ncommunity is kept before it is destroyed. ``null`` means never, which is\nthe answer for a deployment that has undertaken to keep what its members\nput in it, so this field reads its presence rather than its value \u2014 omit it\nto leave the window alone. The figure is the deployment's; a community has\nno say in its own.\n\n``on_hold_community_deletion_days`` reads the same way: how long a\ncommunity stays on hold before it is deleted, and ``null`` for never.\n\n``engagement_ranking_enabled`` says whether search may order any\ncommunity's content by how many members engaged with it lately. Each\ncommunity is asked too, and off wins. Omitted, it is left alone.\n\n``guests_enabled`` lets communities have guests, and ``max_guest_days`` is\nthe longest one may stay. Off, no guest reaches anything until it is back\non. Omitted, each is left alone.",
        "operationId": "update_community_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunitySettingsUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunitySettingsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/email": {
      "get": {
        "tags": [
          "settings"
        ],
        "summary": "Get Email Settings",
        "operationId": "get_email_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSettingsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "settings"
        ],
        "summary": "Update Email Settings",
        "operationId": "update_email_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailSettingsUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSettingsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/email/test": {
      "post": {
        "tags": [
          "settings"
        ],
        "summary": "Send Test Email",
        "operationId": "send_test_email",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailTestRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailTestResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/storage": {
      "get": {
        "tags": [
          "settings"
        ],
        "summary": "Get Storage Settings",
        "operationId": "get_storage_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageSettingsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "settings"
        ],
        "summary": "Update Storage Settings",
        "operationId": "update_storage_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StorageSettingsUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageSettingsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/storage/test": {
      "post": {
        "tags": [
          "settings"
        ],
        "summary": "Test Storage Connection",
        "operationId": "test_storage_connection",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StorageSettingsUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageTestResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/storage/backfill": {
      "post": {
        "tags": [
          "settings"
        ],
        "summary": "Start Storage Backfill",
        "operationId": "start_storage_backfill",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageBackfillStatusResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "settings"
        ],
        "summary": "Get Storage Backfill Status",
        "operationId": "get_storage_backfill_status",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageBackfillStatusResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/captcha": {
      "get": {
        "tags": [
          "settings"
        ],
        "summary": "Get Captcha Settings",
        "operationId": "get_captcha_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CaptchaSettingsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "settings"
        ],
        "summary": "Update Captcha Settings",
        "operationId": "update_captcha_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CaptchaSettingsUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CaptchaSettingsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/push": {
      "get": {
        "tags": [
          "settings"
        ],
        "summary": "Get Push Settings",
        "operationId": "get_push_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PushSettingsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "settings"
        ],
        "summary": "Update Push Settings",
        "operationId": "update_push_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PushSettingsUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PushSettingsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/fcm-config": {
      "get": {
        "tags": [
          "settings"
        ],
        "summary": "Get Fcm Config",
        "description": "Get public FCM configuration for mobile app initialization.\n\nThis endpoint is public (no authentication required) and only exposes\npublic fields needed by the mobile app to initialize Firebase.\nService account credentials are NOT exposed.\n\nIt has no rate limit of its own: the server-wide default applies.\n\nWith no service account configured, pushes go through BeyondersStudio's push\nrelay, and the Firebase settings served are the relay's (fetched with this\nserver's relay key and cached); if the relay cannot say, no Firebase\nsettings are served.\n\nThe relay id is served to a phone whose pushes go through the relay, which\nnames its ``platform``: an iPhone always, an Android phone when there is no\nservice account. Asking for it registers this server with the relay first\nif it has not yet; a failed registration is retried no more than once\nevery few minutes (``push_relay.REGISTRATION_RETRY_SECONDS``), however\noften this is asked. Anyone else is not served it, and asking registers\nnothing: a server with its own Firebase and only Android phones never\ncontacts the relay at all.\n\nRead from the settings row (``push_config``), not the environment: an owner\nwho turns push on in Settings has the mobile clients pick it up on their\nnext launch rather than on the next redeploy. The resolver opens its own\nsystem-engine session, which is what lets this endpoint stay\nunauthenticated and sessionless.",
        "operationId": "get_fcm_config",
        "parameters": [
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "ios",
                    "android"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The phone asking. Its relay id is served only to a phone whose pushes go through the relay.",
              "title": "Platform"
            },
            "description": "The phone asking. Its relay id is served only to a phone whose pushes go through the relay."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FCMConfigResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/communities": {
      "get": {
        "tags": [
          "settings"
        ],
        "summary": "List Platform Community Storage",
        "description": "One page of the deployment's guilds with their storage caps, for the\nOperator dashboard Guilds tab.\n\nSupport and above (``communities.read``). Reads only shared ``public``\ntables. The guilds and their administration rows are read on the caller's\nplatform tier, under the ``communities.read`` policies on both; the caps\njoin in a single pass. Each row says what the reader may do to it. Member counts and seats are totals read on the system engine\n(``_member_tallies``), one grouped query each for the page.",
        "operationId": "list_platform_community_storage",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Matches the name.",
              "title": "Search"
            },
            "description": "Matches the name."
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "id",
                "name"
              ],
              "type": "string",
              "default": "name",
              "title": "Sort By"
            }
          },
          {
            "name": "sort_dir",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "asc",
                "desc"
              ],
              "type": "string",
              "default": "asc",
              "title": "Sort Dir"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlatformCommunityStorageListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/communities/{community_id}": {
      "patch": {
        "tags": [
          "settings"
        ],
        "summary": "Update Platform Community Storage",
        "description": "Set a guild's storage/member caps and/or lifecycle status. Operator/owner.\n\nWrites only shared ``public`` columns \u2014 the caps and the sign-in entitlement\non ``guild_administration``, the lifecycle ``status`` on ``guilds`` \u2014 so no\nguild-schema routing is needed. Both are system-engine writes: no\nrequest-path role holds INSERT/UPDATE on ``guild_administration`` at all.\n``model_fields_set`` tells an omitted cap (leave untouched) from one sent as\n``null`` (reset to unlimited). ``status`` (active / read_only / suspended) is\na moderation action: it downgrades or cuts off member access on the request\npath (see ``_load_guild_context``) but never touches stored data, and PAM /\nbreak-glass grants override it so operators can't lock themselves out.\nLowering a cap below current usage just blocks further uploads / new joins.\n\nWhere billing sets plans (``billing_service.billing_managed``), the caps and\nentitlements are refused and the status may only move to one of the row's\n``status_choices``; the triggers of migration 0364 hold the database to the\nsame rule.",
        "operationId": "update_platform_community_storage",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlatformCommunityStorageUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlatformCommunityStorageRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/communities/{community_id}/suspension": {
      "post": {
        "tags": [
          "settings"
        ],
        "summary": "Set Platform Community Suspension",
        "description": "Suspend a community, or lift its suspension (``communities.suspend``).\n\nOnly under a live ``moderate`` grant on that community, held by whoever\nasks: a moderator suspends a community they are looking at. A suspension\nstarts from active, read-only, on hold or deleted \u2014 taking a deleted one\nout of its purge countdown \u2014 and lifting it returns the community where it\nwas. One suspended out of deletion goes back to deleted with its countdown\nstarted again, so its owners have the whole window to notice.",
        "operationId": "set_platform_community_suspension",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunitySuspensionUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlatformCommunityStorageRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/communities/{community_id}/plugins": {
      "get": {
        "tags": [
          "settings"
        ],
        "summary": "List Community Plugin States",
        "description": "The community's plug-ins with each one's state, and what the reader\nmay do to each. Operators and up (``communities.manage``), or a moderator\nunder a live ``moderate`` grant on the community.",
        "operationId": "list_community_plugin_states",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CommunityPluginStateRead"
                  },
                  "title": "Response List Community Plugin States"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/communities/{community_id}/plugins/{install_id}/suspension": {
      "post": {
        "tags": [
          "settings"
        ],
        "summary": "Set Community Plugin Suspension",
        "description": "Suspend one of the community's plug-ins there, or lift its suspension\n(``communities.suspend`` under a live ``moderate`` grant on it, or\n``communities.manage``). Its status is left as it is; lifting returns it\nthere. Nothing goes in or out of a suspended plug-in, and the community\nsees nothing of it.",
        "operationId": "set_community_plugin_suspension",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "install_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Install Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunitySuspensionUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityPluginStateRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/communities/{community_id}/plugins/{install_id}/status": {
      "put": {
        "tags": [
          "settings"
        ],
        "summary": "Set Community Plugin Status",
        "description": "Set one of the community's plug-ins' status (``communities.manage``).\nRefused (409) where billing sets the community's plan: the status is\nbilling's there. A deleted install may be set back to any other status\nuntil it is uninstalled.",
        "operationId": "set_community_plugin_status",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "install_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Install Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityPluginStatusUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityPluginStateRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/communities/{community_id}/narrowings": {
      "get": {
        "tags": [
          "settings"
        ],
        "summary": "Read Community Narrowings",
        "description": "What this community says its own arrivals look like, and whether\nanybody has agreed.\n\nOperator/owner (``communities.manage``). The community writes these values itself\nand nothing here can tell whether it holds the domain or tenant they name,\nso the answer is the deployment's. Support answers through the case raised\nwhen they are written; this is the same question where a deployment runs\nno intake, and the place to withdraw an answer either way.",
        "operationId": "read_community_narrowings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CommunityNarrowingPending"
                  },
                  "title": "Response Read Community Narrowings"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/communities/{community_id}/narrowings/{connection_id}": {
      "put": {
        "tags": [
          "settings"
        ],
        "summary": "Agree Community Narrowing",
        "description": "Agree that these values are this community's, or withdraw that.\n\nAgreeing lets arrivals it counts as its own join on sight where the\ncommunity asked for that. Withdrawing leaves the connection and its values\nas they are; what stops is joining people on arrival.",
        "operationId": "agree_community_narrowing",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Connection Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityNarrowingAgreement"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityNarrowingPending"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/communities/{community_id}/plugin-summaries": {
      "get": {
        "tags": [
          "settings"
        ],
        "summary": "List Community Plugin Summaries",
        "description": "The community's installs that say where it stands with them, as its\nUsage tab lists them.\n\nOperator/owner (``communities.manage``), for the community's sheet: the\ncaps set there sit beside what the community uses of them.",
        "operationId": "list_community_plugin_summaries",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginSummaryListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/communities/{community_id}/plugin-summaries/{plugin_id}": {
      "get": {
        "tags": [
          "settings"
        ],
        "summary": "Read Community Plugin Summary",
        "description": "Where the community stands with one installed plug-in, as its Usage tab\nreads it. The operator is not one of the community's people, so a summary\nthat needs a member's own connection answers that it needs one.",
        "operationId": "read_community_plugin_summary",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginDataResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/communities/{community_id}/restore": {
      "post": {
        "tags": [
          "settings"
        ],
        "summary": "Restore Platform Community",
        "description": "Bring a deleted guild back before its retention window runs out.\n\nOperator/owner (``communities.manage``). Deleting a guild keeps it \u2014 the shared\nrows, the ``guild_<id>`` schema and the stored blobs all stay until\n``guild_purge`` destroys them \u2014 so restoring is a status write plus, where\nthe roster was emptied, seating somebody who can run the community again.\n\nThe operator names the status it returns at, and must name a seat when the\nguild holds none. Both are re-checked in the service rather than trusted\nfrom the payload. Where billing sets plans, the status is the one billing\nlast wrote or ``suspended`` (``restore_status_choices``); the trigger of\nmigration 0364 holds the database to the same rule. What does *not* come back is the guild's plug-in\nconnections: those were revoked when it was deleted, and the community's\nsuperadmin reconnects them.\n\nWrites only shared ``public`` columns (``guilds.status`` and, for the seat,\n``guild_memberships``), so no guild-schema routing is needed.",
        "operationId": "restore_platform_community",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlatformCommunityRestore"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlatformCommunityStorageRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/communities/{community_id}/billing/service-handoff": {
      "post": {
        "tags": [
          "settings"
        ],
        "summary": "Create Platform Community Billing Service Handoff",
        "description": "Mint the operator handoff into the billing portal for one guild.\n\nBacks the Guilds tab's billing buttons. The support console is\n``billing.support`` (support and above); the operator console, which\nchanges a plan, is ``communities.manage``.\nThe token names the ``access_grants`` row that authorises the visit: a\nlive billing grant is reused, otherwise one is self-issued \u2014 after the\naccount's second factor, as breaking glass takes it \u2014 so the visit is\nrecorded on both sides. A billing grant reaches the billing account and\nnothing in the guild; what it may do there is the billing service's to\ndecide.",
        "operationId": "create_platform_community_billing_service_handoff",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "console",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "support",
                "operator"
              ],
              "type": "string",
              "default": "support",
              "title": "Console"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/SecondFactorAnswer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Answer"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingPortalHandoffResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/billing/insights-handoff": {
      "post": {
        "tags": [
          "settings"
        ],
        "summary": "Create Billing Insights Handoff",
        "description": "Mint the handoff into the billing service's insights page.\n\nBacks the operator dashboard's Billing tab (``billing.insights``). Unlike\nthe console handoffs above it names no community and needs no access\ngrant: the page shows Paddle's account-wide figures and counts that name\nno community, and billing reads them as a role that can see nothing else.\nThe person is named by billing's pairwise reference, which is what billing\nrecords the visit under.",
        "operationId": "create_billing_insights_handoff",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingPortalHandoffResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/billing/contracts-handoff": {
      "post": {
        "tags": [
          "settings"
        ],
        "summary": "Create Billing Contracts Handoff",
        "description": "Mint the handoff into the billing service's contracts console.\n\nBacks the operator dashboard's Billing tab (``billing.contracts``). Like\nthe insights handoff it names no community and needs no access grant: a\ncontract is a payer's, and some cover no community here. The person is\nnamed by billing's pairwise reference, which is what billing attributes\nevery change in the console to.",
        "operationId": "create_billing_contracts_handoff",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingPortalHandoffResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/billing/directory-handoff": {
      "post": {
        "tags": [
          "settings"
        ],
        "summary": "Create Billing Directory Handoff",
        "description": "Mint the handoff into the billing service's owner directory.\n\nBacks the operator dashboard's Billing tab (``billing.directory``, owners\nonly). Like the insights handoff it names no community and needs no access\ngrant: the page lists every account, read-only. The person is named by\nbilling's pairwise reference, which is what billing records each read\nunder.",
        "operationId": "create_billing_directory_handoff",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingPortalHandoffResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/billing/control-handoff": {
      "post": {
        "tags": [
          "settings"
        ],
        "summary": "Create Billing Control Handoff",
        "description": "Mint the handoff into the billing service's Control.\n\nBacks the operator dashboard's Billing tab (``billing.control``, owners\nonly), where the deployment's plans are defined. It names no community\nand needs no access grant: a plan is every community's. The person is\nnamed by billing's pairwise reference, which is what billing attributes\neach change to.",
        "operationId": "create_billing_control_handoff",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingPortalHandoffResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/intake": {
      "get": {
        "tags": [
          "intake"
        ],
        "summary": "Read Intake Settings",
        "description": "Where each stream lands, and when it last opened a case.\n\nEvery stream is listed whether bound or not, so the page shows the full set\nrather than only what somebody already configured.",
        "operationId": "read_intake_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntakeSettingsRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/intake/options": {
      "get": {
        "tags": [
          "intake"
        ],
        "summary": "Read Intake Options",
        "description": "What the settings page can bind a stream to.\n\nThe operations guild's initiatives, their projects and each project's\nstatuses \u2014 names and ids, enough to fill the pickers. Empty before a guild\nhas been named.",
        "operationId": "read_intake_options",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntakeOptionsRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/intake/community": {
      "put": {
        "tags": [
          "intake"
        ],
        "summary": "Update Operations Community",
        "description": "Name the guild that receives this deployment's operations work.\n\nClearing it stops every stream at once and touches no binding inside the\nguild, so pointing back restores exactly what was there.",
        "operationId": "update_operations_community",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OperationsCommunityUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntakeSettingsRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/intake/contact": {
      "put": {
        "tags": [
          "intake"
        ],
        "summary": "Update General Contact",
        "description": "Set the deployment's catch-all contact address, or clear it.\n\nNamed wherever somebody is told who to contact and the stream in question\nhas no address of its own.",
        "operationId": "update_general_contact",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IntakeContactUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntakeSettingsRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/intake/feedback-enabled": {
      "put": {
        "tags": [
          "intake"
        ],
        "summary": "Update Feedback Switch",
        "description": "Let people here send feedback to the Initiative team, or stop. Off,\nnothing offers it and nothing is sent.",
        "operationId": "update_feedback_switch",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FeedbackSwitchUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntakeSettingsRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/intake/{stream}/contact": {
      "put": {
        "tags": [
          "intake"
        ],
        "summary": "Update Stream Contact",
        "description": "Set one stream's contact address, or clear it back to the general one.",
        "operationId": "update_stream_contact",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "stream",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Stream"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IntakeContactUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntakeSettingsRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/intake/{stream}": {
      "put": {
        "tags": [
          "intake"
        ],
        "summary": "Upsert Binding",
        "description": "Route one stream into a project of the operations guild.",
        "operationId": "upsert_binding",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "stream",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Stream"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IntakeBindingUpsert"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntakeBindingRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "intake"
        ],
        "summary": "Delete Binding",
        "description": "Stop routing a stream. The project and every case in it stay.",
        "operationId": "delete_binding",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "stream",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Stream"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/intake/{stream}/blueprint": {
      "post": {
        "tags": [
          "intake"
        ],
        "summary": "Import Blueprint",
        "description": "Set a stream up from its blueprint, and bind it to what that produced.\n\nAn ordinary project import. The result is a project the team can rename and\nrestructure; the binding only names it.",
        "operationId": "import_blueprint",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "stream",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Stream"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IntakeBlueprintImport"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntakeBindingRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/plugin-services/": {
      "get": {
        "tags": [
          "plugin-services"
        ],
        "summary": "List Plugin Services",
        "description": "One page of the plug-in services this deployment has wired up\n(``plugins.manage``), by id.",
        "operationId": "list_plugin_services",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Matches the plug-in's id or its publisher's name.",
              "title": "Search"
            },
            "description": "Matches the plug-in's id or its publisher's name."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginServiceRegistrationListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "plugin-services"
        ],
        "summary": "Create Plugin Service",
        "description": "Set up a plug-in service's deployment facts before its listing arrives:\nits id, its addresses and its keys. Its publisher is the one its id's\nprefix names, added unverified when there is none.",
        "operationId": "create_plugin_service",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PluginServiceRegistrationCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginServiceRegistrationRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/plugin-services/{registration_id}": {
      "get": {
        "tags": [
          "plugin-services"
        ],
        "summary": "Read Plugin Service",
        "description": "One plug-in service (``plugins.manage``).",
        "operationId": "read_plugin_service",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "registration_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Registration Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginServiceRegistrationRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "plugin-services"
        ],
        "summary": "Update Plugin Service",
        "description": "Suspend everywhere or lift, repoint either address, replace the keys,\nmake it mandatory or not, set the vendor values, or replace a beta\nplug-in's communities. A list of communities for a plug-in that is not\nbeta is refused (409); one naming a community that does not exist is\nrefused (400).\n\nVendor values the listing's vendor check reads are checked with the\nvendor before anything is written (:mod:`~app.services.marketplace.vendor_check`):\na refusal is a 400 naming the fields, and a check the vendor could not\nanswer saves the values and says so in ``vendor_check``.",
        "operationId": "update_plugin_service",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "registration_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Registration Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PluginServiceRegistrationUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginServiceRegistrationRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "plugin-services"
        ],
        "summary": "Delete Plugin Service",
        "description": "Remove the registration. Every channel it backed stops with the row.",
        "operationId": "delete_plugin_service",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "registration_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Registration Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/plugin-services/{registration_id}/connect": {
      "get": {
        "tags": [
          "plugin-services"
        ],
        "summary": "Read Plugin Service Keys",
        "description": "The keys the plug-in serves at ``{base_url}/.well-known/jwks.json``, each\nwith its fingerprint, for the operator to confirm. Stores nothing.",
        "operationId": "read_plugin_service_keys",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "registration_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Registration Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PluginServicePublishedKey"
                  },
                  "title": "Response Read Plugin Service Keys"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "plugin-services"
        ],
        "summary": "Connect Plugin Service",
        "description": "Store the key set the plug-in serves as the registration's pasted set, in\nplace of any key set address, when its keys are the ones confirmed and\nits base URL has not moved (409 otherwise).",
        "operationId": "connect_plugin_service",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "registration_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Registration Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PluginServiceConnect"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginServiceRegistrationRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/plugin-services/{registration_id}/vendor-setup": {
      "post": {
        "tags": [
          "plugin-services"
        ],
        "summary": "Start Plugin Service Vendor Setup",
        "description": "Start the vendor's own setup of the plug-in's client: the manifest the\noperator's browser posts to the vendor, where, and the state that brings\nthem back (409 when the listing declares no such setup).",
        "operationId": "start_plugin_service_vendor_setup",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "registration_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Registration Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PluginServiceVendorSetupStart"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginServiceVendorSetup"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/plugin-services/{registration_id}/vendor-setup/complete": {
      "post": {
        "tags": [
          "plugin-services"
        ],
        "summary": "Complete Plugin Service Vendor Setup",
        "description": "Finish the setup the vendor sent the operator back from, writing the\nnew client's values into the registration's vendor values.",
        "operationId": "complete_plugin_service_vendor_setup",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "registration_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Registration Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PluginServiceVendorSetupComplete"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginServiceRegistrationRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/plugin-services/{registration_id}/connections/{connection_id}/connect": {
      "post": {
        "tags": [
          "plugin-services"
        ],
        "summary": "Connect Plugin Service For Every Community",
        "description": "Start connecting one of the plug-in's community connections for every\ncommunity: the vendor's address to send the operator to. Nothing is\nstored until the vendor sends them back. Refused (409) for a connection\nthe platform cannot make (``for_platform``).",
        "operationId": "connect_plugin_service_for_every_community",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "registration_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Registration Id"
            }
          },
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Connection Id"
            }
          },
          {
            "name": "app",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ConnectingApp"
                },
                {
                  "type": "null"
                }
              ],
              "title": "App"
            }
          },
          {
            "name": "code_challenge",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 128
                },
                {
                  "type": "null"
                }
              ],
              "title": "Code Challenge"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginPlatformConnectStart"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/plugin-services/{registration_id}/connections/{connection_id}": {
      "delete": {
        "tags": [
          "plugin-services"
        ],
        "summary": "Disconnect Plugin Service For Every Community",
        "description": "End a connection the platform made for every community: each\ncommunity reads its own again.",
        "operationId": "disconnect_plugin_service_for_every_community",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "registration_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Registration Id"
            }
          },
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Connection Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginServiceRegistrationRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/plugin-publishers/": {
      "get": {
        "tags": [
          "plugin-services"
        ],
        "summary": "List Plugin Publishers",
        "description": "Every publisher of plug-in services on this deployment (``plugins.manage``).",
        "operationId": "list_plugin_publishers",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PluginPublisherRead"
                  },
                  "title": "Response List Plugin Publishers"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "plugin-services"
        ],
        "summary": "Create Plugin Publisher",
        "description": "Add a publisher for a prefix, such as a private plug-in's. It starts\nunverified.",
        "operationId": "create_plugin_publisher",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PluginPublisherCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginPublisherRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/plugin-publishers/{publisher_id}": {
      "patch": {
        "tags": [
          "plugin-services"
        ],
        "summary": "Update Plugin Publisher",
        "description": "Rename a publisher, or switch it on or off. Off makes every plug-in under\nits prefix not live.",
        "operationId": "update_plugin_publisher",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "publisher_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Publisher Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PluginPublisherUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginPublisherRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/plugin-platform/jwks.json": {
      "get": {
        "tags": [
          "plugin-platform"
        ],
        "summary": "Read Plugin Platform Jwks",
        "description": "The public half of the plugin-platform signing key, as a JWKS document.\n\nA deployment with no keypair configured answers **503** rather than an empty\nkey set. The two are very different statements: an empty ``keys`` array says\n\"this platform has published no keys\", which a plug-in would reasonably cache\nand then refuse every later token against. A 503 says the platform is not\nconfigured for plug-in traffic yet, which is what is actually true, and it is\nthe same answer registering and verifying a plug-in service already give.",
        "operationId": "read_plugin_platform_jwks",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Read Plugin Platform Jwks"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/plugin-platform/oauth/token": {
      "post": {
        "tags": [
          "plugin-platform"
        ],
        "summary": "Issue Plugin Access Token",
        "description": "Issue a plug-in token, an installation token for one of the plug-in's\ninstalls, or a member token for a member who consented; or, for Sign in with\nInitiative, spend a code or a refresh token for an ID token. See the module\ndocstring for the parameters.",
        "operationId": "issue_plugin_access_token",
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "properties": {
                  "grant_type": {
                    "type": "string",
                    "enum": [
                      "client_credentials",
                      "urn:ietf:params:oauth:grant-type:jwt-bearer",
                      "authorization_code",
                      "refresh_token"
                    ]
                  },
                  "client_assertion_type": {
                    "type": "string",
                    "enum": [
                      "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
                    ]
                  },
                  "client_assertion": {
                    "type": "string"
                  },
                  "client_id": {
                    "type": "string"
                  },
                  "installation": {
                    "type": "string"
                  },
                  "scope": {
                    "type": "string"
                  },
                  "resource": {
                    "type": "string"
                  },
                  "level": {
                    "type": "string",
                    "enum": [
                      "moderator",
                      "community_admin"
                    ]
                  },
                  "assertion": {
                    "type": "string"
                  },
                  "code": {
                    "type": "string"
                  },
                  "redirect_uri": {
                    "type": "string"
                  },
                  "code_verifier": {
                    "type": "string"
                  },
                  "refresh_token": {
                    "type": "string"
                  }
                },
                "type": "object",
                "required": [
                  "grant_type"
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginAccessTokenResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginOAuthErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginOAuthErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/plugin-platform/installations": {
      "get": {
        "tags": [
          "plugin-platform"
        ],
        "summary": "List Plugin Installations",
        "description": "The calling plug-in's installs, a page at a time. Takes a plug-in token.\n\nThe next page, when there is one, is named in a ``Link`` header\n(RFC 8288, ``rel=\"next\"``) carrying the ``cursor`` to ask with.",
        "operationId": "list_plugin_installations",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 200,
              "title": "Limit"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 512
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PluginInstallationRead"
                  },
                  "title": "Response List Plugin Installations"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/plugin-platform/oauth/authorize/client": {
      "get": {
        "tags": [
          "plugin-platform"
        ],
        "summary": "Read Sign In Client",
        "description": "The plug-in asking, if it may ask; see the module docstring.",
        "operationId": "read_sign_in_client",
        "parameters": [
          {
            "name": "client_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 2048
                },
                {
                  "type": "null"
                }
              ],
              "title": "Client Id"
            }
          },
          {
            "name": "redirect_uri",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 2048
                },
                {
                  "type": "null"
                }
              ],
              "title": "Redirect Uri"
            }
          },
          {
            "name": "response_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 2048
                },
                {
                  "type": "null"
                }
              ],
              "title": "Response Type"
            }
          },
          {
            "name": "scope",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 2048
                },
                {
                  "type": "null"
                }
              ],
              "title": "Scope"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 2048
                },
                {
                  "type": "null"
                }
              ],
              "title": "State"
            }
          },
          {
            "name": "nonce",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 2048
                },
                {
                  "type": "null"
                }
              ],
              "title": "Nonce"
            }
          },
          {
            "name": "code_challenge",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 2048
                },
                {
                  "type": "null"
                }
              ],
              "title": "Code Challenge"
            }
          },
          {
            "name": "code_challenge_method",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 2048
                },
                {
                  "type": "null"
                }
              ],
              "title": "Code Challenge Method"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginSignInClientRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/plugin-platform/oauth/authorize/places": {
      "get": {
        "tags": [
          "plugin-platform"
        ],
        "summary": "Read Sign In Places",
        "description": "Where the signed-in person may open the plug-in.",
        "operationId": "read_sign_in_places",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "client_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 2048
                },
                {
                  "type": "null"
                }
              ],
              "title": "Client Id"
            }
          },
          {
            "name": "redirect_uri",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 2048
                },
                {
                  "type": "null"
                }
              ],
              "title": "Redirect Uri"
            }
          },
          {
            "name": "response_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 2048
                },
                {
                  "type": "null"
                }
              ],
              "title": "Response Type"
            }
          },
          {
            "name": "scope",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 2048
                },
                {
                  "type": "null"
                }
              ],
              "title": "Scope"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 2048
                },
                {
                  "type": "null"
                }
              ],
              "title": "State"
            }
          },
          {
            "name": "nonce",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 2048
                },
                {
                  "type": "null"
                }
              ],
              "title": "Nonce"
            }
          },
          {
            "name": "code_challenge",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 2048
                },
                {
                  "type": "null"
                }
              ],
              "title": "Code Challenge"
            }
          },
          {
            "name": "code_challenge_method",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 2048
                },
                {
                  "type": "null"
                }
              ],
              "title": "Code Challenge Method"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginSignInPlacesRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/plugin-platform/oauth/authorize": {
      "post": {
        "tags": [
          "plugin-platform"
        ],
        "summary": "Authorize Sign In",
        "description": "Send the person back to the plug-in with a code for the place they\nchose, when they may open it there.",
        "operationId": "authorize_sign_in",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PluginSignInAuthorize"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginSignInRedirect"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/plugin-platform/consent-requests": {
      "post": {
        "tags": [
          "plugin-platform"
        ],
        "summary": "Request Member Consent",
        "description": "Ask a member to let this plug-in act as them, for one purpose.\n\nTakes an installation token. ``200`` returns a request already made for\nthat member and purpose, as it stands; ``201`` a new one, and the member is\ntold. A token narrowed to one initiative asks only for a purpose bound to\nit, and a purpose is bound only to an initiative the install is placed in.\n\nLimited per install (30 a minute, repeats included) and per install and\nmember (5 new requests an hour); past either the answer is 429.",
        "operationId": "request_member_consent",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PluginConsentRequestCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginConsentRequestRead"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginConsentRequestRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/api/v1/plugin-connections/finish": {
      "post": {
        "tags": [
          "plugin-platform"
        ],
        "summary": "Finish Plugin Connection",
        "description": "Finish a connection the app began, from the handback the vendor's return\nwas turned into, or say where it goes on. Only the person who started it,\nin their own session, with the verifier behind the app's challenge,\nfinishes it; any answer spends the handback.",
        "operationId": "finish_plugin_connection",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PluginConnectionFinish"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginConnectionFinished"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/plugin-connections/choices": {
      "get": {
        "tags": [
          "plugin-platform"
        ],
        "summary": "Read Plugin Connection Choices",
        "description": "The accounts a flow is waiting for its person to pick from, for the\nperson who started it.",
        "operationId": "read_plugin_connection_choices",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "choice",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 32768,
              "title": "Choice"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginConnectionFinished"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/plugin-connections/choose": {
      "post": {
        "tags": [
          "plugin-platform"
        ],
        "summary": "Choose Plugin Connection",
        "description": "Connect the account the person picked, as the flow connects a single\none, and say how it ended.",
        "operationId": "choose_plugin_connection",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PluginConnectionChoose"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginConnectionFinished"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/auth/providers/": {
      "get": {
        "tags": [
          "auth-providers"
        ],
        "summary": "List Auth Providers",
        "operationId": "list_auth_providers",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AuthProviderOwnerRead"
                  },
                  "title": "Response List Auth Providers"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "auth-providers"
        ],
        "summary": "Create Auth Provider",
        "operationId": "create_auth_provider",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AuthProviderCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthProviderOwnerRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/auth/providers/{provider_id}": {
      "patch": {
        "tags": [
          "auth-providers"
        ],
        "summary": "Update Auth Provider",
        "operationId": "update_auth_provider",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "provider_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Provider Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AuthProviderUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthProviderOwnerRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "auth-providers"
        ],
        "summary": "Delete Auth Provider",
        "description": "Delete a provider. Its linked identities (and their stored refresh\ntokens) go with it via cascade \u2014 users who signed in through it keep their\naccounts and any other sign-in methods. A provider some guild's auth\npolicy requires is refused (409): drop or repoint the policy first.",
        "operationId": "delete_auth_provider",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "provider_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Provider Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/auth/providers/discover": {
      "post": {
        "tags": [
          "auth-providers"
        ],
        "summary": "Discover Auth Provider",
        "description": "Look up an address and report what it offers, before anything is saved.\n\nReaches only as far as signing in does \u2014 https, under the shared size cap\nand timeout \u2014 so this never refuses an issuer a login would accept. What\ncomes back is parsed and named; a failure is one of the discovery codes.",
        "operationId": "discover_auth_provider",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AuthProviderDiscoverRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthProviderProbeResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/auth/providers/{provider_id}/test": {
      "post": {
        "tags": [
          "auth-providers"
        ],
        "summary": "Test Auth Provider",
        "description": "Look up a saved provider's own issuer. The address comes off the row.",
        "operationId": "test_auth_provider",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "provider_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Provider Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthProviderProbeResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/auth/providers/{provider_id}/default": {
      "get": {
        "tags": [
          "auth-providers"
        ],
        "summary": "Get Provider Default",
        "description": "The deployment's own answer for this provider, or null where it has\nmade none and every community speaks for itself.",
        "operationId": "get_provider_default",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "provider_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Provider Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/PlatformProviderDefaultRead"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "title": "Response Get Provider Default"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "auth-providers"
        ],
        "summary": "Set Provider Default",
        "description": "Answer once for the communities that have not.\n\nA community's own connection to this provider is untouched and goes on\noverriding this outright. Nobody is signed out: the gate reads the\narrangement in force when it is asked, so this reaches the next request.",
        "operationId": "set_provider_default",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "provider_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Provider Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlatformProviderDefaultUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlatformProviderDefaultRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "auth-providers"
        ],
        "summary": "Clear Provider Default",
        "description": "Withdraw the answer. Communities that wrote their own keep them; the\nrest stop counting this provider as theirs.",
        "operationId": "clear_provider_default",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "provider_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Provider Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/placement/": {
      "get": {
        "tags": [
          "provider-placement"
        ],
        "summary": "List Provider Placement",
        "description": "Every provider, its rules, and whether rules apply everywhere.",
        "operationId": "list_provider_placement",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderPlacementResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/placement/requests": {
      "get": {
        "tags": [
          "provider-placement"
        ],
        "summary": "List Placement Requests",
        "description": "Communities waiting for somebody to agree that the domain or tenant\nthey named is theirs. Answered on the community's own narrowing route.",
        "operationId": "list_placement_requests",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CommunityNarrowingPending"
                  },
                  "title": "Response List Placement Requests"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/placement/everywhere": {
      "put": {
        "tags": [
          "provider-placement"
        ],
        "summary": "Set Provider Placement Everywhere",
        "description": "Apply provider rules to every community they name, or only to the ones\nthat accepted them. Recorded on every change.",
        "operationId": "set_provider_placement_everywhere",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlacementEverywhereUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlacementEverywhereUpdate"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/placement/communities": {
      "get": {
        "tags": [
          "provider-placement"
        ],
        "summary": "List Placement Communities",
        "description": "Communities a rule for this provider may name, by name.",
        "operationId": "list_placement_communities",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "provider_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Provider Id"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ],
              "title": "Search"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PlacementCommunityRead"
                  },
                  "title": "Response List Placement Communities"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/placement/providers/{provider_id}/communities/{community_id}/initiatives": {
      "get": {
        "tags": [
          "provider-placement"
        ],
        "summary": "List Placement Targets",
        "description": "The initiatives and roles a rule for this community may place people\nin, for a community this provider's rules apply to.",
        "operationId": "list_placement_targets",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "provider_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Provider Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PlacementInitiativeRead"
                  },
                  "title": "Response List Placement Targets"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/placement/rules": {
      "post": {
        "tags": [
          "provider-placement"
        ],
        "summary": "Create Provider Placement Rule",
        "operationId": "create_provider_placement_rule",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProviderPlacementRuleCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderPlacementRuleRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/placement/rules/{rule_id}": {
      "patch": {
        "tags": [
          "provider-placement"
        ],
        "summary": "Update Provider Placement Rule",
        "operationId": "update_provider_placement_rule",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "rule_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Rule Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProviderPlacementRuleUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderPlacementRuleRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "provider-placement"
        ],
        "summary": "Delete Provider Placement Rule",
        "operationId": "delete_provider_placement_rule",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "rule_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Rule Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/auth/connections": {
      "get": {
        "tags": [
          "community-provider-connections"
        ],
        "summary": "List Community Provider Connections",
        "operationId": "list_community_provider_connections",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CommunityProviderConnectionRead"
                  },
                  "title": "Response List Community Provider Connections"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "community-provider-connections"
        ],
        "summary": "Create Community Provider Connection",
        "operationId": "create_community_provider_connection",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityProviderConnectionCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityProviderConnectionRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/auth/connections/available": {
      "get": {
        "tags": [
          "community-provider-connections"
        ],
        "summary": "List Connectable Providers",
        "description": "The providers this community may choose from: the ones on offer, plus\nthe ones it already connects to. Names only \u2014 a community picks a provider\nby name, and one registered for a single customer is nobody else's to\nsee.",
        "operationId": "list_connectable_providers",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ConnectableProviderRead"
                  },
                  "title": "Response List Connectable Providers"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/auth/connections/{connection_id}": {
      "patch": {
        "tags": [
          "community-provider-connections"
        ],
        "summary": "Update Community Provider Connection",
        "operationId": "update_community_provider_connection",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Connection Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityProviderConnectionUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityProviderConnectionRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "community-provider-connections"
        ],
        "summary": "Delete Community Provider Connection",
        "description": "Disconnect. Nobody is signed out and no account changes \u2014 what goes is\nthe button on this community's sign-in page, and its claim on who arrives\nthrough that provider. Lift any sign-in requirement that depends on this\nconnection first: the gate reads the connections, so a requirement without\none has nothing left to satisfy it.",
        "operationId": "delete_community_provider_connection",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Connection Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/auth/rules": {
      "get": {
        "tags": [
          "community-provider-connections"
        ],
        "summary": "List Community Claim Rules",
        "description": "Where this community places the people its providers vouch for.",
        "operationId": "list_community_claim_rules",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityClaimRulesResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "community-provider-connections"
        ],
        "summary": "Create Community Claim Rule",
        "description": "Place the people carrying one group. The rule reads a provider this\ncommunity already counts as its own \u2014 saying what a group means is the\nsame sentence as saying whose people arrive through it.",
        "operationId": "create_community_claim_rule",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityClaimRuleCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityClaimRuleRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/auth/rules/{rule_id}": {
      "patch": {
        "tags": [
          "community-provider-connections"
        ],
        "summary": "Update Community Claim Rule",
        "description": "Change the group a rule reads or where it places people.",
        "operationId": "update_community_claim_rule",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "rule_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Rule Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityClaimRuleUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityClaimRuleRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "community-provider-connections"
        ],
        "summary": "Delete Community Claim Rule",
        "description": "Stop placing the people carrying one group. Nobody loses a standing\nthey already hold until their next sign-in through that provider, which\nreconciles against the rules as they stand then.",
        "operationId": "delete_community_claim_rule",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "rule_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Rule Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/auth/role-rules": {
      "get": {
        "tags": [
          "community-provider-connections"
        ],
        "summary": "List Custom Role Claim Rules",
        "description": "Which custom role each group gives, in the order a sign-in reads them:\nthe first rule whose group it carries decides. Kept in the community's own\nschema, beside the roles they name.",
        "operationId": "list_custom_role_claim_rules",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CustomRoleClaimRuleRead"
                  },
                  "title": "Response List Custom Role Claim Rules"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "community-provider-connections"
        ],
        "summary": "Create Custom Role Claim Rule",
        "description": "Give a custom role to whoever signs in through one of the community's\nproviders carrying a group, after every rule already there.",
        "operationId": "create_custom_role_claim_rule",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomRoleClaimRuleCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomRoleClaimRuleRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/auth/role-rules/order": {
      "put": {
        "tags": [
          "community-provider-connections"
        ],
        "summary": "Order Custom Role Claim Rules",
        "description": "Put the rules in a new order; it names every rule once.",
        "operationId": "order_custom_role_claim_rules",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomRoleClaimRuleOrder"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CustomRoleClaimRuleRead"
                  },
                  "title": "Response Order Custom Role Claim Rules"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/communities/{community_id}/auth/role-rules/{rule_id}": {
      "patch": {
        "tags": [
          "community-provider-connections"
        ],
        "summary": "Update Custom Role Claim Rule",
        "description": "Change the group a rule reads or the role it gives. Whoever holds a\nrole by it is given the new one at their next sign-in through that\nprovider.",
        "operationId": "update_custom_role_claim_rule",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "rule_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Rule Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomRoleClaimRuleUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomRoleClaimRuleRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "community-provider-connections"
        ],
        "summary": "Delete Custom Role Claim Rule",
        "description": "Stop giving a role for a group. Whoever holds it by this rule keeps it\nuntil their next sign-in through that provider.",
        "operationId": "delete_custom_role_claim_rule",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "rule_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Rule Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/ai/platform/settings": {
      "get": {
        "tags": [
          "ai-settings"
        ],
        "summary": "Get Platform Ai Settings",
        "description": "Whether AI features run on this deployment (``config.manage`` \u2014 owner\nonly).",
        "operationId": "get_platform_ai_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlatformAISettings"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "ai-settings"
        ],
        "summary": "Update Platform Ai Settings",
        "description": "Switch AI features on or off (``config.manage`` \u2014 owner only). Every\nconnection is kept either way.",
        "operationId": "update_platform_ai_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlatformAISettings"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlatformAISettings"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/ai/platform/connections": {
      "get": {
        "tags": [
          "ai-settings"
        ],
        "summary": "List Platform Connections",
        "operationId": "list_platform_connections",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AIConnectionResponse"
                  },
                  "title": "Response List Platform Connections"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "ai-settings"
        ],
        "summary": "Create Platform Connection",
        "operationId": "create_platform_connection",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AIConnectionCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AIConnectionResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/ai/platform/connections/{connection_id}": {
      "put": {
        "tags": [
          "ai-settings"
        ],
        "summary": "Update Platform Connection",
        "operationId": "update_platform_connection",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Connection Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AIConnectionUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AIConnectionResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "ai-settings"
        ],
        "summary": "Delete Platform Connection",
        "operationId": "delete_platform_connection",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Connection Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/ai/platform/connections/{connection_id}/test": {
      "post": {
        "tags": [
          "ai-settings"
        ],
        "summary": "Test Platform Connection",
        "description": "Test a stored operator connection (uses its stored key + destination \u2014\nnever a request body destination).",
        "operationId": "test_platform_connection",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Connection Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AIConnectionTestResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/settings/ai/platform/connections/{connection_id}/models": {
      "post": {
        "tags": [
          "ai-settings"
        ],
        "summary": "Fetch Platform Connection Models",
        "operationId": "fetch_platform_connection_models",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Connection Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AIModelsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/notifications/": {
      "get": {
        "tags": [
          "notifications"
        ],
        "summary": "List Notifications",
        "description": "One page of the inbox, newest first.\n\nThe popover asks with ``unread_only`` and follows the cursor to the end:\nit shows everything still unread, which is what makes a number on the bell\nunnecessary. The page takes the same list without the filter, as the\nrecord.",
        "operationId": "list_notifications",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "name": "unread_only",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Unread Only"
            }
          },
          {
            "name": "community_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Community Id"
            }
          },
          {
            "name": "personal_only",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Personal Only"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/notifications/unread": {
      "get": {
        "tags": [
          "notifications"
        ],
        "summary": "Unread Notification Places",
        "description": "Where this account has unread activity, for the dots.\n\nOne distinct scan over the unread index. Nothing is counted: a dot says\n\"look here\" and the popover says what.",
        "operationId": "unread_notification_places",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnreadPlacesResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/notifications/read-subject": {
      "post": {
        "tags": [
          "notifications"
        ],
        "summary": "Read Notification Subject",
        "description": "Mark every unread notification about one item read \u2014 its page calls\nthis when it opens \u2014 and say what was unread on it.",
        "operationId": "read_notification_subject",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubjectReadRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubjectReadResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/notifications/{notification_id}/alert": {
      "get": {
        "tags": [
          "notifications"
        ],
        "summary": "Read Notification Alert",
        "description": "One line as the desktop app announces it, after an ``alert`` frame.\n\nThe switches are read as they stand now: a community that has started\nredacting since the frame went gets the kind of thing that happened, and\none that has switched push off gets no more than that.",
        "operationId": "read_notification_alert",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "notification_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Notification Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationAlertRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/notifications/{notification_id}/read": {
      "post": {
        "tags": [
          "notifications"
        ],
        "summary": "Mark Notification Read",
        "operationId": "mark_notification_read",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "notification_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Notification Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/notifications/{notification_id}/unread": {
      "post": {
        "tags": [
          "notifications"
        ],
        "summary": "Mark Notification Unread",
        "operationId": "mark_notification_unread",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "notification_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Notification Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/notifications/{notification_id}": {
      "delete": {
        "tags": [
          "notifications"
        ],
        "summary": "Dismiss Notification",
        "operationId": "dismiss_notification",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "notification_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Notification Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/notifications/read-all": {
      "post": {
        "tags": [
          "notifications"
        ],
        "summary": "Mark All Notifications Read",
        "description": "Clear the unread set, or just one community's part of it.",
        "operationId": "mark_all_notifications_read",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Community Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationCountResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/user-view-preferences": {
      "get": {
        "tags": [
          "user-view-preferences"
        ],
        "summary": "List View Preferences",
        "description": "Return every preference for the current user as a ``{scope_key: value}`` map.",
        "operationId": "list_view_preferences",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserViewPreferencesMap"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/user-view-preferences/{scope_key}": {
      "put": {
        "tags": [
          "user-view-preferences"
        ],
        "summary": "Put View Preference",
        "description": "Upsert the preference for the given ``scope_key`` (last write wins).\nA view of a community's list (``view:<community id>:\u2026``) is refused: it\nis kept in that community.",
        "operationId": "put_view_preference",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "scope_key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9_:\\-\\.]+$",
              "description": "Scope identifier \u2014 e.g. 'my-tasks' or 'project:42:tasks'.",
              "title": "Scope Key"
            },
            "description": "Scope identifier \u2014 e.g. 'my-tasks' or 'project:42:tasks'."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserViewPreferenceWrite"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/webhooks/subscriptions": {
      "post": {
        "tags": [
          "webhooks"
        ],
        "summary": "Create Subscription",
        "description": "Register a new webhook subscription.\n\nThe HMAC secret is included in the response *only here*; subsequent reads\nomit it. The receiver must persist it from this response or rotate the\nsubscription if they lose it.\n\nA subscription is the community's configuration: delivery carries the change\nlog of the scope it names, the initiative it was registered against or, for\none a guild admin registers, the whole community.\n\nAn installed plug-in registers one as its community, naming no person: each\nevent type needs the read scope of its tool, a token narrowed to one\ninitiative registers for that initiative only, and a community-wide one\nneeds a token that is not narrowed. Otherwise 403 (``PLUGIN_SCOPE_REQUIRED``).\n\nTarget policy: ``target_url`` must be https and resolve to a public unicast\naddress; private, loopback and link-local addresses are rejected.",
        "operationId": "create_subscription",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookSubscriptionCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookSubscriptionCreated"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": {
          "per": "event_type",
          "any_of": [
            "calendars:read",
            "comments:read",
            "contacts:read",
            "dashboards:read",
            "files:read",
            "forms:read",
            "initiatives:read",
            "members:read",
            "posts:read",
            "projects:read",
            "tags:read",
            "wikis:read"
          ]
        }
      },
      "get": {
        "tags": [
          "webhooks"
        ],
        "summary": "List Subscriptions",
        "description": "List subscriptions in the caller's guild. ``hmac_secret`` is\nintentionally absent from the response \u2014 it is returned once, on create.",
        "operationId": "list_subscriptions",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WebhookSubscriptionRead"
                  },
                  "title": "Response List Subscriptions"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/webhooks/subscriptions/{subscription_id}": {
      "patch": {
        "tags": [
          "webhooks"
        ],
        "summary": "Update Subscription",
        "description": "Partial-update target_url, event_types, fields, or active flag.\n``fields`` sent as ``null`` clears them, so every change is delivered.\n\nWho may is the UPDATE policy \u2014 initiative write access, or guild admin for\na community-wide subscription. An installed plug-in reaches only the\nsubscriptions it registered, and any other is a 404; what one ends up as\nasks the same of its standing as registering it would (403,\n``PLUGIN_SCOPE_REQUIRED``). ``target_url`` (when provided) is\nre-validated: it must resolve to a public address.\n\nAn installed plug-in does not read the delivery ledger, so its answer\ncounts no dead letters: it is the receiver, and sees what arrives.",
        "operationId": "update_subscription",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "subscription_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Subscription Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookSubscriptionUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookSubscriptionRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": {
          "per": "event_type",
          "any_of": [
            "calendars:read",
            "comments:read",
            "contacts:read",
            "dashboards:read",
            "files:read",
            "forms:read",
            "initiatives:read",
            "members:read",
            "posts:read",
            "projects:read",
            "tags:read",
            "wikis:read"
          ]
        }
      },
      "delete": {
        "tags": [
          "webhooks"
        ],
        "summary": "Delete Subscription",
        "description": "Hard-delete a subscription. Who may is the DELETE policy, the same gates\nthat govern the content it watches; a cross-guild lookup is a 404. An\ninstalled plug-in reaches only the subscriptions it registered, and any other\nis a 404.\n\nThe names it minted for itself go with it. One a plug-in registered is\nnamed in that plug-in's sector, which outlives any single subscription.",
        "operationId": "delete_subscription",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "subscription_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Subscription Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": {
          "per": "event_type",
          "any_of": [
            "calendars:read",
            "comments:read",
            "contacts:read",
            "dashboards:read",
            "files:read",
            "forms:read",
            "initiatives:read",
            "members:read",
            "posts:read",
            "projects:read",
            "tags:read",
            "wikis:read"
          ]
        }
      }
    },
    "/api/v1/c/{community_id}/tools/counts/by-initiative": {
      "get": {
        "tags": [
          "tools"
        ],
        "summary": "Get Tool Counts By Initiative",
        "description": "Every tool's live rows, grouped by initiative: the built-in tools' and\neach installed tool plug-in's, by kind.\n\nWhat the sidebar and the initiative directory badge: each tool's ``active``\nview, counted by the same conditions as its list, in one statement for\nevery tool rather than a request per tool. Rows belonging to the guild\nrather than an initiative fall outside every group.",
        "operationId": "get_tool_counts_by_initiative",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolCountsByInitiativeResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/tools/{tool}/counts": {
      "get": {
        "tags": [
          "tools"
        ],
        "summary": "Get Tool Counts",
        "description": "How many rows sit in each of one tool's views, and, when asked, the tag\ntree beside the one being shown.\n\nEvery figure is a count of the tool's own list. ``views`` counts each view\nin the initiative (or the guild) whatever the page's filters, so a toggle\nsays how much sits behind each view before it is opened. The tag counts\nare for ``view`` after ``search`` and the tool's own filters, so the tree\nand the list beside it agree; tags are not a filter here, because the tree\nshows every one. A page with no tree leaves ``include_tags`` off and its\nrequest runs the view counts alone. ``tool`` is a built-in tool or an\ninstalled tool plug-in's kind.",
        "operationId": "get_tool_counts",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "tool",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Tool"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Initiative Id"
            }
          },
          {
            "name": "view",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "The view the tag counts are for: active, archived, or templates for a tool that has them",
              "default": "active",
              "title": "View"
            },
            "description": "The view the tag counts are for: active, archived, or templates for a tool that has them"
          },
          {
            "name": "filters",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "JSON object of the tool's own list filters, as its list route takes them (``{\"search\": \"notes\", \"kind\": \"document\"}``), that the tag counts are for",
              "title": "Filters"
            },
            "description": "JSON object of the tool's own list filters, as its list route takes them (``{\"search\": \"notes\", \"kind\": \"document\"}``), that the tag counts are for"
          },
          {
            "name": "include_tags",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Also count the tag tree beside ``view``",
              "default": false,
              "title": "Include Tags"
            },
            "description": "Also count the tag tree beside ``view``"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolCountsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/projects/": {
      "get": {
        "tags": [
          "projects"
        ],
        "summary": "List Projects",
        "operationId": "list_projects",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "archived",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "true lists what has been archived instead of what is live. Omit for the live list, which is what every other view shows.",
              "title": "Archived"
            },
            "description": "true lists what has been archived instead of what is live. Omit for the live list, which is what every other view shows."
          },
          {
            "name": "is_template",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only templates (true) or only projects that are not templates (false). Omit for both.",
              "title": "Is Template"
            },
            "description": "Only templates (true) or only projects that are not templates (false). Omit for both."
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Full-text match over the row \u2014 its name and its description. Reads the same index the search page does, so a list's filter box and a search agree about what matches.",
              "title": "Search"
            },
            "description": "Full-text match over the row \u2014 its name and its description. Reads the same index the search page does, so a list's filter box and a search agree about what matches."
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only projects in this initiative. Omit for every initiative the caller can see.",
              "title": "Initiative Id"
            },
            "description": "Only projects in this initiative. Omit for every initiative the caller can see."
          },
          {
            "name": "slim",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Return a lightweight projection (id, name, icon, initiative_id, can) without files, grants, tags, or the nested initiative. For project pickers and other list-only callers.",
              "default": false,
              "title": "Slim"
            },
            "description": "Return a lightweight projection (id, name, icon, initiative_id, can) without files, grants, tags, or the nested initiative. For project pickers and other list-only callers."
          },
          {
            "name": "writable",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Only projects the caller may edit \u2014 the pickers that move work into a project.",
              "default": false,
              "title": "Writable"
            },
            "description": "Only projects the caller may edit \u2014 the pickers that move work into a project."
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Order by one of: name, initiative, updated_at. Omit to keep the reader's own manual order. Also any column this list's conditions take that orders, such as a date.",
              "title": "Sort By"
            },
            "description": "Order by one of: name, initiative, updated_at. Omit to keep the reader's own manual order. Also any column this list's conditions take that orders, such as a date."
          },
          {
            "name": "sort_dir",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "asc (default) or desc.",
              "title": "Sort Dir"
            },
            "description": "asc (default) or desc."
          },
          {
            "name": "tag_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only projects carrying any of these tags.",
              "title": "Tag Ids"
            },
            "description": "Only projects carrying any of these tags."
          },
          {
            "name": "property_filters",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "JSON-encoded list of property-value filters, e.g. `[{\"property_id\": 12, \"op\": \"eq\", \"value\": \"live\"}]`. Maximum 5 conditions per request.",
              "title": "Property Filters"
            },
            "description": "JSON-encoded list of property-value filters, e.g. `[{\"property_id\": 12, \"op\": \"eq\", \"value\": \"live\"}]`. Maximum 5 conditions per request."
          },
          {
            "name": "conditions",
            "in": "query",
            "required": false,
            "description": "JSON list of filter conditions on the columns this list returns, AND-ed together. Each object: {\"field\": \"<column>\", \"op\": \"<operator>\", \"value\": <val>}. An object with a \"conditions\" key is an AND/OR group: {\"logic\": \"or\", \"conditions\": [...]}. A column the list does not return, or an operator its type does not take, is refused.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/FilterCondition"
                      },
                      {
                        "$ref": "#/components/schemas/FilterGroup"
                      }
                    ]
                  }
                }
              }
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 0,
              "default": 0,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "projects:read"
      },
      "post": {
        "tags": [
          "projects"
        ],
        "summary": "Create Project",
        "operationId": "create_project",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "projects:write"
      }
    },
    "/api/v1/c/{community_id}/files/": {
      "get": {
        "tags": [
          "files"
        ],
        "summary": "List Files",
        "description": "List files in the active guild visible to the current user.\n\nDAC: Files shared with the reader directly or through their initiative role.\n\nPagination: page_size=0 serves the full set in server-bounded windows \u2014\nwalk page=1,2,... until has_next is false.\n\nCross-guild \"my files\" lives under /me/files (see list_my_files).",
        "operationId": "list_files",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Initiative Id"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Search"
            }
          },
          {
            "name": "tag_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by tag IDs",
              "title": "Tag Ids"
            },
            "description": "Filter by tag IDs"
          },
          {
            "name": "property_filters",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "JSON-encoded list of property-value filters, e.g. `[{\"property_id\": 12, \"op\": \"eq\", \"value\": \"live\"}]`. Maximum 5 conditions per request.",
              "title": "Property Filters"
            },
            "description": "JSON-encoded list of property-value filters, e.g. `[{\"property_id\": 12, \"op\": \"eq\", \"value\": \"live\"}]`. Maximum 5 conditions per request."
          },
          {
            "name": "conditions",
            "in": "query",
            "required": false,
            "description": "JSON list of filter conditions on the columns this list returns, AND-ed together. Each object: {\"field\": \"<column>\", \"op\": \"<operator>\", \"value\": <val>}. An object with a \"conditions\" key is an AND/OR group: {\"logic\": \"or\", \"conditions\": [...]}. A column the list does not return, or an operator its type does not take, is refused.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/FilterCondition"
                      },
                      {
                        "$ref": "#/components/schemas/FilterGroup"
                      }
                    ]
                  }
                }
              }
            }
          },
          {
            "name": "untagged",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter to files with no tags",
              "title": "Untagged"
            },
            "description": "Filter to files with no tags"
          },
          {
            "name": "is_template",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only templates (true) or only files that are not templates (false). Omit for both.",
              "title": "Is Template"
            },
            "description": "Only templates (true) or only files that are not templates (false). Omit for both."
          },
          {
            "name": "file_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/FileType"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by file type",
              "title": "File Type"
            },
            "description": "Filter by file type"
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/FileKind"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by kind of file",
              "title": "Kind"
            },
            "description": "Filter by kind of file"
          },
          {
            "name": "collection_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter to the files in one collection",
              "title": "Collection Id"
            },
            "description": "Filter to the files in one collection"
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 0,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Order by one of: name, initiative, updated_at, created_at. Also any column this list's conditions take that orders, such as a date.",
              "title": "Sort By"
            },
            "description": "Order by one of: name, initiative, updated_at, created_at. Also any column this list's conditions take that orders, such as a date."
          },
          {
            "name": "sort_dir",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "asc (default) or desc.",
              "title": "Sort Dir"
            },
            "description": "asc (default) or desc."
          },
          {
            "name": "archived",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "true lists what has been archived instead of what is live. Omit for the live list, which is what every other view shows.",
              "title": "Archived"
            },
            "description": "true lists what has been archived instead of what is live. Omit for the live list, which is what every other view shows."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "files:read"
      },
      "post": {
        "tags": [
          "files"
        ],
        "summary": "Create File",
        "operationId": "create_file",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "files:write"
      }
    },
    "/api/v1/c/{community_id}/calendars/": {
      "get": {
        "tags": [
          "calendars"
        ],
        "summary": "List Calendars",
        "description": "List calendars visible to the current user (guild admins see all).\n\n``scope=community`` narrows to the guild's own calendars \u2014 the ones the calendar\nplug-in holds, belonging to no initiative. That is the opposite of the\nunfiltered list, which is everything in scope, so it is asked for by name\nrather than inferred from an absent ``initiative_id``.",
        "operationId": "list_calendars",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Initiative Id"
            }
          },
          {
            "name": "scope",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "const": "community",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Scope"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Full-text match over the row \u2014 its name and its description. Reads the same index the search page does, so a list's filter box and a search agree about what matches.",
              "title": "Search"
            },
            "description": "Full-text match over the row \u2014 its name and its description. Reads the same index the search page does, so a list's filter box and a search agree about what matches."
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Order by one of: name, initiative, updated_at. Omit for this tool's own default order. Also any column this list's conditions take that orders, such as a date.",
              "title": "Sort By"
            },
            "description": "Order by one of: name, initiative, updated_at. Omit for this tool's own default order. Also any column this list's conditions take that orders, such as a date."
          },
          {
            "name": "sort_dir",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "asc (default) or desc.",
              "title": "Sort Dir"
            },
            "description": "asc (default) or desc."
          },
          {
            "name": "tag_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only calendars carrying any of these tags.",
              "title": "Tag Ids"
            },
            "description": "Only calendars carrying any of these tags."
          },
          {
            "name": "property_filters",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "JSON-encoded list of property-value filters, e.g. `[{\"property_id\": 12, \"op\": \"eq\", \"value\": \"live\"}]`. Maximum 5 conditions per request.",
              "title": "Property Filters"
            },
            "description": "JSON-encoded list of property-value filters, e.g. `[{\"property_id\": 12, \"op\": \"eq\", \"value\": \"live\"}]`. Maximum 5 conditions per request."
          },
          {
            "name": "conditions",
            "in": "query",
            "required": false,
            "description": "JSON list of filter conditions on the columns this list returns, AND-ed together. Each object: {\"field\": \"<column>\", \"op\": \"<operator>\", \"value\": <val>}. An object with a \"conditions\" key is an AND/OR group: {\"logic\": \"or\", \"conditions\": [...]}. A column the list does not return, or an operator its type does not take, is refused.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/FilterCondition"
                      },
                      {
                        "$ref": "#/components/schemas/FilterGroup"
                      }
                    ]
                  }
                }
              }
            }
          },
          {
            "name": "archived",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "true lists what has been archived instead of what is live. Omit for the live list, which is what every other view shows.",
              "title": "Archived"
            },
            "description": "true lists what has been archived instead of what is live. Omit for the live list, which is what every other view shows."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 100,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "calendars:read"
      },
      "post": {
        "tags": [
          "calendars"
        ],
        "summary": "Create Calendar",
        "description": "Create a calendar.\n\nTwo scopes, two gates. An **initiative** calendar needs that initiative's\ncalendars switch on and the ``create_calendars`` permission (or guild\nadmin), and its creator gets the owner grant. A **guild** calendar \u2014\n``initiative_id`` omitted \u2014 belongs to no initiative, so neither has\nanything to say about it: it is the guild admin's to make. It needs the\ncalendar plug-in, whose install owns it and whose removal takes it along.\n\nAn installed plug-in creates initiative calendars only: a guild calendar is\nowned by the calendar plug-in's install, which is community configuration.\nWhat it creates is owned by its install, whose owner row the table's\ntrigger writes; it sets no initial sharing.",
        "operationId": "create_calendar",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CalendarCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "calendars:write"
      }
    },
    "/api/v1/c/{community_id}/dashboards/": {
      "get": {
        "tags": [
          "dashboards"
        ],
        "summary": "List Dashboards",
        "description": "List dashboards visible to the current user (guild admins see all).\n\n``scope=community`` narrows to the community's own dashboards, the ones the\ndashboards plug-in holds, belonging to no initiative.",
        "operationId": "list_dashboards",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Initiative Id"
            }
          },
          {
            "name": "scope",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "const": "community",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Scope"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Full-text match over the row \u2014 its name and its description. Reads the same index the search page does, so a list's filter box and a search agree about what matches.",
              "title": "Search"
            },
            "description": "Full-text match over the row \u2014 its name and its description. Reads the same index the search page does, so a list's filter box and a search agree about what matches."
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Order by one of: name, initiative, updated_at. Omit for this tool's own default order. Also any column this list's conditions take that orders, such as a date.",
              "title": "Sort By"
            },
            "description": "Order by one of: name, initiative, updated_at. Omit for this tool's own default order. Also any column this list's conditions take that orders, such as a date."
          },
          {
            "name": "sort_dir",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "asc (default) or desc.",
              "title": "Sort Dir"
            },
            "description": "asc (default) or desc."
          },
          {
            "name": "tag_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only dashboards carrying any of these tags.",
              "title": "Tag Ids"
            },
            "description": "Only dashboards carrying any of these tags."
          },
          {
            "name": "property_filters",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "JSON-encoded list of property-value filters, e.g. `[{\"property_id\": 12, \"op\": \"eq\", \"value\": \"live\"}]`. Maximum 5 conditions per request.",
              "title": "Property Filters"
            },
            "description": "JSON-encoded list of property-value filters, e.g. `[{\"property_id\": 12, \"op\": \"eq\", \"value\": \"live\"}]`. Maximum 5 conditions per request."
          },
          {
            "name": "conditions",
            "in": "query",
            "required": false,
            "description": "JSON list of filter conditions on the columns this list returns, AND-ed together. Each object: {\"field\": \"<column>\", \"op\": \"<operator>\", \"value\": <val>}. An object with a \"conditions\" key is an AND/OR group: {\"logic\": \"or\", \"conditions\": [...]}. A column the list does not return, or an operator its type does not take, is refused.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/FilterCondition"
                      },
                      {
                        "$ref": "#/components/schemas/FilterGroup"
                      }
                    ]
                  }
                }
              }
            }
          },
          {
            "name": "archived",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "true lists what has been archived instead of what is live. Omit for the live list, which is what every other view shows.",
              "title": "Archived"
            },
            "description": "true lists what has been archived instead of what is live. Omit for the live list, which is what every other view shows."
          },
          {
            "name": "include_preview",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Also send what each row's card shows of what is inside it, read for the whole page at once.",
              "default": false,
              "title": "Include Preview"
            },
            "description": "Also send what each row's card shows of what is inside it, read for the whole page at once."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 100,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "dashboards"
        ],
        "summary": "Create Dashboard",
        "description": "Create a dashboard. In an initiative it takes create_dashboards there\n(or guild admin), and the creator gets the owner grant. With no\ninitiative it belongs to the whole community: it takes the Community\ndashboards job, and the community dashboards plug-in's install owns it.",
        "operationId": "create_dashboard",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DashboardCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/posts/": {
      "get": {
        "tags": [
          "posts"
        ],
        "summary": "List Posts",
        "description": "List posts visible to the current user (guild admins see all).\n\nReturns whole posts \u2014 a board shows notices, not headlines \u2014 which is why\nit pages in fives. A scheduled notice is here only for the people who\ncould edit it; for everyone else the board starts when it goes up.",
        "operationId": "list_posts",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Initiative Id"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Full-text match over the notice \u2014 its headline and its body. Reads the same index the search page does, so the board's filter and a search agree about what matches.",
              "title": "Search"
            },
            "description": "Full-text match over the notice \u2014 its headline and its body. Reads the same index the search page does, so the board's filter and a search agree about what matches."
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Order by one of: name, initiative, updated_at. Omit for the board order \u2014 live pins first, then newest first. Also any column this list's conditions take that orders, such as a date.",
              "title": "Sort By"
            },
            "description": "Order by one of: name, initiative, updated_at. Omit for the board order \u2014 live pins first, then newest first. Also any column this list's conditions take that orders, such as a date."
          },
          {
            "name": "sort_dir",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "asc (default) or desc.",
              "title": "Sort Dir"
            },
            "description": "asc (default) or desc."
          },
          {
            "name": "tag_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only posts carrying any of these tags.",
              "title": "Tag Ids"
            },
            "description": "Only posts carrying any of these tags."
          },
          {
            "name": "property_filters",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "JSON-encoded list of property-value filters, e.g. `[{\"property_id\": 12, \"op\": \"eq\", \"value\": \"live\"}]`. Maximum 5 conditions per request.",
              "title": "Property Filters"
            },
            "description": "JSON-encoded list of property-value filters, e.g. `[{\"property_id\": 12, \"op\": \"eq\", \"value\": \"live\"}]`. Maximum 5 conditions per request."
          },
          {
            "name": "conditions",
            "in": "query",
            "required": false,
            "description": "JSON list of filter conditions on the columns this list returns, AND-ed together. Each object: {\"field\": \"<column>\", \"op\": \"<operator>\", \"value\": <val>}. An object with a \"conditions\" key is an AND/OR group: {\"logic\": \"or\", \"conditions\": [...]}. A column the list does not return, or an operator its type does not take, is refused.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/FilterCondition"
                      },
                      {
                        "$ref": "#/components/schemas/FilterGroup"
                      }
                    ]
                  }
                }
              }
            }
          },
          {
            "name": "archived",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "true lists what has been archived instead of what is live. Omit for the live list, which is what every other view shows.",
              "title": "Archived"
            },
            "description": "true lists what has been archived instead of what is live. Omit for the live list, which is what every other view shows."
          },
          {
            "name": "unread",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Only notices this reader has not read yet.",
              "default": false,
              "title": "Unread"
            },
            "description": "Only notices this reader has not read yet."
          },
          {
            "name": "until",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Start the board at this instant and go back \u2014 inclusive, and measured by the same date the feed is ordered by. This is how a timeline jumps to a month without paging through everything since. An anchored board is strictly chronological: the pinned band steps aside, because a pin says what matters now rather than what mattered then.",
              "title": "Until"
            },
            "description": "Start the board at this instant and go back \u2014 inclusive, and measured by the same date the feed is ordered by. This is how a timeline jumps to a month without paging through everything since. An anchored board is strictly chronological: the pinned band steps aside, because a pin says what matters now rather than what mattered then."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "description": "Posts per page. Small by default: a board renders each post's body, so a page is that many editors to mount.",
              "default": 5,
              "title": "Page Size"
            },
            "description": "Posts per page. Small by default: a board renders each post's body, so a page is that many editors to mount."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "posts:read"
      },
      "post": {
        "tags": [
          "posts"
        ],
        "summary": "Create Post",
        "description": "Post a notice to an initiative's board. Requires create_posts permission\non the initiative (or guild admin); the author gets the owner grant.",
        "operationId": "create_post",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "posts:write"
      }
    },
    "/api/v1/c/{community_id}/wikis/": {
      "get": {
        "tags": [
          "wikis"
        ],
        "summary": "List Wikis",
        "description": "List wikis visible to the current user (guild admins see all).",
        "operationId": "list_wikis",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Initiative Id"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Full-text match over the wiki's name and description, through the same index the search page reads.",
              "title": "Search"
            },
            "description": "Full-text match over the wiki's name and description, through the same index the search page reads."
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Order by one of: name, initiative, updated_at. Omit for newest first. Also any column this list's conditions take that orders, such as a date.",
              "title": "Sort By"
            },
            "description": "Order by one of: name, initiative, updated_at. Omit for newest first. Also any column this list's conditions take that orders, such as a date."
          },
          {
            "name": "sort_dir",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "asc (default) or desc.",
              "title": "Sort Dir"
            },
            "description": "asc (default) or desc."
          },
          {
            "name": "tag_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only wikis carrying any of these tags.",
              "title": "Tag Ids"
            },
            "description": "Only wikis carrying any of these tags."
          },
          {
            "name": "property_filters",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "JSON-encoded list of property-value filters, e.g. `[{\"property_id\": 12, \"op\": \"eq\", \"value\": \"live\"}]`. Maximum 5 conditions per request.",
              "title": "Property Filters"
            },
            "description": "JSON-encoded list of property-value filters, e.g. `[{\"property_id\": 12, \"op\": \"eq\", \"value\": \"live\"}]`. Maximum 5 conditions per request."
          },
          {
            "name": "conditions",
            "in": "query",
            "required": false,
            "description": "JSON list of filter conditions on the columns this list returns, AND-ed together. Each object: {\"field\": \"<column>\", \"op\": \"<operator>\", \"value\": <val>}. An object with a \"conditions\" key is an AND/OR group: {\"logic\": \"or\", \"conditions\": [...]}. A column the list does not return, or an operator its type does not take, is refused.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/FilterCondition"
                      },
                      {
                        "$ref": "#/components/schemas/FilterGroup"
                      }
                    ]
                  }
                }
              }
            }
          },
          {
            "name": "archived",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "true lists what has been archived instead of what is live. Omit for the live list, which is what every other view shows.",
              "title": "Archived"
            },
            "description": "true lists what has been archived instead of what is live. Omit for the live list, which is what every other view shows."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 500,
              "minimum": 0,
              "default": 100,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WikiListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "wikis:read"
      },
      "post": {
        "tags": [
          "wikis"
        ],
        "summary": "Create Wiki",
        "description": "Create a wiki. Requires create_wikis permission on the initiative (or\nguild admin); the creator gets the owner grant.",
        "operationId": "create_wiki",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WikiCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WikiRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "wikis:write"
      }
    },
    "/api/v1/c/{community_id}/contacts/": {
      "get": {
        "tags": [
          "contacts"
        ],
        "summary": "List Contacts",
        "description": "List contacts visible to the current user (guild admins see all).\n\n``scope=community`` narrows to the community's own contacts, the ones the\ncommunity contacts plug-in holds, belonging to no initiative.",
        "operationId": "list_contacts",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Initiative Id"
            }
          },
          {
            "name": "scope",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "const": "community",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Scope"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Full-text match over the contact's name, through the same index the search page reads.",
              "title": "Search"
            },
            "description": "Full-text match over the contact's name, through the same index the search page reads."
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Order by one of: name, initiative, updated_at. Omit for by name. Also any column this list's conditions take that orders, such as a date.",
              "title": "Sort By"
            },
            "description": "Order by one of: name, initiative, updated_at. Omit for by name. Also any column this list's conditions take that orders, such as a date."
          },
          {
            "name": "sort_dir",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "asc (default) or desc.",
              "title": "Sort Dir"
            },
            "description": "asc (default) or desc."
          },
          {
            "name": "tag_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only contacts carrying any of these tags.",
              "title": "Tag Ids"
            },
            "description": "Only contacts carrying any of these tags."
          },
          {
            "name": "property_filters",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "JSON-encoded list of property-value filters, e.g. `[{\"property_id\": 12, \"op\": \"eq\", \"value\": \"live\"}]`. Maximum 5 conditions per request.",
              "title": "Property Filters"
            },
            "description": "JSON-encoded list of property-value filters, e.g. `[{\"property_id\": 12, \"op\": \"eq\", \"value\": \"live\"}]`. Maximum 5 conditions per request."
          },
          {
            "name": "conditions",
            "in": "query",
            "required": false,
            "description": "JSON list of filter conditions on the columns this list returns, AND-ed together. Each object: {\"field\": \"<column>\", \"op\": \"<operator>\", \"value\": <val>}. An object with a \"conditions\" key is an AND/OR group: {\"logic\": \"or\", \"conditions\": [...]}. A column the list does not return, or an operator its type does not take, is refused.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/FilterCondition"
                      },
                      {
                        "$ref": "#/components/schemas/FilterGroup"
                      }
                    ]
                  }
                }
              }
            }
          },
          {
            "name": "archived",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "true lists what has been archived instead of what is live. Omit for the live list, which is what every other view shows.",
              "title": "Archived"
            },
            "description": "true lists what has been archived instead of what is live. Omit for the live list, which is what every other view shows."
          },
          {
            "name": "is_organization",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only organizations (true) or only people (false).",
              "title": "Is Organization"
            },
            "description": "Only organizations (true) or only people (false)."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 500,
              "minimum": 0,
              "default": 100,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "contacts:read"
      },
      "post": {
        "tags": [
          "contacts"
        ],
        "summary": "Create Contact",
        "description": "Create a contact.\n\nIn an initiative it needs that initiative's contacts switch on and the\n``create_contacts`` permission (or guild admin), and its maker owns it.\nWith ``initiative_id`` omitted it is one of the community's contacts: it\nneeds the ``community_contacts`` surface and the community contacts\nplug-in, whose install owns it. An installed plug-in's initiative contact\nis owned by its install; it makes a community contact on a token not\nnarrowed to one initiative, as itself or for a member holding the\nsurface, and the database gives that one to the\ncommunity contacts plug-in's install as it goes in.",
        "operationId": "create_contact",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "contacts:write"
      }
    },
    "/api/v1/c/{community_id}/forms/": {
      "get": {
        "tags": [
          "forms"
        ],
        "summary": "List Forms",
        "description": "List forms visible to the current user (guild admins see all).\n\n``scope=community`` narrows to the community's own forms, the ones the\ncommunity forms plug-in holds, belonging to no initiative.",
        "operationId": "list_forms",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Initiative Id"
            }
          },
          {
            "name": "scope",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "const": "community",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Scope"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Full-text match over the form's name and introduction, through the same index the search page reads.",
              "title": "Search"
            },
            "description": "Full-text match over the form's name and introduction, through the same index the search page reads."
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Order by one of: name, initiative, updated_at. Omit for by name. Also any column this list's conditions take that orders, such as a date.",
              "title": "Sort By"
            },
            "description": "Order by one of: name, initiative, updated_at. Omit for by name. Also any column this list's conditions take that orders, such as a date."
          },
          {
            "name": "sort_dir",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "asc (default) or desc.",
              "title": "Sort Dir"
            },
            "description": "asc (default) or desc."
          },
          {
            "name": "tag_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only forms carrying any of these tags.",
              "title": "Tag Ids"
            },
            "description": "Only forms carrying any of these tags."
          },
          {
            "name": "property_filters",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "JSON-encoded list of property-value filters, e.g. `[{\"property_id\": 12, \"op\": \"eq\", \"value\": \"live\"}]`. Maximum 5 conditions per request.",
              "title": "Property Filters"
            },
            "description": "JSON-encoded list of property-value filters, e.g. `[{\"property_id\": 12, \"op\": \"eq\", \"value\": \"live\"}]`. Maximum 5 conditions per request."
          },
          {
            "name": "conditions",
            "in": "query",
            "required": false,
            "description": "JSON list of filter conditions on the columns this list returns, AND-ed together. Each object: {\"field\": \"<column>\", \"op\": \"<operator>\", \"value\": <val>}. An object with a \"conditions\" key is an AND/OR group: {\"logic\": \"or\", \"conditions\": [...]}. A column the list does not return, or an operator its type does not take, is refused.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/FilterCondition"
                      },
                      {
                        "$ref": "#/components/schemas/FilterGroup"
                      }
                    ]
                  }
                }
              }
            }
          },
          {
            "name": "archived",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "true lists what has been archived instead of what is live. Omit for the live list, which is what every other view shows.",
              "title": "Archived"
            },
            "description": "true lists what has been archived instead of what is live. Omit for the live list, which is what every other view shows."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 500,
              "minimum": 0,
              "default": 100,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "forms:read"
      },
      "post": {
        "tags": [
          "forms"
        ],
        "summary": "Create Form",
        "description": "Create a form, with an empty draft for its first questions.\n\nIn an initiative it needs that initiative's forms switch on and the\n``create_forms`` permission (or guild admin), and its maker owns it. With\n``initiative_id`` omitted it is one of the community's forms: it needs the\n``community_forms`` surface and the community forms plug-in, whose install\nowns it.",
        "operationId": "create_form",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FormCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "forms:write"
      }
    },
    "/api/v1/c/{community_id}/collections/{collection_id}/files": {
      "get": {
        "tags": [
          "files"
        ],
        "summary": "List Collection Files",
        "description": "The files in one collection the reader can open: the Files list, with\nits parameters, narrowed to the collection, each with when it was added\nto it. A collection out of reach is a 404.",
        "operationId": "list_collection_files",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "collection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Collection Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Initiative Id"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Search"
            }
          },
          {
            "name": "tag_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by tag IDs",
              "title": "Tag Ids"
            },
            "description": "Filter by tag IDs"
          },
          {
            "name": "property_filters",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "JSON-encoded list of property-value filters, e.g. `[{\"property_id\": 12, \"op\": \"eq\", \"value\": \"live\"}]`. Maximum 5 conditions per request.",
              "title": "Property Filters"
            },
            "description": "JSON-encoded list of property-value filters, e.g. `[{\"property_id\": 12, \"op\": \"eq\", \"value\": \"live\"}]`. Maximum 5 conditions per request."
          },
          {
            "name": "conditions",
            "in": "query",
            "required": false,
            "description": "JSON list of filter conditions on the columns this list returns, AND-ed together. Each object: {\"field\": \"<column>\", \"op\": \"<operator>\", \"value\": <val>}. An object with a \"conditions\" key is an AND/OR group: {\"logic\": \"or\", \"conditions\": [...]}. A column the list does not return, or an operator its type does not take, is refused.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/FilterCondition"
                      },
                      {
                        "$ref": "#/components/schemas/FilterGroup"
                      }
                    ]
                  }
                }
              }
            }
          },
          {
            "name": "untagged",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter to files with no tags",
              "title": "Untagged"
            },
            "description": "Filter to files with no tags"
          },
          {
            "name": "is_template",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only templates (true) or only files that are not templates (false). Omit for both.",
              "title": "Is Template"
            },
            "description": "Only templates (true) or only files that are not templates (false). Omit for both."
          },
          {
            "name": "file_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/FileType"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by file type",
              "title": "File Type"
            },
            "description": "Filter by file type"
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/FileKind"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by kind of file",
              "title": "Kind"
            },
            "description": "Filter by kind of file"
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 0,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Order by one of: name, initiative, updated_at, created_at, added_at (when each was added to the collection). Omit for added_at, newest first. Also any column this list's conditions take that orders, such as a date.",
              "title": "Sort By"
            },
            "description": "Order by one of: name, initiative, updated_at, created_at, added_at (when each was added to the collection). Omit for added_at, newest first. Also any column this list's conditions take that orders, such as a date."
          },
          {
            "name": "sort_dir",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "asc (default) or desc.",
              "title": "Sort Dir"
            },
            "description": "asc (default) or desc."
          },
          {
            "name": "archived",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "true lists what has been archived instead of what is live. Omit for the live list, which is what every other view shows.",
              "title": "Archived"
            },
            "description": "true lists what has been archived instead of what is live. Omit for the live list, which is what every other view shows."
          },
          {
            "name": "until",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Start the list at this instant, measured by when each file was added to the collection. Newest first it is a ceiling and the page walks back from it; oldest first (sort_by=added_at, sort_dir=asc) a floor and the page walks forward. This is how a timeline jumps to a month: pair it with the matching end of the month's bucket.",
              "title": "Until"
            },
            "description": "Start the list at this instant, measured by when each file was added to the collection. Newest first it is a ceiling and the page walks back from it; oldest first (sort_by=added_at, sort_dir=asc) a floor and the page walks forward. This is how a timeline jumps to a month: pair it with the matching end of the month's bucket."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFileListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "files:read"
      },
      "post": {
        "tags": [
          "files"
        ],
        "summary": "Add Collection Files",
        "description": "Put files in a collection: each a file of its initiative the reader can\nopen, starting with ``metadata``'s values of the collection's metadata.\nOne already in it stays as it is. A person gives each value the\ncollection's file page requires.",
        "operationId": "add_collection_files",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "collection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Collection Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CollectionFilesAdd"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "files:write"
      },
      "delete": {
        "tags": [
          "files"
        ],
        "summary": "Remove Collection Files",
        "description": "Take files out of a collection. The files stay where they are. A\ncollection left with no file goes to the trash.",
        "operationId": "remove_collection_files",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "collection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Collection Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "file_ids",
            "in": "query",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "integer"
              },
              "minItems": 1,
              "maxItems": 500,
              "title": "File Ids"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "files:write"
      }
    },
    "/api/v1/c/{community_id}/collections/{collection_id}/files/timeline": {
      "get": {
        "tags": [
          "files"
        ],
        "summary": "Get Collection Files Timeline",
        "description": "The months files were added to this collection in, newest first, each\nwith how many of them the reader can open and the instants to jump to:\nwhat the timeline rail is drawn from. Takes the same filters the list\ndoes, so the rail is a picture of the list as it stands.",
        "operationId": "get_collection_files_timeline",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "collection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Collection Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Search"
            }
          },
          {
            "name": "tag_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by tag IDs",
              "title": "Tag Ids"
            },
            "description": "Filter by tag IDs"
          },
          {
            "name": "property_filters",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "JSON-encoded list of property-value filters, e.g. `[{\"property_id\": 12, \"op\": \"eq\", \"value\": \"live\"}]`. Maximum 5 conditions per request.",
              "title": "Property Filters"
            },
            "description": "JSON-encoded list of property-value filters, e.g. `[{\"property_id\": 12, \"op\": \"eq\", \"value\": \"live\"}]`. Maximum 5 conditions per request."
          },
          {
            "name": "conditions",
            "in": "query",
            "required": false,
            "description": "JSON list of filter conditions on the columns this list returns, AND-ed together. Each object: {\"field\": \"<column>\", \"op\": \"<operator>\", \"value\": <val>}. An object with a \"conditions\" key is an AND/OR group: {\"logic\": \"or\", \"conditions\": [...]}. A column the list does not return, or an operator its type does not take, is refused.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/FilterCondition"
                      },
                      {
                        "$ref": "#/components/schemas/FilterGroup"
                      }
                    ]
                  }
                }
              }
            }
          },
          {
            "name": "untagged",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter to files with no tags",
              "title": "Untagged"
            },
            "description": "Filter to files with no tags"
          },
          {
            "name": "is_template",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only templates (true) or only files that are not templates (false). Omit for both.",
              "title": "Is Template"
            },
            "description": "Only templates (true) or only files that are not templates (false). Omit for both."
          },
          {
            "name": "file_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/FileType"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by file type",
              "title": "File Type"
            },
            "description": "Filter by file type"
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/FileKind"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by kind of file",
              "title": "Kind"
            },
            "description": "Filter by kind of file"
          },
          {
            "name": "archived",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "true lists what has been archived instead of what is live. Omit for the live list, which is what every other view shows.",
              "title": "Archived"
            },
            "description": "true lists what has been archived instead of what is live. Omit for the live list, which is what every other view shows."
          },
          {
            "name": "tz",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "IANA zone the month boundaries are cut in, e.g. Pacific/Auckland. Defaults to UTC.",
              "title": "Tz"
            },
            "description": "IANA zone the month boundaries are cut in, e.g. Pacific/Auckland. Defaults to UTC."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimelineResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "files:read"
      }
    },
    "/api/v1/c/{community_id}/projects/{project_id}": {
      "get": {
        "tags": [
          "projects"
        ],
        "summary": "Read Project",
        "operationId": "read_project",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Project Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "include_deleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Also return the resource if it is in the trash. For reading a resource back after a deleted event \u2014 the row still exists until retention purges it, and access is checked exactly as for a live one.",
              "default": false,
              "title": "Include Deleted"
            },
            "description": "Also return the resource if it is in the trash. For reading a resource back after a deleted event \u2014 the row still exists until retention purges it, and access is checked exactly as for a live one."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "projects:read"
      },
      "patch": {
        "tags": [
          "projects"
        ],
        "summary": "Update Project",
        "operationId": "update_project",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Project Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "projects:write"
      },
      "delete": {
        "tags": [
          "projects"
        ],
        "summary": "Delete Project",
        "description": "Move it to the trash with everything inside it. Restoring it brings\nall of that back; the trash purges it after the community's retention.\nRequires the delete right on it: its owner, or a guild admin.",
        "operationId": "delete_project",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Project Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/projects/reorder": {
      "post": {
        "tags": [
          "projects"
        ],
        "summary": "Reorder Projects",
        "description": "Put the reader's own projects in the order given. Ids the reader cannot\nsee are ignored, and those left out keep their place after the rest.",
        "operationId": "reorder_projects",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectReorderRequest"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/projects/{project_id}/task-statuses/": {
      "get": {
        "tags": [
          "task-statuses",
          "task-statuses"
        ],
        "summary": "List Task Statuses",
        "operationId": "list_task_statuses",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Project Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskStatusRead"
                  },
                  "title": "Response List Task Statuses"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "projects:read"
      },
      "post": {
        "tags": [
          "task-statuses",
          "task-statuses"
        ],
        "summary": "Create Task Status",
        "operationId": "create_task_status",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Project Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskStatusCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskStatusRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/projects/{project_id}/task-statuses/{status_id}": {
      "patch": {
        "tags": [
          "task-statuses",
          "task-statuses"
        ],
        "summary": "Update Task Status",
        "operationId": "update_task_status",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Project Id"
            }
          },
          {
            "name": "status_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Status Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskStatusUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskStatusRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "task-statuses",
          "task-statuses"
        ],
        "summary": "Delete Task Status",
        "operationId": "delete_task_status",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Project Id"
            }
          },
          {
            "name": "status_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Status Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskStatusDeleteRequest"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/projects/{project_id}/task-statuses/reorder": {
      "post": {
        "tags": [
          "task-statuses",
          "task-statuses"
        ],
        "summary": "Reorder Task Statuses",
        "operationId": "reorder_task_statuses",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Project Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskStatusReorderRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskStatusRead"
                  },
                  "title": "Response Reorder Task Statuses"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/initiatives/{initiative_id}/task-statuses/": {
      "get": {
        "tags": [
          "task-statuses",
          "task-statuses"
        ],
        "summary": "List Initiative Task Statuses",
        "description": "The distinct status columns across the initiative's readable projects.\n\nOne entry per ``(name, category)``, carrying how many of the caller's\nreadable projects define it and how many such projects there are.",
        "operationId": "list_initiative_task_statuses",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "initiative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InitiativeTaskStatusRead"
                  },
                  "title": "Response List Initiative Task Statuses"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "projects:read"
      }
    },
    "/api/v1/c/{community_id}/projects/{project_id}/task-types/": {
      "get": {
        "tags": [
          "task-types",
          "task-types"
        ],
        "summary": "List Task Types",
        "operationId": "list_task_types",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Project Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskTypeRead"
                  },
                  "title": "Response List Task Types"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "projects:read"
      },
      "post": {
        "tags": [
          "task-types",
          "task-types"
        ],
        "summary": "Create Task Type",
        "description": "Add a type, at the end unless a position is given. Started from another\nof the project's types, it takes that type's shape, colour, icon and\nstarting values unless it names its own, and a copy of its page. Started\nfrom the gallery, it takes the gallery type's, and its fields: the\ninitiative's properties of those names, made where it has none, which its\npage is then given (``field_ids``).",
        "operationId": "create_task_type",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Project Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskTypeCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskTypeCreated"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/projects/{project_id}/task-types/gallery": {
      "get": {
        "tags": [
          "task-types",
          "task-types"
        ],
        "summary": "List Task Type Gallery",
        "description": "The ready-made types the project can add, grouped by what they are for,\nin the reader's language.",
        "operationId": "list_task_type_gallery",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Project Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskTypeGalleryGroup"
                  },
                  "title": "Response List Task Type Gallery"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "projects:read"
      }
    },
    "/api/v1/c/{community_id}/projects/{project_id}/task-types/copy": {
      "post": {
        "tags": [
          "task-types",
          "task-types"
        ],
        "summary": "Copy Task Types",
        "description": "Copy types from another project the caller can read: each with its\nlook, its starting values and its page, after this project's own. One\nwhose name this project has is left out, and so is any past the limit;\nthe response is the copies made. A page from another initiative leaves out\nthe properties it placed, which are that initiative's.",
        "operationId": "copy_task_types",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Project Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskTypeCopyRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskTypeRead"
                  },
                  "title": "Response Copy Task Types"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/projects/{project_id}/task-types/{type_id}": {
      "patch": {
        "tags": [
          "task-types",
          "task-types"
        ],
        "summary": "Update Task Type",
        "operationId": "update_task_type",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Project Id"
            }
          },
          {
            "name": "type_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Type Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskTypeUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskTypeRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "task-types",
          "task-types"
        ],
        "summary": "Delete Task Type",
        "description": "Delete a type, moving its tasks to another. Its page goes with it; the\ntasks keep everything they hold, and show it as their new type does.",
        "operationId": "delete_task_type",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Project Id"
            }
          },
          {
            "name": "type_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Type Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskTypeDeleteRequest"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/projects/{project_id}/task-types/reorder": {
      "post": {
        "tags": [
          "task-types",
          "task-types"
        ],
        "summary": "Reorder Task Types",
        "operationId": "reorder_task_types",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Project Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskTypeReorderRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskTypeRead"
                  },
                  "title": "Response Reorder Task Types"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/layouts/": {
      "get": {
        "tags": [
          "layouts"
        ],
        "summary": "Get Layouts",
        "description": "The target's layouts, each as it changed it or as shipped\n(``updated_at`` null).",
        "operationId": "get_layouts",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "tool",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "What the layouts are for",
              "title": "Tool"
            },
            "description": "What the layouts are for"
          },
          {
            "name": "tool_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Tool Id"
            }
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Initiative Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolLayoutSetRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "layouts"
        ],
        "summary": "Put Layout",
        "description": "Change one of the target's layouts, leaving the others as they are.",
        "operationId": "put_layout",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "tool",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "What the layouts are for",
              "title": "Tool"
            },
            "description": "What the layouts are for"
          },
          {
            "name": "tool_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Tool Id"
            }
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Initiative Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/ListLayoutWrite"
                      },
                      {
                        "$ref": "#/components/schemas/DetailLayoutWrite"
                      }
                    ],
                    "discriminator": {
                      "propertyName": "kind",
                      "mapping": {
                        "table": "#/components/schemas/ListLayoutWrite",
                        "board": "#/components/schemas/ListLayoutWrite",
                        "gantt": "#/components/schemas/ListLayoutWrite",
                        "calendar": "#/components/schemas/ListLayoutWrite",
                        "masonry": "#/components/schemas/ListLayoutWrite",
                        "grid": "#/components/schemas/ListLayoutWrite",
                        "rows": "#/components/schemas/ListLayoutWrite",
                        "timeline": "#/components/schemas/ListLayoutWrite",
                        "task": "#/components/schemas/DetailLayoutWrite",
                        "calendar_event": "#/components/schemas/DetailLayoutWrite",
                        "post": "#/components/schemas/DetailLayoutWrite",
                        "file": "#/components/schemas/DetailLayoutWrite"
                      }
                    }
                  },
                  {
                    "$ref": "#/components/schemas/ToolPluginLayoutWrite"
                  }
                ],
                "title": "Payload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolLayoutSetRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/layouts/initiative": {
      "get": {
        "tags": [
          "layouts"
        ],
        "summary": "Get Initiative Layouts",
        "description": "The layouts of every instance in the initiative the reader can open,\nof each tool whose instances lay out their own items (a project's), by\ntool and name, for the initiative's settings. A layout is changed on its\nown target.",
        "operationId": "get_initiative_layouts",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InitiativeToolLayoutsRead"
                  },
                  "title": "Response Get Initiative Layouts"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/layouts/default": {
      "put": {
        "tags": [
          "layouts"
        ],
        "summary": "Put Default Layout",
        "description": "Open the target on one of its lists.",
        "operationId": "put_default_layout",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "tool",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "What the layouts are for",
              "title": "Tool"
            },
            "description": "What the layouts are for"
          },
          {
            "name": "tool_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Tool Id"
            }
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Initiative Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToolLayoutDefaultWrite"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolLayoutSetRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/layouts/{kind}": {
      "delete": {
        "tags": [
          "layouts"
        ],
        "summary": "Reset Layout",
        "description": "Draw one of the target's layouts as shipped again: a project's task\npage names the type of task it is for.",
        "operationId": "reset_layout",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "tool",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "What the layouts are for",
              "title": "Tool"
            },
            "description": "What the layouts are for"
          },
          {
            "name": "tool_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Tool Id"
            }
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Initiative Id"
            }
          },
          {
            "name": "task_type_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Task Type Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolLayoutSetRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/query/describe": {
      "post": {
        "tags": [
          "query"
        ],
        "summary": "Describe Query",
        "description": "Say what one statement would return, without running it.\n\nCosts a plan and no rows, so a builder may ask as often as it likes: a\nplug-in it reads is described from its declaration, not called.",
        "operationId": "describe_query",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QueryRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueryShapeResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/query": {
      "post": {
        "tags": [
          "query"
        ],
        "summary": "Run Query",
        "description": "Read one statement and return its rows.\n\nOne that calls a plug-in takes write access to ``subject`` and reads in\nits initiative, before any plug-in is called.",
        "operationId": "run_query",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QueryRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueryResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/widget-data/{reference}": {
      "get": {
        "tags": [
          "query"
        ],
        "summary": "Load Widget Data",
        "description": "Answer every widget saved on one thing at once: a dashboard, or the\ndocument, wiki page, post or spreadsheet ``reference`` names\n(``file:12``).\n\nAnswered as a dashboard's canvas is, from what the thing saves: never\nfrom anything the request says. An item's widgets read as the reader, in\nits initiative.",
        "operationId": "load_widget_data",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "reference",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Reference"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardDataResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/widget-summary/{reference}": {
      "get": {
        "tags": [
          "query"
        ],
        "summary": "Load Widget Summary",
        "description": "A summary of the thing ``reference`` names, as its reader may read\nit, and the sections there are to pick from: what a summary widget shows\nbefore it is saved anywhere. Its section is checked as a saved one is.",
        "operationId": "load_widget_summary",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "reference",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Reference"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "heading",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Heading"
            }
          },
          {
            "name": "occurrence",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 1,
              "title": "Occurrence"
            }
          },
          {
            "name": "sheet",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Sheet"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardWidgetData"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/query/build": {
      "post": {
        "tags": [
          "query"
        ],
        "summary": "Build Query",
        "description": "Write the statement a builder described, and say what it would return.\n\nTwo answers in one call because the builder needs both on every edit: the\nSQL to store, and the columns to offer its slot pickers. Describing costs a\nplan and no rows, so asking on each click is affordable.",
        "operationId": "build_query",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QueryBuildRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueryBuildResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/fields/{dataset}": {
      "get": {
        "tags": [
          "fields"
        ],
        "summary": "Read Field Catalog",
        "description": "The fields *dataset* offers, in the order a client lists them: what its\nlist's ``conditions`` take, each with the operators it is compared by.\n\n``dataset`` is any dataset of the community's tool set; another name is\nnot found.",
        "operationId": "read_field_catalog",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "dataset",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Dataset"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FieldCatalogResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": {
          "by": "dataset",
          "scopes": {
            "calendar_events": "calendars:read",
            "calendars": "calendars:read",
            "collections": "files:read",
            "contacts": "contacts:read",
            "dashboards": "dashboards:read",
            "files": "files:read",
            "form_responses": "forms:read",
            "forms": "forms:read",
            "posts": "posts:read",
            "projects": "projects:read",
            "tasks": "projects:read",
            "wiki_pages": "wikis:read",
            "wikis": "wikis:read"
          }
        }
      }
    },
    "/api/v1/c/{community_id}/query/vocabulary": {
      "get": {
        "tags": [
          "fields"
        ],
        "summary": "Read Query Vocabulary",
        "description": "What a statement in this community may name and call.\n\nBoth read from the validator's own allow-lists, so a word offered here is\none it accepts. Beside a dataset's fields (above), this is everything a\nclient needs to complete a statement somebody is writing. ``sheet`` is\namong the functions: it is called in ``FROM``, to read a spreadsheet.",
        "operationId": "read_query_vocabulary",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueryVocabulary"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/tasks/": {
      "get": {
        "tags": [
          "tasks"
        ],
        "summary": "List Tasks",
        "operationId": "list_tasks",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "conditions",
            "in": "query",
            "required": false,
            "description": "JSON list of filter conditions, AND-ed together. Each object: {\"field\": \"<column>\", \"op\": \"<operator>\", \"value\": <val>}. Any Task column is valid plus virtual fields: status_category, assignee_ids, tag_ids, initiative_ids. An object with a \"conditions\" key is an AND/OR group: {\"logic\": \"or\", \"conditions\": [...]}.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/FilterCondition"
                      },
                      {
                        "$ref": "#/components/schemas/FilterGroup"
                      }
                    ]
                  }
                }
              }
            }
          },
          {
            "name": "include_archived",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Include archived tasks",
              "default": false,
              "title": "Include Archived"
            },
            "description": "Include archived tasks"
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 0,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "sorting",
            "in": "query",
            "required": false,
            "description": "JSON list of sort fields: [{\"field\": \"due_date\", \"dir\": \"desc\"}]",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SortField"
                  }
                }
              }
            }
          },
          {
            "name": "tz",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "IANA timezone name (e.g. America/Los_Angeles) for date_group calculation",
              "title": "Tz"
            },
            "description": "IANA timezone name (e.g. America/Los_Angeles) for date_group calculation"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "projects:read"
      },
      "post": {
        "tags": [
          "tasks"
        ],
        "summary": "Create Task",
        "operationId": "create_task",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "projects:write"
      }
    },
    "/api/v1/c/{community_id}/tasks/groups": {
      "get": {
        "tags": [
          "tasks"
        ],
        "summary": "List Task Groups",
        "description": "The groups of the task list these filters answer with, in the order the\nlist shows them, and the groups each task is in.",
        "operationId": "list_task_groups",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "group_by",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64,
              "description": "The field the list is grouped by, as the field catalog's ``groupings`` name it, or ``property:<id>``",
              "title": "Group By"
            },
            "description": "The field the list is grouped by, as the field catalog's ``groupings`` name it, or ``property:<id>``"
          },
          {
            "name": "bucket",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/DateBucket"
                },
                {
                  "type": "null"
                }
              ],
              "description": "For a date: the bucket of the calendar it groups by",
              "title": "Bucket"
            },
            "description": "For a date: the bucket of the calendar it groups by"
          },
          {
            "name": "conditions",
            "in": "query",
            "required": false,
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/FilterCondition"
                      },
                      {
                        "$ref": "#/components/schemas/FilterGroup"
                      }
                    ]
                  }
                }
              }
            }
          },
          {
            "name": "include_archived",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Include Archived"
            }
          },
          {
            "name": "tz",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Tz"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GroupsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "projects:read"
      }
    },
    "/api/v1/c/{community_id}/tasks/column-limits": {
      "get": {
        "tags": [
          "tasks"
        ],
        "summary": "List Column Limits",
        "description": "Each limited board column of the named projects the reader can open:\nits limit, and how many open tasks it holds. A project with no limits, or\none the reader can't open, has none.",
        "operationId": "list_column_limits",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "project_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "integer"
              },
              "minItems": 1,
              "maxItems": 100,
              "title": "Project Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ColumnFillRead"
                  },
                  "title": "Response List Column Limits"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "projects:read"
      }
    },
    "/api/v1/c/{community_id}/tasks/{task_id}": {
      "get": {
        "tags": [
          "tasks"
        ],
        "summary": "Read Task",
        "operationId": "read_task",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Task Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "include_deleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Also return the resource if it is in the trash. For reading a resource back after a deleted event \u2014 the row still exists until retention purges it, and access is checked exactly as for a live one.",
              "default": false,
              "title": "Include Deleted"
            },
            "description": "Also return the resource if it is in the trash. For reading a resource back after a deleted event \u2014 the row still exists until retention purges it, and access is checked exactly as for a live one."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "projects:read"
      },
      "patch": {
        "tags": [
          "tasks"
        ],
        "summary": "Update Task",
        "operationId": "update_task",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Task Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "projects:write"
      },
      "delete": {
        "tags": [
          "tasks"
        ],
        "summary": "Delete Task",
        "description": "Trash the task. For a repeating one, ``this`` skips it so the series\ngoes on (trashing it when the series has no more), ``following`` (the\ndefault) trashes it and so ends the repeat, and ``all`` trashes every\nother task of the series too.",
        "operationId": "delete_task",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Task Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "scope",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "this",
                    "following",
                    "all"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Scope"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/tasks/{task_id}/case": {
      "get": {
        "tags": [
          "tasks"
        ],
        "summary": "Read Task Case",
        "description": "How an operations case was filed: its stream, who filed it, and what\nthe stream allows with them. 404 for a task no stream opened.",
        "operationId": "read_task_case",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Task Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskCaseRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/tasks/{task_id}/case/take": {
      "post": {
        "tags": [
          "tasks"
        ],
        "summary": "Take Task Case",
        "description": "Take an operations case: the caller is assigned beside whoever already\nhas it, and a case still waiting to be picked up moves to the status its\nstream calls active. 404 for a task no stream opened.",
        "operationId": "take_task_case",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Task Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/tasks/{task_id}/idea": {
      "put": {
        "tags": [
          "tasks"
        ],
        "summary": "Join Case To Idea",
        "description": "Join a feedback case to an idea on the Ideas board, in place of any\nother: whoever sent it gets a vote, and hears when the idea moves. 404 for\na task that is no feedback case, or an idea not on the board.",
        "operationId": "join_case_to_idea",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Task Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IdeaJoin"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "tasks"
        ],
        "summary": "Unjoin Case From Idea",
        "description": "Take a feedback case off the idea it is joined to. Its sender's vote\nstays.",
        "operationId": "unjoin_case_from_idea",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Task Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/tasks/{task_id}/idea/join-into": {
      "post": {
        "tags": [
          "tasks"
        ],
        "summary": "Join Idea Into Another",
        "description": "Join an idea into another on the Ideas board: its votes and the\nfeedback joined to it move there, and it is archived, its page opening\nthe other. 404 for a task that is not on the board.",
        "operationId": "join_idea_into_another",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Task Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IdeaJoin"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/tasks/{task_id}/move": {
      "post": {
        "tags": [
          "tasks"
        ],
        "summary": "Move Task",
        "operationId": "move_task",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Task Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskMoveRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "projects:write"
      }
    },
    "/api/v1/c/{community_id}/tasks/{task_id}/duplicate": {
      "post": {
        "tags": [
          "tasks"
        ],
        "summary": "Duplicate Task",
        "description": "Copy the task beside itself, at the end of its project, as\n\"<title> (Copy)\", with its assignees, tags, links and properties; its\nchecklist starts unticked.",
        "operationId": "duplicate_task",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Task Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "projects:write"
      }
    },
    "/api/v1/c/{community_id}/tasks/{task_id}/skip": {
      "post": {
        "tags": [
          "tasks"
        ],
        "summary": "Skip Task",
        "description": "Move a repeating task on to its next occurrence without completing it.",
        "operationId": "skip_task",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Task Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "projects:write"
      }
    },
    "/api/v1/c/{community_id}/tasks/reorder": {
      "post": {
        "tags": [
          "tasks"
        ],
        "summary": "Reorder Tasks",
        "operationId": "reorder_tasks",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskReorderRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TaskRead"
                  },
                  "title": "Response Reorder Tasks"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/tasks/archive-done": {
      "post": {
        "tags": [
          "tasks"
        ],
        "summary": "Archive Done Tasks",
        "description": "Archive every live task in a 'done' status of a project, as archiving\neach one would, under one stamp.",
        "operationId": "archive_done_tasks",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "project_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Project to archive done tasks from",
              "title": "Project Id"
            },
            "description": "Project to archive done tasks from"
          },
          {
            "name": "task_status_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Specific done status to archive (optional)",
              "title": "Task Status Id"
            },
            "description": "Specific done status to archive (optional)"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArchiveDoneResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/tasks/{task_id}/checklist/{item_id}": {
      "patch": {
        "tags": [
          "tasks"
        ],
        "summary": "Toggle Checklist Item",
        "description": "Tick or untick one checklist item.\n\nAdding, renaming, reordering and deleting go through ``PATCH /tasks/{id}``\nwith the whole list. A tick gets its own route because it is the write\nseveral people make to the same task at once: it names one item and rewrites\nonly that item, so two ticks on different items both land.",
        "operationId": "toggle_checklist_item",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Task Id"
            }
          },
          {
            "name": "item_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Item Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChecklistItemToggle"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ChecklistItem"
                  },
                  "title": "Response Toggle Checklist Item"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "projects:write"
      }
    },
    "/api/v1/c/{community_id}/tasks/{task_id}/checklist/{item_id}/promote": {
      "post": {
        "tags": [
          "tasks"
        ],
        "summary": "Promote Checklist Item",
        "description": "Make one checklist item a task of its own, part of this one.\n\nThe new task is in the same project, titled with the item's words (in a\ndone column if the item was ticked), and the item leaves the checklist:\nthe task is where the work is tracked from now on. A line that names\npeople or things, or runs past a title's length, keeps its whole words in\nthe new task's description.",
        "operationId": "promote_checklist_item",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Task Id"
            }
          },
          {
            "name": "item_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Item Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "projects:write"
      }
    },
    "/api/v1/c/{community_id}/tasks/{task_id}/ai/checklist": {
      "post": {
        "tags": [
          "tasks"
        ],
        "summary": "Generate Task Checklist",
        "description": "Suggest checklist steps for a task.",
        "operationId": "generate_task_checklist",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Task Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenerateChecklistResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/tasks/{task_id}/ai/description": {
      "post": {
        "tags": [
          "tasks"
        ],
        "summary": "Generate Task Description",
        "description": "Generate AI-powered description for a task.",
        "operationId": "generate_task_description",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Task Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenerateDescriptionResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/initiatives/{initiative_id}/reports": {
      "get": {
        "tags": [
          "moderation"
        ],
        "summary": "List Reports",
        "description": "This initiative's reports.\n\nNo capability check here: the tables carry RLS that admits exactly the\npeople who already see everything in the initiative, plus the guild admin.\nA reader who is not one of them gets an empty list, the same way they get\n404 for any content they are not in.",
        "operationId": "list_reports",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "initiative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "settled",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Settled"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModerationReportList"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/reports/{report_id}/settle": {
      "post": {
        "tags": [
          "moderation"
        ],
        "summary": "Settle Report",
        "description": "Settle a report. Every outcome closes it.\n\n``content_removed`` takes the reported thing down, and ``member_warned``\ntells whoever wrote it ``message``; both are written to the moderation\nlog. ``escalated`` opens a platform case carrying the references \u2014 the\none crossing between a community's reports and the operator's, in one\ndirection. ``held`` does the same and holds the reported thing where it\nis, out of the whole community's sight, until the platform releases it;\n``hold`` says why.",
        "operationId": "settle_report",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "report_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Report Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReportSettle"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModerationReportRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/initiatives/{initiative_id}/sharing": {
      "get": {
        "tags": [
          "moderation"
        ],
        "summary": "Read Initiative Sharing",
        "description": "Who can reach what, across this initiative.\n\nGated here rather than by the tables: ``resource_grants`` is scoped to\ninitiative *membership*, which is right for reading the grants on a\nresource you can already reach and too wide for an aggregate over every\nresource in the initiative. The standing required is the one the moderation\ntables admit \u2014 \"Full access\", or guild admin \u2014 read from the standing the\nseam computed for this request.",
        "operationId": "read_initiative_sharing",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "initiative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InitiativeSharingRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/moderation/acts": {
      "post": {
        "tags": [
          "moderation"
        ],
        "summary": "Moderate",
        "description": "Act on something as a moderator of its initiative: ``remove`` it (a\ncomment to a tombstone, anything else to the trash), lock or unlock its\nthread, clear its reactions, or ``warn`` whoever wrote it. Written to the\ninitiative's moderation log.",
        "operationId": "moderate",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ModerationActCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModerationActionRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/moderation/acts/{action_id}/restore": {
      "post": {
        "tags": [
          "moderation"
        ],
        "summary": "Restore Removal",
        "description": "Put back what removal ``action_id`` took down: a comment's words where\nthey were, anything else out of the trash.",
        "operationId": "restore_removal",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "action_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Action Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ModerationRestore"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModerationActionRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/initiatives/{initiative_id}/moderation/log": {
      "get": {
        "tags": [
          "moderation"
        ],
        "summary": "Read Moderation Log",
        "description": "What this initiative's moderators have done, newest first.\n\nRead through the log's own row policy, which admits the initiative's\nmoderation set: anyone else is told so rather than shown an empty log.",
        "operationId": "read_moderation_log",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "initiative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModerationLogList"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/holds": {
      "post": {
        "tags": [
          "holds"
        ],
        "summary": "Place Hold",
        "description": "Hold something for the platform. From now on it reads as absent to the\nwhole community, whoever held it included.",
        "operationId": "place_hold",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HoldCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HoldPlaced"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "holds"
        ],
        "summary": "List Holds",
        "description": "The holds in the community, newest first, for a ``moderate``\ngrantee. Anyone else is refused rather than shown none, so a reader\nwithout the grant is told so rather than told nothing is held.",
        "operationId": "list_holds",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "case_task_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Case Task Id"
            }
          },
          {
            "name": "open_only",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Open Only"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContentHoldRead"
                  },
                  "title": "Response List Holds"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/holds/{hold_id}/release": {
      "post": {
        "tags": [
          "holds"
        ],
        "summary": "Release Hold",
        "description": "End a hold: ``restore`` it, ``remove`` it \u2014 through the community's\nmoderation log, a comment to a tombstone and anything else to the trash \u2014\nor ``purge`` it. The platform's alone, under a ``moderate`` grant.",
        "operationId": "release_hold",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "hold_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Hold Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HoldReleaseCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentHoldRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/comments/": {
      "post": {
        "tags": [
          "comments"
        ],
        "summary": "Create Comment",
        "operationId": "create_comment",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommentCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommentRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "comments:write"
      },
      "get": {
        "tags": [
          "comments"
        ],
        "summary": "List Comments",
        "description": "One page of the thread on one subject: ``limit`` conversations, newest\nfirst, each with every reply under it. Follow ``next_cursor`` for older\nconversations. ``audience`` ``editors`` reads the conversations on the\ndocument's suggestions instead, each naming its suggestion: its editors'\nalone.",
        "operationId": "list_comments",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "subject_type",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Subject Type"
            }
          },
          {
            "name": "subject_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "title": "Subject Id"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Limit"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "name": "audience",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "members",
                "editors"
              ],
              "type": "string",
              "default": "members",
              "title": "Audience"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommentListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "comments:read"
      }
    },
    "/api/v1/c/{community_id}/comments/recent": {
      "get": {
        "tags": [
          "comments"
        ],
        "summary": "Recent Comments",
        "description": "Return the most recent comments across the guild.\n\nOnly returns comments on parents the current user has DAC permission to\nview (direct user permission or role-based). Initiative-level filtering is\nhandled by RLS on the joined parent tables.",
        "operationId": "recent_comments",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 10,
              "title": "Limit"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RecentActivityEntry"
                  },
                  "title": "Response Recent Comments"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/comments/{comment_id}": {
      "get": {
        "tags": [
          "comments"
        ],
        "summary": "Read Comment",
        "description": "One comment by id \u2014 the read-back for a ``comments.*`` event.",
        "operationId": "read_comment",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "comment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Comment Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "include_deleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Also return the resource if it is in the trash. For reading a resource back after a deleted event \u2014 the row still exists until retention purges it, and access is checked exactly as for a live one.",
              "default": false,
              "title": "Include Deleted"
            },
            "description": "Also return the resource if it is in the trash. For reading a resource back after a deleted event \u2014 the row still exists until retention purges it, and access is checked exactly as for a live one."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommentRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "comments:read"
      },
      "patch": {
        "tags": [
          "comments"
        ],
        "summary": "Update Comment",
        "description": "Update a comment. Only the original author can edit.",
        "operationId": "update_comment",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "comment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Comment Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommentUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommentRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "comments"
        ],
        "summary": "Delete Comment",
        "operationId": "delete_comment",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "comment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Comment Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/activity/": {
      "get": {
        "tags": [
          "activity"
        ],
        "summary": "Read Activity",
        "description": "What people changed lately in what the reader can open, one entry per\nitem, ordered for the reader.",
        "operationId": "read_activity",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "view",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/FeedView",
              "default": "all"
            }
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Initiative Id"
            }
          },
          {
            "name": "tool",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/Tool"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Tool"
            }
          },
          {
            "name": "tool_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Tool Id"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 1,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityFeedPage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/activity/catch-up": {
      "post": {
        "tags": [
          "activity"
        ],
        "summary": "Catch Up",
        "description": "What changed that the reader can see since they were last here, in the\ncommunity or in one tool, streamed as it is written.",
        "operationId": "catch_up",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CatchUpRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/jsonl": {
                "schema": {
                  "type": "string",
                  "$ref": "#/components/schemas/AIStreamEvent"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/reactions/suggested": {
      "get": {
        "tags": [
          "reactions"
        ],
        "summary": "Suggested Reactions",
        "description": "The emoji every reaction picker offers first.\n\nServed rather than hard-coded in the client so the set is one decision for\nthe whole product \u2014 the same row appears on every surface, for everyone,\ninstead of whatever each browser happened to pick last. The list itself is\nthe same for every guild; the dependencies are the auth and path gates\nevery route under here carries.",
        "operationId": "suggested_reactions",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "title": "Response Suggested Reactions"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/reactions/{target_type}/{target_id}": {
      "put": {
        "tags": [
          "reactions"
        ],
        "summary": "Toggle Reaction",
        "description": "Add this emoji, or take it back if it is already yours.\n\nA toggle rather than separate add/remove routes: the client already knows\nwhether the chip is pressed, and one idempotent-per-intent call removes the\nrace where a double tap leaves a reaction it meant to clear.",
        "operationId": "toggle_reaction",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "target_type",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ReactionTarget"
            }
          },
          {
            "name": "target_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Target Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReactionToggle"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReactionSummary"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/settings/ai/connections": {
      "get": {
        "tags": [
          "ai-settings"
        ],
        "summary": "List Community Connections",
        "operationId": "list_community_connections",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AIConnectionResponse"
                  },
                  "title": "Response List Community Connections"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "ai-settings"
        ],
        "summary": "Create Community Connection",
        "operationId": "create_community_connection",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AIConnectionCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AIConnectionResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/settings/ai/connections/{connection_id}": {
      "put": {
        "tags": [
          "ai-settings"
        ],
        "summary": "Update Community Connection",
        "operationId": "update_community_connection",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Connection Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AIConnectionUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AIConnectionResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "ai-settings"
        ],
        "summary": "Delete Community Connection",
        "operationId": "delete_community_connection",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Connection Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/settings/ai/connections/{connection_id}/test": {
      "post": {
        "tags": [
          "ai-settings"
        ],
        "summary": "Test Community Connection",
        "operationId": "test_community_connection",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Connection Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AIConnectionTestResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/settings/ai/connections/{connection_id}/models": {
      "post": {
        "tags": [
          "ai-settings"
        ],
        "summary": "Fetch Community Connection Models",
        "operationId": "fetch_community_connection_models",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Connection Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AIModelsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/settings/ai/resolved": {
      "get": {
        "tags": [
          "ai-settings"
        ],
        "summary": "Get Resolved Ai Settings",
        "description": "Resolved (effective) AI settings for the member, without the API key.",
        "operationId": "get_resolved_ai_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResolvedAISettingsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/ai/write": {
      "post": {
        "tags": [
          "ai"
        ],
        "summary": "Write With Ai",
        "description": "Writing help for a selection in a document, streamed as it is\nwritten: rewritten, shortened, corrected, translated, or written on from.",
        "operationId": "write_with_ai",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AIWriteRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/jsonl": {
                "schema": {
                  "type": "string",
                  "$ref": "#/components/schemas/AIStreamEvent"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/ai/query": {
      "post": {
        "tags": [
          "ai"
        ],
        "summary": "Write Query With Ai",
        "description": "A dashboard widget's statement, written from what it should show and\nchecked as the widget's own check would check it.",
        "operationId": "write_query_with_ai",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AIQueryRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AIQueryResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/initiatives/pins": {
      "get": {
        "tags": [
          "initiatives"
        ],
        "summary": "List Initiative Pins",
        "description": "The pins the caller can read, of one initiative or of every initiative\nthey read: each tool's in the order the caller keeps its list in.",
        "operationId": "list_initiative_pins",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Initiative Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InitiativePinRead"
                  },
                  "title": "Response List Initiative Pins"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/initiatives/{initiative_id}/pins": {
      "put": {
        "tags": [
          "initiatives"
        ],
        "summary": "Set Initiative Pins",
        "description": "Make the listed tools what the initiative pins. A pin the caller cannot\nread is left as it is.",
        "operationId": "set_initiative_pins",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "initiative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InitiativePinsWrite"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InitiativePinRead"
                  },
                  "title": "Response Set Initiative Pins"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/initiatives/{initiative_id}/pins/{kind}/{entity_id}": {
      "put": {
        "tags": [
          "initiatives"
        ],
        "summary": "Pin Tool",
        "description": "Pin one of the initiative's tools. Pinning one already pinned changes\nnothing.",
        "operationId": "pin_tool",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "initiative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "entity_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Entity Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InitiativePinRead"
                  },
                  "title": "Response Pin Tool"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "initiatives"
        ],
        "summary": "Unpin Tool",
        "description": "Unpin one of the initiative's tools. Unpinning one not pinned changes\nnothing.",
        "operationId": "unpin_tool",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "initiative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "entity_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Entity Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InitiativePinRead"
                  },
                  "title": "Response Unpin Tool"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/initiatives/": {
      "get": {
        "tags": [
          "initiatives"
        ],
        "summary": "List Initiatives",
        "description": "The initiatives the caller belongs to, or \u2014 for a guild admin asking for\n``scope=community`` \u2014 every initiative in the guild, which the admin rung's\nreach into all content already reads.\n\nThe default is the caller's own workspace: what the sidebar and the\ninitiative pickers show. A guild admin's authority over their whole guild is\nunchanged; it simply no longer decides what appears in their navigation.\nThey bring an initiative into it by taking the project manager role from the\nguild-settings initiative table, which is also what ``scope=community`` feeds.",
        "operationId": "list_initiatives",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "scope",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/InitiativeListScope",
              "default": "member"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InitiativeRead"
                  },
                  "title": "Response List Initiatives"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "initiatives:read"
      },
      "post": {
        "tags": [
          "initiatives"
        ],
        "summary": "Create Initiative",
        "operationId": "create_initiative",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InitiativeCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InitiativeRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/initiatives/directory": {
      "get": {
        "tags": [
          "initiatives"
        ],
        "summary": "List Initiative Directory",
        "description": "Initiatives in this guild that any member may discover and join.\n\nOpen to every guild member \u2014 it lists only what each initiative published\nabout itself (name, description, colour, roster size), never its content.\nInitiatives whose policy is ``private`` are listed only to their own\nmembers, guild admins included: an admin's authority over the guild is\nunchanged, but the front page shows what they are in and what is on offer,\nread the same way for everyone. ``/initiatives/?scope=community`` is the\nwhole-guild listing, and guild settings is where it is managed.\n\nDeclared before ``/{initiative_id}`` so the literal path wins the match.",
        "operationId": "list_initiative_directory",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InitiativeDirectoryEntry"
                  },
                  "title": "Response List Initiative Directory"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/initiatives/defaults": {
      "get": {
        "tags": [
          "initiatives"
        ],
        "summary": "Get Initiative Defaults",
        "description": "What the community sets for every initiative in it: each initiative's\nmanagers see these as set, and may not change them.\n\nA community admin, who sets them, also gets which live initiatives have\neach one on of their own. Declared before ``/{initiative_id}`` so the\nliteral path wins the match.",
        "operationId": "get_initiative_defaults",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InitiativeDefaultsRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "initiatives"
        ],
        "summary": "Update Initiative Defaults",
        "description": "Set what every initiative in the community starts from and keeps. The\ncommunity's admins only. A tool's switch or a member permission set here\nis written to every initiative at once, archived and trashed ones too.",
        "operationId": "update_initiative_defaults",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InitiativeDefaultsUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InitiativeDefaultsRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/initiatives/{initiative_id}/join": {
      "post": {
        "tags": [
          "initiatives"
        ],
        "summary": "Join Initiative",
        "description": "Join an ``open`` initiative as yourself, with the built-in member role.\n\nIdempotent: already being a member is a success, not a conflict. Any other\njoin policy answers 403 \u2014 the same answer for ``private`` and ``request``,\nso it says only \"not by this route\".\n\nA guild admin walks in whatever the policy says, and on the manager role:\nthe queue exists to exercise an authority they already hold, and staffing\nthemselves onto an initiative is how they bring it into their own\nnavigation. It is the same act as ticking themselves in guild settings.",
        "operationId": "join_initiative",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "initiative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InitiativeRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/initiatives/{initiative_id}/join-requests": {
      "post": {
        "tags": [
          "initiatives"
        ],
        "summary": "Create Join Request",
        "description": "Knock on a ``request`` initiative and wait for a manager to answer.\n\nAny other join policy answers 403 \u2014 the same answer for ``private`` and\n``open`` alike, so it says only \"not by this route\" and a private initiative\nstays exactly as hidden as it was.\n\nBeing refused before does not bar asking again: only a *pending* request is\nunique, and the refusals stay on file so the manager reading the queue can\nsee the repeat.",
        "operationId": "create_join_request",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "initiative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InitiativeJoinRequestCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InitiativeJoinRequestRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "initiatives"
        ],
        "summary": "List Join Requests",
        "description": "The join-request queue for one initiative.\n\nFor whoever answers it, matching who may answer it; a plain member of the\ninitiative has no more business reading who asked to get in than a\nnon-member does.",
        "operationId": "list_join_requests",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "initiative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/JoinRequestStatus"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Narrow the queue to one status. Omit for the pending queue \u2014 the rows that are still open to an answer.",
              "title": "Status"
            },
            "description": "Narrow the queue to one status. Omit for the pending queue \u2014 the rows that are still open to an answer."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InitiativeJoinRequestRead"
                  },
                  "title": "Response List Join Requests"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/initiatives/{initiative_id}/join-requests/{request_id}/approve": {
      "post": {
        "tags": [
          "initiatives"
        ],
        "summary": "Approve Join Request",
        "description": "Let the requester in, with the built-in ``member`` role.\n\nThe membership row is the one every join path produces, so the requester's\naccess flips through ``initiative_access`` with no policy change. Someone who\nbecame a member by another route while the request waited is absorbed: the\nrow is resolved and the call succeeds.",
        "operationId": "approve_join_request",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "initiative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "request_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Request Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InitiativeJoinRequestRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/initiatives/{initiative_id}/join-requests/{request_id}/deny": {
      "post": {
        "tags": [
          "initiatives"
        ],
        "summary": "Deny Join Request",
        "description": "Turn the request down. No membership row, so nothing about what the\nrequester can see changes; the row stays as history, and they may ask\nagain.",
        "operationId": "deny_join_request",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "initiative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "request_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Request Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InitiativeJoinRequestRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/initiatives/{initiative_id}": {
      "get": {
        "tags": [
          "initiatives"
        ],
        "summary": "Get Initiative",
        "operationId": "get_initiative",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "initiative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "include_deleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Also return the resource if it is in the trash. For reading a resource back after a deleted event \u2014 the row still exists until retention purges it, and access is checked exactly as for a live one.",
              "default": false,
              "title": "Include Deleted"
            },
            "description": "Also return the resource if it is in the trash. For reading a resource back after a deleted event \u2014 the row still exists until retention purges it, and access is checked exactly as for a live one."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InitiativeRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "initiatives:read"
      },
      "patch": {
        "tags": [
          "initiatives"
        ],
        "summary": "Update Initiative",
        "operationId": "update_initiative",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "initiative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InitiativeUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InitiativeRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "initiatives"
        ],
        "summary": "Delete Initiative",
        "description": "Soft-delete an initiative. Cascades the same deleted_at to its\nprojects, files and calendar events; their descendants (tasks, comments)\nfollow recursively. Restoring the initiative resurfaces everything that\nwas cascaded together.",
        "operationId": "delete_initiative",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "initiative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/initiatives/{initiative_id}/roles": {
      "get": {
        "tags": [
          "initiatives"
        ],
        "summary": "List Initiative Roles",
        "description": "List all roles for an initiative with their permissions.",
        "operationId": "list_initiative_roles",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "initiative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InitiativeRoleRead"
                  },
                  "title": "Response List Initiative Roles"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "initiatives"
        ],
        "summary": "Create Initiative Role",
        "description": "Create a new custom role for an initiative.",
        "operationId": "create_initiative_role",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "initiative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InitiativeRoleCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InitiativeRoleRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/initiatives/{initiative_id}/roles/{role_id}": {
      "patch": {
        "tags": [
          "initiatives"
        ],
        "summary": "Update Initiative Role",
        "description": "Update a role's display name and/or permissions.\n\nNote: the built-ins that already hold every permission (moderator, project\nmanager) cannot have theirs changed, to prevent lockouts.",
        "operationId": "update_initiative_role",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "initiative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "role_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Role Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InitiativeRoleUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InitiativeRoleRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "initiatives"
        ],
        "summary": "Delete Initiative Role",
        "description": "Delete a custom role. Built-in roles cannot be deleted.",
        "operationId": "delete_initiative_role",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "initiative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "role_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Role Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/initiatives/{initiative_id}/members": {
      "get": {
        "tags": [
          "initiatives"
        ],
        "summary": "Get Initiative Members",
        "description": "One page of an initiative's roster, each member with their role \u2014 the\ninitiative's members settings and the moderation view. A picker wants\n:func:`search_initiative_members` instead.",
        "operationId": "get_initiative_members",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "initiative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Case-insensitive substring match on the member's name.",
              "title": "Search"
            },
            "description": "Case-insensitive substring match on the member's name."
          },
          {
            "name": "is_manager",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only the members whose role is (or is not) a manager role.",
              "title": "Is Manager"
            },
            "description": "Only the members whose role is (or is not) a manager role."
          },
          {
            "name": "online",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Only the members who appear online, idle or busy right now.",
              "default": false,
              "title": "Online"
            },
            "description": "Only the members who appear online, idle or busy right now."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InitiativeMemberListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "initiatives"
        ],
        "summary": "Add Initiative Member",
        "description": "Add a member to an initiative or update their role.\n\nAny project manager may bring in any member of the guild, guild admins\nincluded \u2014 an admin simply lands on the manager role their standing already\nimplies, whatever role the invite named.",
        "operationId": "add_initiative_member",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "initiative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InitiativeMemberAdd"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InitiativeRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/initiatives/{initiative_id}/members/search": {
      "get": {
        "tags": [
          "initiatives"
        ],
        "summary": "Search Initiative Members",
        "description": "Slim, searchable, paginated roster of an initiative's members.\n\nSame authorization as :func:`get_initiative_members` (member, guild\nadmin, or PAM/break-glass grantee); the search/id/pagination params are\nadditive filters on the already-RLS-gated query. Returns\n:class:`UserSummary` for typeahead/picker surfaces instead of the roster's\nmember-and-role rows.\n\nPass ``user_id`` one or more times to resolve a known selection (a picker\nrehydrating stored ids into names/avatars) rather than searching.",
        "operationId": "search_initiative_members",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "initiative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Case-insensitive substring match on the member's name.",
              "title": "Search"
            },
            "description": "Case-insensitive substring match on the member's name."
          },
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  },
                  "maxItems": 100
                },
                {
                  "type": "null"
                }
              ],
              "title": "User Id"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 0,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserSummaryListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/initiatives/{initiative_id}/members/{user_id}": {
      "delete": {
        "tags": [
          "initiatives"
        ],
        "summary": "Remove Initiative Member",
        "description": "Remove a member from an initiative. Nothing comes back: a manager who\nleaves a private initiative no longer reads it.",
        "operationId": "remove_initiative_member",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "initiative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "initiatives"
        ],
        "summary": "Update Initiative Member",
        "description": "Update a member's role.",
        "operationId": "update_initiative_member",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "initiative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InitiativeMemberUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InitiativeRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/files/upload": {
      "post": {
        "tags": [
          "files"
        ],
        "summary": "Upload File",
        "description": "Upload a file: sent with the request as ``file``, or sent in pieces\nbefore it as a resumable upload, named by ``upload_id``.",
        "operationId": "upload_file",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_upload_file"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "files:write"
      }
    },
    "/api/v1/c/{community_id}/files/{file_id}/versions": {
      "post": {
        "tags": [
          "files"
        ],
        "summary": "Upload File Version",
        "description": "Upload a new version of an uploaded file, sent as ``file`` or as a\nresumable upload named by ``upload_id``. Requires write access.",
        "operationId": "upload_file_version",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "File Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_upload_file_version"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileVersionRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "files:write"
      },
      "get": {
        "tags": [
          "files"
        ],
        "summary": "List File Versions",
        "description": "List all stored versions of an uploaded file, newest first. Read access.",
        "operationId": "list_file_versions",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "File Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FileVersionRead"
                  },
                  "title": "Response List File Versions"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/files/{file_id}/convert": {
      "post": {
        "tags": [
          "files"
        ],
        "summary": "Convert File",
        "description": "Convert an uploaded file to edit it: it becomes the editor's own type\nits type converts to (``converts_to``), keeping its id, name, sharing,\ntags, comments and links, and its uploaded versions go. Requires write\naccess.",
        "operationId": "convert_file",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "File Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/files/{file_id}/versions/{version_id}/thumbnail": {
      "put": {
        "tags": [
          "files"
        ],
        "summary": "Put Video Thumbnail",
        "description": "Give a video version its thumbnail: a frame the browser drew from it.\nRequires write access. Taken once, for a video version that has none,\nand drawn again on the server like any picture.",
        "operationId": "put_video_thumbnail",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "File Id"
            }
          },
          {
            "name": "version_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Version Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_put_video_thumbnail"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/files/{file_id}/versions/{version_id}": {
      "delete": {
        "tags": [
          "files"
        ],
        "summary": "Delete File Version",
        "description": "Delete a version of an uploaded file. Owner only. Deleting the current\nversion promotes the previous one; deleting the last version is blocked.",
        "operationId": "delete_file_version",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "File Id"
            }
          },
          {
            "name": "version_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Version Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/files/{file_id}": {
      "get": {
        "tags": [
          "files"
        ],
        "summary": "Read File",
        "operationId": "read_file",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "File Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "include_content",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Include the file body. Pass false for the metadata alone \u2014 a file's body is the largest thing this API returns, and a caller reacting to a change (a name, a tag, a property) does not need it. Everything else is unchanged.",
              "default": true,
              "title": "Include Content"
            },
            "description": "Include the file body. Pass false for the metadata alone \u2014 a file's body is the largest thing this API returns, and a caller reacting to a change (a name, a tag, a property) does not need it. Everything else is unchanged."
          },
          {
            "name": "include_deleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Also return the resource if it is in the trash. For reading a resource back after a deleted event \u2014 the row still exists until retention purges it, and access is checked exactly as for a live one.",
              "default": false,
              "title": "Include Deleted"
            },
            "description": "Also return the resource if it is in the trash. For reading a resource back after a deleted event \u2014 the row still exists until retention purges it, and access is checked exactly as for a live one."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "files:read"
      },
      "patch": {
        "tags": [
          "files"
        ],
        "summary": "Update File",
        "operationId": "update_file",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "File Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FileUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "files:write"
      },
      "delete": {
        "tags": [
          "files"
        ],
        "summary": "Delete File",
        "description": "Move it to the trash with everything inside it. Restoring it brings\nall of that back; the trash purges it after the community's retention.\nRequires the delete right on it: its owner, or a guild admin.",
        "operationId": "delete_file",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "File Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/files/{file_id}/mentions": {
      "post": {
        "tags": [
          "files"
        ],
        "summary": "Notify Mentions",
        "description": "Notify users that they were mentioned in a file.",
        "operationId": "notify_mentions",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "File Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_notify_mentions"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/files/{file_id}/ai/summary": {
      "post": {
        "tags": [
          "files"
        ],
        "summary": "Generate Summary",
        "description": "A summary of a file, streamed as it is written.\n\nRequires read access to the file. Only works for files the editor\nwrites (``lexical``).",
        "operationId": "generate_summary",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "File Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/jsonl": {
                "schema": {
                  "type": "string",
                  "$ref": "#/components/schemas/AIStreamEvent"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/files/{file_id}/spreadsheet/import": {
      "post": {
        "tags": [
          "files"
        ],
        "summary": "Import Spreadsheet File",
        "description": "Read a CSV/XLSX file into sheets, for the caller to add to this workbook.\n\nThe file is the permission scope rather than the destination \u2014 nothing\nhere writes to it. The sheets go back to the editor, which adds them to the\nlive document in a single transaction, so the whole import is one thing to\nundo and peers receive it as one change.\n\nParsing is server-side for the same reason rendering is: the workbook\nlibraries are here, and the result goes through the same normalizer a\ncreated spreadsheet does, so an imported sheet is the same kind of object\nas any other.",
        "operationId": "import_spreadsheet_file",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "File Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_import_spreadsheet_file"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpreadsheetImportRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/collections/shapes": {
      "get": {
        "tags": [
          "files"
        ],
        "summary": "List Collection Shapes",
        "description": "The ready-made shapes a new collection can start as, grouped, in the\nreader's language: the lists each shows and opens on, and its metadata.",
        "operationId": "list_collection_shapes",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CollectionShapeGroup"
                  },
                  "title": "Response List Collection Shapes"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "files:read"
      }
    },
    "/api/v1/c/{community_id}/collections/": {
      "get": {
        "tags": [
          "files"
        ],
        "summary": "List Collections",
        "description": "The initiative's collections the reader can see \u2014 those holding a file\nthey can open \u2014 most recently changed first, each with how many of its\nfiles they can see and a cover they can open.",
        "operationId": "list_collections",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "archived",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "true lists what has been archived instead of what is live. Omit for the live list, which is what every other view shows.",
              "title": "Archived"
            },
            "description": "true lists what has been archived instead of what is live. Omit for the live list, which is what every other view shows."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "files:read"
      },
      "post": {
        "tags": [
          "files"
        ],
        "summary": "Create Collection",
        "description": "Make a collection of files. It starts with the files named, each one a\nfile of the initiative the reader can open. Takes the initiative role's\nright to create files. It starts blank, as a ready-made ``shape`` with\nits words in the maker's language, or with the metadata and lists of\n``shape_from``, a collection of the same initiative the maker sees.",
        "operationId": "create_collection",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CollectionCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "files:write"
      }
    },
    "/api/v1/c/{community_id}/collections/{collection_id}": {
      "get": {
        "tags": [
          "files"
        ],
        "summary": "Read Collection",
        "operationId": "read_collection",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "collection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Collection Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "files:read"
      },
      "patch": {
        "tags": [
          "files"
        ],
        "summary": "Update Collection",
        "description": "Rename, describe, tag, set the cover of, or switch the comments of a\ncollection.",
        "operationId": "update_collection",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "collection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Collection Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CollectionUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "files:write"
      },
      "delete": {
        "tags": [
          "files"
        ],
        "summary": "Delete Collection",
        "description": "Send a collection to the trash. Its files stay where they are.",
        "operationId": "delete_collection",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "collection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Collection Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "files:write"
      }
    },
    "/api/v1/c/{community_id}/collections/{collection_id}/files/{file_id}/metadata": {
      "get": {
        "tags": [
          "files"
        ],
        "summary": "Get Collection File Metadata",
        "description": "One file's values of the collection's metadata, for a file in the\ncollection the reader can open.",
        "operationId": "get_collection_file_metadata",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "collection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Collection Id"
            }
          },
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "File Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PropertySummary"
                  },
                  "title": "Response Get Collection File Metadata"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "files:read"
      },
      "put": {
        "tags": [
          "files"
        ],
        "summary": "Set Collection File Metadata",
        "description": "Replace one file's values of the collection's metadata, or with\n``merge`` write only the ones named, as ``PUT /properties`` does for a\nproperty. The file is one in the collection the reader can open, and the\nvalues are the collection's: they take the right to change the\ncollection, not to edit the file. An empty list clears them all.",
        "operationId": "set_collection_file_metadata",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "collection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Collection Id"
            }
          },
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "File Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PropertyValuesSetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PropertySummary"
                  },
                  "title": "Response Set Collection File Metadata"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "files:write"
      }
    },
    "/api/v1/c/{community_id}/collections/{collection_id}/files/metadata": {
      "put": {
        "tags": [
          "files"
        ],
        "summary": "Set Collection Metadata In Bulk",
        "description": "What ``PUT /collections/{collection_id}/files/{file_id}/metadata`` does,\nto each of many files in the collection: every one of them, or none when\nany one is refused. With ``merge``, each keeps the values the request\ndoes not name.",
        "operationId": "set_collection_metadata_in_bulk",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "collection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Collection Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CollectionMetadataBulkSetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "files:write"
      }
    },
    "/api/v1/c/{community_id}/attachments/": {
      "post": {
        "tags": [
          "attachments"
        ],
        "summary": "Upload Attachment",
        "operationId": "upload_attachment",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_upload_attachment"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AttachmentUploadResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/attachments/pasted": {
      "post": {
        "tags": [
          "attachments"
        ],
        "summary": "Upload Pasted Image",
        "description": "Store a picture pasted into markdown \u2014 a task's description, a comment.\n\nThe picture belongs to the text it is written into: taking it back out, or\npurging what it is in, deletes it once nothing else shows it.",
        "operationId": "upload_pasted_image",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_upload_pasted_image"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AttachmentUploadResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/attachments/pasted/{filename}": {
      "delete": {
        "tags": [
          "attachments"
        ],
        "summary": "Discard Pasted Image",
        "description": "Discard a picture that was pasted and never saved.\n\nAsked by the page that pasted it, as it is left. A picture something saved\nshows, or that somebody else uploaded, stays \u2014 and says so no differently,\nso the answer is the same whatever the name.",
        "operationId": "discard_pasted_image",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "filename",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Filename"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/share-requests/standing": {
      "get": {
        "tags": [
          "sharing"
        ],
        "summary": "Read Share Standing",
        "description": "Where the reader stands on one thing \u2014 a tool's row, or a task, an\nevent or a wiki page, answered for the tool above it: the rung they hold,\nand what they asked for that is unanswered. 404 for something they can\nneither open nor know is there \u2014 the same answer as for nothing at all.",
        "operationId": "read_share_standing",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "kind",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/SearchEntityType"
            }
          },
          {
            "name": "entity_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Entity Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareStanding"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/share-requests/": {
      "post": {
        "tags": [
          "sharing"
        ],
        "summary": "Create Share Request",
        "description": "Ask for one thing, or for the files of a collection or a wiki the\nreader can't open, and tell whoever answers.",
        "operationId": "create_share_request",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShareRequestCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareRequestBatch"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "sharing"
        ],
        "summary": "List Share Requests",
        "description": "The requests waiting on the reader's answer: from one ask, or on one\nthing, oldest first.",
        "operationId": "list_share_requests",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "batch_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Batch Id"
            }
          },
          {
            "name": "resource_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/Tool"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Resource Type"
            }
          },
          {
            "name": "resource_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Resource Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ShareRequestRead"
                  },
                  "title": "Response List Share Requests"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/share-requests/answer": {
      "post": {
        "tags": [
          "sharing"
        ],
        "summary": "Answer Share Requests",
        "description": "Say yes or no to requests the reader may answer.",
        "operationId": "answer_share_requests",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShareRequestAnswer"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/sends/": {
      "post": {
        "tags": [
          "sharing"
        ],
        "summary": "Send",
        "description": "Point people in this community at one thing, with a note if there is\none. Whoever can't open it is let in at ``level`` where the sender may\nshare it, or else told it is there and may ask for it \u2014 if they are in its\ninitiative. Anybody outside it refuses the send (404).",
        "operationId": "send",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/data-jobs/": {
      "get": {
        "tags": [
          "data-jobs"
        ],
        "summary": "List Data Jobs",
        "description": "The caller's imports and exports, newest first (RLS scopes the rows:\nown rows, or the whole community for its admin).",
        "operationId": "list_data_jobs",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DataJobRead"
                  },
                  "title": "Response List Data Jobs"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/data-jobs/{job_id}": {
      "get": {
        "tags": [
          "data-jobs"
        ],
        "summary": "Get Data Job",
        "operationId": "get_data_job",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Job Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataJobRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/exports/tasks": {
      "get": {
        "tags": [
          "exports"
        ],
        "summary": "Export Tasks",
        "description": "Export the task list (the same visibility and filters as ``GET\n/tasks/``) as a formatted file. Small results render inline and return\nthe file directly; large results return ``202`` with a queued job to poll\nand download.",
        "operationId": "export_tasks",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "pdf",
                "csv",
                "xlsx",
                "md"
              ],
              "type": "string",
              "default": "pdf",
              "title": "Format"
            }
          },
          {
            "name": "conditions",
            "in": "query",
            "required": false,
            "description": "Same JSON filter conditions as the task list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/FilterCondition"
                      },
                      {
                        "$ref": "#/components/schemas/FilterGroup"
                      }
                    ]
                  }
                }
              }
            }
          },
          {
            "name": "sorting",
            "in": "query",
            "required": false,
            "description": "Same JSON sort fields as the task list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SortField"
                  }
                }
              }
            }
          },
          {
            "name": "tz",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "IANA timezone name",
              "title": "Tz"
            },
            "description": "IANA timezone name"
          },
          {
            "name": "include_archived",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Include Archived"
            }
          },
          {
            "name": "layout",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "table",
                "checklist",
                "detailed"
              ],
              "type": "string",
              "description": "Report layout. Markdown: a table (default) or a GitHub-style task list (checklist). PDF: the default table, or 'detailed' for a one-task-per-page report with description, checklist and comments. Ignored by csv/xlsx.",
              "default": "table",
              "title": "Layout"
            },
            "description": "Report layout. Markdown: a table (default) or a GitHub-style task list (checklist). PDF: the default table, or 'detailed' for a one-task-per-page report with description, checklist and comments. Ignored by csv/xlsx."
          },
          {
            "name": "group_by",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 64
                },
                {
                  "type": "null"
                }
              ],
              "description": "The field the list is grouped by, as GET /tasks/groups takes it: each task is listed under every group it is in, the groups in the list's order",
              "title": "Group By"
            },
            "description": "The field the list is grouped by, as GET /tasks/groups takes it: each task is listed under every group it is in, the groups in the list's order"
          },
          {
            "name": "bucket",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/DateBucket"
                },
                {
                  "type": "null"
                }
              ],
              "description": "For a date: the bucket of the calendar it groups by",
              "title": "Bucket"
            },
            "description": "For a date: the bucket of the calendar it groups by"
          },
          {
            "name": "hidden_groups",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "maxItems": 200
                },
                {
                  "type": "null"
                }
              ],
              "description": "The keys of the groups the list leaves out",
              "title": "Hidden Groups"
            },
            "description": "The keys of the groups the list leaves out"
          },
          {
            "name": "columns",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "maxLength": 82
                  },
                  "maxItems": 300
                },
                {
                  "type": "null"
                }
              ],
              "description": "The layout fields the list's table shows, in order (``title``, ``dueDate``, ``property:<id>``, ``plugin:<install>:<key>``). The status follows them, as the table draws it.",
              "title": "Columns"
            },
            "description": "The layout fields the list's table shows, in order (``title``, ``dueDate``, ``property:<id>``, ``plugin:<install>:<key>``). The status follows them, as the table draws it."
          },
          {
            "name": "detail",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "maxLength": 82
                  },
                  "maxItems": 300
                },
                {
                  "type": "null"
                }
              ],
              "description": "For the detailed PDF: the task page's parts in its order, its fields and ``status``, ``dates``, ``properties``, ``description``, ``checklist`` and ``comments``",
              "title": "Detail"
            },
            "description": "For the detailed PDF: the task page's parts in its order, its fields and ``status``, ``dates``, ``properties``, ``description``, ``checklist`` and ``comments``"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/exports/events": {
      "get": {
        "tags": [
          "exports"
        ],
        "summary": "Export Events",
        "description": "Export calendar events (the same visibility and filters as ``GET\n/calendar-events/``) as one iCalendar file: every date, unless a range is\ngiven. A repeating event starting in the range travels whole, with its\nchanged occurrences. Small results return the file directly; large results\nreturn ``202`` with a queued job to poll and download.",
        "operationId": "export_events",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "const": "ics",
              "type": "string",
              "default": "ics",
              "title": "Format"
            }
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Initiative Id"
            }
          },
          {
            "name": "scope",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "const": "community",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Scope"
            }
          },
          {
            "name": "calendar_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Calendar Ids"
            }
          },
          {
            "name": "exclude_calendar_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Calendars to leave out, such as hidden ones",
              "title": "Exclude Calendar Ids"
            },
            "description": "Calendars to leave out, such as hidden ones"
          },
          {
            "name": "property_filters",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Same JSON property filters as the event list",
              "title": "Property Filters"
            },
            "description": "Same JSON property filters as the event list"
          },
          {
            "name": "start_after",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Same date range as the event list",
              "title": "Start After"
            },
            "description": "Same date range as the event list"
          },
          {
            "name": "start_before",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Start Before"
            }
          },
          {
            "name": "tz",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 64
                },
                {
                  "type": "null"
                }
              ],
              "description": "IANA timezone for the file name's date",
              "title": "Tz"
            },
            "description": "IANA timezone for the file name's date"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/exports/estimate": {
      "get": {
        "tags": [
          "exports"
        ],
        "summary": "Estimate Aggregate Export",
        "description": "Pre-flight numbers for the export wizard: per-tool entity counts and\nthe uploads footprint (approximate \u2014 embedded document images resolve at\nbuild time), plus the row/byte ceilings so the client can warn before\nsubmitting. Guild scope requires the community's seat.",
        "operationId": "estimate_aggregate_export",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "scope",
            "in": "query",
            "required": true,
            "schema": {
              "enum": [
                "initiative",
                "community"
              ],
              "type": "string",
              "title": "Scope"
            }
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Required when scope=initiative",
              "title": "Initiative Id"
            },
            "description": "Required when scope=initiative"
          },
          {
            "name": "include_uploads",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": true,
              "title": "Include Uploads"
            }
          },
          {
            "name": "filters",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "JSON object of tool\u2192filters narrowing what each tool exports: the tool's own list filters (as its list route takes them, such as ``{\"project\": {\"tag_ids\": [3]}}``), and for calendars an ``events`` date range. ``archived`` omitted exports live and archived rows alike.",
              "title": "Filters"
            },
            "description": "JSON object of tool\u2192filters narrowing what each tool exports: the tool's own list filters (as its list route takes them, such as ``{\"project\": {\"tag_ids\": [3]}}``), and for calendars an ``events`` date range. ``archived`` omitted exports live and archived rows alike."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackupEstimate"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/exports/initiative": {
      "get": {
        "tags": [
          "exports"
        ],
        "summary": "Export Initiative",
        "description": "Export a whole initiative as one zip: ``backup`` bundles every included\ntool's importable JSON envelope plus a ``manifest.json`` (optionally with\nthe upload blobs the files reference); ``report`` renders each tool in\nthe caller's chosen format. Requires reaching the initiative; per-entity\nsharing applies throughout, and projects are included with read access.\nAlways returns ``202`` with a queued job to poll and download.",
        "operationId": "export_initiative",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "backup",
                "report"
              ],
              "type": "string",
              "default": "backup",
              "title": "Mode"
            }
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "JSON object of tool\u2192bool, e.g. {\"project\": true, \"calendar\": false}. Omitted = every tool.",
              "title": "Include"
            },
            "description": "JSON object of tool\u2192bool, e.g. {\"project\": true, \"calendar\": false}. Omitted = every tool."
          },
          {
            "name": "formats",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Report mode: JSON object of tool\u2192format; the file entry is a nested map, e.g. {\"project\": \"pdf\", \"file\": {\"lexical\": \"md\", \"sheet\": \"xlsx\"}}. Unlisted tools use their backup format.",
              "title": "Formats"
            },
            "description": "Report mode: JSON object of tool\u2192format; the file entry is a nested map, e.g. {\"project\": \"pdf\", \"file\": {\"lexical\": \"md\", \"sheet\": \"xlsx\"}}. Unlisted tools use their backup format."
          },
          {
            "name": "include_uploads",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Backup mode: bundle referenced upload blobs",
              "default": true,
              "title": "Include Uploads"
            },
            "description": "Backup mode: bundle referenced upload blobs"
          },
          {
            "name": "filters",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "JSON object of tool\u2192filters narrowing what each tool exports: the tool's own list filters (as its list route takes them, such as ``{\"project\": {\"tag_ids\": [3]}}``), and for calendars an ``events`` date range. ``archived`` omitted exports live and archived rows alike.",
              "title": "Filters"
            },
            "description": "JSON object of tool\u2192filters narrowing what each tool exports: the tool's own list filters (as its list route takes them, such as ``{\"project\": {\"tag_ids\": [3]}}``), and for calendars an ``events`` date range. ``archived`` omitted exports live and archived rows alike."
          },
          {
            "name": "tz",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 64
                },
                {
                  "type": "null"
                }
              ],
              "description": "IANA timezone for report timestamps",
              "title": "Tz"
            },
            "description": "IANA timezone for report timestamps"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/exports/community": {
      "get": {
        "tags": [
          "exports"
        ],
        "summary": "Export Community",
        "description": "Export the whole guild \u2014 every initiative the same way\n``/exports/initiative`` exports one, in a single zip. The community's seat\nonly (held outright; the adapter re-checks at render time so a vacated\nseat fails the job closed), and once per cooldown window. Always returns\n``202`` with a queued job to poll and download.",
        "operationId": "export_community",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "backup",
                "report"
              ],
              "type": "string",
              "default": "backup",
              "title": "Mode"
            }
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "JSON object of tool\u2192bool; omitted = every tool",
              "title": "Include"
            },
            "description": "JSON object of tool\u2192bool; omitted = every tool"
          },
          {
            "name": "formats",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Report mode: JSON object of tool\u2192format (see /exports/initiative)",
              "title": "Formats"
            },
            "description": "Report mode: JSON object of tool\u2192format (see /exports/initiative)"
          },
          {
            "name": "include_uploads",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Backup mode: bundle referenced upload blobs",
              "default": true,
              "title": "Include Uploads"
            },
            "description": "Backup mode: bundle referenced upload blobs"
          },
          {
            "name": "filters",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "JSON object of tool\u2192filters narrowing what each tool exports: the tool's own list filters (as its list route takes them, such as ``{\"project\": {\"tag_ids\": [3]}}``), and for calendars an ``events`` date range. ``archived`` omitted exports live and archived rows alike.",
              "title": "Filters"
            },
            "description": "JSON object of tool\u2192filters narrowing what each tool exports: the tool's own list filters (as its list route takes them, such as ``{\"project\": {\"tag_ids\": [3]}}``), and for calendars an ``events`` date range. ``archived`` omitted exports live and archived rows alike."
          },
          {
            "name": "tz",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 64
                },
                {
                  "type": "null"
                }
              ],
              "description": "IANA timezone for report timestamps",
              "title": "Tz"
            },
            "description": "IANA timezone for report timestamps"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/exports/community/status": {
      "get": {
        "tags": [
          "exports"
        ],
        "summary": "Read Community Export Status",
        "description": "The state of this community's whole-community export, before anybody\nopens the wizard: the last one taken \u2014 who took it, how it ended, and\nwhether its archive is still there \u2014 and when the next one may start.\n\nSeat-only, like the export it describes. Two bounded reads: the newest\n``guild`` job, and the cooldown the create route enforces.",
        "operationId": "read_community_export_status",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityExportStatus"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/exports/jobs/{job_id}/download": {
      "get": {
        "tags": [
          "exports"
        ],
        "summary": "Download Export Artifact",
        "description": "Stream a finished export's artifact. The RLS-gated job lookup and the\ninitiatives the artifact holds are the authorization, asked now rather\nthan when it was rendered; storage is touched only after both pass.",
        "operationId": "download_export_artifact",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Job Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/exports/{tool}": {
      "get": {
        "tags": [
          "exports"
        ],
        "summary": "Export Tool",
        "description": "Export a selection of one tool's entities: a built-in tool's, or an\ninstalled tool plug-in's, by its kind. Each takes the export action on\nit. Small selections return the file inline; large ones return ``202``\nwith a queued job to poll and download.",
        "operationId": "export_tool",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "tool",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Tool"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "What to export: one artifact per id, zipped when there is more than one",
              "title": "Ids"
            },
            "description": "What to export: one artifact per id, zipped when there is more than one"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "csv",
                    "docx",
                    "file",
                    "ics",
                    "json",
                    "md",
                    "pdf",
                    "xlsx"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "One of the tool's export formats (project: json, pdf, csv, xlsx; file: pdf, md, docx, json, csv, xlsx, file; calendar: ics, json; dashboard: json; post: json; wiki: pdf, md, docx, json; contact: json, csv; form: json, csv, xlsx; an installed tool plug-in: json, and csv or xlsx when it has one item table). ``json`` is the importable envelope. A file's formats depend on its type, so it has no default; a calendar defaults to ``ics``, every other tool to ``json``",
              "title": "Format"
            },
            "description": "One of the tool's export formats (project: json, pdf, csv, xlsx; file: pdf, md, docx, json, csv, xlsx, file; calendar: ics, json; dashboard: json; post: json; wiki: pdf, md, docx, json; contact: json, csv; form: json, csv, xlsx; an installed tool plug-in: json, and csv or xlsx when it has one item table). ``json`` is the importable envelope. A file's formats depend on its type, so it has no default; a calendar defaults to ``ics``, every other tool to ``json``"
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Calendars only: with no ids, every calendar the caller may export in this initiative",
              "title": "Initiative Id"
            },
            "description": "Calendars only: with no ids, every calendar the caller may export in this initiative"
          },
          {
            "name": "filters",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "JSON object narrowing the export: the tool's own list filters, and for calendars an ``events`` date range (``{\"events\": {\"start_after\": \u2026, \"start_before\": \u2026}}``)",
              "title": "Filters"
            },
            "description": "JSON object narrowing the export: the tool's own list filters, and for calendars an ``events`` date range (``{\"events\": {\"start_after\": \u2026, \"start_before\": \u2026}}``)"
          },
          {
            "name": "tz",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 64
                },
                {
                  "type": "null"
                }
              ],
              "description": "IANA timezone for report timestamps",
              "title": "Tz"
            },
            "description": "IANA timezone for report timestamps"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/demo/pitch": {
      "get": {
        "tags": [
          "demo"
        ],
        "summary": "Read Demo Pitch",
        "description": "Whether this community is a pitch, and when it was last published:\nthe version visitors get. ``is_pitch`` is false everywhere else.",
        "operationId": "read_demo_pitch",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DemoPitchRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/demo/publish": {
      "post": {
        "tags": [
          "demo"
        ],
        "summary": "Publish Demo Pitch",
        "description": "Publish this pitch: export it, so the copies opened from now on get it\nas it is. For the pitch's admins; 404 for a community that is not a\npitch.",
        "operationId": "publish_demo_pitch",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/imports/envelope": {
      "post": {
        "tags": [
          "imports"
        ],
        "summary": "Import Envelope",
        "description": "Import a previously-exported JSON envelope (any tool \u2014 the envelope's\n``type`` field selects the importer) into the chosen initiative. Requires\nthe tool's create permission there.\n\nSmall envelopes apply immediately and return ``201`` with the result.\nAnything else returns ``202`` with a job: ``queued`` for one that is\nmerely large, or ``staged`` for one quoting people nobody here can place,\nwhose ``plan`` names them and which starts on\n``POST /imports/jobs/{id}/confirm``.",
        "operationId": "import_envelope",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnvelopeImportRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/imports/envelope/archive": {
      "post": {
        "tags": [
          "imports"
        ],
        "summary": "Import Envelope Archive",
        "description": "Import an export that travels as a zip \u2014 a wiki with its files \u2014\ninto the chosen initiative. The zip holds one envelope at its top level and\nthe files it names under ``assets/``; the files are stored first, then the\nenvelope imports exactly as ``POST /imports/envelope`` imports one, with\nthe same responses.",
        "operationId": "import_envelope_archive",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_import_envelope_archive"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/imports/foreign/{source}/preview": {
      "post": {
        "tags": [
          "imports"
        ],
        "summary": "Preview Foreign Import",
        "description": "Say what an uploaded export holds, without keeping any of it.\n\nNothing is written and nothing is staged: the file is read, described,\nand forgotten. The description is what the wizard needs to ask its one\nquestion \u2014 which list, or what to call this \u2014 and the answer comes back\nwith the file itself on the import.\n\nWritable membership, like every other import entry point: this reads\nsomebody's file on the community's behalf, and a community nobody can\nwrite to has nothing to read it for.",
        "operationId": "preview_foreign_import",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "source",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Source"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "text/plain": {
              "schema": {
                "type": "string",
                "title": "Content"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForeignPreview"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/imports/foreign/{source}": {
      "post": {
        "tags": [
          "imports"
        ],
        "summary": "Import Foreign",
        "description": "Import the chosen part of another product's export.\n\nThe file becomes the envelope a project export writes, and from there it\nis an ordinary import: the same ceilings, the same people step, the same\nworker, the same report. Nothing past this point knows which product the\nrows came from.\n\nAnswers exactly as ``/imports/envelope`` does \u2014 201 with the counts when\nit applied in the request, 202 with the job when it did not.",
        "operationId": "import_foreign",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "source",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Source"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ForeignImportRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/imports/contacts/preview": {
      "post": {
        "tags": [
          "imports"
        ],
        "summary": "Preview Contacts Import",
        "description": "Say what a spreadsheet of contacts holds, without keeping any of it:\nits header, how many rows it has, the first few, and what each column\nlooks like it holds. A contacts export's own columns read as what they\nhold, so it comes back in with nothing to choose.",
        "operationId": "preview_contacts_import",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The initiative the contacts go into, whose properties a column headed with one's name fills; none for the community's contacts",
              "title": "Initiative Id"
            },
            "description": "The initiative the contacts go into, whose properties a column headed with one's name fills; none for the community's contacts"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "text/plain": {
              "schema": {
                "type": "string",
                "title": "Content"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactCsvPreview"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/imports/contacts": {
      "post": {
        "tags": [
          "imports"
        ],
        "summary": "Import Contacts",
        "description": "Make a contact of each row of a spreadsheet, its columns read as\n``columns`` says, in an initiative or, with none, the community's\ncontacts. Each is made as ``POST /contacts/`` makes one, and needs what\nthat needs there. A row that does not read as a contact is left out and\nnamed in the result's ``failed_rows``.\n\nAnswers as ``/imports/envelope`` does \u2014 201 with the counts when it\napplied in the request, 202 with the job when it did not.",
        "operationId": "import_contacts",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactCsvImportRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/imports/atlassian/connect": {
      "post": {
        "tags": [
          "imports"
        ],
        "summary": "Connect Atlassian",
        "description": "Prove an Atlassian API token and say what the site holds.\n\nOne request, because the two questions are the same one: the only honest\nproof that a token works is using it, so connecting *is* the first\nlisting. It returns the Jira projects and Confluence spaces the token can\nsee, with rough counts.\n\nNothing is kept. The token is used for the length of this request and\ndropped; the request that actually starts an import carries it again, and\nthat one has a job row to hold it on.\n\nReal membership of a writable guild, like every other import entry point.\nWhich initiative the work lands in is not asked here and not trusted from\nhere \u2014 the target and the create permission for it are resolved on the\nstart, and again by the worker at apply time.",
        "operationId": "connect_atlassian",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AtlassianConnectRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AtlassianConnectResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/imports/atlassian/import": {
      "post": {
        "tags": [
          "imports"
        ],
        "summary": "Start Atlassian Import",
        "description": "Start reading Jira projects and Confluence spaces into an initiative.\n\nOne job for both: projects arrive as projects, each space as a wiki, and\na link between an issue and a page read together is joined when the\nbundle is applied. Carries the same token the connect proved, stored\nencrypted on the job row and cleared the moment that job is over. The job\ncomes back ``queued``; the worker moves it to ``fetching`` while it reads\nthe site, filling ``plan.atlassian`` with counts as it goes, and parks it\nat ``staged`` with the full plan \u2014 the people both products name included\n\u2014 for ``POST /imports/jobs/{id}/confirm``.\n\nThe initiative needs projects switched on for projects, wikis for spaces,\nand the caller needs to be able to create them there. That is checked\nnow, again before the site is read, and again when the bundle is applied.",
        "operationId": "start_atlassian_import",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AtlassianImportRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataJobRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/imports/atlassian/export": {
      "post": {
        "tags": [
          "imports"
        ],
        "summary": "Start Confluence Export Import",
        "description": "Start reading a Confluence space's HTML export into an initiative,\nsent as ``file`` or as a resumable upload named by ``upload_id``.\n\nThe zip Confluence's \"Export space \u2192 HTML\" writes, for a site this server\ncannot reach or somebody would rather not hand a token to. It is staged\nand the job comes back ``queued``; the worker converts it the way it reads\na site, and parks it at ``staged`` with the same plan for\n``POST /imports/jobs/{id}/confirm``. The initiative needs wikis switched on\nand the caller able to create one there.",
        "operationId": "start_confluence_export_import",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_start_confluence_export_import"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataJobRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/imports/jobs/{job_id}": {
      "delete": {
        "tags": [
          "imports"
        ],
        "summary": "Cancel Import Job",
        "description": "Cancel a job that hasn't started applying (staged, queued, or still\nfetching from its source); its staged payload is deleted. A fetch writes\nnothing but that payload, so stopping one mid-read is safe \u2014 the worker\nnotices at the next project and throws away what it had. A running or\nterminal job is not cancellable \u2014 409 (an interrupted apply would leave\nhalf-committed content). The row is locked, as the worker locks it to\nclaim, so the status read here is the one the cancel replaces.",
        "operationId": "cancel_import_job",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Job Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataJobRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/imports/backup": {
      "post": {
        "tags": [
          "imports"
        ],
        "summary": "Upload Backup",
        "description": "Upload a backup zip, as ``file`` or as a resumable upload named by\n``upload_id``, and get its pre-flight plan. The zip is staged in\nguild storage and the job parked as ``staged`` (nothing is imported yet);\n``POST /imports/jobs/{id}/confirm`` starts the apply. Unconfirmed staged\nbackups expire after IMPORT_STAGED_TTL_HOURS. The community's seat only.",
        "operationId": "upload_backup",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_upload_backup"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataJobRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/imports/jobs/{job_id}/confirm": {
      "post": {
        "tags": [
          "imports"
        ],
        "summary": "Confirm Import",
        "description": "Confirm a staged import: flips it to ``queued`` for the worker.\n\nOptional body ``{\"include\": {tool: bool}}`` narrows which tools apply\n(backup only; omitted tools default to included), and ``{\"people_map\":\n{handle: user id}}`` says who each name the archive quotes is here \u2014 the\nanswers to the wizard's people step. ``{\"exclude_properties\": [name]}``\nnames properties unticked on the review, which are then not created, and\nwhose values are left out with them. ``{\"restore_community\": true}``\n(backup only; off unless sent) fills the community itself from the\narchive \u2014 its description, banner, location, trash retention, pictures\nand initiative defaults \u2014 for a community being stood up from one; left\noff, the community's own settings stay as they are.\n``{\"install_plugins\": [listing_uid]}`` (backup only) names the plug-ins\nthe plan lists that the seat ticked to install where the community lacks\nthem, each through the marketplace's own install; one left out is not\ninstalled, and what it kept is skipped. All are recorded on the job and\nread at apply time; the mapping is re-checked against real\nmembership there, because this confirm may be hours old by then.\n\nTwo kinds of job reach this, and they are gated differently because they\nwere created differently. A **backup** puts a whole community back, so it\nis the seat only \u2014 re-checked here and again at apply time. A lone\n**envelope** is one thing its creator already had the create permission\nfor when they dropped it; it is staged only to ask who the handles in it\nare, so that creator is the one who answers, and nobody else confirms on\ntheir behalf.",
        "operationId": "confirm_import",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Job Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": true
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataJobRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/calendars/{calendar_id}": {
      "get": {
        "tags": [
          "calendars"
        ],
        "summary": "Read Calendar",
        "operationId": "read_calendar",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "calendar_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Calendar Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "include_deleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Also return the resource if it is in the trash. For reading a resource back after a deleted event \u2014 the row still exists until retention purges it, and access is checked exactly as for a live one.",
              "default": false,
              "title": "Include Deleted"
            },
            "description": "Also return the resource if it is in the trash. For reading a resource back after a deleted event \u2014 the row still exists until retention purges it, and access is checked exactly as for a live one."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "calendars:read"
      },
      "patch": {
        "tags": [
          "calendars"
        ],
        "summary": "Update Calendar",
        "description": "Rename/update a calendar. Asks the edit action, which on a guild\ncalendar is the guild admin's: a write grant on one writes its events.",
        "operationId": "update_calendar",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "calendar_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Calendar Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CalendarUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "calendars:write"
      },
      "delete": {
        "tags": [
          "calendars"
        ],
        "summary": "Delete Calendar",
        "description": "Move it to the trash with everything inside it. Restoring it brings\nall of that back; the trash purges it after the community's retention.\nRequires the delete right on it: its owner, or a guild admin.",
        "operationId": "delete_calendar",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "calendar_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Calendar Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/dashboards/installed-listings": {
      "get": {
        "tags": [
          "dashboards"
        ],
        "summary": "Read Installed Listings",
        "description": "Which marketplace listings this guild has installed, and how many of each.\n\nOne row per distinct listing rather than per dashboard, so the answer is\ncomplete in one response \u2014 the dashboard list is paginated, and a partial\npage would mark some installs and miss others.\n\nRLS-scoped like every other read here: it counts the dashboards the caller\ncan see.",
        "operationId": "read_installed_listings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardInstalledListings"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/dashboards/widget-catalog": {
      "get": {
        "tags": [
          "dashboards"
        ],
        "summary": "Read Widget Catalog",
        "description": "The widget vocabulary this build supports \u2014 size floors, bindable\nsources, and display options per primitive, plus the named presets.\n\nStatic app metadata rather than guild data (it reads no tables), but it\nstays on the guild-scoped router because it only means anything to someone\nalready inside a guild, and that keeps every dashboard route addressed the\nsame way. Serving it is what lets the editor's palette avoid carrying a\nsecond copy of the registry.",
        "operationId": "read_widget_catalog",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WidgetCatalog"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/dashboards/{dashboard_id}": {
      "get": {
        "tags": [
          "dashboards"
        ],
        "summary": "Read Dashboard",
        "operationId": "read_dashboard",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "dashboard_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Dashboard Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "include_deleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Also return the resource if it is in the trash. For reading a resource back after a deleted event \u2014 the row still exists until retention purges it, and access is checked exactly as for a live one.",
              "default": false,
              "title": "Include Deleted"
            },
            "description": "Also return the resource if it is in the trash. For reading a resource back after a deleted event \u2014 the row still exists until retention purges it, and access is checked exactly as for a live one."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "dashboards"
        ],
        "summary": "Update Dashboard",
        "description": "Update a dashboard \u2014 rename, or re-author its canvas. Requires write\naccess. This is the only kind of write a dashboard has: authoring what it\nhooks up to. It never writes the data it displays.",
        "operationId": "update_dashboard",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "dashboard_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Dashboard Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DashboardUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "dashboards"
        ],
        "summary": "Delete Dashboard",
        "description": "Move it to the trash with everything inside it. Restoring it brings\nall of that back; the trash purges it after the community's retention.\nRequires the delete right on it: its owner, or a guild admin.",
        "operationId": "delete_dashboard",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "dashboard_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Dashboard Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/dashboards/{dashboard_id}/upgrade": {
      "post": {
        "tags": [
          "dashboards"
        ],
        "summary": "Upgrade Dashboard",
        "description": "Re-pin an installed dashboard to its listing's current version.\n\nNothing is ever pushed into a guild: a new version sits in the catalog until\nsomeone with write access here asks for it. Applying one replaces this\ninstance's definition and nothing else \u2014 other instances of the same\nlisting, in this guild or any other, are untouched.\n\nThe instance's own config survives. A binding slot the new version dropped\ntakes its config key with it, which is the same normalization an edit does,\nso config can never outlive the widget it configured.",
        "operationId": "upgrade_dashboard",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "dashboard_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Dashboard Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/dashboards/{dashboard_id}/data": {
      "get": {
        "tags": [
          "dashboards"
        ],
        "summary": "Load Dashboard Data",
        "description": "Answer every query widget on this dashboard at once.\n\nThe canvas is one unit of work: its gates are asked once, its widgets'\nstatements run as one statement in one transaction, and every tile reads\nthe same moment. A widget whose statement is refused says so in its own\nentry; the rest still answer. What runs is each widget's own stored\nstatement, never one the request supplies.",
        "operationId": "load_dashboard_data",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "dashboard_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Dashboard Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardDataResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/dashboards/{dashboard_id}/view-mode": {
      "put": {
        "tags": [
          "dashboards"
        ],
        "summary": "Set View Mode",
        "description": "Choose whose access this dashboard's query widgets answer from.\n\n``individual`` is each viewer's own. ``initiative`` is full read access to\nthe dashboard's initiative, the same for everyone who can open it \u2014 the\ndashboard's access, not the caller's. Either takes write access to the\ndashboard; turning ``initiative`` on also takes the initiative role\npermission for it, which managers always hold.",
        "operationId": "set_view_mode",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "dashboard_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Dashboard Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DashboardViewModeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/posts/timeline": {
      "get": {
        "tags": [
          "posts"
        ],
        "summary": "Get Post Timeline",
        "description": "The months this board has notices in, newest first.\n\nWhat the timeline rail is drawn from: one row per month, how many notices\nfall in it, and the instant to jump to. It takes the SAME filters the feed\ndoes, because the rail is a picture of the feed as it currently stands \u2014\nwith the unread filter on, a month that is fully read has nothing to offer\nand should not be a stop on the rail.\n\nScoped through :func:`board_conditions`, the same gates the list applies, so\nthe rail can never show a month whose notices the reader cannot open.",
        "operationId": "get_post_timeline",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Initiative Id"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Search"
            }
          },
          {
            "name": "tag_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Tag Ids"
            }
          },
          {
            "name": "property_filters",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The feed's property-value filters, JSON-encoded as it takes them.",
              "title": "Property Filters"
            },
            "description": "The feed's property-value filters, JSON-encoded as it takes them."
          },
          {
            "name": "unread",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Unread"
            }
          },
          {
            "name": "archived",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "true lists what has been archived instead of what is live. Omit for the live list, which is what every other view shows.",
              "title": "Archived"
            },
            "description": "true lists what has been archived instead of what is live. Omit for the live list, which is what every other view shows."
          },
          {
            "name": "tz",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "IANA zone the month boundaries are cut in, e.g. Pacific/Auckland. A month is a boundary in somebody's day, so a reader gets their own. Defaults to UTC.",
              "title": "Tz"
            },
            "description": "IANA zone the month boundaries are cut in, e.g. Pacific/Auckland. A month is a boundary in somebody's day, so a reader gets their own. Defaults to UTC."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimelineResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/posts/{post_id}": {
      "get": {
        "tags": [
          "posts"
        ],
        "summary": "Read Post",
        "description": "Read one notice. A scheduled one is its writers' until it goes up; to\nanyone else it is not there (the posts read policy).",
        "operationId": "read_post",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "post_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Post Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "include_deleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Also return the resource if it is in the trash. For reading a resource back after a deleted event \u2014 the row still exists until retention purges it, and access is checked exactly as for a live one.",
              "default": false,
              "title": "Include Deleted"
            },
            "description": "Also return the resource if it is in the trash. For reading a resource back after a deleted event \u2014 the row still exists until retention purges it, and access is checked exactly as for a live one."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "posts:read"
      },
      "patch": {
        "tags": [
          "posts"
        ],
        "summary": "Update Post",
        "description": "Edit a notice \u2014 its headline, its body, or a schedule not yet reached.\nRequires write access.\n\n``scheduled_for`` moves a pending schedule; sending it as ``null`` publishes\nthe draft immediately, which is how \"post it now\" is expressed. Sending it\nat all on a notice that is already up is a 409: publication is not\nreversible, because the people it was announced to have already been told.\n\nPinning is deliberately not here: it is a different authority, and lives on\nits own route below.",
        "operationId": "update_post",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "post_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Post Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "posts:write"
      },
      "delete": {
        "tags": [
          "posts"
        ],
        "summary": "Delete Post",
        "description": "Move it to the trash with everything inside it. Restoring it brings\nall of that back; the trash purges it after the community's retention.\nRequires the delete right on it: its owner, or a guild admin.",
        "operationId": "delete_post",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "post_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Post Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/posts/{post_id}/pin": {
      "put": {
        "tags": [
          "posts"
        ],
        "summary": "Set Post Pin",
        "description": "Pin a notice to the top of the board, or take it back down.\n\nA pin puts one person's notice above everyone else's, so it asks for\nauthority over the initiative \u2014 guild admin or an initiative manager \u2014\nrather than write access on the post. Read access on the post is required\nfirst, then that authority.\n\nAn optional ``expires_at`` lets a notice about a date stop shouting once\nthe date passes: the pin simply stops counting and the post falls back into\nthe feed by its own age. Nothing sweeps the columns afterwards \u2014 a lapsed\npin is still the record of who pinned it and when.\n\nSending ``pinned`` on a pin that is already live changes only the expiry \u2014\nthe pin keeps its original time and author. A pin that has lapsed is a new\npin, so that one re-stamps.\n\nAn installed plug-in manages no initiative, so it pins the notices it may\nwrite: its own, and the ones shared with it at write.",
        "operationId": "set_post_pin",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "post_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Post Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostPinUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "posts:write"
      }
    },
    "/api/v1/c/{community_id}/posts/{post_id}/reactions": {
      "put": {
        "tags": [
          "posts"
        ],
        "summary": "Set Post Reaction Settings",
        "description": "Turn reactions on a notice on or off.\n\nThe counterpart to the generic comment switch, and it asks the same level:\nwrite access on the post, which is what putting the notice up took. There\nis no generic route for it because a post is the only thing that takes\nreactions of its own \u2014 everywhere else they hang off a comment, and that\nthread's own switch already answers.\n\nTurning it off keeps the reactions already there, the same way turning a\nthread off keeps its comments: the board stops showing the bar and the API\nstops serving or adding to it until the switch goes back on.",
        "operationId": "set_post_reaction_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "post_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Post Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostReactionSettings"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostReactionSettings"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/posts/read": {
      "post": {
        "tags": [
          "posts"
        ],
        "summary": "Mark Posts Read",
        "description": "Record that the caller has read these notices.\n\nA batch, because the board marks a notice read once it has been on screen\nand a page is twenty of them \u2014 one request per card would be twenty\nrequests per scroll. Idempotent: sending the same page again inserts\nnothing and answers the same way.\n\nA receipt is recorded for the notices among these the caller can see, and\nthe service applies the board's own sharing and publication conditions to\ndecide which those are.",
        "operationId": "mark_posts_read",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostReadMarks"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostReadReceipt"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/posts/{post_id}/read": {
      "delete": {
        "tags": [
          "posts"
        ],
        "summary": "Mark Post Unread",
        "description": "Put one notice back to unread for the caller.\n\nRead access, not write: this is the reader's own state, and it says nothing\nabout the notice. Silent when there was no receipt \u2014 asking for a state a\nthing is already in is not an error.",
        "operationId": "mark_post_unread",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "post_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Post Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/posts/{post_id}/reads": {
      "get": {
        "tags": [
          "posts"
        ],
        "summary": "List Post Readers",
        "description": "Who has read this notice, and who it is still waiting on.\n\nOffered to anyone who can read the post rather than only its author: a\nboard is where things are said out loud, and whether a notice landed is the\npoint of saying it there. What it discloses is bounded by the sharing \u2014\nthe roster is the people the notice went to, who already know of each other\nthrough the initiative they share.",
        "operationId": "list_post_readers",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "post_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Post Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostReaders"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/posts/{post_id}/poll": {
      "put": {
        "tags": [
          "posts"
        ],
        "summary": "Set Post Poll",
        "description": "Give a notice its question, or rewrite the one it has.\n\nWrite access, the same as the body: a poll is part of what the notice says.\nOne route rather than a create and an update, because a poll is written and\nread as a whole \u2014 \"the third choice\" only means anything beside the other\ntwo.\n\nThree things are refused once somebody has answered, and each protects a\nvote already cast rather than the author's convenience:\n\n* **Changing the choices.** A ballot cast for \"Tuesday\" must not silently\n  become a ballot for whatever took third place. The question, the close\n  time and the switches below stay editable.\n* **Switching anonymity off.** People answered on the understanding that\n  their names were not attached, and that cannot be revoked afterwards.\n* **Switching multiple choice off.** Somebody who ticked three answers\n  would otherwise be left holding three ballots on a poll that takes one,\n  and the roster would list one voter under several choices.\n\nBoth switches can always be turned *on* \u2014 each only ever tightens what\nhappens next, and neither rewrites an answer already given.\n\nThe poll's row is taken before any of that is asked and held until the edit\ncommits, so \"has anybody answered?\" and the write that acts on the answer\nare one step.",
        "operationId": "set_post_poll",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "post_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Post Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PollWrite"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "posts"
        ],
        "summary": "Delete Post Poll",
        "description": "Take the question off a notice.\n\nWrite access, and it takes the answers with it \u2014 which is why it is a\ndeliberate act on its own route rather than a side effect of an edit. The\nnotice itself stays; only the question goes.",
        "operationId": "delete_post_poll",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "post_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Post Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/posts/{post_id}/poll/vote": {
      "put": {
        "tags": [
          "posts"
        ],
        "summary": "Vote On Post Poll",
        "description": "Answer a notice's question.\n\nRead access \u2014 answering is a reader's gesture, like reacting, not an edit\nof the notice. A PUT rather than a POST because a ballot is replaced rather\nthan added to: sending it again is changing your mind, and sending it twice\nleaves the same answer.\n\nAnswers the whole post, so a card that has just voted re-renders from one\nresponse with the new tallies in it.",
        "operationId": "vote_on_post_poll",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "post_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Post Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PollVoteWrite"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "posts"
        ],
        "summary": "Retract Post Poll Vote",
        "description": "Take back this reader's answer.\n\nAllowed while the poll is open, for the same reason changing it is: until\nvoting stops, an answer is what somebody currently thinks. Silent when\nthere was none.",
        "operationId": "retract_post_poll_vote",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "post_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Post Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/posts/{post_id}/poll/voters": {
      "get": {
        "tags": [
          "posts"
        ],
        "summary": "List Post Poll Voters",
        "description": "Who chose what, and who has not answered.\n\nOffered to anyone who can read the notice, like its read roster: the people\nnamed are the people it went to, who already know of each other through the\ninitiative they share.\n\nRefused in the two cases where the poll itself says not to \u2014 an anonymous\npoll, which has no roster by design, and one whose results are still\nwithheld from this reader.",
        "operationId": "list_post_poll_voters",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "post_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Post Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PollVoters"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/wikis/{wiki_id}": {
      "get": {
        "tags": [
          "wikis"
        ],
        "summary": "Read Wiki",
        "operationId": "read_wiki",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "wiki_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Wiki Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WikiRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "wikis:read"
      },
      "patch": {
        "tags": [
          "wikis"
        ],
        "summary": "Update Wiki",
        "operationId": "update_wiki",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "wiki_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Wiki Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WikiUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WikiRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "wikis:write"
      },
      "delete": {
        "tags": [
          "wikis"
        ],
        "summary": "Delete Wiki",
        "description": "Move it to the trash with everything inside it. Restoring it brings\nall of that back; the trash purges it after the community's retention.\nRequires the delete right on it: its owner, or a guild admin.",
        "operationId": "delete_wiki",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "wiki_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Wiki Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/wikis/{wiki_id}/pages": {
      "get": {
        "tags": [
          "wikis"
        ],
        "summary": "List Wiki Pages",
        "description": "Every page of a wiki, in reading order.\n\nThe whole list in one response: the navigation draws all of it, and these\nrows carry no bodies.",
        "operationId": "list_wiki_pages",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "wiki_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Wiki Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WikiPageTree"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "wikis:read"
      },
      "post": {
        "tags": [
          "wikis"
        ],
        "summary": "Create Wiki Page",
        "description": "Add a page. Write access on the wiki is the whole gate \u2014 a page is the\nwiki's content.\n\nIt arrives as a draft unless the request says otherwise: for as long as it\ntakes to write one, a new page is empty and unnamed, and the people who\nonly read this wiki have no use for that.",
        "operationId": "create_wiki_page",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "wiki_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Wiki Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WikiPageCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WikiPageRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "wikis:write"
      }
    },
    "/api/v1/c/{community_id}/wikis/{wiki_id}/files/{file_id}": {
      "put": {
        "tags": [
          "wikis"
        ],
        "summary": "Add File To Wiki",
        "description": "Put an existing file in this wiki.\n\nTwo gates, because two things are involved: write on the wiki, because the\nwiki is what gains a page, and read on the file, because you cannot put\nsomething in front of people that you cannot see yourself.\n\nThe file is not moved or copied. It joins by an edge \u2014 ``file\npart_of wiki`` \u2014 so it keeps its address, its sharing and its history, and\ngoes on belonging to whatever else it already belonged to.",
        "operationId": "add_file_to_wiki",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "wiki_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Wiki Id"
            }
          },
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "File Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "wikis"
        ],
        "summary": "Remove File From Wiki",
        "description": "Take a file back out of this wiki.\n\nThe wiki loses a page; the file loses nothing. Write on the wiki is the\nonly gate \u2014 this is a decision about what the wiki contains.",
        "operationId": "remove_file_from_wiki",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "wiki_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Wiki Id"
            }
          },
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "File Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/wikis/{wiki_id}/files/{file_id}/move": {
      "post": {
        "tags": [
          "wikis"
        ],
        "summary": "Move Wiki File",
        "description": "File a borrowed file under a page of this wiki, or at its top, and\nput it in order there.\n\nWhere it sits is recorded on the wiki, not on the file: the same\nfile can sit somewhere else entirely in another wiki.\n\nWrite on the wiki is the whole gate, and read on the file is implied by\nit already being in a wiki this person may write: where it sits is a\ndecision about the wiki, not a change to the file \u2014 which is why the\nfile itself is never written.",
        "operationId": "move_wiki_file",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "wiki_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Wiki Id"
            }
          },
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "File Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WikiPageMove"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/wiki-pages/{page_id}": {
      "get": {
        "tags": [
          "wikis"
        ],
        "summary": "Read Wiki Page",
        "description": "One page by its own id, which is all a link to it, a mention or a\nstored notification names.",
        "operationId": "read_wiki_page",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Page Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WikiPageRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "wikis:read"
      },
      "patch": {
        "tags": [
          "wikis"
        ],
        "summary": "Update Wiki Page",
        "operationId": "update_wiki_page",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Page Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WikiPageUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WikiPageRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "wikis:write"
      },
      "delete": {
        "tags": [
          "wikis"
        ],
        "summary": "Delete Wiki Page",
        "description": "Send a page to the trash. Its children go with it \u2014 a section is put\naway whole.",
        "operationId": "delete_wiki_page",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Page Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/wiki-pages/{page_id}/ai/summary": {
      "post": {
        "tags": [
          "wikis"
        ],
        "summary": "Summarize Wiki Page",
        "description": "A summary of a page, streamed as it is written. Requires read access\nto the page.",
        "operationId": "summarize_wiki_page",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Page Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/jsonl": {
                "schema": {
                  "type": "string",
                  "$ref": "#/components/schemas/AIStreamEvent"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/wiki-pages/{page_id}/duplicate": {
      "post": {
        "tags": [
          "wikis"
        ],
        "summary": "Duplicate Wiki Page",
        "description": "Copy the page, without the pages under it, to the end of where it is\nfiled, as \"<title> (Copy)\", with its tags, links and properties.",
        "operationId": "duplicate_wiki_page",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Page Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WikiPageRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "wikis:write"
      }
    },
    "/api/v1/c/{community_id}/wiki-pages/{page_id}/move": {
      "post": {
        "tags": [
          "wikis"
        ],
        "summary": "Move Wiki Page",
        "description": "File a page and place it there in one request \u2014 what a drag is.\n\nOnly the page's new neighbours are renumbered: a position means something\namong the pages filed together and nothing across the wiki.",
        "operationId": "move_wiki_page",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Page Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WikiPageMove"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WikiPageRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "wikis:write"
      }
    },
    "/api/v1/c/{community_id}/contacts/{contact_id}": {
      "get": {
        "tags": [
          "contacts"
        ],
        "summary": "Read Contact",
        "operationId": "read_contact",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "contact_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Contact Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "contacts:read"
      },
      "patch": {
        "tags": [
          "contacts"
        ],
        "summary": "Update Contact",
        "description": "Change a contact. A list sent replaces the one there.",
        "operationId": "update_contact",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "contact_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Contact Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "contacts:write"
      },
      "delete": {
        "tags": [
          "contacts"
        ],
        "summary": "Delete Contact",
        "description": "Move it to the trash with everything inside it. Restoring it brings\nall of that back; the trash purges it after the community's retention.\nRequires the delete right on it: its owner, or a guild admin.",
        "operationId": "delete_contact",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "contact_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Contact Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/contacts/{contact_id}/move": {
      "post": {
        "tags": [
          "contacts"
        ],
        "summary": "Move Contact",
        "description": "Move an initiative's contact into the community's contacts.\n\nIt needs write on the contact, the ``community_contacts`` surface and the\ncommunity contacts plug-in, and is refused when its initiative keeps its\ncontent in. It is then the community's as a new one is: owned by the\nplug-in's install and shared with every member. Its initiative's property\nvalues are dropped, since their definitions are the initiative's, and the\nfiles its comments show are kept for the community. Its links stay,\nnow running from the initiative's side to the community's.",
        "operationId": "move_contact",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "contact_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Contact Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/forms/{form_id}": {
      "get": {
        "tags": [
          "forms"
        ],
        "summary": "Read Form",
        "operationId": "read_form",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "form_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Form Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "forms:read"
      },
      "patch": {
        "tags": [
          "forms"
        ],
        "summary": "Update Form",
        "description": "Change a form's name, introduction or how it takes its answers.",
        "operationId": "update_form",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "form_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Form Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FormUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "forms:write"
      },
      "delete": {
        "tags": [
          "forms"
        ],
        "summary": "Delete Form",
        "description": "Move it to the trash with everything inside it. Restoring it brings\nall of that back; the trash purges it after the community's retention.\nRequires the delete right on it: its owner, or a guild admin.",
        "operationId": "delete_form",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "form_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Form Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/forms/{form_id}/versions": {
      "get": {
        "tags": [
          "forms"
        ],
        "summary": "List Form Versions",
        "description": "Every published version, newest first, with who published it and\nwhen; the draft above them for whoever may write the form.",
        "operationId": "list_form_versions",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "form_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Form Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormVersionList"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "forms:read"
      }
    },
    "/api/v1/c/{community_id}/forms/{form_id}/versions/{version_id}": {
      "get": {
        "tags": [
          "forms"
        ],
        "summary": "Read Form Version",
        "description": "One version's questions, as they were asked.",
        "operationId": "read_form_version",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "form_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Form Id"
            }
          },
          {
            "name": "version_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Version Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormVersionRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "forms:read"
      }
    },
    "/api/v1/c/{community_id}/forms/{form_id}/draft": {
      "post": {
        "tags": [
          "forms"
        ],
        "summary": "Start Form Draft",
        "description": "Start the draft from a published version, in place of any draft the\nform has: \"Edit from this version\".",
        "operationId": "start_form_draft",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "form_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Form Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FormDraftStart"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormVersionRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "forms:write"
      },
      "put": {
        "tags": [
          "forms"
        ],
        "summary": "Save Form Draft",
        "description": "Save the draft whole, as the builder holds it. The first edit after a\npublish starts the draft from the current version.",
        "operationId": "save_form_draft",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "form_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Form Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FormDraftUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormVersionRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "forms:write"
      },
      "delete": {
        "tags": [
          "forms"
        ],
        "summary": "Discard Form Draft",
        "description": "Throw the draft away; the current version is untouched.",
        "operationId": "discard_form_draft",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "form_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Form Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "forms:write"
      }
    },
    "/api/v1/c/{community_id}/forms/{form_id}/publish": {
      "post": {
        "tags": [
          "forms"
        ],
        "summary": "Publish Form",
        "description": "Number the draft and make it the version people fill in. With\n``ask_again``, responses to earlier versions stop counting.",
        "operationId": "publish_form",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "form_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Form Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FormPublish"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormVersionRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "forms:write"
      }
    },
    "/api/v1/c/{community_id}/forms/{form_id}/responses": {
      "get": {
        "tags": [
          "forms"
        ],
        "summary": "List Form Responses",
        "description": "Responses the reader can read, newest first: every one for whoever may\nwrite the form, their own and those about what they read otherwise.\n``version_id`` narrows to one version's, ``mine`` to the reader's own,\nand ``subject_kind`` with ``subject_id`` to those about one item (what\nthe item page's form part shows).",
        "operationId": "list_form_responses",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "form_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Form Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "version_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Version Id"
            }
          },
          {
            "name": "mine",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Only the reader's own.",
              "default": false,
              "title": "Mine"
            },
            "description": "Only the reader's own."
          },
          {
            "name": "subject_kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 32
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only those about this kind.",
              "title": "Subject Kind"
            },
            "description": "Only those about this kind."
          },
          {
            "name": "subject_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only those about this one, of ``subject_kind``.",
              "title": "Subject Id"
            },
            "description": "Only those about this one, of ``subject_kind``."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormResponseList"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "forms:read"
      },
      "post": {
        "tags": [
          "forms"
        ],
        "summary": "Create Form Response",
        "description": "Answer the form's current version, as the person writing. A draft\nsaves whatever is filled in; ``submit`` is refused while a required\nquestion is empty.",
        "operationId": "create_form_response",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "form_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Form Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FormResponseWrite"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormResponseRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "forms:write"
      }
    },
    "/api/v1/c/{community_id}/forms/{form_id}/summary": {
      "get": {
        "tags": [
          "forms"
        ],
        "summary": "Summarize Form",
        "description": "How a version was answered across the submitted responses: the current\nversion unless ``version_id`` names another. Needs write on the form.",
        "operationId": "summarize_form",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "form_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Form Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "version_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Version Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormAnswerSummary"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "forms:read"
      }
    },
    "/api/v1/c/{community_id}/entry-form/": {
      "get": {
        "tags": [
          "forms"
        ],
        "summary": "Read Entry Form",
        "description": "The community's entry form, and what the reader owes it: a newcomer\nsees it before anything else until they answer.",
        "operationId": "read_entry_form",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntryFormRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "forms"
        ],
        "summary": "Set Entry Form",
        "description": "Set the community's entry form, or clear it, and the hours a newcomer\nhas to answer it. Only people who join after a form is set are asked.",
        "operationId": "set_entry_form",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EntryFormUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntryFormRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/brand/": {
      "get": {
        "tags": [
          "communities"
        ],
        "summary": "Read Community Brand",
        "description": "The community's brand colors and fonts, by role. Read on the\nconfiguration surface, so whoever may change it can always see it.",
        "operationId": "read_community_brand",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Brand"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "communities"
        ],
        "summary": "Set Community Brand",
        "description": "Replace the community's brand. A font file arrives by upload\n(``PUT /fonts/{role}``); here a font names one the role already has, or\none the font menu offers by its name alone.",
        "operationId": "set_community_brand",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Brand"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Brand"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/brand/fonts/{role}": {
      "put": {
        "tags": [
          "communities"
        ],
        "summary": "Set Community Brand Font",
        "description": "Upload the font for one role, a woff2, woff, ttf or otf file of at most\n2 MB, under the name people pick it by. Replaces the role's font.",
        "operationId": "set_community_brand_font",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "role",
            "in": "path",
            "required": true,
            "schema": {
              "enum": [
                "heading",
                "body"
              ],
              "type": "string",
              "title": "Role"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_set_community_brand_font"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Brand"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/form-responses/{response_id}": {
      "get": {
        "tags": [
          "forms"
        ],
        "summary": "Read Form Response",
        "description": "One response by its own id, which is all a link to it, a mention or a\nstored notification names.",
        "operationId": "read_form_response",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "response_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Response Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormResponseRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "forms:read"
      },
      "patch": {
        "tags": [
          "forms"
        ],
        "summary": "Update Form Response",
        "description": "Change your own answers, held to the version they answered: the\nanswers named, and the ones ``removed`` names taken away. ``submit``\nsends a draft, refused while a required question is empty. A submitted\nresponse changes only on a form that lets people edit after submitting,\nor once a writer sends it back. What it is about never changes.\n\n``tag_ids`` alone is the form's writers' to send, on anyone's response.",
        "operationId": "update_form_response",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "response_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Response Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FormResponseWrite"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormResponseRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "forms:write"
      }
    },
    "/api/v1/c/{community_id}/form-responses/{response_id}/reopen": {
      "post": {
        "tags": [
          "forms"
        ],
        "summary": "Reopen Form Response",
        "description": "Send a submitted response back to its respondent as a draft, to\ncorrect it. Needs write on the form.",
        "operationId": "reopen_form_response",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "response_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Response Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormResponseRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "forms:write"
      }
    },
    "/api/v1/c/{community_id}/plugin-tools/{kind}": {
      "get": {
        "tags": [
          "plugin-tools"
        ],
        "summary": "Read Plugin Tool",
        "description": "A tool plug-in's tool as it declares it, by its kind or one of its\nitems': its names, the fields of its rows and of each item with their\nkinds and options, which item sits under which, and its actions with the\nfields they ask for. Not found where it is on in no initiative the\ncaller reaches.",
        "operationId": "read_plugin_tool",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginToolRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": {
          "tool": "kind",
          "access": "read"
        }
      }
    },
    "/api/v1/c/{community_id}/plugin-tools/{kind}/": {
      "get": {
        "tags": [
          "plugin-tools"
        ],
        "summary": "List Plugin Tool Rows",
        "description": "A page of a tool plug-in's rows: its tool's in an initiative, or an\nitem's under the row it sits in, in their order, each with what its card\npreviews of its items where ``include_preview`` asks.",
        "operationId": "list_plugin_tool_rows",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The initiative whose tool rows to list",
              "title": "Initiative Id"
            },
            "description": "The initiative whose tool rows to list"
          },
          {
            "name": "parent_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The row whose items to list, for an item's kind",
              "title": "Parent Id"
            },
            "description": "The row whose items to list, for an item's kind"
          },
          {
            "name": "archived",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "List archived rows instead",
              "default": false,
              "title": "Archived"
            },
            "description": "List archived rows instead"
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only rows whose text matches, read from the index the search page reads.",
              "title": "Search"
            },
            "description": "Only rows whose text matches, read from the index the search page reads."
          },
          {
            "name": "tag_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only rows carrying any of these tags",
              "title": "Tag Ids"
            },
            "description": "Only rows carrying any of these tags"
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "A declared field, or name, created_at or updated_at, to list them by in place of their own order",
              "title": "Sort By"
            },
            "description": "A declared field, or name, created_at or updated_at, to list them by in place of their own order"
          },
          {
            "name": "sort_dir",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SortDir",
              "default": "asc"
            }
          },
          {
            "name": "include_preview",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Also send each row's first items of each item table under it, read for the whole page at once.",
              "default": false,
              "title": "Include Preview"
            },
            "description": "Also send each row's first items of each item table under it, read for the whole page at once."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 0,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginToolRowList"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": {
          "tool": "kind",
          "access": "read"
        }
      },
      "post": {
        "tags": [
          "plugin-tools"
        ],
        "summary": "Create Plugin Tool Row",
        "description": "Add a row: of the tool, in an initiative where its switch is on and the\ncaller's role may create it, shared as ``grants`` says; or of an item,\nunder a row of the tool the caller may change, tagged with ``tag_ids``.\nFields left out start at their defaults.",
        "operationId": "create_plugin_tool_row",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PluginToolRowCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginToolRowRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": {
          "tool": "kind",
          "access": "write"
        }
      }
    },
    "/api/v1/c/{community_id}/plugin-tools/{kind}/{row_id}": {
      "get": {
        "tags": [
          "plugin-tools"
        ],
        "summary": "Read Plugin Tool Row",
        "description": "One row of a tool plug-in's tool or of one of its items.",
        "operationId": "read_plugin_tool_row",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "row_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Row Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginToolRowRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": {
          "tool": "kind",
          "access": "read"
        }
      },
      "patch": {
        "tags": [
          "plugin-tools"
        ],
        "summary": "Update Plugin Tool Row",
        "description": "Change a row: its name, its place, its tags and the fields sent. A\ncounter is held to its bounds.",
        "operationId": "update_plugin_tool_row",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "row_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Row Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PluginToolRowUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginToolRowRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": {
          "tool": "kind",
          "access": "write"
        }
      },
      "delete": {
        "tags": [
          "plugin-tools"
        ],
        "summary": "Delete Plugin Tool Row",
        "description": "Move a row to the trash with the items under it, as a built-in tool's\ndelete does. A tool's row asks the delete right on it, and an item what\nchanging one asks of its tool, as a task asks of its project.",
        "operationId": "delete_plugin_tool_row",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "row_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Row Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/plugin-tools/{kind}/{row_id}/duplicate": {
      "post": {
        "tags": [
          "plugin-tools"
        ],
        "summary": "Duplicate Plugin Tool Row",
        "description": "Copy a row with every item under it, as a built-in tool's duplicate\ndoes: a tool's row into an initiative, its own unless the body names\nanother, shared as its source is while it stays there; an item beside\nitself. Beside its source the copy is called \"<name> (Copy)\" unless the\nbody names it.",
        "operationId": "duplicate_plugin_tool_row",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "row_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Row Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ToolDuplicateRequest"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginToolRowRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": {
          "tool": "kind",
          "access": "write"
        }
      }
    },
    "/api/v1/c/{community_id}/plugin-tools/{kind}/{row_id}/step": {
      "post": {
        "tags": [
          "plugin-tools"
        ],
        "summary": "Step Plugin Tool Row",
        "description": "Move one counter field of a row, named by its key: by ``by``, signed,\nor by the field's own step, up or ``down``, held within its bounds. Two\nsteps landing together each count. Answers the row as it now stands.",
        "operationId": "step_plugin_tool_row",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "row_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Row Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PluginToolStep"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginToolRowRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": {
          "tool": "kind",
          "access": "write"
        }
      }
    },
    "/api/v1/c/{community_id}/plugin-tools/{kind}/{row_id}/actions/{action_id}": {
      "post": {
        "tags": [
          "plugin-tools"
        ],
        "summary": "Run Plugin Tool Action",
        "description": "Run one of the tool's actions on a row, with the answers to its\n``params``. Its change is made as the caller would make it by hand, all of\nit or none, and the row is answered as it now stands.",
        "operationId": "run_plugin_tool_action",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "row_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Row Id"
            }
          },
          {
            "name": "action_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Action Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/PluginToolActionRun"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginToolRowRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": {
          "tool": "kind",
          "access": "write"
        }
      }
    },
    "/api/v1/c/{community_id}/plugins/widget-catalog": {
      "get": {
        "tags": [
          "plugins"
        ],
        "summary": "Read Plugin Widget Catalog",
        "description": "Which widgets and read endpoints this guild's installed plug-ins\ncontribute.\n\nEvery member may read it: a plug-in's existence is guild-wide knowledge and the\npalette carries no guild data \u2014 declarations, module source, and sample\nrows, all from the pinned definition. An endpoint declared for guild admins\nis still listed, and still refused at fetch time to anyone else.\n\nDisabled installs are left out entirely: their widgets have nothing to draw,\nso offering them would be offering a binding that cannot resolve. So are\nthose the platform suspended, held or deleted here.",
        "operationId": "read_plugin_widget_catalog",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginWidgetCatalogResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/plugins/{plugin_id}/endpoints/{endpoint_id}": {
      "get": {
        "tags": [
          "plugins"
        ],
        "summary": "Read Plugin Data",
        "description": "One of a plug-in's read endpoints, as a widget being configured would\nshow it: in the initiative of what it sits on, and, on a dashboard, as\nits view mode says.\n\nReturns the plug-in's rows verbatim with the time they were obtained. A plug-in\nthat is unreachable, slow, oversized, or answering in a shape this build\ndoes not accept comes back as a named message code, so the preview draws one\nerror tile instead of the request becoming a server fault.",
        "operationId": "read_plugin_data",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "endpoint_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Endpoint Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "subject",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200,
              "description": "What the widget sits on, as a reference (`dashboard:7`, `file:12`). Previewing a widget takes write access to it.",
              "title": "Subject"
            },
            "description": "What the widget sits on, as a reference (`dashboard:7`, `file:12`). Previewing a widget takes write access to it."
          },
          {
            "name": "params",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The parameters on the form, as a JSON object.",
              "title": "Params"
            },
            "description": "The parameters on the form, as a JSON object."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginDataResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/plugins/summaries": {
      "get": {
        "tags": [
          "plugins"
        ],
        "summary": "List Plugin Summaries",
        "description": "The installs whose pinned definition names a community summary, with\nwhat each declares it returns.",
        "operationId": "list_plugin_summaries",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginSummaryListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/plugins/{plugin_id}/summary": {
      "get": {
        "tags": [
          "plugins"
        ],
        "summary": "Read Plugin Summary",
        "description": "Where the community stands with one installed plug-in.\n\nThe endpoint is the one the pinned definition names as its\n``community_summary``; an install that names none, or is switched off,\nhas nothing to draw and answers 404. A plug-in that does not answer comes\nback as the proxy's own message code, so the page draws \"unavailable\"\nrather than failing. The settings rung is the community's admin standing,\nwhich is what an admin-only summary asks for.",
        "operationId": "read_plugin_summary",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginDataResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/plugins/{plugin_id}/connections/{connection_id}/summary": {
      "get": {
        "tags": [
          "plugins"
        ],
        "summary": "Read Plugin Connection Summary",
        "description": "How one of the community's connections to a plug-in stands.\n\nThe endpoint is the one the pinned definition names as the connection's\n``summary``, read as the installation. A community connection is the\nseat's to manage, and so is reading how it stands; a member's own\nconnection names no summary. One that names none, or an install switched\noff, answers 404, and a plug-in that does not answer comes back as the\nproxy's own message code, as the community's summary does.",
        "operationId": "read_plugin_connection_summary",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Connection Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginDataResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/plugins/{plugin_id}/endpoints/{endpoint_id}/options": {
      "get": {
        "tags": [
          "plugins"
        ],
        "summary": "Read Plugin Param Options",
        "description": "The values one of an endpoint's parameters permits.\n\nThis is what turns a declared ``options_from`` into a menu, and it is the\none read here that carries no dashboard. It cannot: it exists to fill in a\nform for a widget that has not been placed yet, so there is no dashboard\nrow whose gates could decide it.\n\nWhat decides it instead is that the caller never names what is called. The\nsource is read out of the plug-in's own pinned declaration \u2014 the\n``options_from`` of the parameter being filled in \u2014 so the reachable set is\nexactly the reads a publisher marked as menu sources, and the arguments are\nthe ones that source's ``needs`` names, mapped from answers this same form\nalready holds. The source is then fetched on the caller's own credentials,\nexactly as it is for a placed tile.\n\nA source that will not resolve is not an error: it comes back as\n``unavailable`` with no options, and the parameter stays typeable.",
        "operationId": "read_plugin_param_options",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "endpoint_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Endpoint Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "param",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Which of the endpoint's parameters to fill a menu for.",
              "title": "Param"
            },
            "description": "Which of the endpoint's parameters to fill a menu for."
          },
          {
            "name": "params",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "What the form has answered so far, as a JSON object. Only the answers a source's `needs` names are ever forwarded.",
              "title": "Params"
            },
            "description": "What the form has answered so far, as a JSON object. Only the answers a source's `needs` names are ever forwarded."
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The initiative the form is filled in: the dashboard's, or the item's an action runs on. An endpoint naming a permission answers only where the caller holds it.",
              "title": "Initiative Id"
            },
            "description": "The initiative the form is filled in: the dashboard's, or the item's an action runs on. An endpoint naming a permission answers only where the caller holds it."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginParamOptionsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/plugins/{plugin_id}/actions/{action_id}": {
      "post": {
        "tags": [
          "plugins"
        ],
        "summary": "Run Plugin Action",
        "description": "Run one of a plug-in's actions on one item.\n\nA container plug-in does the work, called as its installation with the\ncaller and the item named; Initiative changes nothing itself. A\ndeclarative plug-in's action is run by Initiative: the call it names, on\nthe credential the plug-in says, and the change it makes to the plug-in's\nvalues on the item. Either way the action's endpoint is sent what the\ncaller answered for the parameters the action asks for. The answer is the\nvalues the plug-in shows on the item afterwards. Refused with\n``PLUGIN_ACTION_NOT_FOUND`` when the install declares no such action on\nthis kind of item, ``PLUGIN_ACTION_NOT_OFFERED`` when it is not offered on\nthis item for the caller, ``PLUGIN_DATA_INVALID_PARAMS`` when what the\ncaller answered is not what the action asks for or the element is not one\nit is offered on,\n``PLUGIN_DATA_CONNECTION_REQUIRED`` when it needs the caller's own account\nand they have connected none, the item's own refusal when the caller\ncannot read it, and 429 past the allowance.",
        "operationId": "run_plugin_action",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "action_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Action Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PluginActionRun"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PluginActionResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/plugins/": {
      "get": {
        "tags": [
          "plugins"
        ],
        "summary": "List Community Plugins",
        "description": "Every plug-in installed in this guild, enabled or not.\n\nDisabled ones are included so an admin can find and re-enable them; the\nsidebar filters to enabled. A service plug-in this deployment has not set\nup comes back too, marked unavailable \u2014 an install that quietly vanished\nwould leave an admin with nothing to look at and nothing to remove. One\nthe platform suspended, held or deleted here is left out: nothing in the\ncommunity can act on it.",
        "operationId": "list_community_plugins",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityPluginListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "plugins"
        ],
        "summary": "Install Community Plugin",
        "description": "Install a listing as a guild plug-in.\n\nThe request names a listing; everything stored comes from the catalog row\nand from what the install creates here. One install per listing: a plug-in\nmounts a single guild-wide surface, so a second copy would have nothing to\nbe \u2014 rename or re-share the one that exists instead.\n\nNothing about connections gates this. A plug-in whose credentials are all\nsupplied per member installs with none present, and members connect their\nown accounts afterwards if they want what those unlock.\n\nThe install dialog is the seat's consent, and it lands with the install in\none transaction: the scopes granted (checked as ``PUT \u2026/scopes`` checks\nthem) and the initiatives the plug-in is placed in (``\"all\"`` is every\ninitiative that exists now). Who uses it there is each initiative's roles'\nanswer. Anything refused is refused before the install exists.",
        "operationId": "install_community_plugin",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityPluginInstall"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityPluginRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/plugins/{plugin_id}": {
      "get": {
        "tags": [
          "plugins"
        ],
        "summary": "Get Community Plugin",
        "description": "One install with its connections, from the caller's own perspective.\n\nAny member may read this: the per-member connection blocks report the\ncaller's own state, and a guild-scoped one reports presence rather than\nvalues to everybody but the seat that sets them, so there is nothing here\nthat belongs to somebody else.",
        "operationId": "get_community_plugin",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityPluginDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "plugins"
        ],
        "summary": "Update Community Plugin",
        "description": "Rename a plug-in, place it, choose how it updates, or turn it off.\n\nRenaming is always allowed \u2014 a guild may call a plug-in whatever it likes.\nTurning one off is a different matter for a plug-in the deployment provides:\nthat switch belongs to the operator, so it is refused by name here.\n\n``auto_update`` is the guild's own cadence, and it is on until an admin says\notherwise. Turning it off does not freeze the plug-in \u2014 it moves the decision to\nthis page, where the Update button applies exactly what the sweep would\nhave. It is offered on every install, provided ones included: the operator\ndecides whether a plug-in exists, and the guild decides when it changes under\nthem.\n\n``placed_initiative_ids`` is the whole set of initiatives a plug-in's\ninitiative-scoped surfaces appear in; one left out is removed. It is the\ncommunity's own answer to where a plug-in belongs rather than a permission,\nso it reads the same for everyone, admins included.",
        "operationId": "update_community_plugin",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityPluginUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityPluginRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "plugins"
        ],
        "summary": "Uninstall Community Plugin",
        "description": "Remove a plug-in, ending its access and trashing what it created\n(:func:`~app.services.tenant.guild_plugins.uninstall_plugin`).\n\nA tool plug-in's tool is the community's content, so removing it is the\nseat consenting, with ``delete_content``, to that content being deleted\nonce the deletion window ends (409\n``COMMUNITY_PLUGIN_TOOL_DELETION_UNCONFIRMED`` without it). The tool is\ngone from the community at once and its content kept until then;\ninstalling the plug-in again within the window brings all of it back.\n\nWhat the plug-in calls the community and its members is kept, so installing\nit again picks up where it left off. ``erase`` also asks the plug-in to\ndelete everything it holds about the community, and forgets those names\nonce it has: the community's admins' choice alone (403\n``COMMUNITY_PLUGIN_ERASE_ADMIN_ONLY`` for anyone else).\n\nA plug-in the deployment provides to every guild is not removable here, and\nso not erasable either (\u00a77.7): the operator's registration decides whether\nit exists at all.",
        "operationId": "uninstall_community_plugin",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "erase",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Erase"
            }
          },
          {
            "name": "delete_content",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Delete Content"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/plugins/{plugin_id}/upgrade": {
      "post": {
        "tags": [
          "plugins"
        ],
        "summary": "Upgrade Community Plugin",
        "description": "Re-pin an installed plug-in to its listing's current version, now.\n\nThe button an admin presses when their guild has turned automatic updates\noff \u2014 and the shortcut past the sweep for one that has not. Either way it is\nthe same re-pin ``services.tenant.plugin_updates`` performs on its own\nschedule, so an install cannot end up in a state only one of the two routes\ncan produce.\n\nStored configuration survives, minus anything the new version stopped\ndeclaring \u2014 a value cannot outlive the field it was typed into. Per-member\nconnections the new version dropped go the same way, and are revoked rather\nthan orphaned.\n\nA version that asks for more than the install holds (a new scope, or a\nnew surface inside initiatives) is applied only with the seat's consent:\n``payload`` names the version the seat was shown and the scopes it grants\nwith it. Without it the answer is 409, carrying what the version asks\nfor; so is a consent naming a version the catalog no longer offers.\n\nA tool plug-in's version asks for what it adds to the tool (tables,\nfields, options, actions) the same way. One that drops fields or options,\nwhich only a new major may, is applied only with ``drop_fields`` and\n``drop_options`` naming each: a dropped field's column goes with what it\nholds, and a dropped option is emptied from the cells holding it, when\nthe tool's tables are brought up to the version.",
        "operationId": "upgrade_community_plugin",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/CommunityPluginUpgrade"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Payload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityPluginDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/plugins/{plugin_id}/upgrade/decline": {
      "post": {
        "tags": [
          "plugins"
        ],
        "summary": "Decline Community Plugin Upgrade",
        "description": "Keep the pinned version, and stop being asked about this one.\n\nThe install goes on running the version it has, with the grant it has.\nThe sweep does not ask about the declined version again; a newer one is\nasked about afresh. Accepting it later is still the Update button.",
        "operationId": "decline_community_plugin_upgrade",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityPluginDecline"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityPluginDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/plugins/{plugin_id}/uninstall-notice": {
      "get": {
        "tags": [
          "plugins"
        ],
        "summary": "Read Uninstall Notice",
        "description": "What the removal dialog says about this plug-in beyond the usual.\n\nFor a plug-in whose listing carries package terms, the entitlement issuer\nis asked, for this response only and within two seconds, what removing it\nmeans for this community; its sentence comes back as it gave it. Anything\nelse is ``managed: false``. Read by the seat, which is who removes one.",
        "operationId": "read_uninstall_notice",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "locale",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 35,
              "pattern": "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",
              "default": "en",
              "title": "Locale"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityPluginUninstallNotice"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/plugins/{plugin_id}/config": {
      "put": {
        "tags": [
          "plugins"
        ],
        "summary": "Update Community Plugin Config",
        "description": "Set the guild-wide values a plug-in's connections ask for.\n\nValidated against the *pinned* definition, so what an install accepts is the\nform it was configured against rather than whatever the catalog says today.\nSecret fields are encrypted on the way in and never come back out; the\nresponse reports which fields hold a value.\n\nOnly guild-scoped connections are settable here. A per-member one is that\nmember's to make, and the fields a plug-in marks ``managed`` come from its\n``after_connect`` hook rather than through a form.\n\nA connection that declares ``after_connect`` beside its fields is saved on\nits own, once the plug-in has checked what was typed: refused\n(``COMMUNITY_PLUGIN_CONNECTION_REFUSED``), or not answered\n(``COMMUNITY_PLUGIN_CONNECTION_NOT_CHECKED``), nothing is stored.",
        "operationId": "update_community_plugin_config",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityPluginConfigUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityPluginDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/plugins/{plugin_id}/settings/{key}": {
      "put": {
        "tags": [
          "plugins"
        ],
        "summary": "Update Community Plugin Setting",
        "description": "Set one of the values the plug-in's settings declare.\n\nValidated against the *pinned* definition. A unique setting holds a\nlowercase letter, then lowercase letters and digits, 2 to 16 in all\n(``COMMUNITY_PLUGIN_SETTING_INVALID`` otherwise), that no other community\non this server holds, now or as an earlier value\n(``COMMUNITY_PLUGIN_SETTING_UNAVAILABLE`` otherwise). The value it replaces\nstays this community's, and the plug-in still reads it; setting it again\nmakes it current.",
        "operationId": "update_community_plugin_setting",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Key"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityPluginSettingUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityPluginDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/plugins/{plugin_id}/scopes": {
      "put": {
        "tags": [
          "plugins"
        ],
        "summary": "Put Community Plugin Scopes",
        "description": "Grant the install exactly these scopes.\n\nEach must be one the plug-in's manifest requests and one the deployment's\nregistration allows the plug-in (its ceiling). The whole set is replaced: a\nscope left out is withdrawn.",
        "operationId": "put_community_plugin_scopes",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityPluginScopesUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityPluginRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/plugins/{plugin_id}/handoff/{surface_id}": {
      "post": {
        "tags": [
          "plugins"
        ],
        "summary": "Create Community Plugin Handoff",
        "description": "Mint the short-lived credential for one of this plug-in's pages.\n\nWhether the surface may be opened is decided here, under the caller's real\nsession, so the plug-in never makes that call and never sees a request from\nsomebody who failed it. At the community level the caller holds the\nsurface's permission as an admin surface is held.\n\nThe token goes to the iframe by ``postMessage`` \u2014 never a query string \u2014\nand expires in a minute.",
        "operationId": "create_community_plugin_handoff",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "surface_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Surface Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityPluginHandoff"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/plugins/{plugin_id}/connections/{connection_id}/connect": {
      "post": {
        "tags": [
          "plugins"
        ],
        "summary": "Connect Community Plugin",
        "description": "Start the vendor flow behind one connection.\n\nTwo kinds run through here, and the connection's scope decides which:\n\n* **A member's own account.** Any member may, because the vendor is going to\n  authorize *them* and what the resulting credential reaches is what they\n  already reach.\n* **The guild's own credential**, where the vendor authorizes an\n  organization through a page of its own rather than through anything an\n  admin could type. The seat only \u2014 it is one credential for everybody.\n\nInitiative runs the flow: the answer is the vendor's own address (its\nauthorization page, or its install page for a connection an organization\ninstalls), and the vendor returns the person to Initiative's callback.\nNothing is stored until it does.",
        "operationId": "connect_community_plugin",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Connection Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "app",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ConnectingApp"
                },
                {
                  "type": "null"
                }
              ],
              "title": "App"
            }
          },
          {
            "name": "code_challenge",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 128
                },
                {
                  "type": "null"
                }
              ],
              "title": "Code Challenge"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityPluginConnectStart"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/plugins/{plugin_id}/connections/{connection_id}": {
      "delete": {
        "tags": [
          "plugins"
        ],
        "summary": "Disconnect Community Plugin",
        "description": "Disconnect: a member's own account, or a guild-wide credential.\n\nWhich one depends on the connection's scope, not on who is asking. A\nper-member connection is always the caller's own \u2014 an admin ending somebody\nelse's uses the Members endpoints, which record who acted. Clearing a\nguild-wide credential is an admin action, since it is the guild's.",
        "operationId": "disconnect_community_plugin",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Connection Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/plugins/{plugin_id}/connections/{connection_id}/setup": {
      "get": {
        "tags": [
          "plugins"
        ],
        "summary": "Read Community Plugin Setup",
        "description": "What the plug-in asks now about a made community connection that\ndeclares a setup, from its ``setup`` hook: steps, each with its\nquestions, and what the last one's button says. No steps once there is\nnothing left to set up. The seat's, as the connection is.\n``COMMUNITY_PLUGIN_SETUP_NOT_FOUND`` when the connection declares none,\n``COMMUNITY_PLUGIN_SETUP_NOT_CONNECTED`` while it is not made, and\n``COMMUNITY_PLUGIN_SETUP_NOT_ANSWERED`` when the plug-in did not answer\nwith a setup.",
        "operationId": "read_community_plugin_setup",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Connection Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityPluginSetupRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "plugins"
        ],
        "summary": "Submit Community Plugin Setup",
        "description": "Send the seat's answers to the setup to the plug-in, which acts on\nthem. Each must answer a question the setup asks now with one of its\noptions (``COMMUNITY_PLUGIN_SETUP_ANSWERS_INVALID`` otherwise). Refused by\nthe plug-in, ``COMMUNITY_PLUGIN_SETUP_REFUSED`` carries what it said.",
        "operationId": "submit_community_plugin_setup",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Connection Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityPluginSetupAnswers"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/plugins/{plugin_id}/consents/{consent_id}": {
      "put": {
        "tags": [
          "plugins"
        ],
        "summary": "Grant My Consent",
        "description": "Allow this plug-in to act as you for one of its requests, at ``access``.\n\nNever more than the plug-in asked for. Acts on the caller alone and takes no\nuser id. Signed-in only (``require_first_party_session``), and the way you\nsigned in is recorded with the answer.",
        "operationId": "grant_my_consent",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "consent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Consent Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityPluginConsentAnswer"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityPluginConsentRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "plugins"
        ],
        "summary": "Revoke My Consent",
        "description": "Decline one of this plug-in's requests, or withdraw what you allowed. The\nplug-in stops acting as you for it on its next request.",
        "operationId": "revoke_my_consent",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "consent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Consent Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/plugins/{plugin_id}/members": {
      "get": {
        "tags": [
          "plugins"
        ],
        "summary": "List Community Plugin Members",
        "description": "Who has connected which of this plug-in's per-member connections, and who\nanswered its requests to act as them \u2014 a page of members at a time.\n\nGuild admins only, and never secret values: what this supports is governance\n\u2014 seeing which vendor account somebody connected as, and ending it \u2014 rather\nthan looking at credentials.",
        "operationId": "list_community_plugin_members",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityPluginMembersResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/plugins/{plugin_id}/members/{user_id}/connections/{connection_id}": {
      "delete": {
        "tags": [
          "plugins"
        ],
        "summary": "Revoke Member Connection",
        "description": "End one member's connection. They may connect again unless blocked.",
        "operationId": "revoke_member_connection",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Connection Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/plugins/{plugin_id}/members/{user_id}/connections/{connection_id}/block": {
      "post": {
        "tags": [
          "plugins"
        ],
        "summary": "Block Member Connection",
        "description": "Revoke a member's connection and refuse the next one.\n\nThe lever for \"this person should no longer reach that system through us\"\nthat does not mean uninstalling the plug-in for everyone.",
        "operationId": "block_member_connection",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Connection Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "plugins"
        ],
        "summary": "Unblock Member Connection",
        "description": "Lift a block, so the member may connect their own account again.",
        "operationId": "unblock_member_connection",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Connection Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/plugins/{plugin_id}/members/{user_id}/consents": {
      "delete": {
        "tags": [
          "plugins"
        ],
        "summary": "Revoke Member Consents",
        "description": "End every answer one member gave this plug-in's requests to act as them,\npending requests included.\n\nAn admin ends an answer and cannot give one: the member allows a request\nagain themselves, or nobody does. Governance runs one way here, which is\nwhat keeps \"the plug-in acts as me\" something its subject actually decided.",
        "operationId": "revoke_member_consents",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/plugins/{plugin_id}/consents/revoke-all": {
      "post": {
        "tags": [
          "plugins"
        ],
        "summary": "Revoke All Member Consents",
        "description": "Stop this plug-in acting as anybody, without uninstalling it.\n\nEnds every member's answer to the plug-in's requests to act as them, pending\nones included. The companion to ``revoke-all`` for connections: for a\nsuspected plug-in compromise, reacting fast should not cost the guild its\nconfiguration. Members may allow requests again once the guild is\nsatisfied.",
        "operationId": "revoke_all_member_consents",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/plugins/{plugin_id}/revoke-all": {
      "post": {
        "tags": [
          "plugins"
        ],
        "summary": "Revoke All Member Connections",
        "description": "End every member's connection at once, leaving the install standing.\n\nFor a suspected plug-in or vendor compromise: reacting fast should not cost the\nguild its configuration.",
        "operationId": "revoke_all_member_connections",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/initiatives/{initiative_id}/plugins/{plugin_id}/handoff/{surface_id}": {
      "post": {
        "tags": [
          "plugins",
          "plugins"
        ],
        "summary": "Create Initiative Plugin Handoff",
        "description": "Mint the credential for a surface opened inside one initiative.\n\nThe install is the guild's \u2014 there is one of it, not one per initiative \u2014\nbut the surface is being opened somewhere narrower, and the token says so.\n\nThree gates, outermost first. The initiative must be one this caller can\nreach. The manifest must declare the surface for this scope, and the seat\nmust have placed the plug-in here. And the caller's role here must hold the\npermission the surface names, as a tool's permissions are held \u2014 which a\nguild admin and the initiative's managers always do.\n\nThe initiative in the minted token is this route's, never the caller's to\nsupply, so a plug-in can scope what it shows without asking a second question\nor trusting a parameter.",
        "operationId": "create_initiative_plugin_handoff",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "initiative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "plugin_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Plugin Id"
            }
          },
          {
            "name": "surface_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Surface Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityPluginHandoff"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/calendar-events/import/parse": {
      "post": {
        "tags": [
          "calendar-events"
        ],
        "summary": "Parse Ical File",
        "description": "Parse an .ics file and return a preview of found events.",
        "operationId": "parse_ical_file",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ICalParseRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ICalParseResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/calendar-events/import": {
      "post": {
        "tags": [
          "calendar-events"
        ],
        "summary": "Import Ical Events",
        "description": "Import events from an .ics file into a calendar. Requires write access\non the target calendar.",
        "operationId": "import_ical_events",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ICalImportRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ICalImportResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/calendar-events/{event_id}": {
      "get": {
        "tags": [
          "calendar-events"
        ],
        "summary": "Read Calendar Event",
        "operationId": "read_calendar_event",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Event Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "occurrence",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ],
              "description": "One occurrence of a repeating event, whose answers to show.",
              "title": "Occurrence"
            },
            "description": "One occurrence of a repeating event, whose answers to show."
          },
          {
            "name": "include_deleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Also return the resource if it is in the trash. For reading a resource back after a deleted event \u2014 the row still exists until retention purges it, and access is checked exactly as for a live one.",
              "default": false,
              "title": "Include Deleted"
            },
            "description": "Also return the resource if it is in the trash. For reading a resource back after a deleted event \u2014 the row still exists until retention purges it, and access is checked exactly as for a live one."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarEventRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "calendars:read"
      },
      "patch": {
        "tags": [
          "calendar-events"
        ],
        "summary": "Update Calendar Event",
        "description": "Update a calendar event. Requires write access on the calendar (and on\nthe target calendar when moving the event).\n\nFor a repeating event, ``scope`` says which occurrences: ``this`` one\n(named by ``occurrence``) becomes a row of its own, ``following`` ends the\nseries before it and starts a new one there, and ``all`` changes the\nseries, its times moving every occurrence by as much as they move the one\nnamed. Changing an occurrence that has a row of its own changes that row,\nunless the scope says otherwise.",
        "operationId": "update_calendar_event",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Event Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CalendarEventUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarEventRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "calendars:write"
      },
      "delete": {
        "tags": [
          "calendar-events"
        ],
        "summary": "Delete Calendar Event",
        "description": "Soft-delete a calendar event. Requires write access on the calendar.\n\nFor a repeating event, ``scope`` says which occurrences: ``this`` one\n(named by ``occurrence``) is skipped, ``following`` ends the series before\nit, and ``all`` bins the series with every occurrence of it. Deleting an\noccurrence that has a row of its own skips it, unless the scope says\notherwise.",
        "operationId": "delete_calendar_event",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Event Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "scope",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "this",
                    "following",
                    "all"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Scope"
            }
          },
          {
            "name": "occurrence",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Occurrence"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/calendar-events/": {
      "get": {
        "tags": [
          "calendar-events"
        ],
        "summary": "List Calendar Events",
        "description": "The events starting in the window, by start: a repeating one once for\neach of its occurrences there, ``original_start`` naming it, and one\nmoved on its own at its new time. The calendar's entries list draws the\nsame events beside tasks and projects for a person; this is the events\nalone, for an installed plug-in too.\n\n``start_after``/``start_before`` are required; the window may span at most\n``MAX_CALENDAR_WINDOW``. ``calendar_ids`` and ``initiative_id`` narrow it.",
        "operationId": "list_calendar_events",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Initiative Id"
            }
          },
          {
            "name": "calendar_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Calendar Ids"
            }
          },
          {
            "name": "tz",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Tz"
            }
          },
          {
            "name": "start_after",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time",
              "title": "Start After"
            }
          },
          {
            "name": "start_before",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time",
              "title": "Start Before"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CalendarEventSummary"
                  },
                  "title": "Response List Calendar Events"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "calendars:read"
      },
      "post": {
        "tags": [
          "calendar-events"
        ],
        "summary": "Create Calendar Event",
        "description": "Create a calendar event. Requires write access on the calendar.\n\nThe attendees it names are invited by whoever created it: the person, or\nan installed plug-in by its name. An installed plug-in's event has no creator.",
        "operationId": "create_calendar_event",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CalendarEventCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarEventRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "calendars:write"
      }
    },
    "/api/v1/c/{community_id}/calendar-events/{event_id}/duplicate": {
      "post": {
        "tags": [
          "calendar-events"
        ],
        "summary": "Duplicate Calendar Event",
        "description": "Copy the event beside itself as \"<title> (Copy)\", with its invitees,\nwho are invited to it as to a new event, its tags, links and properties. A\nrepeating event comes with its occurrences changed on their own; one\nchanged occurrence, or the ``occurrence`` named, is copied as an event of\nits own.",
        "operationId": "duplicate_calendar_event",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Event Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "occurrence",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ],
              "description": "One date of a repeating event, copied as an event of its own.",
              "title": "Occurrence"
            },
            "description": "One date of a repeating event, copied as an event of its own."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarEventRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "calendars:write"
      }
    },
    "/api/v1/c/{community_id}/calendar-events/{event_id}/occurrences": {
      "post": {
        "tags": [
          "calendar-events"
        ],
        "summary": "Open Occurrence",
        "description": "The occurrence starting at ``start`` as a row of its own, made from the\nseries the first time it is asked for, so it can change, carry its own\nattendees or be linked to alone. Requires write access on the calendar.",
        "operationId": "open_occurrence",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Event Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OccurrenceRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarEventRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "calendars:write"
      }
    },
    "/api/v1/c/{community_id}/calendar-events/{event_id}/occurrences/detach": {
      "post": {
        "tags": [
          "calendar-events"
        ],
        "summary": "Detach Occurrence",
        "description": "Copy the occurrence at ``start`` out into an event of its own, which\nthe series then skips.",
        "operationId": "detach_occurrence",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Event Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OccurrenceRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarEventRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "calendars:write"
      }
    },
    "/api/v1/c/{community_id}/calendar-events/{event_id}/occurrences/skip": {
      "post": {
        "tags": [
          "calendar-events"
        ],
        "summary": "Skip Occurrence",
        "description": "Skip the series' occurrence at ``start``, as deleting just that one\ndoes: its attendees hear it is cancelled, and restoring it brings it\nback. Requires write access on the calendar.",
        "operationId": "skip_occurrence",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Event Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OccurrenceRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarEventRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "calendars:write"
      }
    },
    "/api/v1/c/{community_id}/calendar-events/{event_id}/occurrences/restore": {
      "post": {
        "tags": [
          "calendar-events"
        ],
        "summary": "Restore Occurrence",
        "description": "Bring back a skipped occurrence of the series.",
        "operationId": "restore_occurrence",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Event Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OccurrenceRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarEventRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "calendars:write"
      }
    },
    "/api/v1/c/{community_id}/calendar-events/{event_id}/occurrences/add": {
      "post": {
        "tags": [
          "calendar-events"
        ],
        "summary": "Add Occurrence",
        "description": "Give the series an extra occurrence at ``start``.",
        "operationId": "add_occurrence",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Event Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OccurrenceRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarEventRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "calendars:write"
      }
    },
    "/api/v1/c/{community_id}/calendar-events/{event_id}/attendees": {
      "put": {
        "tags": [
          "calendar-events"
        ],
        "summary": "Set Attendees",
        "description": "Set attendees. Requires write access on the calendar.\n\nEveryone newly on the list is invited by whoever set it: the person, or an\ninstalled plug-in by its name. ``scope`` works as it does on an update.",
        "operationId": "set_attendees",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Event Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "scope",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "this",
                    "following",
                    "all"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Scope"
            }
          },
          {
            "name": "occurrence",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Occurrence"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "x-identity": "person"
                },
                "title": "Attendee Ids"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarEventRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "calendars:write"
      }
    },
    "/api/v1/c/{community_id}/calendar-events/{event_id}/rsvp": {
      "patch": {
        "tags": [
          "calendar-events"
        ],
        "summary": "Update Rsvp",
        "description": "Update the current user's RSVP status. Read access on the calendar\nsuffices \u2014 RSVPing is answering an invitation, not editing the event.\n\nOn an event whose RSVP is open, answering puts the reader on its list.\nClosed, only someone already on it answers, besides those who may edit\nthe event. An occurrence's own row carries its series' setting.\n\nAn answer is for one event: a repeating event is answered one occurrence\nat a time, named by ``occurrence``. Going or maybe going to an event that\ndepends on a form takes the reader's own answer to it first.",
        "operationId": "update_rsvp",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Event Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CalendarEventRSVPUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarEventRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/calendar-entries/": {
      "get": {
        "tags": [
          "calendar-entries"
        ],
        "summary": "List Calendar Entries",
        "description": "Events + task markers for one guild's calendar over a date window.\n\n``start_after``/``start_before`` are required and bound both legs; the\nwindow may span at most ``MAX_CALENDAR_WINDOW``.\n\nSkip a leg with ``include_events=false`` / ``include_tasks=false`` (e.g. when\nthe calendar has that type toggled off), and ask for the projects whose start\nor end date is in the window with ``include_projects=true`` and the polls\nthat close in it with ``include_polls=true``. ``calendar_ids`` narrows the event\nleg to named calendars \u2014 a surface showing a single calendar asks for\nexactly it rather than everything and filtering client-side.\n\n``scope=community`` is the same question asked by kind rather than by name: every\nguild calendar, however many there are. The calendar plug-in shows all of them\nat once, and a list of ids it had to assemble first would be a page of them.\n\n``initiative_id`` and ``scope`` bound every leg: an initiative's tasks are\nthose of its projects, and the community as a whole holds no tasks,\nprojects or posts, since each of those is an initiative's.",
        "operationId": "list_calendar_entries",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Initiative Id"
            }
          },
          {
            "name": "scope",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "const": "community",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Scope"
            }
          },
          {
            "name": "calendar_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Calendar Ids"
            }
          },
          {
            "name": "property_filters",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Property Filters"
            }
          },
          {
            "name": "conditions",
            "in": "query",
            "required": false,
            "description": "Task filter conditions (same JSON shape as GET /tasks).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/FilterCondition"
                      },
                      {
                        "$ref": "#/components/schemas/FilterGroup"
                      }
                    ]
                  }
                }
              }
            }
          },
          {
            "name": "tz",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Tz"
            }
          },
          {
            "name": "include_events",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": true,
              "title": "Include Events"
            }
          },
          {
            "name": "include_tasks",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": true,
              "title": "Include Tasks"
            }
          },
          {
            "name": "include_projects",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Include Projects"
            }
          },
          {
            "name": "include_polls",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Include Polls"
            }
          },
          {
            "name": "start_after",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time",
              "title": "Start After"
            }
          },
          {
            "name": "start_before",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time",
              "title": "Start Before"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarEntriesResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/marketplace/listings": {
      "get": {
        "tags": [
          "marketplace"
        ],
        "summary": "List Marketplace Listings",
        "description": "A page of listings this guild can install, searchable by name,\ndescription, or publisher, and narrowed to the given ``source`` values\nwhen any are named.\n\nA guild with none of a plug-in installed sees the same catalog as before \u2014\nthe plug-ins themselves, and the dashboards that stand alone.",
        "operationId": "list_marketplace_listings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ListingKind"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Kind"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 200
                },
                {
                  "type": "null"
                }
              ],
              "title": "Search"
            }
          },
          {
            "name": "source",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ListingSource"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Source"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 24,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceListingPage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/marketplace/listings/by-uid/{uid}": {
      "get": {
        "tags": [
          "marketplace"
        ],
        "summary": "Resolve Marketplace Listing",
        "description": "The listing a code names.\n\nThis is what an installed instance uses to find where it came from: the\ninstance stores the uid, and the catalog answers with the listing and the\nversion it currently publishes. A listing this guild can no longer take \u2014\na bundled dashboard whose plug-in it removed \u2014 answers 404, which is what\nstops an update being offered that the install would refuse.",
        "operationId": "resolve_marketplace_listing",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "uid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Uid"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "locale",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 35,
              "pattern": "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",
              "default": "en",
              "title": "Locale"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceListingDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/marketplace/listings/{public_id}": {
      "get": {
        "tags": [
          "marketplace"
        ],
        "summary": "Read Marketplace Listing",
        "description": "One listing, with what it would install and every version it has.",
        "operationId": "read_marketplace_listing",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "public_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Public Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "locale",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 35,
              "pattern": "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",
              "default": "en",
              "title": "Locale"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceListingDetail"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/marketplace/listings/by-uid/{uid}/install": {
      "post": {
        "tags": [
          "marketplace"
        ],
        "summary": "Install Marketplace Listing",
        "description": "Install a tool's listing: import a copy of it into an initiative.\n\nAny member who may create that tool in the initiative may install one \u2014\ncontent runs no code and reaches nothing, so this is the importer's own\npermission and nothing more. The copy is the member's: it records the\nlisting and version it came from, and nothing links it back.\n\nPlug-ins and profile packs install elsewhere; a uid naming one reads as not\nfound here, as it would from any installer that cannot install it.",
        "operationId": "install_marketplace_listing",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "uid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Uid"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketplaceInstallRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceInstallResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/marketplace/share": {
      "post": {
        "tags": [
          "marketplace"
        ],
        "summary": "Share To Marketplace",
        "description": "Share an item from this community to the deployment's marketplace.\n\nThe item is read the way exporting it reads it, on the member's own\nsession \u2014 so a member shares only what they could export \u2014 and stripped\nto what belongs to the work (``publish_profile``). It then becomes a\n``local`` listing, on the shelf straight away if the owner lets members\npublish directly, and otherwise waiting for the owner's review.\n\nNothing is read from the community's storage: its pictures are its own.\n``images`` are the pictures the member uploads for the listing with the\nshare \u2014 the ones its card and page show \u2014 and they are the only pictures\nit has. A new version keeps the listing's pictures, like its name.",
        "operationId": "share_to_marketplace",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_share_to_marketplace"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceShareResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/resource-grants/bulk": {
      "put": {
        "tags": [
          "resource-grants"
        ],
        "summary": "Bulk Set Resource Grants",
        "description": "Replace sharing on each listed resource (owner always preserved). Items the\ncaller can't manage or that don't exist are skipped and reported; the rest\napply. Each successful item commits independently \u2014 a later skip never rolls\nback an earlier success (authorization is checked before any write, so a skip\nleaves the transaction clean).",
        "operationId": "bulk_set_resource_grants",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResourceGrantBulkRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceGrantBulkResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/storage/usage": {
      "get": {
        "tags": [
          "storage"
        ],
        "summary": "Read Storage Usage",
        "operationId": "read_storage_usage",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityStorageUsageRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/credits/": {
      "get": {
        "tags": [
          "credits"
        ],
        "summary": "Read Credits",
        "operationId": "read_credits",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityCreditsRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/custom-roles/": {
      "get": {
        "tags": [
          "custom-roles"
        ],
        "summary": "List Custom Roles",
        "description": "The community's custom roles, for anybody in it: who holds what is\nshown beside each member.",
        "operationId": "list_custom_roles",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CustomRoleRead"
                  },
                  "title": "Response List Custom Roles"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "custom-roles"
        ],
        "summary": "Create Custom Role",
        "operationId": "create_custom_role",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomRoleCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomRoleRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/custom-roles/held": {
      "get": {
        "tags": [
          "custom-roles"
        ],
        "summary": "Read Held Surfaces",
        "description": "The admin surfaces and the plug-ins' community permissions the reader\nholds here: every one for an admin with no custom role, a role's\notherwise, none for a member without one. What the community's settings\npages are shown by, and a role's editor offers.",
        "operationId": "read_held_surfaces",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HeldSurfacesRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/custom-roles/{role_id}": {
      "patch": {
        "tags": [
          "custom-roles"
        ],
        "summary": "Update Custom Role",
        "description": "Rename a role, or change what it holds. Its rung stays the one it was\nmade on.",
        "operationId": "update_custom_role",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "role_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Role Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomRoleUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomRoleRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "custom-roles"
        ],
        "summary": "Delete Custom Role",
        "description": "Delete a role. Its holders stand on their plain rung again.",
        "operationId": "delete_custom_role",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "role_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Role Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/custom-roles/holders": {
      "get": {
        "tags": [
          "custom-roles"
        ],
        "summary": "List Custom Role Holders",
        "description": "Who holds which role, for anybody in the community.",
        "operationId": "list_custom_role_holders",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CustomRoleHolder"
                  },
                  "title": "Response List Custom Role Holders"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/custom-roles/holders/{user_id}": {
      "put": {
        "tags": [
          "custom-roles"
        ],
        "summary": "Assign Custom Role",
        "description": "Give a member a custom role, in place of the one they hold, or take\ntheirs off (``role_id`` null).",
        "operationId": "assign_custom_role",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomRoleAssignment"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/relationships/": {
      "get": {
        "tags": [
          "relationships"
        ],
        "summary": "List Relationships",
        "description": "Every live edge touching one thing, rendered from its side.\n\n``direction=inbound`` is \"what links here\": the things naming this one,\nrather than the things it names.",
        "operationId": "list_relationships",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "entity",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The thing to list edges for, as `kind:id`",
              "title": "Entity"
            },
            "description": "The thing to list edges for, as `kind:id`"
          },
          {
            "name": "relationship_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/RelationshipType"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Relationship Type"
            }
          },
          {
            "name": "other_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Other Type"
            }
          },
          {
            "name": "direction",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "inbound",
                "outbound",
                "both"
              ],
              "type": "string",
              "default": "both",
              "title": "Direction"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RelationshipRead"
                  },
                  "title": "Response List Relationships"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "relationships"
        ],
        "summary": "Create Relationship",
        "description": "Record one edge. 409 if it is already there.",
        "operationId": "create_relationship",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RelationshipCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RelationshipRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "relationships"
        ],
        "summary": "Replace Relationship Slice",
        "description": "Replace one slice of an entity's edges \u2014 what a multi-select does.\n\nEvery id named has to resolve for this caller, so a slice cannot be used to\nattach something out of reach. What is dropped is deleted rather than\nremembered: a replace is the surface restating a set, not a person taking\none link back.",
        "operationId": "replace_relationship_slice",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "entity",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The thing whose edges are being set",
              "title": "Entity"
            },
            "description": "The thing whose edges are being set"
          },
          {
            "name": "relationship_type",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/RelationshipType"
            }
          },
          {
            "name": "other_type",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Other Type"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer"
                },
                "title": "Ids"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RelationshipRead"
                  },
                  "title": "Response Replace Relationship Slice"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/relationships/tasks": {
      "get": {
        "tags": [
          "relationships"
        ],
        "summary": "List Task Edges",
        "description": "Every live edge from or to a task of a project, to another task the\nreader can open, and those of the tasks it reaches that are another\nproject's: what a Gantt draws its arrows, nesting and outside rows from.",
        "operationId": "list_task_edges",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "project_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "The project whose tasks' edges to list",
              "title": "Project Id"
            },
            "description": "The project whose tasks' edges to list"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskEdgesRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/relationships/neighbourhood": {
      "get": {
        "tags": [
          "relationships"
        ],
        "summary": "Get Relations Neighbourhood",
        "description": "Everything within some hops of one thing, in one request.\n\nWhat a graph of a thing's links draws. Each hop walks on from at most\nforty things, the earliest linked first, and every edge and far end is\ngated exactly as the per-entity list is.",
        "operationId": "get_relations_neighbourhood",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "entity",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The thing at the centre, as `kind:id`",
              "title": "Entity"
            },
            "description": "The thing at the centre, as `kind:id`"
          },
          {
            "name": "hops",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 3,
              "minimum": 1,
              "description": "How many links out to walk",
              "default": 1,
              "title": "Hops"
            },
            "description": "How many links out to walk"
          },
          {
            "name": "include_tags",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Walk through labels as well",
              "default": false,
              "title": "Include Tags"
            },
            "description": "Walk through labels as well"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NeighbourhoodRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/relationships/{relationship_id}": {
      "delete": {
        "tags": [
          "relationships"
        ],
        "summary": "Remove Relationship",
        "description": "Take an edge back.\n\nYour own edge, or one on a thing you can edit. Guarded here rather than by\nthe policy, because the rule for making a link and the rule for undoing\nsomebody else's are different questions, and a policy answers per statement\nrather than per author.\n\nAn edge derived from content is not one to take back at all: what it says\nis what a body says, and the way to change that is to edit the body.",
        "operationId": "remove_relationship",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "relationship_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Relationship Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/tags/": {
      "get": {
        "tags": [
          "tags"
        ],
        "summary": "List Tags",
        "description": "List all tags in the current guild.",
        "operationId": "list_tags",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TagRead"
                  },
                  "title": "Response List Tags"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "tags:read"
      },
      "post": {
        "tags": [
          "tags"
        ],
        "summary": "Create Tag",
        "description": "Create a new tag in the current guild. Its name is the community's\nalone: one already taken is refused, whatever its case.",
        "operationId": "create_tag",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TagCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TagRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "tags:write"
      }
    },
    "/api/v1/c/{community_id}/tags/bulk": {
      "post": {
        "tags": [
          "tags"
        ],
        "summary": "Bulk Edit Tags",
        "description": "Add and/or remove tags across many entities of one type, atomically.\n\nEvery target is authorized with write on the tool that governs it, read\nfrom the registry its RLS policy is rendered from: a tool row asks itself,\na sub-resource (a task, a counter, a wiki page, \u2026) asks its parent tool.\nA tool plug-in's row is read and refused by its tool's sharing, one at a\ntime. Nothing is applied unless every target passes \u2014 one transaction, and\na parent tool's ``updated_at`` moves once for all of its sub-resources\nrather than once per row.",
        "operationId": "bulk_edit_tags",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TagBulkEditRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TagBulkEditResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "tags:write"
      }
    },
    "/api/v1/c/{community_id}/tags/{tag_id}": {
      "get": {
        "tags": [
          "tags"
        ],
        "summary": "Get Tag",
        "description": "Get a specific tag by ID.",
        "operationId": "get_tag",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "tag_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Tag Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "include_deleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Also return the resource if it is in the trash. For reading a resource back after a deleted event \u2014 the row still exists until retention purges it, and access is checked exactly as for a live one.",
              "default": false,
              "title": "Include Deleted"
            },
            "description": "Also return the resource if it is in the trash. For reading a resource back after a deleted event \u2014 the row still exists until retention purges it, and access is checked exactly as for a live one."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TagRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "tags"
        ],
        "summary": "Update Tag",
        "description": "Update a tag's name or color.",
        "operationId": "update_tag",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "tag_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Tag Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TagUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TagRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "tags"
        ],
        "summary": "Delete Tag",
        "description": "Soft-delete a tag. The tag moves to the guild's trash; junction rows\nstay in place (reads hide them via the soft-delete filter) and fall with\nthe tag's ORM relationship cascade on hard purge.",
        "operationId": "delete_tag",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "tag_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Tag Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/tags/{tag_id}/counts": {
      "get": {
        "tags": [
          "tags"
        ],
        "summary": "Get Tag Counts",
        "description": "How many things of each taggable kind carry this tag, in one statement.\n\nA tag reaches across every initiative in the community, so this counts\nwhat has been shared with the reader \u2014 the same rule the community-wide\ntool lists and the ``/me/*`` views follow. A guild admin's authority over\nany one initiative is unchanged; it is asked about by opening that\ninitiative, not by opening a tag. Each figure is the ``total_count`` of\nthe list the tag's page shows for that kind.",
        "operationId": "get_tag_counts",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "tag_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Tag Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TagEntityCountsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/tags/{tag_id}/entities": {
      "get": {
        "tags": [
          "tags"
        ],
        "summary": "Get Tag Entities",
        "description": "One page of the things of one kind carrying this tag, by name.\n\nShared with the reader on the same rule as ``GET /tags/{id}/counts``, whose\nfigure for ``kind`` is this list's ``total_count``. Each row names itself\nand the tool it lives in, the way a search hit does, which is everything a\nclient needs to address it.",
        "operationId": "get_tag_entities",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "tag_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Tag Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "kind",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The taggable kind to list",
              "title": "Kind"
            },
            "description": "The taggable kind to list"
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaggedEntitiesResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/tools/{tool}/reorder": {
      "post": {
        "tags": [
          "tools"
        ],
        "summary": "Reorder Tool",
        "description": "Put the reader's own list of a tool in an order of their own: the rows\ngiven first, in that order, then the rest of the list where it stood. Ids\nthe reader cannot see are ignored. The list follows it, and so do the\ntool's pins in the reader's sidebar.",
        "operationId": "reorder_tool",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "tool",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Tool"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToolReorderRequest"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/tools/{tool}/{tool_id}/tags": {
      "put": {
        "tags": [
          "tools"
        ],
        "summary": "Set Tool Tags",
        "description": "Set tags on any tool entity. Replaces all existing tags with the\nprovided list and returns the entity's new tags. Requires write access.",
        "operationId": "set_tool_tags",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "tool",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Tool"
            }
          },
          {
            "name": "tool_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Tool Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TagSetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TagSummary"
                  },
                  "title": "Response Set Tool Tags"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/tools/{tool}/{tool_id}/comments": {
      "put": {
        "tags": [
          "tools"
        ],
        "summary": "Set Tool Comment Settings",
        "description": "Turn the comment thread on any tool entity on or off. Requires write\naccess, the same level that posting to the thread takes.\n\nTurning it off keeps the comments that are already there \u2014 nothing is\ndeleted; the thread stops being readable or writable until it is turned\nback on. A task's thread is its own and is never affected by its project's\nswitch.",
        "operationId": "set_tool_comment_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "tool",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Tool"
            }
          },
          {
            "name": "tool_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Tool Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ToolCommentSettings"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolCommentSettings"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/projects/{project_id}/grants": {
      "put": {
        "tags": [
          "projects"
        ],
        "summary": "Set Project Grants",
        "description": "Replace the project's entire sharing state in one call \u2014 the body is the\nfull list of grants (all-initiative-members / per-user / per-role). Every\nnon-owner grant is rebuilt from it; the owner is always preserved.\n\nAnyone the new sharing no longer lets open the project is taken off\nwhatever in it names them.",
        "operationId": "set_project_grants",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Project Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "note",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 1000
                },
                {
                  "type": "null"
                }
              ],
              "description": "A note to each person the new sharing lets in.",
              "title": "Note"
            },
            "description": "A note to each person the new sharing lets in."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ResourceGrantSchema"
                },
                "title": "Grants"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "sharing:write"
      }
    },
    "/api/v1/c/{community_id}/files/{file_id}/grants": {
      "put": {
        "tags": [
          "files"
        ],
        "summary": "Set File Grants",
        "description": "Replace the file's entire sharing state in one call \u2014 the body is the\nfull list of grants (all-initiative-members / per-user / per-role). Every\nnon-owner grant is rebuilt from it; the owner is always preserved.\n\nAnyone the new sharing no longer lets open the file is taken off\nwhatever in it names them.",
        "operationId": "set_file_grants",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "File Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "note",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 1000
                },
                {
                  "type": "null"
                }
              ],
              "description": "A note to each person the new sharing lets in.",
              "title": "Note"
            },
            "description": "A note to each person the new sharing lets in."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ResourceGrantSchema"
                },
                "title": "Grants"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "sharing:write"
      }
    },
    "/api/v1/c/{community_id}/calendars/{calendar_id}/grants": {
      "put": {
        "tags": [
          "calendars"
        ],
        "summary": "Set Calendar Grants",
        "description": "Replace the calendar's entire sharing state in one call \u2014 the body is the\nfull list of grants (all-initiative-members / per-user / per-role). Every\nnon-owner grant is rebuilt from it; the owner is always preserved.\n\nAnyone the new sharing no longer lets open the calendar is taken off\nwhatever in it names them.",
        "operationId": "set_calendar_grants",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "calendar_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Calendar Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "note",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 1000
                },
                {
                  "type": "null"
                }
              ],
              "description": "A note to each person the new sharing lets in.",
              "title": "Note"
            },
            "description": "A note to each person the new sharing lets in."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ResourceGrantSchema"
                },
                "title": "Grants"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "sharing:write"
      }
    },
    "/api/v1/c/{community_id}/dashboards/{dashboard_id}/grants": {
      "put": {
        "tags": [
          "dashboards"
        ],
        "summary": "Set Dashboard Grants",
        "description": "Replace the dashboard's entire sharing state in one call \u2014 the body is the\nfull list of grants (all-initiative-members / per-user / per-role). Every\nnon-owner grant is rebuilt from it; the owner is always preserved.\n\nAnyone the new sharing no longer lets open the dashboard is taken off\nwhatever in it names them.\n\nThis shares the canvas, not its data: each widget still resolves against\nthe viewer's own access to the sources it binds.",
        "operationId": "set_dashboard_grants",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "dashboard_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Dashboard Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "note",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 1000
                },
                {
                  "type": "null"
                }
              ],
              "description": "A note to each person the new sharing lets in.",
              "title": "Note"
            },
            "description": "A note to each person the new sharing lets in."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ResourceGrantSchema"
                },
                "title": "Grants"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/posts/{post_id}/grants": {
      "put": {
        "tags": [
          "posts"
        ],
        "summary": "Set Post Grants",
        "description": "Replace the post's entire sharing state in one call \u2014 the body is the\nfull list of grants (all-initiative-members / per-user / per-role). Every\nnon-owner grant is rebuilt from it; the owner is always preserved.\n\nAnyone the new sharing no longer lets open the post is taken off\nwhatever in it names them.",
        "operationId": "set_post_grants",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "post_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Post Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "note",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 1000
                },
                {
                  "type": "null"
                }
              ],
              "description": "A note to each person the new sharing lets in.",
              "title": "Note"
            },
            "description": "A note to each person the new sharing lets in."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ResourceGrantSchema"
                },
                "title": "Grants"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "sharing:write"
      }
    },
    "/api/v1/c/{community_id}/wikis/{wiki_id}/grants": {
      "put": {
        "tags": [
          "wikis"
        ],
        "summary": "Set Wiki Grants",
        "description": "Replace the wiki's entire sharing state in one call \u2014 the body is the\nfull list of grants (all-initiative-members / per-user / per-role). Every\nnon-owner grant is rebuilt from it; the owner is always preserved.\n\nAnyone the new sharing no longer lets open the wiki is taken off\nwhatever in it names them.",
        "operationId": "set_wiki_grants",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "wiki_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Wiki Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "note",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 1000
                },
                {
                  "type": "null"
                }
              ],
              "description": "A note to each person the new sharing lets in.",
              "title": "Note"
            },
            "description": "A note to each person the new sharing lets in."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ResourceGrantSchema"
                },
                "title": "Grants"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WikiRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "sharing:write"
      }
    },
    "/api/v1/c/{community_id}/contacts/{contact_id}/grants": {
      "put": {
        "tags": [
          "contacts"
        ],
        "summary": "Set Contact Grants",
        "description": "Replace the contact's entire sharing state in one call \u2014 the body is the\nfull list of grants (all-initiative-members / per-user / per-role). Every\nnon-owner grant is rebuilt from it; the owner is always preserved.\n\nAnyone the new sharing no longer lets open the contact is taken off\nwhatever in it names them.",
        "operationId": "set_contact_grants",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "contact_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Contact Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "note",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 1000
                },
                {
                  "type": "null"
                }
              ],
              "description": "A note to each person the new sharing lets in.",
              "title": "Note"
            },
            "description": "A note to each person the new sharing lets in."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ResourceGrantSchema"
                },
                "title": "Grants"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "sharing:write"
      }
    },
    "/api/v1/c/{community_id}/forms/{form_id}/grants": {
      "put": {
        "tags": [
          "forms"
        ],
        "summary": "Set Form Grants",
        "description": "Replace the form's entire sharing state in one call \u2014 the body is the\nfull list of grants (all-initiative-members / per-user / per-role). Every\nnon-owner grant is rebuilt from it; the owner is always preserved.\n\nAnyone the new sharing no longer lets open the form is taken off\nwhatever in it names them.",
        "operationId": "set_form_grants",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "form_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Form Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "note",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 1000
                },
                {
                  "type": "null"
                }
              ],
              "description": "A note to each person the new sharing lets in.",
              "title": "Note"
            },
            "description": "A note to each person the new sharing lets in."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ResourceGrantSchema"
                },
                "title": "Grants"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "sharing:write"
      }
    },
    "/api/v1/c/{community_id}/projects/{project_id}/duplicate": {
      "post": {
        "tags": [
          "projects"
        ],
        "summary": "Duplicate Project",
        "description": "Copy it, with everything inside it, into an initiative: its own unless the body names another. Read is enough to copy a template; anything else needs write. The copy is shared as its source is while it stays in the same initiative, and carries the tags its maker may set: an installed plug-in's copy carries them only when it holds the scope to tag.",
        "operationId": "duplicate_project",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Project Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ToolDuplicateRequest"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "projects:write"
      }
    },
    "/api/v1/c/{community_id}/files/{file_id}/duplicate": {
      "post": {
        "tags": [
          "files"
        ],
        "summary": "Duplicate File",
        "description": "Copy it, with everything inside it, into an initiative: its own unless the body names another. Read is enough to copy a template; anything else needs write. The copy is shared as its source is while it stays in the same initiative, and carries the tags its maker may set: an installed plug-in's copy carries them only when it holds the scope to tag.",
        "operationId": "duplicate_file",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "File Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ToolDuplicateRequest"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "files:write"
      }
    },
    "/api/v1/c/{community_id}/calendars/{calendar_id}/duplicate": {
      "post": {
        "tags": [
          "calendars"
        ],
        "summary": "Duplicate Calendar",
        "description": "Copy it, with everything inside it, into an initiative: its own unless the body names another. Read is enough to copy a template; anything else needs write. The copy is shared as its source is while it stays in the same initiative, and carries the tags its maker may set: an installed plug-in's copy carries them only when it holds the scope to tag.",
        "operationId": "duplicate_calendar",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "calendar_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Calendar Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ToolDuplicateRequest"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "calendars:write"
      }
    },
    "/api/v1/c/{community_id}/dashboards/{dashboard_id}/duplicate": {
      "post": {
        "tags": [
          "dashboards"
        ],
        "summary": "Duplicate Dashboard",
        "description": "Copy it, with everything inside it, into an initiative: its own unless the body names another. Read is enough to copy a template; anything else needs write. The copy is shared as its source is while it stays in the same initiative, and carries the tags its maker may set: an installed plug-in's copy carries them only when it holds the scope to tag.",
        "operationId": "duplicate_dashboard",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "dashboard_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Dashboard Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ToolDuplicateRequest"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/posts/{post_id}/duplicate": {
      "post": {
        "tags": [
          "posts"
        ],
        "summary": "Duplicate Post",
        "description": "Copy it, with everything inside it, into an initiative: its own unless the body names another. Read is enough to copy a template; anything else needs write. The copy is shared as its source is while it stays in the same initiative, and carries the tags its maker may set: an installed plug-in's copy carries them only when it holds the scope to tag.",
        "operationId": "duplicate_post",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "post_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Post Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ToolDuplicateRequest"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "posts:write"
      }
    },
    "/api/v1/c/{community_id}/wikis/{wiki_id}/duplicate": {
      "post": {
        "tags": [
          "wikis"
        ],
        "summary": "Duplicate Wiki",
        "description": "Copy it, with everything inside it, into an initiative: its own unless the body names another. Read is enough to copy a template; anything else needs write. The copy is shared as its source is while it stays in the same initiative, and carries the tags its maker may set: an installed plug-in's copy carries them only when it holds the scope to tag.",
        "operationId": "duplicate_wiki",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "wiki_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Wiki Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ToolDuplicateRequest"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WikiRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "wikis:write"
      }
    },
    "/api/v1/c/{community_id}/contacts/{contact_id}/duplicate": {
      "post": {
        "tags": [
          "contacts"
        ],
        "summary": "Duplicate Contact",
        "description": "Copy it, with everything inside it, into an initiative: its own unless the body names another. Read is enough to copy a template; anything else needs write. The copy is shared as its source is while it stays in the same initiative, and carries the tags its maker may set: an installed plug-in's copy carries them only when it holds the scope to tag.",
        "operationId": "duplicate_contact",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "contact_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Contact Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ToolDuplicateRequest"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "contacts:write"
      }
    },
    "/api/v1/c/{community_id}/forms/{form_id}/duplicate": {
      "post": {
        "tags": [
          "forms"
        ],
        "summary": "Duplicate Form",
        "description": "Copy it, with everything inside it, into an initiative: its own unless the body names another. Read is enough to copy a template; anything else needs write. The copy is shared as its source is while it stays in the same initiative, and carries the tags its maker may set: an installed plug-in's copy carries them only when it holds the scope to tag.",
        "operationId": "duplicate_form",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "form_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Form Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ToolDuplicateRequest"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "forms:write"
      }
    },
    "/api/v1/c/{community_id}/search/": {
      "get": {
        "tags": [
          "search"
        ],
        "summary": "Search Community",
        "description": "Ranked matches across the guild's tools, comments and tags.\n\n``total_count`` counts entities the caller may see, so it is what a pager\nshould show rather than an estimate to correct later.",
        "operationId": "search_community",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "search",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 1000,
              "description": "What to search for.",
              "title": "Search"
            },
            "description": "What to search for."
          },
          {
            "name": "types",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Restrict to these entity types. Omit for the default scope (calendar, calendar_event, collection, contact, dashboard, file, form, post, project, tag, task, wiki, wiki_page); naming a type reaches it explicitly.",
              "title": "Types"
            },
            "description": "Restrict to these entity types. Omit for the default scope (calendar, calendar_event, collection, contact, dashboard, file, form, post, project, tag, task, wiki, wiki_page); naming a type reaches it explicitly."
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Restrict to one initiative.",
              "title": "Initiative Id"
            },
            "description": "Restrict to one initiative."
          },
          {
            "name": "include_archived",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Include archived work. Left out by default, so a search answers with what is in play.",
              "default": false,
              "title": "Include Archived"
            },
            "description": "Include archived work. Left out by default, so a search answers with what is in play."
          },
          {
            "name": "is_template",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Omit for both. ``true`` returns only templates (a template picker), ``false`` only real content (a picker choosing where content goes).",
              "title": "Is Template"
            },
            "description": "Omit for both. ``true`` returns only templates (a template picker), ``false`` only real content (a picker choosing where content goes)."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResults"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/search/recent": {
      "get": {
        "tags": [
          "search"
        ],
        "summary": "Recent Community",
        "description": "What a picker offers before anything has been typed.\n\nThe most recently changed things the caller could name, taking the same\n``types``, ``initiative_id`` and ``is_template`` narrowing as the search \u2014 so\nwhat a picker suggests and what it finds are the same set of things.",
        "operationId": "recent_community",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "types",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Restrict to these entity types. Omit for the default scope (calendar, calendar_event, collection, contact, dashboard, file, form, post, project, tag, task, wiki, wiki_page); naming a type reaches it explicitly.",
              "title": "Types"
            },
            "description": "Restrict to these entity types. Omit for the default scope (calendar, calendar_event, collection, contact, dashboard, file, form, post, project, tag, task, wiki, wiki_page); naming a type reaches it explicitly."
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Restrict to one initiative.",
              "title": "Initiative Id"
            },
            "description": "Restrict to one initiative."
          },
          {
            "name": "is_template",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Omit for both. ``true`` returns only templates (a template picker), ``false`` only real content (a picker choosing where content goes).",
              "title": "Is Template"
            },
            "description": "Omit for both. ``true`` returns only templates (a template picker), ``false`` only real content (a picker choosing where content goes)."
          },
          {
            "name": "subject",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The thing being written in, as a reference (``file:12``). It is left out of the answer: a thing does not point at itself. A reference that names nothing narrows nothing.",
              "title": "Subject"
            },
            "description": "The thing being written in, as a reference (``file:12``). It is left out of the answer: a thing does not point at itself. A reference that names nothing narrows nothing."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 10,
              "title": "Limit"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SearchSuggestion"
                  },
                  "title": "Response Recent Community"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/search/suggest": {
      "get": {
        "tags": [
          "search"
        ],
        "summary": "Suggest Community",
        "description": "Titles for a picker \u2014 a way to name one thing quickly. Matches the\ntitle alone: a picker names a thing, and the search finds what is written\ninside it.\n\nTakes the same ``types`` as the search itself, so a picker can be narrowed\nto the same slice of the guild as the results page.\n\nAn installed plug-in is answered the kinds among ``types`` (the default scope\nwhen omitted) whose read scope it holds, in the initiatives it is placed\nin, and only what it could read through the tools themselves. Asking only\nfor kinds it holds no read scope for is 403 (``PLUGIN_SCOPE_REQUIRED``).",
        "operationId": "suggest_community",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "search",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 200,
              "description": "What to jump to.",
              "title": "Search"
            },
            "description": "What to jump to."
          },
          {
            "name": "types",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Restrict to these entity types. Omit for the default scope (calendar, calendar_event, collection, contact, dashboard, file, form, post, project, tag, task, wiki, wiki_page); naming a type reaches it explicitly.",
              "title": "Types"
            },
            "description": "Restrict to these entity types. Omit for the default scope (calendar, calendar_event, collection, contact, dashboard, file, form, post, project, tag, task, wiki, wiki_page); naming a type reaches it explicitly."
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Restrict to one initiative.",
              "title": "Initiative Id"
            },
            "description": "Restrict to one initiative."
          },
          {
            "name": "is_template",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Omit for both. ``true`` returns only templates (a template picker), ``false`` only real content (a picker choosing where content goes).",
              "title": "Is Template"
            },
            "description": "Omit for both. ``true`` returns only templates (a template picker), ``false`` only real content (a picker choosing where content goes)."
          },
          {
            "name": "subject",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The thing being written in, as a reference (``file:12``). It is left out of the answer: a thing does not point at itself. A reference that names nothing narrows nothing.",
              "title": "Subject"
            },
            "description": "The thing being written in, as a reference (``file:12``). It is left out of the answer: a thing does not point at itself. A reference that names nothing narrows nothing."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 10,
              "title": "Limit"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SearchSuggestion"
                  },
                  "title": "Response Suggest Community"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": {
          "per": "entity_type",
          "any_of": [
            "calendars:read",
            "comments:read",
            "contacts:read",
            "dashboards:read",
            "files:read",
            "forms:read",
            "posts:read",
            "projects:read",
            "tags:read",
            "wikis:read"
          ]
        }
      }
    },
    "/api/v1/c/{community_id}/smart-chips/": {
      "post": {
        "tags": [
          "smart-chips"
        ],
        "summary": "Read Smart Chips",
        "description": "Read every chip on one page in one request.\n\nA reference that names something gone, or something this caller may not\nsee, is absent from the answer \u2014 the two are the same reply, and the chip\nfalls back to the words the file stored beside it.",
        "operationId": "read_smart_chips",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReferenceRead"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmartChipStateList"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/smart-chips/embeds": {
      "post": {
        "tags": [
          "smart-chips"
        ],
        "summary": "Read Reference Embeds",
        "description": "What an embedded reference shows: the thing's name, and its description\nor, for prose, its body.\n\nAbsent for anything gone or out of this caller's reach, as a chip is.",
        "operationId": "read_reference_embeds",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmbedRead"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReferenceEmbedList"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/property-definitions/": {
      "get": {
        "tags": [
          "property-definitions"
        ],
        "summary": "List Property Definitions",
        "description": "List property definitions, or a project's or a collection's metadata.\n\nWith ``initiative_id``, returns definitions for that initiative only\n(filtered explicitly and subject to RLS). Without it, RLS returns the\nunion across every initiative the caller can see \u2014 used by global\nviews (My Tasks, Created Tasks, global Files list). A project's metadata\nis listed only with its ``project_id``, and only to whoever can open the\nproject; a collection's only with its ``collection_id``, and only to\nwhoever sees the collection.",
        "operationId": "list_property_definitions",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Initiative Id"
            }
          },
          {
            "name": "project_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "List this project's metadata instead of properties.",
              "title": "Project Id"
            },
            "description": "List this project's metadata instead of properties."
          },
          {
            "name": "collection_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "List this collection's metadata instead of properties.",
              "title": "Collection Id"
            },
            "description": "List this collection's metadata instead of properties."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PropertyDefinitionRead"
                  },
                  "title": "Response List Property Definitions"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": {
          "per": "tool",
          "any_of": [
            "calendars:read",
            "contacts:read",
            "dashboards:read",
            "files:read",
            "forms:read",
            "posts:read",
            "projects:read",
            "properties:read",
            "wikis:read"
          ]
        }
      },
      "post": {
        "tags": [
          "property-definitions"
        ],
        "summary": "Create Property Definition",
        "description": "Create a new property definition on an initiative, or with\n``project_id`` or ``collection_id`` that project's or collection's\nmetadata.\n\nA property requires the caller to be in the target initiative (or a guild\nadmin); an installed plug-in also needs ``properties:write``. A project's\nmetadata requires the right to write the project's tasks (and\n``projects:write`` of a plug-in); a collection's the right to change the\ncollection (and ``files:write`` of a plug-in).",
        "operationId": "create_property_definition",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PropertyDefinitionCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PropertyDefinitionRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": {
          "per": "owner's_scope",
          "any_of": [
            "files:write",
            "projects:write",
            "properties:write"
          ]
        }
      }
    },
    "/api/v1/c/{community_id}/property-definitions/by-owner": {
      "get": {
        "tags": [
          "property-definitions"
        ],
        "summary": "List Property Definitions By Owner",
        "description": "The initiative's metadata, then the properties of each of its projects\nand each of its collections, under the owner's name.\n\nA project's or a collection's are listed only to whoever may edit them,\nas making, changing and removing one asks; a role that reaches every\nproject and collection (the community's admin, a live grant) is listed\nthem all. ``can_edit`` says whether the reader may rename, reorder and\ndelete a group's: a project's and a collection's always, as listed, and\nthe initiative's for its managers and the community's admin.",
        "operationId": "list_property_definitions_by_owner",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PropertyDefinitionGroups"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": {
          "per": "tool",
          "any_of": [
            "calendars:read",
            "contacts:read",
            "dashboards:read",
            "files:read",
            "forms:read",
            "posts:read",
            "projects:read",
            "properties:read",
            "wikis:read"
          ]
        }
      }
    },
    "/api/v1/c/{community_id}/property-definitions/bulk-delete": {
      "post": {
        "tags": [
          "property-definitions"
        ],
        "summary": "Delete Property Definitions",
        "description": "Delete several of the initiative's definitions at once, with every\nvalue of each and every saved filter's conditions on each: all of them,\nor, when any may not be removed as deleting it alone asks, none.",
        "operationId": "delete_property_definitions",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PropertyDefinitionBulkDelete"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": {
          "per": "owner's_scope",
          "any_of": [
            "files:write",
            "projects:write",
            "properties:write"
          ]
        }
      }
    },
    "/api/v1/c/{community_id}/property-definitions/delete-preview": {
      "get": {
        "tags": [
          "property-definitions"
        ],
        "summary": "Preview Property Deletion",
        "description": "What deleting these definitions of the initiative would change beyond\ntheir values: how many saved views filter on them. Asked as deleting them\nis, so only whoever may delete them is told; it counts other people's\nviews of the community's lists, and names none of them.",
        "operationId": "preview_property_deletion",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "ids",
            "in": "query",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "integer"
              },
              "minItems": 1,
              "maxItems": 100,
              "title": "Ids"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PropertyDeletePreview"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/property-definitions/promote": {
      "post": {
        "tags": [
          "property-definitions"
        ],
        "summary": "Promote Property Definitions",
        "description": "Merge properties of one type, from the initiative's projects and\ncollections, into one of its metadata named ``name``, answering it.\n\nIt is the initiative's metadata of that name and type if there is one, or\na new one. Its options gain theirs, their values move to it, every layout\nshowing one of them shows it instead, every saved filter on one of them\nfilters on it, and they are deleted, in one transaction\n(``metadata_service.promote``); the filters the request may not write\nfollow once it commits, before it answers. It asks to remove each of them\nas deleting it alone does, and to define the initiative's metadata, as\nmaking one does; an installed plug-in also needs ``properties:write``.",
        "operationId": "promote_property_definitions",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PropertyDefinitionPromote"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PropertyDefinitionRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": {
          "per": "owner's_scope",
          "any_of": [
            "files:write",
            "projects:write",
            "properties:write"
          ]
        }
      }
    },
    "/api/v1/c/{community_id}/property-definitions/{definition_id}": {
      "patch": {
        "tags": [
          "property-definitions"
        ],
        "summary": "Update Property Definition",
        "description": "Update a property definition.\n\nType changes are not allowed via this endpoint; callers should\ndelete the definition and re-create. Changing the option list on a\nselect / multi_select definition returns ``orphaned_value_count`` so\nthe SPA can warn about dangling values. A project's or a collection's\nmetadata is changed by whoever may define it.",
        "operationId": "update_property_definition",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "definition_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Definition Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PropertyDefinitionUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PropertyDefinitionUpdateResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": {
          "per": "owner's_scope",
          "any_of": [
            "files:write",
            "projects:write",
            "properties:write"
          ]
        }
      },
      "delete": {
        "tags": [
          "property-definitions"
        ],
        "summary": "Delete Property Definition",
        "description": "Delete a property definition. Cascades to remove all attached values,\nand every saved filter's conditions on it go with it\n(``saved_filters.follow``). A project's or a collection's metadata is\nremoved by whoever may define it.",
        "operationId": "delete_property_definition",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "definition_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Definition Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": {
          "per": "owner's_scope",
          "any_of": [
            "files:write",
            "projects:write",
            "properties:write"
          ]
        }
      }
    },
    "/api/v1/c/{community_id}/properties/{target}/bulk": {
      "put": {
        "tags": [
          "properties"
        ],
        "summary": "Set Properties In Bulk",
        "description": "What ``PUT /properties/{target}/{entity_id}`` does, to each of many\nthings of one kind: every one of them, or none when any one is refused.\nWith ``merge``, each keeps the values the request does not name.",
        "operationId": "set_properties_in_bulk",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "target",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Target"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PropertyValuesBulkSetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": {
          "by": "target",
          "scopes": {
            "calendar": "calendars:write",
            "calendar_event": "calendars:write",
            "collection": "files:write",
            "contact": "contacts:write",
            "dashboard": "dashboards:write",
            "file": "files:write",
            "form": "forms:write",
            "form_response": "forms:write",
            "post": "posts:write",
            "project": "projects:write",
            "task": "projects:write",
            "wiki": "wikis:write",
            "wiki_page": "wikis:write"
          }
        }
      }
    },
    "/api/v1/c/{community_id}/properties/{target}/{entity_id}": {
      "put": {
        "tags": [
          "properties"
        ],
        "summary": "Set Properties",
        "description": "Replace the custom property values on one tool or sub-tool, or with\n``merge`` write only the ones named and leave the rest, change options of\nmulti-select values and step counters against what each holds.\n\nRequires write on the tool that governs it: a tool itself, or the tool a\nsub-tool sits in (a task's project, an event's calendar). Each value's\ndefinition must belong to the same initiative, so a row that belongs to no\ninitiative carries none. Values are validated against each definition's\ntype and options. An installed plug-in names the person a person-valued\nproperty holds by its reference for them. An empty list clears them all.",
        "operationId": "set_properties",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "target",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Target"
            }
          },
          {
            "name": "entity_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Entity Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PropertyValuesSetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PropertySummary"
                  },
                  "title": "Response Set Properties"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": {
          "by": "target",
          "scopes": {
            "calendar": "calendars:write",
            "calendar_event": "calendars:write",
            "collection": "files:write",
            "contact": "contacts:write",
            "dashboard": "dashboards:write",
            "file": "files:write",
            "form": "forms:write",
            "form_response": "forms:write",
            "post": "posts:write",
            "project": "projects:write",
            "task": "projects:write",
            "wiki": "wikis:write",
            "wiki_page": "wikis:write"
          }
        }
      }
    },
    "/api/v1/c/{community_id}/trash/": {
      "get": {
        "tags": [
          "trash"
        ],
        "summary": "List Community Trash",
        "description": "The active guild's trash, newest first, for whoever holds the trash or\nreads the community on a content grant.\n\nThis is the guild settings trash view. Members use the user-scoped\n``GET /me/trash`` for their own deletions; they never reach this endpoint.",
        "operationId": "list_community_trash",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 50,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrashListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/trash/{entity_type}/{entity_id}/restore": {
      "post": {
        "tags": [
          "trash"
        ],
        "summary": "Restore Trash Entity",
        "description": "Restore a trashed entity.",
        "operationId": "restore_trash_entity",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "entity_type",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Entity Type"
            }
          },
          {
            "name": "entity_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Entity Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestoreResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/trash/{entity_type}/{entity_id}/purge": {
      "delete": {
        "tags": [
          "trash"
        ],
        "summary": "Purge Trash Entity",
        "description": "Hard-purge a trashed entity. Guild-admin only, fully guild-scoped.\n\nRuns entirely on the routed guild-admin RLS session \u2014 no standing-BYPASSRLS\n``app_admin`` connection. The guild-schema content tables carry PERMISSIVE\n``initiative_member_delete`` policies that defer to ``initiative_access``,\nwhose community-admin leg (``app.guild_admin = 'true'``) admits the routed\nadmin for the hard delete, beside the RESTRICTIVE purge guard, which asks\nfor the community's trash, so the guild role itself does it.\n``_load_trash_entity`` 404s unless the entity is in THIS guild's trash (and\nstill soft-deleted) \u2014 that is the authorization boundary \u2014 and\n``for_update=True`` locks the row so a concurrent restore can't slip in\nbetween the ``deleted_at`` check and the delete (which would otherwise\npermanently remove a just-restored live row).",
        "operationId": "purge_trash_entity",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "entity_type",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Entity Type"
            }
          },
          {
            "name": "entity_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Entity Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/archive/{entity_type}/bulk": {
      "post": {
        "tags": [
          "archive"
        ],
        "summary": "Archive Entities",
        "description": "Archive many things of one kind, and everything inside each, under one\nstamp: all of them, or none when any one may not be. One already archived\nkeeps the stamp it has.",
        "operationId": "archive_entities",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "entity_type",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Entity Type"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ArchiveBulkRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": {
          "by": "entity_type",
          "scopes": {
            "calendar": "calendars:write",
            "collection": "files:write",
            "contact": "contacts:write",
            "dashboard": "dashboards:write",
            "file": "files:write",
            "form": "forms:write",
            "form_response": "forms:write",
            "post": "posts:write",
            "project": "projects:write",
            "task": "projects:write",
            "wiki": "wikis:write"
          }
        }
      }
    },
    "/api/v1/c/{community_id}/unarchive/{entity_type}/bulk": {
      "post": {
        "tags": [
          "archive"
        ],
        "summary": "Unarchive Entities",
        "description": "Take many things of one kind back out, each with everything its\narchiving took: all of them, or none when any one may not be. One already\nlive is left as it is.",
        "operationId": "unarchive_entities",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "entity_type",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Entity Type"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ArchiveBulkRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": {
          "by": "entity_type",
          "scopes": {
            "calendar": "calendars:write",
            "collection": "files:write",
            "contact": "contacts:write",
            "dashboard": "dashboards:write",
            "file": "files:write",
            "form": "forms:write",
            "form_response": "forms:write",
            "post": "posts:write",
            "project": "projects:write",
            "task": "projects:write",
            "wiki": "wikis:write"
          }
        }
      }
    },
    "/api/v1/c/{community_id}/archive/{entity_type}/{entity_id}": {
      "post": {
        "tags": [
          "archive"
        ],
        "summary": "Archive Entity",
        "description": "Mark a thing finished with, and everything inside it. Idempotent: an\nalready-archived row keeps the stamp it has, so the date means when it was\narchived, not when it was last asked about.",
        "operationId": "archive_entity",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "entity_type",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Entity Type"
            }
          },
          {
            "name": "entity_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Entity Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArchiveResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": {
          "by": "entity_type",
          "scopes": {
            "calendar": "calendars:write",
            "collection": "files:write",
            "contact": "contacts:write",
            "dashboard": "dashboards:write",
            "file": "files:write",
            "form": "forms:write",
            "form_response": "forms:write",
            "post": "posts:write",
            "project": "projects:write",
            "task": "projects:write",
            "wiki": "wikis:write"
          }
        }
      }
    },
    "/api/v1/c/{community_id}/unarchive/{entity_type}/{entity_id}": {
      "post": {
        "tags": [
          "archive"
        ],
        "summary": "Unarchive Entity",
        "description": "Take it back out, and with it everything that archiving took. Anything\ninside that was archived on its own occasion stays archived. Idempotent on a\nlive row.",
        "operationId": "unarchive_entity",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "entity_type",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Entity Type"
            }
          },
          {
            "name": "entity_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Entity Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArchiveResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": {
          "by": "entity_type",
          "scopes": {
            "calendar": "calendars:write",
            "collection": "files:write",
            "contact": "contacts:write",
            "dashboard": "dashboards:write",
            "file": "files:write",
            "form": "forms:write",
            "form_response": "forms:write",
            "post": "posts:write",
            "project": "projects:write",
            "task": "projects:write",
            "wiki": "wikis:write"
          }
        }
      }
    },
    "/api/v1/c/{community_id}/history/{kind}/{item_id}": {
      "get": {
        "tags": [
          "history"
        ],
        "summary": "Read History",
        "description": "An item's history, newest first, a page at a time: ``before`` is the\npage before's ``next_before``. For whoever can edit the item.",
        "operationId": "read_history",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "item_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Item Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "title": "Before"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RevisionPage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/history/{kind}/{item_id}/cell": {
      "get": {
        "tags": [
          "history"
        ],
        "summary": "Read Cell History",
        "description": "Each change to one cell of a spreadsheet, newest first, with what the\ncell held after it. Nothing for an item that is no spreadsheet.",
        "operationId": "read_cell_history",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "item_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Item Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "sheet",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Sheet"
            }
          },
          {
            "name": "cell",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Cell"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CellChange"
                  },
                  "title": "Response Read Cell History"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/history/{kind}/{item_id}/{revision_id}/body": {
      "get": {
        "tags": [
          "history"
        ],
        "summary": "Read Version Body",
        "description": "The item's body as it was at ``revision_id``, one of its body's\nrevisions (``edited``).",
        "operationId": "read_version_body",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "item_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Item Id"
            }
          },
          {
            "name": "revision_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Revision Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RevisionBody"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/history/{kind}/{item_id}/ai/summary": {
      "post": {
        "tags": [
          "history"
        ],
        "summary": "Summarize Changes",
        "description": "A summary of what changed in a document's body from its revision\n``since`` to ``until``, or to now, streamed as it is written. For whoever\ncan edit it, and only for a body the editor writes.",
        "operationId": "summarize_changes",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "item_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Item Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeSummaryRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/jsonl": {
                "schema": {
                  "type": "string",
                  "$ref": "#/components/schemas/AIStreamEvent"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/history/{kind}/{item_id}/{revision_id}": {
      "patch": {
        "tags": [
          "history"
        ],
        "summary": "Name Version",
        "description": "Name the version ending at ``revision_id``, or clear its name.",
        "operationId": "name_version",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "item_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Item Id"
            }
          },
          {
            "name": "revision_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Revision Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RevisionNameUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RevisionRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/users/": {
      "get": {
        "tags": [
          "users"
        ],
        "summary": "List Users",
        "description": "The community's roster, a page at a time.\n\nOn the configuration session rather than the content one: who is in a\ncommunity is part of running it, which is what a settings grant reaches\nand what an administrator keeps while its content is closed.\n\nOrdered like ``/search``: nearest first while searching, otherwise by name\nwhere the guild shows names, then by handle.",
        "operationId": "list_users",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Matches members the way ``/search`` does: the handle, a whole handle pinning one member, and the display names members set here.",
              "title": "Search"
            },
            "description": "Matches members the way ``/search`` does: the handle, a whole handle pinning one member, and the display names members set here."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 50,
              "title": "Page Size"
            }
          },
          {
            "name": "guests",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "The community's guests instead of its members. For its administrators.",
              "default": false,
              "title": "Guests"
            },
            "description": "The community's guests instead of its members. For its administrators."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserCommunityMemberListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/users/search": {
      "get": {
        "tags": [
          "users"
        ],
        "summary": "Search Users",
        "description": "Slim, searchable, paginated roster for typeahead/pickers.\n\nSame authorization as the full member list (``RLSSessionDep`` +\n``GuildContextDep``, membership re-validated per request): the params\nare additive filters on an already-RLS-gated query, so they only ever\nnarrow the row set. Returns :class:`UserSummary` (no email, roles, or\n``initiative_roles`` enrichment) instead of the heavy ``UserCommunityMember``.\n\nPass ``user_id`` one or more times to resolve a known selection (a picker\nrehydrating stored ids into names/avatars) rather than searching.\n\nAn installed plug-in (``members:read``) names members by its own references\nand reads each as an :class:`PluginPerson`: the reference, the handle and the\ndisplay name set in the community.",
        "operationId": "search_users",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Matches the handle's name part. Type the whole handle (`foobar#1234`) to pin one member; a partial number after `#` is a prefix of the four digits as rendered. Display names members set here are matched too.",
              "title": "Search"
            },
            "description": "Matches the handle's name part. Type the whole handle (`foobar#1234`) to pin one member; a partial number after `#` is a prefix of the four digits as rendered. Display names members set here are matched too."
          },
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer",
                    "x-identity": "person"
                  },
                  "maxItems": 100
                },
                {
                  "type": "null"
                }
              ],
              "title": "User Id"
            }
          },
          {
            "name": "initiative_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only members of this initiative. The caller must reach it: be in it, administer the community, or (a plug-in) be placed there.",
              "title": "Initiative Id"
            },
            "description": "Only members of this initiative. The caller must reach it: be in it, administer the community, or (a plug-in) be placed there."
          },
          {
            "name": "tool",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/Tool"
                },
                {
                  "type": "null"
                }
              ],
              "description": "With ``resource_id``: only the people who can open that row, which is who may be named on content inside it (assignees, attendees, person properties). The caller must be able to open it too. For a person's picker; an installed plug-in's search does not take it.",
              "title": "Tool"
            },
            "description": "With ``resource_id``: only the people who can open that row, which is who may be named on content inside it (assignees, attendees, person properties). The caller must be able to open it too. For a person's picker; an installed plug-in's search does not take it."
          },
          {
            "name": "resource_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Resource Id"
            }
          },
          {
            "name": "self_first",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "List the caller first, wherever the rest of the order would put them. For the community's members page, where your own row is where you set your name.",
              "default": false,
              "title": "Self First"
            },
            "description": "List the caller first, wherever the rest of the order would put them. For the community's members page, where your own row is where you set your name."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 0,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserSummaryListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "members:read"
      }
    },
    "/api/v1/c/{community_id}/users/roster": {
      "get": {
        "tags": [
          "users"
        ],
        "summary": "List Roster",
        "description": "The people in this community, as the sidebar lists them.\n\nGrouped by presence (online, idle, busy, then everyone else) and\nalphabetical within a group. ``presence_counts`` sizes each group across\nevery page.\n\nNobody whose direct message policy is private is listed, the reader\nincluded. Where the deployment offers no direct messages there is no policy\nto keep, and everyone is listed.",
        "operationId": "list_roster",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 50,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityRosterResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/users/export.csv": {
      "get": {
        "tags": [
          "users"
        ],
        "summary": "Export Users Csv",
        "description": "Export guild members as a CSV file. Pass `user_id` one or more times to\nrestrict the export to a subset. Without `user_id`, all visible members are\nincluded. Guild-admin only.",
        "operationId": "export_users_csv",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "User Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/users/unowned-content": {
      "get": {
        "tags": [
          "users"
        ],
        "summary": "List Unowned Content",
        "description": "Everything in this guild that no current member or live plug-in owns, and\nthe plug-ins that may own all of it.\n\nBoth the content released when someone left and anything orphaned before\nthat \u2014 either way nobody who can act on it owns it.",
        "operationId": "list_unowned_content",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OwnedContentResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/users/unowned-content/claim": {
      "post": {
        "tags": [
          "users"
        ],
        "summary": "Claim Unowned Content",
        "description": "Give everything nobody owns to one guild admin, or to a plug-in that may\nown all of it (422 ``OWNER_PLUGIN_NOT_ELIGIBLE`` otherwise).",
        "operationId": "claim_unowned_content",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OwnershipTransferRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OwnershipTransferResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/users/{user_id}/owned-content": {
      "get": {
        "tags": [
          "users"
        ],
        "summary": "List Owned Content",
        "description": "What this user owns in this guild, for the transfer dialog to list,\nand the plug-ins that may own all of it.\n\nWorks for anyone the grants still name, member or not \u2014 accounts get\nabandoned as often as they get closed.",
        "operationId": "list_owned_content",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OwnedContentResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/users/{user_id}/transfer-ownership": {
      "post": {
        "tags": [
          "users"
        ],
        "summary": "Transfer Ownership",
        "description": "Move everything ``user_id`` owns in this guild to a guild admin, or to\na plug-in that may own all of it (422 ``OWNER_PLUGIN_NOT_ELIGIBLE`` otherwise).\n\nThe only place ownership is moved by hand, and guild-admin only.",
        "operationId": "transfer_ownership",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OwnershipTransferRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OwnershipTransferResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/users/{user_id}": {
      "delete": {
        "tags": [
          "users"
        ],
        "summary": "Remove Member",
        "description": "Remove a member from this guild, and with ``ban``, keep them out.\n\nEnds their memberships and the access those carried. It does not move\nownership: content they own stays recorded as theirs and stops being\nreachable by them, until an admin re-homes it through\n``POST /{user_id}/transfer-ownership``.",
        "operationId": "remove_member",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "ban",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Also keep them out: no invite, directory join or sign-in rule lets them back in until the ban is lifted.",
              "default": false,
              "title": "Ban"
            },
            "description": "Also keep them out: no invite, directory join or sign-in rule lets them back in until the ban is lifted."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/users/bans": {
      "get": {
        "tags": [
          "users"
        ],
        "summary": "List Bans",
        "description": "Everybody this community has banned, the most recent first.",
        "operationId": "list_bans",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CommunityBanRead"
                  },
                  "title": "Response List Bans"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/users/bans/{user_id}": {
      "delete": {
        "tags": [
          "users"
        ],
        "summary": "Lift Ban",
        "description": "Lift a ban. They can be invited or join again; nothing puts them back.",
        "operationId": "lift_ban",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/users/{user_id}/timeout": {
      "put": {
        "tags": [
          "users"
        ],
        "summary": "Time Out Member",
        "description": "Hold a member's content here read-only until ``ends_at``: they still\nread the community, and change nothing in it. Replaces a timeout they\nhave.",
        "operationId": "time_out_member",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityTimeoutWrite"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "users"
        ],
        "summary": "Lift Member Timeout",
        "description": "End a member's timeout early.",
        "operationId": "lift_member_timeout",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "User Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/members/{person}/avatar/{digest}": {
      "get": {
        "tags": [
          "users"
        ],
        "summary": "Read Member Avatar",
        "description": "Serve the picture a member of this community uploaded.\n\nWhere an installed plug-in's ``avatar_url`` for a person points: the person is\nnamed by the plug-in's reference for them. The same bytes and caching as the\nprofile picture route, and a 404 for a digest that is not the member's\ncurrent picture, or for somebody who is not a member here.",
        "operationId": "read_member_avatar",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "person",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "x-identity": "person",
              "title": "Person"
            }
          },
          {
            "name": "digest",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Digest"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The picture.",
            "content": {
              "image/jpeg": {},
              "image/png": {},
              "image/webp": {}
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "members:read"
      }
    },
    "/api/v1/c/{community_id}/personal-items": {
      "get": {
        "tags": [
          "personal-items"
        ],
        "summary": "List Personal Items",
        "description": "The tools the reader opened or bookmarked in this community, newest first.",
        "operationId": "list_personal_items",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "mark",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ListedMark"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PersonalItemRead"
                  },
                  "title": "Response List Personal Items"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/personal-items/{kind}/{entity_id}": {
      "get": {
        "tags": [
          "personal-items"
        ],
        "summary": "Read Personal Item",
        "description": "What the reader keeps about one item: empty where they keep nothing.",
        "operationId": "read_personal_item",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "entity_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Entity Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PersonalItemState"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/personal-items/view/{kind}/{entity_id}": {
      "put": {
        "tags": [
          "personal-items"
        ],
        "summary": "Record View",
        "description": "Record that the reader opened this: a tool, which becomes a tab, or\nsomething inside one, which does not. A platform grantee's browsing is\ntransient and is not kept.",
        "operationId": "record_view",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "entity_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Entity Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "source",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/ViewSource",
              "default": "direct"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PersonalItemState"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "personal-items"
        ],
        "summary": "Clear View",
        "description": "Close a tab. Idempotent.",
        "operationId": "clear_view",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "entity_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Entity Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/personal-items/bookmark/{tool}/{entity_id}": {
      "put": {
        "tags": [
          "personal-items"
        ],
        "summary": "Bookmark Item",
        "description": "Bookmark a tool. Bookmarking one already bookmarked keeps the first time.",
        "operationId": "bookmark_item",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "tool",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Tool"
            }
          },
          {
            "name": "entity_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Entity Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PersonalItemState"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "personal-items"
        ],
        "summary": "Unbookmark Item",
        "description": "Remove a bookmark. Idempotent.",
        "operationId": "unbookmark_item",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "tool",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Tool"
            }
          },
          {
            "name": "entity_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Entity Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/personal-items/subscribe/{kind}/{entity_id}": {
      "put": {
        "tags": [
          "personal-items"
        ],
        "summary": "Subscribe Item",
        "description": "Subscribe to a tool or anything inside one: its changes, and those of what is\ninside it, rise in the reader's feed and notify them.",
        "operationId": "subscribe_item",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "entity_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Entity Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PersonalItemState"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "personal-items"
        ],
        "summary": "Unsubscribe Item",
        "description": "Unsubscribe: nothing about it reaches the reader any more, whatever ties\nthem to it, until they subscribe again. Idempotent, and a subscription\ncomes off something the reader has lost too; where they keep nothing about\nit yet, the item is loaded as its page does. A platform grantee is not a\nmember, so nothing is kept.",
        "operationId": "unsubscribe_item",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "entity_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Entity Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/personal-items/reminder/task/{task_id}": {
      "put": {
        "tags": [
          "personal-items"
        ],
        "summary": "Set Task Reminder",
        "description": "Remind the reader of a task at a time of their choosing. Setting it again\nmoves it, and arms one already sent. A platform grantee is not a member, so\nnothing is kept for them.",
        "operationId": "set_task_reminder",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Task Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReminderSet"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PersonalItemState"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "personal-items"
        ],
        "summary": "Clear Task Reminder",
        "description": "Take the reader's reminder of a task off. Idempotent.",
        "operationId": "clear_task_reminder",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Task Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/personal-items/mode/{kind}/{entity_id}": {
      "put": {
        "tags": [
          "personal-items"
        ],
        "summary": "Set Item Mode",
        "description": "Keep the mode the reader switched an item to, so it opens that way\nagain. The item is loaded as its page does. A platform grantee is not a\nmember, so nothing is kept for them: the answer carries their mode for the\npage they are on.",
        "operationId": "set_item_mode",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "entity_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Entity Id"
            }
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ItemModeSet"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PersonalItemState"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/view-preferences": {
      "get": {
        "tags": [
          "user-view-preferences"
        ],
        "summary": "List Community View Preferences",
        "description": "Return the caller's views of this community's lists as a\n``{scope_key: value}`` map.",
        "operationId": "list_community_view_preferences",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserViewPreferencesMap"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/view-preferences/{scope_key}": {
      "put": {
        "tags": [
          "user-view-preferences"
        ],
        "summary": "Put Community View Preference",
        "description": "Upsert the caller's view under ``scope_key`` (last write wins). A platform\ngrantee is not a member, and a ``read_only`` community takes no writes, so\nnothing is kept for either.",
        "operationId": "put_community_view_preference",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "scope_key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9_:\\-\\.]+$",
              "description": "Scope identifier \u2014 e.g. 'my-tasks' or 'project:42:tasks'.",
              "title": "Scope Key"
            },
            "description": "Scope identifier \u2014 e.g. 'my-tasks' or 'project:42:tasks'."
          },
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserViewPreferenceWrite"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/collaboration/files/{file_id}/collaborate": {
      "post": {
        "tags": [
          "collaboration"
        ],
        "summary": "Hand Over File Edits",
        "description": "Merge edits a tab made while its socket was closed into the file.",
        "operationId": "hand_over_file_edits",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "File Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CollaborationHandover"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/c/{community_id}/collaboration/wiki-pages/{page_id}/collaborate": {
      "post": {
        "tags": [
          "collaboration"
        ],
        "summary": "Hand Over Wiki Page Edits",
        "description": "Merge edits a tab made while its socket was closed into the page.",
        "operationId": "hand_over_wiki_page_edits",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Community this request addresses",
              "title": "Community Id"
            },
            "description": "Community this request addresses"
          },
          {
            "name": "page_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Page Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CollaborationHandover"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/tasks": {
      "get": {
        "tags": [
          "tasks"
        ],
        "summary": "List My Tasks",
        "description": "Tasks assigned to the current user across every guild they belong to,\nor with ``created`` the tasks they created.\n\nAn optional ``guild_ids`` conditions entry narrows to a subset of guilds.",
        "operationId": "list_my_tasks",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "conditions",
            "in": "query",
            "required": false,
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/FilterCondition"
                      },
                      {
                        "$ref": "#/components/schemas/FilterGroup"
                      }
                    ]
                  }
                }
              }
            }
          },
          {
            "name": "created",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "The tasks you created instead of the ones assigned to you",
              "default": false,
              "title": "Created"
            },
            "description": "The tasks you created instead of the ones assigned to you"
          },
          {
            "name": "include_archived",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Include archived tasks",
              "default": false,
              "title": "Include Archived"
            },
            "description": "Include archived tasks"
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 0,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "sorting",
            "in": "query",
            "required": false,
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SortField"
                  }
                }
              }
            }
          },
          {
            "name": "tz",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Tz"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/tickets/availability": {
      "get": {
        "tags": [
          "tickets"
        ],
        "summary": "Read Ticket Availability",
        "description": "What each kind of ticket offers the reader from where they are.\n\nA form where there is somewhere to send it and they may; otherwise the\nkind's contact address; otherwise nothing. Asked by every surface that\nfiles one, so none of them decides it.",
        "operationId": "read_ticket_availability",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The community the reader is standing in.",
              "title": "Community Id"
            },
            "description": "The community the reader is standing in."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TicketAvailability"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/tickets": {
      "post": {
        "tags": [
          "tickets"
        ],
        "summary": "File Ticket",
        "description": "File a ticket. One route, whatever kind and from wherever.\n\nSent as ``multipart/form-data``: the ticket as JSON in ``payload``, and up\nto as many ``files`` as the stream takes (``/availability`` says how many,\nhow large and of which types). The reply says that it arrived and nothing\nmore: not who will read it, and for a report not whether one already\nexisted. A suspended account may file an appeal and nothing else.",
        "operationId": "file_ticket",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_file_ticket"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TicketAccepted"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "tickets"
        ],
        "summary": "List Filed Tickets",
        "description": "The cases the reader filed, most recently moved first.",
        "operationId": "list_filed_tickets",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FiledTicketList"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/tickets/{task_id}": {
      "get": {
        "tags": [
          "tickets"
        ],
        "summary": "Read Filed Ticket",
        "description": "One case the reader filed, with what has been said to them about it.\n\nA case that is not theirs answers exactly as one that does not exist.",
        "operationId": "read_filed_ticket",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Task Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FiledTicketDetailRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/tickets/{task_id}/replies": {
      "post": {
        "tags": [
          "tickets"
        ],
        "summary": "Reply To Filed Ticket",
        "description": "Answer on a case the reader filed. Returns the case as it now stands.\n\nSent as ``multipart/form-data``: the answer in ``body``, and any ``files``\nthe stream takes. Paced like a filing into the case's stream: each answer\nis something a person reads. A suspended account answers on its appeal\nalone.",
        "operationId": "reply_to_filed_ticket",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Task Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_reply_to_filed_ticket"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FiledTicketDetailRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/tools/counts": {
      "get": {
        "tags": [
          "my-tools"
        ],
        "summary": "Get My Tool Counts",
        "description": "How much of each tool reaches the caller, across their communities:\nevery built-in tool, and each tool plug-in installed in one of them, by\nkind.\n\nThe My Tools page's tabs: a tool with nothing behind it gets none, so the\npage never offers a table of nothing. Each tool's figure is its list's\nlive view, counted as the tool's own counts count it (with what the\nreader wrote, when asked) and summed over the caller's communities; each\ncommunity answers for every tool it has in one statement.",
        "operationId": "get_my_tool_counts",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Community Ids"
            }
          },
          {
            "name": "created_by_me",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Count only what the caller wrote, matching the list views.",
              "default": false,
              "title": "Created By Me"
            },
            "description": "Count only what the caller wrote, matching the list views."
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MyToolCountsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/projects": {
      "get": {
        "tags": [
          "my-tools"
        ],
        "summary": "List My Projects",
        "description": "List projects across all guilds the current user belongs to.\n\nReturns a paginated list filtered by DAC permissions, excluding\narchived and template projects. Supports optional guild, name-search and\nmade-by-me filters.",
        "operationId": "list_my_projects",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Community Ids"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Search"
            }
          },
          {
            "name": "created_by_me",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Narrow to projects the caller created.",
              "default": false,
              "title": "Created By Me"
            },
            "description": "Narrow to projects the caller created."
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Order by one of: name, updated_at, created_at. Omit for this tool's own default order. There is no `initiative` here \u2014 a merged cross-guild list is ordered by what the tool's own rows carry, and an initiative name is not one of them.",
              "title": "Sort By"
            },
            "description": "Order by one of: name, updated_at, created_at. Omit for this tool's own default order. There is no `initiative` here \u2014 a merged cross-guild list is ordered by what the tool's own rows carry, and an initiative name is not one of them."
          },
          {
            "name": "sort_dir",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "asc (default) or desc.",
              "title": "Sort Dir"
            },
            "description": "asc (default) or desc."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/files": {
      "get": {
        "tags": [
          "my-tools"
        ],
        "summary": "List My Files",
        "description": "Files that reach the current user across every guild they belong to.\n\nAn optional ``guild_ids`` filter narrows to a subset of guilds, and\n``created_by_me`` to the ones the caller wrote.",
        "operationId": "list_my_files",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Community Ids"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Search"
            }
          },
          {
            "name": "created_by_me",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Narrow to files the caller created.",
              "default": false,
              "title": "Created By Me"
            },
            "description": "Narrow to files the caller created."
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Order by one of: name, updated_at, created_at. Omit for this tool's own default order. There is no `initiative` here \u2014 a merged cross-guild list is ordered by what the tool's own rows carry, and an initiative name is not one of them.",
              "title": "Sort By"
            },
            "description": "Order by one of: name, updated_at, created_at. Omit for this tool's own default order. There is no `initiative` here \u2014 a merged cross-guild list is ordered by what the tool's own rows carry, and an initiative name is not one of them."
          },
          {
            "name": "sort_dir",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "asc (default) or desc.",
              "title": "Sort Dir"
            },
            "description": "asc (default) or desc."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 0,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/calendars": {
      "get": {
        "tags": [
          "my-tools"
        ],
        "summary": "List My Calendars",
        "description": "List the calendars visible to the user across all their guilds \u2014 the\nbacking data for the My Calendar grouping panel and the My Tools table.\n\nVisits each member guild schema under the user's own RLS context (guild\nisolation + DAC hold); each orders and limits its own rows in SQL, and the\npage is cut from their merge. Inside each guild this is the calendar list's\nown live view, so a guild calendar belongs in it like any other.",
        "operationId": "list_my_calendars",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Community Ids"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Search"
            }
          },
          {
            "name": "created_by_me",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Narrow to calendars the caller created.",
              "default": false,
              "title": "Created By Me"
            },
            "description": "Narrow to calendars the caller created."
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Order by one of: name, updated_at, created_at. Omit for this tool's own default order. There is no `initiative` here \u2014 a merged cross-guild list is ordered by what the tool's own rows carry, and an initiative name is not one of them.",
              "title": "Sort By"
            },
            "description": "Order by one of: name, updated_at, created_at. Omit for this tool's own default order. There is no `initiative` here \u2014 a merged cross-guild list is ordered by what the tool's own rows carry, and an initiative name is not one of them."
          },
          {
            "name": "sort_dir",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "asc (default) or desc.",
              "title": "Sort Dir"
            },
            "description": "asc (default) or desc."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 200,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/dashboards": {
      "get": {
        "tags": [
          "my-tools"
        ],
        "summary": "List My Dashboards",
        "description": "Dashboards that reach the caller across every guild they belong to.",
        "operationId": "list_my_dashboards",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Community Ids"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Search"
            }
          },
          {
            "name": "created_by_me",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Narrow to dashboards the caller created.",
              "default": false,
              "title": "Created By Me"
            },
            "description": "Narrow to dashboards the caller created."
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Order by one of: name, updated_at, created_at. Omit for this tool's own default order. There is no `initiative` here \u2014 a merged cross-guild list is ordered by what the tool's own rows carry, and an initiative name is not one of them.",
              "title": "Sort By"
            },
            "description": "Order by one of: name, updated_at, created_at. Omit for this tool's own default order. There is no `initiative` here \u2014 a merged cross-guild list is ordered by what the tool's own rows carry, and an initiative name is not one of them."
          },
          {
            "name": "sort_dir",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "asc (default) or desc.",
              "title": "Sort Dir"
            },
            "description": "asc (default) or desc."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 0,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/posts": {
      "get": {
        "tags": [
          "my-tools"
        ],
        "summary": "List My Posts",
        "description": "Posts that reach the caller across every guild they belong to.\n\nPaged small like the board itself: these carry their bodies, and a body is\nan editor the client mounts.",
        "operationId": "list_my_posts",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Community Ids"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Search"
            }
          },
          {
            "name": "created_by_me",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Narrow to posts the caller created.",
              "default": false,
              "title": "Created By Me"
            },
            "description": "Narrow to posts the caller created."
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Order by one of: name, updated_at, created_at. Omit for this tool's own default order. There is no `initiative` here \u2014 a merged cross-guild list is ordered by what the tool's own rows carry, and an initiative name is not one of them.",
              "title": "Sort By"
            },
            "description": "Order by one of: name, updated_at, created_at. Omit for this tool's own default order. There is no `initiative` here \u2014 a merged cross-guild list is ordered by what the tool's own rows carry, and an initiative name is not one of them."
          },
          {
            "name": "sort_dir",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "asc (default) or desc.",
              "title": "Sort Dir"
            },
            "description": "asc (default) or desc."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 50,
              "minimum": 0,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/wikis": {
      "get": {
        "tags": [
          "my-tools"
        ],
        "summary": "List My Wikis",
        "description": "Wikis that reach the caller across every guild they belong to.",
        "operationId": "list_my_wikis",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Community Ids"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Search"
            }
          },
          {
            "name": "created_by_me",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Narrow to wikis the caller created.",
              "default": false,
              "title": "Created By Me"
            },
            "description": "Narrow to wikis the caller created."
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Order by one of: name, updated_at, created_at. Omit for this tool's own default order. There is no `initiative` here \u2014 a merged cross-guild list is ordered by what the tool's own rows carry, and an initiative name is not one of them.",
              "title": "Sort By"
            },
            "description": "Order by one of: name, updated_at, created_at. Omit for this tool's own default order. There is no `initiative` here \u2014 a merged cross-guild list is ordered by what the tool's own rows carry, and an initiative name is not one of them."
          },
          {
            "name": "sort_dir",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "asc (default) or desc.",
              "title": "Sort Dir"
            },
            "description": "asc (default) or desc."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 0,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WikiListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/contacts": {
      "get": {
        "tags": [
          "my-tools"
        ],
        "summary": "List My Contacts",
        "description": "Contacts that reach the caller across every guild they belong to.",
        "operationId": "list_my_contacts",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Community Ids"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Search"
            }
          },
          {
            "name": "created_by_me",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Narrow to contacts the caller created.",
              "default": false,
              "title": "Created By Me"
            },
            "description": "Narrow to contacts the caller created."
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Order by one of: name, updated_at, created_at. Omit for this tool's own default order. There is no `initiative` here \u2014 a merged cross-guild list is ordered by what the tool's own rows carry, and an initiative name is not one of them.",
              "title": "Sort By"
            },
            "description": "Order by one of: name, updated_at, created_at. Omit for this tool's own default order. There is no `initiative` here \u2014 a merged cross-guild list is ordered by what the tool's own rows carry, and an initiative name is not one of them."
          },
          {
            "name": "sort_dir",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "asc (default) or desc.",
              "title": "Sort Dir"
            },
            "description": "asc (default) or desc."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 0,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/forms": {
      "get": {
        "tags": [
          "my-tools"
        ],
        "summary": "List My Forms",
        "description": "Forms that reach the caller across every guild they belong to.",
        "operationId": "list_my_forms",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Community Ids"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Search"
            }
          },
          {
            "name": "created_by_me",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Narrow to forms the caller created.",
              "default": false,
              "title": "Created By Me"
            },
            "description": "Narrow to forms the caller created."
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Order by one of: name, updated_at, created_at. Omit for this tool's own default order. There is no `initiative` here \u2014 a merged cross-guild list is ordered by what the tool's own rows carry, and an initiative name is not one of them.",
              "title": "Sort By"
            },
            "description": "Order by one of: name, updated_at, created_at. Omit for this tool's own default order. There is no `initiative` here \u2014 a merged cross-guild list is ordered by what the tool's own rows carry, and an initiative name is not one of them."
          },
          {
            "name": "sort_dir",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "asc (default) or desc.",
              "title": "Sort Dir"
            },
            "description": "asc (default) or desc."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 0,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/personal-items": {
      "get": {
        "tags": [
          "personal-items"
        ],
        "summary": "List My Personal Items",
        "description": "The tools the reader opened or bookmarked in every community they may\nread, newest first. Opens are the tabs: as many as the reader keeps.",
        "operationId": "list_my_personal_items",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "mark",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ListedMark"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PersonalItemRead"
                  },
                  "title": "Response List My Personal Items"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/calendar-entries": {
      "get": {
        "tags": [
          "calendar-entries"
        ],
        "summary": "List My Calendar Entries",
        "description": "Cross-guild events + assigned-task markers for the My Calendar page.\n\nBoth legs run on the caller's own ``platform_<tier>`` session, as\n``/me/tasks`` does: the event leg enters each\nmember guild with the membership role held there (``gather_across_guilds``)\nand the task leg is the ``/me/tasks`` query, fetch-all over the window.",
        "operationId": "list_my_calendar_entries",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Community Ids"
            }
          },
          {
            "name": "conditions",
            "in": "query",
            "required": false,
            "description": "Task filter conditions (same JSON shape as GET /me/tasks).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/FilterCondition"
                      },
                      {
                        "$ref": "#/components/schemas/FilterGroup"
                      }
                    ]
                  }
                }
              }
            }
          },
          {
            "name": "tz",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Tz"
            }
          },
          {
            "name": "include_events",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": true,
              "title": "Include Events"
            }
          },
          {
            "name": "include_tasks",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": true,
              "title": "Include Tasks"
            }
          },
          {
            "name": "start_after",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time",
              "title": "Start After"
            }
          },
          {
            "name": "start_before",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time",
              "title": "Start Before"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarEntriesResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/trash": {
      "get": {
        "tags": [
          "trash"
        ],
        "summary": "List My Trash",
        "description": "The current user's trashed entities across every guild they belong to,\nnewest first.\n\nUser-scoped: shows what *you* deleted, in any guild \u2014 this is the personal\ntrash on the user settings page. The all-guild view (everything in one\nguild's trash) is the separate admin-only ``GET /c/{community_id}/trash/``.\nRestore/purge stay guild-scoped; the client addresses them with each item's\n``guild_id``. ``retention_days`` is per-guild, so it is omitted here.",
        "operationId": "list_my_trash",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 50,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrashListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/notification-preferences": {
      "get": {
        "tags": [
          "notifications"
        ],
        "summary": "Read My Notification Preferences",
        "description": "The registry, this account's overrides, and each community's mute and\nrows.\n\nThe registry travels with the response so the settings page renders the\ncategories this build has rather than a copy of the list.",
        "operationId": "read_my_notification_preferences",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationPreferencesRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "notifications"
        ],
        "summary": "Update My Notification Preferences",
        "description": "Move some switches.\n\nA partial write, because that is what a settings page sends and because two\nopen tabs must not overwrite each other's unrelated rows.",
        "operationId": "update_my_notification_preferences",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NotificationPreferencesUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationPreferencesRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/people": {
      "get": {
        "tags": [
          "people"
        ],
        "summary": "List People Sections",
        "description": "Every guild the caller is in, each with a page of its members.\n\nSections come back in the caller's own rail order\n(``GuildMembership.position``), and each is paged **within** the guild \u2014\nthe response is grouped, so a flat offset across a merged list would not\nmean anything. Pass one ``guild_ids`` value to page a single section.\n\nA guild reachable only through a live PAM or break-glass grant has no\nsection here: like every other ``/me`` aggregate, this walks real\nmemberships.",
        "operationId": "list_people_sections",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 128
                },
                {
                  "type": "null"
                }
              ],
              "description": "Narrows every section. Matches the handle, plus the real name in a guild that shows names; type a whole handle (`foobar#1234`) to pin one person.",
              "title": "Search"
            },
            "description": "Narrows every section. Matches the handle, plus the real name in a guild that shows names; type a whole handle (`foobar#1234`) to pin one person."
          },
          {
            "name": "community_ids",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "title": "Community Ids"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 20,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PeopleSectionsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/dm-permissions": {
      "post": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Read Dm Permissions",
        "description": "What the caller may do about each account: ``permission`` is ``open``,\n``may_request`` or ``denied``, and ``may_connect`` says whether a\nconnection request would be taken.\n\nOne value each, with nothing beside it to tell the refusals apart. Asked\nfor a page of people at once \u2014 a surface listing members draws a control\nper row \u2014 and for one person the same way. Both answers are computed in\nthe database (``public.dm_apparent_permission`` / ``public.dm_may_connect``),\nwhich read the caller from the request context rather than taking one. The\ncaller's own id is left out: every action on your own account is refused.\n\nA POST because the subjects are a list rather than an address: nothing is\nwritten, and the body is the only place a page of ids belongs.",
        "operationId": "read_dm_permissions",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DirectMessagePermissionsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectMessagePermissionsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/dm-settings": {
      "get": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Read Dm Settings",
        "description": "The policy this account picked, and one toggle per community it is in.\n\nThe toggles come back whatever the policy is, so switching to *My\ncommunities* does not land on an empty screen.",
        "operationId": "read_dm_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectMessageSettingsRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Update Dm Settings",
        "description": "Change the policy, the toggles, or both.\n\nAnything above ``private`` needs the age question answered. That is asked\nfor here rather than left to the community directory's own switches, so an\naccount on a deployment running no directory is held to the same floor.",
        "operationId": "update_dm_settings",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DirectMessageSettingsUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectMessageSettingsRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/ignored": {
      "get": {
        "tags": [
          "direct-messages"
        ],
        "summary": "List Ignored Accounts",
        "description": "The caller's own list. Who has ignored *them* is not answerable here.",
        "operationId": "list_ignored_accounts",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 50,
              "title": "Page Size"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IgnoredAccountsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Ignore Account By Handle",
        "description": "Start ignoring an account by its exact handle, as a connection is asked\nfor. The same answer as the id route for a handle nobody holds.",
        "operationId": "ignore_account_by_handle",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IgnoreAccountCreate"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/ignored/{user_id}": {
      "put": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Ignore Account",
        "description": "Start ignoring an account. Idempotent, and nothing is deleted.",
        "operationId": "ignore_account",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "title": "User Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Stop Ignoring Account",
        "description": "Stop ignoring an account, restoring exactly what was there before.",
        "operationId": "stop_ignoring_account",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "title": "User Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/connections": {
      "get": {
        "tags": [
          "direct-messages"
        ],
        "summary": "List Connections",
        "description": "Accepted connections, plus what is pending in each direction.",
        "operationId": "list_connections",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactGrantsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Request Connection",
        "description": "Ask an account to connect, by its exact handle.\n\nA handle rather than an id, whatever the target's policy: it is the one\nshape that works for an account on ``private``, which is never offered from\na roster or a picker.",
        "operationId": "request_connection",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConnectionRequestCreate"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactGrantRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/connections/{user_id}/accept": {
      "post": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Accept Connection",
        "description": "Accept a connection, which also opens the pair's message channel.",
        "operationId": "accept_connection",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "title": "User Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactGrantRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/connections/{user_id}": {
      "delete": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Remove Connection",
        "description": "Decline, cancel or disconnect \u2014 one verb.\n\nThe pair's message grant is re-tested rather than dropped: two co-members\nwho un-connect can still ask each other, so they keep talking.",
        "operationId": "remove_connection",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "title": "User Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/message-requests": {
      "get": {
        "tags": [
          "direct-messages"
        ],
        "summary": "List Message Requests",
        "description": "Open channels, plus what is pending in each direction.",
        "operationId": "list_message_requests",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactGrantsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Request Message",
        "description": "Ask permission to message an account.\n\nComes back already accepted when the pair is connected: a connection has\nanswered this question, and asking twice is a consent step with no decision\nin it.",
        "operationId": "request_message",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MessageRequestCreate"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactGrantRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/message-requests/{user_id}/accept": {
      "post": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Accept Message Request",
        "operationId": "accept_message_request",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "title": "User Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactGrantRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/message-requests/{user_id}": {
      "delete": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Remove Message Request",
        "description": "Decline, cancel or close a channel.",
        "operationId": "remove_message_request",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "title": "User Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/dm/devices": {
      "post": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Register Device",
        "description": "Publish this installed client's public keys.\n\nThe device's label comes from the request's user-agent rather than the body:\na device list is more use when it says what actually connected.",
        "operationId": "register_device",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DmDeviceRegistration"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DmDevicesResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "direct-messages"
        ],
        "summary": "List Devices",
        "operationId": "list_devices",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DmDevicesResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/dm/devices/{device_id}": {
      "delete": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Remove Device",
        "description": "Stop encrypted messaging on one device, without signing it out.\n\nTakes its queued messages with it, which is the one thing that removes an\nundelivered message and is a visible act by the person who owns it.",
        "operationId": "remove_device",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "device_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Device Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/dm/one-time-keys": {
      "post": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Top Up Keys",
        "operationId": "top_up_keys",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DmOneTimeKeyBatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DmDevicesResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/dm/session-keys": {
      "post": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Claim Own Session Keys",
        "description": "Keys for this account's other devices, so a message reaches its own\noutbox.\n\nA device of yours is a separate ratchet, not a shortcut: it needs a session\nlike anybody else's. The calling device names itself so it is left out of\nits own answer.",
        "operationId": "claim_own_session_keys",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DmOwnSessionKeysRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DmSessionKeysResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/dm/conversations": {
      "post": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Create Conversation",
        "operationId": "create_conversation",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DmConversationCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DmConversationRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "direct-messages"
        ],
        "summary": "List Conversations",
        "operationId": "list_conversations",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DmConversationsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/dm/roster-check": {
      "post": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Check Roster",
        "description": "Could this set of people be a group?\n\nAsked while somebody is still choosing names, so the answer arrives when\nthey can still drop one, rather than as a refusal after they commit. The\nproposal enforces the same rule again \u2014 this is the question, not the gate.",
        "operationId": "check_roster",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DmRosterCheckRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DmRosterCheckResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/dm/conversations/group": {
      "post": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Create Group Conversation",
        "description": "Propose a roster. Everybody named on it is asked; nobody is added.\n\nProposing the same roster again asks whoever is not on it \u2014 somebody who\ndeclined or left may have changed their mind, or their settings.",
        "operationId": "create_group_conversation",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DmGroupCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DmConversationRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/dm/conversations/{conversation_id}/accept": {
      "post": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Accept Invitation",
        "description": "Answer yes to a roster you were named on.\n\nDeclining is :func:`leave_conversation` \u2014 the same act, because an\ninvitation refused and a conversation left both come to \"not on it\", and\nboth are answered by being asked again if anybody proposes that roster.",
        "operationId": "accept_invitation",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "conversation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Conversation Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/dm/conversations/{conversation_id}": {
      "delete": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Leave Conversation",
        "operationId": "leave_conversation",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "conversation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Conversation Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/dm/conversations/{conversation_id}/read": {
      "post": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Mark Conversation Read",
        "description": "This account has read what was waiting in one thread.\n\nThe client says so once it has decrypted and rendered what arrived, which is\nthe only moment anybody knows. It closes the rolled-up bell line, so the\nnext message announces itself instead of joining a line that is already\nthere, and it clears the badge on this account's other tabs.\n\nIt acts on this account's own notifications and nothing else, so a\nconversation id that names none of them closes nothing and still answers.",
        "operationId": "mark_conversation_read",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "conversation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Conversation Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/dm/conversations/{conversation_id}/messages": {
      "post": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Send Messages",
        "description": "Hand the server one already-encrypted copy per destination device.",
        "operationId": "send_messages",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "conversation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Conversation Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DmSendRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DmSendResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/dm/queue": {
      "get": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Collect Queue",
        "description": "What is waiting for one device, oldest first, the page after ``after``.",
        "operationId": "collect_queue",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Device Id"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "After"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DmQueueResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/dm/queue/ack": {
      "post": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Acknowledge Queue",
        "description": "Delete what this device has taken.",
        "operationId": "acknowledge_queue",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DmQueueAck"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/dm/verification": {
      "post": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Send Verification",
        "description": "Relay one message of a verification to another of this account's\ndevices. The body is the client's own and is not read here.",
        "operationId": "send_verification",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DmVerificationSend"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "direct-messages"
        ],
        "summary": "Collect Verification",
        "description": "Verification messages waiting for one device, oldest first. Collecting\ndeletes them.",
        "operationId": "collect_verification",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "device_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Device Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DmVerificationInbox"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/time-out": {
      "get": {
        "tags": [
          "users"
        ],
        "summary": "Read My Time Out",
        "description": "What a suspended account is told on its time-out screen: why, where a\nreason was given, whom to contact, and whether it can appeal here \u2014 with\nthe appeal it already made, which it follows on the same screen.\n\nAnswers for an active account too \u2014 nobody to contact, since there is\nnothing to lift \u2014 so the screen can ask without first knowing the status.",
        "operationId": "read_my_time_out",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountTimeOutRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me": {
      "get": {
        "tags": [
          "users"
        ],
        "summary": "Read Me",
        "description": "Who you are. Reachable while the deployment's second-factor rule is\nunmet, because every screen that could answer it is drawn from this.",
        "operationId": "read_me",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "users"
        ],
        "summary": "Update Me",
        "operationId": "update_me",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserSelfUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/stats": {
      "get": {
        "tags": [
          "users"
        ],
        "summary": "Get User Stats",
        "description": "Get comprehensive statistics for the current user.",
        "operationId": "get_user_stats",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "community_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Optional guild ID to filter stats",
              "title": "Community Id"
            },
            "description": "Optional guild ID to filter stats"
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 365,
              "minimum": 1,
              "description": "Number of days to analyze",
              "default": 90,
              "title": "Days"
            },
            "description": "Number of days to analyze"
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserStatsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/decorations": {
      "get": {
        "tags": [
          "users"
        ],
        "summary": "List My Decorations",
        "description": "Everything the caller may dress their profile in.\n\nWhat ships with the app plus what this account acquired, which is what the\npickers on Settings > Profile offer and exactly what the write path\naccepts. Own-row: ``public.user_decorations`` is readable only by the\naccount whose library it is.",
        "operationId": "list_my_decorations",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OwnedDecorationsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/decoration-packs": {
      "get": {
        "tags": [
          "users"
        ],
        "summary": "List Decoration Packs",
        "description": "The store: every profile pack this deployment offers, and which you have.\n\nThe shelf is the marketplace catalog, so a pack that ships with the build\nand one published to it read the same here.",
        "operationId": "list_decoration_packs",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DecorationPackListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/decoration-packs/{uid}": {
      "post": {
        "tags": [
          "users"
        ],
        "summary": "Install Decoration Pack",
        "description": "Take a pack, putting its decorations in your library.\n\nThe catalog is read on the request path; the grant is written on the system\nengine, because a grant is issued rather than self-served \u2014 the request path\nholds no write verb on ``public.user_decorations``. What makes it the\ncaller's own is that the only account it ever names is theirs.",
        "operationId": "install_decoration_pack",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "uid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Uid"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DecorationPack"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "users"
        ],
        "summary": "Remove Decoration Pack",
        "description": "Give a pack back, taking its decorations out of your library.\n\nAnything from it that was being worn comes off in the same transaction \u2014\na profile must not be left wearing what the account no longer has, and\ntwo commits would leave a window where it was.",
        "operationId": "remove_decoration_pack",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "uid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Uid"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DecorationPack"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/username": {
      "patch": {
        "tags": [
          "users"
        ],
        "summary": "Claim My Username",
        "description": "Pick the handle for an account that was assigned one.\n\nEvery account created without a form \u2014 provisioned from SSO claims, or\ncarried over from before handles existed \u2014 starts with one it did not\nchoose, and picks its own here. Once picked, a handle changes only through\na moderator.",
        "operationId": "claim_my_username",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UsernameClaim"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/age-confirmation": {
      "post": {
        "tags": [
          "users"
        ],
        "summary": "Confirm My Age",
        "description": "Answer, once, whether this account is old enough for the open parts.\n\nAsked where somebody is about to join a community anyone on the deployment\ncan find, and nowhere else. The answer lives on the account rather than per\ncommunity: it is a fact about the person, and the second listed community\nthey join asks nothing.\n\n**It gates the directory, not the deployment.** A community somebody was\ninvited to is theirs and whoever runs it to answer for, so nothing here\nstands between them and it \u2014 an account that has never answered, or\nanswered under age, keeps every private community it belongs to and\neverything in them.\n\n**The date is kept, encrypted** (``user_birthdates``, system engine only),\nbecause a plug-in's minimum age differs by country and one \"old enough\"\nanswer cannot say whether somebody may use it. Nothing logs it, no audit\nrecord carries it, and no response returns it \u2014 ``birthdate_on_file`` says\nonly that it is there. Beside it is the timestamp saying the question was\nanswered, which is what shows the deployment asked.\n\n**A kept date stands.** Answering again once one is on file is refused, as\nan under-age answer is. Putting it right is the same support ticket.\n\nThe comparison is the server's because it is the one that decides. A client\ncould work out the same answer, and a client's answer is not evidence.\n\n**An answer of \"under age\" also stands.** It is recorded \u2014 the fact, not the\ndate \u2014 and the question is not asked again, because a question you can\nre-answer until it comes out right is not one. Putting it right takes\nsomebody with ``users.age_unblock``, which is a support ticket rather than\nan appeal to the same form.\n\n**Under the minimum for an account where they are, there is no account.**\nSign-up refuses a date like that at the door, and an account that was made\nwithout a date (a sign-in provider asked for none, or the field was left\nempty) meets the same rule here, late: the minimum for the country the\nrequest comes from (``users.ACCOUNT_MINIMUM_AGE``, 13 in the US, 16 in\nGermany; the highest of them where the country is not known), applied\nbefore the directory's. The answer stands, the date is not kept, and the\naccount is closed and scheduled for erasure\n(:func:`~app.services.platform.users.refuse_account_for_age`) \u2014 not merely\nkept out of the directory, which is the answer for sixteen.",
        "operationId": "confirm_my_age",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgeConfirmation"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/cookie-consent": {
      "put": {
        "tags": [
          "users"
        ],
        "summary": "Set Cookie Consent",
        "description": "Record what this account allows to be kept in a browser.\n\nThe browser it was answered in keeps its own copy \u2014 a visitor who has not\nsigned in has no account to attach one to, and the answer is about that\nbrowser either way. This is what carries it to a browser that has never\nbeen asked, and carries a change of mind back to one that has.\n\nReplaces rather than appends: the question is what applies now. Sending it\nagain with the same answer is a no-op apart from the stamp, which is what\ntwo browsers compare to tell whose answer is the later one.",
        "operationId": "set_cookie_consent",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CookieConsentUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CookieConsentRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/legal-acceptance": {
      "post": {
        "tags": [
          "users"
        ],
        "summary": "Accept Legal Documents",
        "description": "Agree to the documents this deployment requires.\n\nFor an account that never met the signup form \u2014 one an identity provider\nprovisioned on first sign-in. The form's own notice is the agreement for\neverybody else, recorded as the account is created.\n\nSaying it again appends: the table records acceptances, not a state, and\nagreeing to a newer revision is a real event rather than a correction to\nan old one. The screen only appears while something is outstanding, so in\npractice this is written once.\n\nA deployment with no terms of its own has nothing to accept, so this\nanswers 404 rather than writing an empty record.",
        "operationId": "accept_legal_documents",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/emails": {
      "get": {
        "tags": [
          "users"
        ],
        "summary": "List My Addresses",
        "description": "Every address this account holds.\n\nOn the system engine: ``user_emails`` carries no request-path grants,\nbecause resolving an address happens before anybody is authenticated.",
        "operationId": "list_my_addresses",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserEmailListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "users"
        ],
        "summary": "Add My Address",
        "description": "Start holding another address, and write to it to prove it.\n\nThe password is asked for first, where there is one, and a recent sign-in\notherwise, as for every change to how the account is signed into.\n\nThe answer is the same whoever holds the address already. What differs is\nwhere the mail goes: a free address gets a link to confirm it, and one that\nis taken gets nothing.",
        "operationId": "add_my_address",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserEmailCreate"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VerificationSendResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/emails/{address_id}/remove": {
      "post": {
        "tags": [
          "users"
        ],
        "summary": "Remove My Address",
        "description": "Stop holding one address. The password is asked for again, as it is for\na password change. A proved address removed from somewhere the account\ndoes not yet know waits two days (``202``).",
        "operationId": "remove_my_address",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "address_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Address Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserEmailChange"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HeldChangeOutcome"
                }
              }
            }
          },
          "202": {
            "description": "The change waits until held.applies_at.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HeldChangeOutcome"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/emails/{address_id}/primary": {
      "put": {
        "tags": [
          "users"
        ],
        "summary": "Make My Address Primary",
        "description": "Move where account mail goes. The password is asked for again, and every\naddress the account has proved is told, the one that was primary among\nthem. Asked for from somewhere the account does not yet know, the move\nwaits two days (``202``).",
        "operationId": "make_my_address_primary",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "address_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Address Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserEmailChange"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserEmailRead"
                }
              }
            }
          },
          "202": {
            "description": "The change waits until applies_at.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HeldChangeRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/deletion-eligibility": {
      "get": {
        "tags": [
          "users"
        ],
        "summary": "Check Deletion Eligibility",
        "description": "Check if the current user can be deleted and what blockers exist:\nthe ones ``delete_own_account`` refuses on.",
        "operationId": "check_deletion_eligibility",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletionEligibilityResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/delete-account": {
      "post": {
        "tags": [
          "users"
        ],
        "summary": "Delete Own Account",
        "description": "Delete or deactivate the current user's account.",
        "operationId": "delete_own_account",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AccountDeletionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountDeletionResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/api-keys": {
      "get": {
        "tags": [
          "users"
        ],
        "summary": "List My Api Keys",
        "description": "List all API keys for the current user.",
        "operationId": "list_my_api_keys",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeyListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "users"
        ],
        "summary": "Create My Api Key",
        "description": "Create a new API key for the current user, or with ``device`` the one\nthe phone app's home-screen widgets read with, for the install asking.",
        "operationId": "create_my_api_key",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiKeyCreateRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeyCreateResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/api-keys/{api_key_id}": {
      "delete": {
        "tags": [
          "users"
        ],
        "summary": "Delete My Api Key",
        "description": "Delete an API key for the current user.",
        "operationId": "delete_my_api_key",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "api_key_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Api Key Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/avatar": {
      "put": {
        "tags": [
          "users"
        ],
        "summary": "Upload My Avatar",
        "description": "Replace the caller's profile picture.\n\nMultipart rather than a base64 field on ``PATCH /me``: sending the\nimage inside JSON is the thing this endpoint exists to stop. The body is\nread under the cap so an oversized upload is refused rather than buffered\nwhole, and the format and dimensions are read from the header \u2014 nothing\nhere decodes the image.\n\nRuns on the request-path session, where the row policies allow the caller\nto write their own avatar and no other.",
        "operationId": "upload_my_avatar",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_upload_my_avatar"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserRead"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "users"
        ],
        "summary": "Delete My Avatar",
        "description": "Remove the caller's profile picture.",
        "operationId": "delete_my_avatar",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/held-change": {
      "get": {
        "tags": [
          "users"
        ],
        "summary": "Read Held Change",
        "description": "The change this account has waiting, or nothing.",
        "operationId": "read_held_change",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HeldChangeRead"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "title": "Response Read Held Change"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/held-change/{hold_id}/cancel": {
      "post": {
        "tags": [
          "users"
        ],
        "summary": "Cancel Held Change",
        "description": "Cancel the waiting change. Nothing about the account changes.",
        "operationId": "cancel_held_change",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "hold_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Hold Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/held-change/{hold_id}/apply": {
      "post": {
        "tags": [
          "users"
        ],
        "summary": "Apply Held Change",
        "description": "Make the waiting change now. Asks for a session proved with a passkey,\nwhich the passkey step-up gives; the account is told as it would be when\nthe wait ends.",
        "operationId": "apply_held_change",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "hold_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Hold Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/me/home-layouts": {
      "get": {
        "tags": [
          "home-layouts"
        ],
        "summary": "List Home Layouts",
        "description": "The home layouts this deployment offers, each ready to add as a view.\n\nThe shelf is the marketplace catalog, so a layout that ships with the build\nand one published to the deployment read the same here. Every one was held\nto the widgets this build draws when it was published.",
        "operationId": "list_home_layouts",
        "security": [
          {
            "OAuth2PasswordBearer": []
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HomeLayoutListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AIConnectionCommunity": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "title": "AIConnectionCommunity",
        "description": "A community an operator's connection serves. No name when the\ncommunity no longer exists."
      },
      "AIConnectionCreate": {
        "properties": {
          "label": {
            "type": "string",
            "title": "Label"
          },
          "provider": {
            "$ref": "#/components/schemas/AIProvider"
          },
          "base_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Base Url"
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model"
          },
          "api_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Api Key"
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": true
          },
          "is_default": {
            "type": "boolean",
            "title": "Is Default",
            "default": false
          },
          "community_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Community Ids",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "label",
          "provider"
        ],
        "title": "AIConnectionCreate"
      },
      "AIConnectionResponse": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "scope": {
            "$ref": "#/components/schemas/ConnectionScope"
          },
          "label": {
            "type": "string",
            "title": "Label"
          },
          "provider": {
            "$ref": "#/components/schemas/AIProvider"
          },
          "base_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Base Url"
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model"
          },
          "has_api_key": {
            "type": "boolean",
            "title": "Has Api Key",
            "default": false
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": true
          },
          "is_default": {
            "type": "boolean",
            "title": "Is Default",
            "default": false
          },
          "communities": {
            "items": {
              "$ref": "#/components/schemas/AIConnectionCommunity"
            },
            "type": "array",
            "title": "Communities",
            "default": []
          },
          "last_error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Error"
          },
          "last_error_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Error At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "scope",
          "label",
          "provider",
          "base_url",
          "model",
          "has_api_key",
          "enabled",
          "is_default",
          "communities",
          "last_error",
          "last_error_at"
        ],
        "title": "AIConnectionResponse",
        "description": "A connection as seen by its owning admin. Never carries the key itself \u2014\nonly whether one is set."
      },
      "AIConnectionTestResponse": {
        "properties": {
          "success": {
            "type": "boolean",
            "title": "Success"
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          },
          "available_models": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Available Models"
          }
        },
        "type": "object",
        "required": [
          "success",
          "message",
          "available_models"
        ],
        "title": "AIConnectionTestResponse"
      },
      "AIConnectionUpdate": {
        "properties": {
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Label"
          },
          "provider": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AIProvider"
              },
              {
                "type": "null"
              }
            ]
          },
          "base_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Base Url"
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model"
          },
          "api_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Api Key"
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enabled"
          },
          "is_default": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Default"
          },
          "community_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Community Ids"
          }
        },
        "type": "object",
        "title": "AIConnectionUpdate"
      },
      "AIModelsResponse": {
        "properties": {
          "models": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Models"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          }
        },
        "type": "object",
        "required": [
          "models",
          "error"
        ],
        "title": "AIModelsResponse"
      },
      "AIProvider": {
        "type": "string",
        "enum": [
          "openai",
          "anthropic",
          "gemini",
          "deepseek",
          "groq",
          "xai",
          "together",
          "openrouter",
          "ollama",
          "custom"
        ],
        "title": "AIProvider",
        "description": "Where a connection sends its requests. ``ollama`` and ``custom`` are\nservers somebody runs, at the address the connection gives; the rest are\nhosted services at their own (``app.services.ai_provider.PRESETS``)."
      },
      "AIQueryRequest": {
        "properties": {
          "request": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 1,
            "title": "Request"
          },
          "sql": {
            "type": "string",
            "maxLength": 20000,
            "title": "Sql",
            "default": ""
          },
          "widget_type": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Widget Type"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          }
        },
        "type": "object",
        "required": [
          "request"
        ],
        "title": "AIQueryRequest",
        "description": "A dashboard widget's statement to write from what it should show. This\ntext is sent with the shape of the community's datasets, their names and\nfields; no row is read."
      },
      "AIQueryResponse": {
        "properties": {
          "sql": {
            "type": "string",
            "title": "Sql"
          }
        },
        "type": "object",
        "required": [
          "sql"
        ],
        "title": "AIQueryResponse",
        "description": "The statement for the widget: one the query surface accepts, or the\nlast one written when none was, for the editor to say what to change."
      },
      "AIStreamCut": {
        "properties": {
          "percent": {
            "type": "integer",
            "title": "Percent"
          }
        },
        "type": "object",
        "required": [
          "percent"
        ],
        "title": "AIStreamCut",
        "description": "How much of what was asked about was read: ``percent`` of it, from its\nstart (a document) or from the top of its order (a catch-up)."
      },
      "AIStreamEvent": {
        "properties": {
          "since": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Since"
          },
          "cut": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AIStreamCut"
              },
              {
                "type": "null"
              }
            ]
          },
          "text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Text"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          }
        },
        "type": "object",
        "title": "AIStreamEvent",
        "description": "One line of an answer streamed as it is written. Exactly one field is\nset: ``since`` first on a catch-up, where the changes it read start;\n``cut`` next, when only part of what was asked about fit; ``text``, the\nnext piece of the answer; or ``error``, the code it ended on. A catch-up\nwith nothing to read ends after ``since``."
      },
      "AIWriteAction": {
        "type": "string",
        "enum": [
          "rewrite",
          "shorten",
          "fix",
          "translate",
          "continue"
        ],
        "title": "AIWriteAction",
        "description": "What writing help is asked to do with a selection."
      },
      "AIWriteRequest": {
        "properties": {
          "action": {
            "$ref": "#/components/schemas/AIWriteAction"
          },
          "text": {
            "type": "string",
            "maxLength": 100000,
            "title": "Text",
            "default": ""
          },
          "before": {
            "type": "string",
            "maxLength": 100000,
            "title": "Before",
            "default": ""
          },
          "after": {
            "type": "string",
            "maxLength": 100000,
            "title": "After",
            "default": ""
          },
          "language": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 35
              },
              {
                "type": "null"
              }
            ],
            "title": "Language"
          }
        },
        "type": "object",
        "required": [
          "action"
        ],
        "title": "AIWriteRequest",
        "description": "Writing help for a selection in a document, with the text either side\nof it. Only this text is read; nothing is looked up."
      },
      "AccessGrantApprove": {
        "properties": {
          "duration_minutes": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Duration Minutes"
          }
        },
        "type": "object",
        "title": "AccessGrantApprove",
        "description": "Approval payload. The approver may shorten/extend the window, still\nsubject to the server-side cap."
      },
      "AccessGrantCreate": {
        "properties": {
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "access_level": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AccessLevel"
              },
              {
                "type": "null"
              }
            ]
          },
          "settings_level": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SettingsLevel"
              },
              {
                "type": "null"
              }
            ]
          },
          "requested_duration_minutes": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Requested Duration Minutes"
          },
          "reason": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 1,
            "title": "Reason"
          },
          "case_task_id": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Case Task Id"
          },
          "community_notice": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommunityNotice"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "community_id",
          "reason"
        ],
        "title": "AccessGrantCreate",
        "description": "A request for time-bound access to one guild.\n\nTwo axes, and a request may name either or both. **Content** reaches what\nis inside the community, at ``read`` or ``read_write``. **Settings**\nreaches its configuration and nothing inside it, at ``admin`` or\n``superadmin``.\n\nAsking for both is a real errand rather than a mistake: clearing up after\nan incident takes write access to the content *and* the settings that\ngovern it, which is the same pair breaking glass issues. Each axis becomes\nits own grant, so what was exercised is recorded separately even when both\nwere asked for at once.\n\nNaming neither is read-only content \u2014 what a bare request has always\nmeant."
      },
      "AccessGrantLimits": {
        "properties": {
          "max_duration_minutes": {
            "type": "integer",
            "title": "Max Duration Minutes"
          }
        },
        "type": "object",
        "required": [
          "max_duration_minutes"
        ],
        "title": "AccessGrantLimits",
        "description": "What the caller may ask for through the request flow, as this\ndeployment configures it \u2014 read by the request form to offer its\ndurations."
      },
      "AccessGrantListResponse": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/AccessGrantRead"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items"
        ],
        "title": "AccessGrantListResponse"
      },
      "AccessGrantRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "user_id": {
            "type": "integer",
            "title": "User Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "purpose": {
            "type": "string",
            "title": "Purpose",
            "default": "content"
          },
          "access_level": {
            "type": "string",
            "title": "Access Level"
          },
          "status": {
            "$ref": "#/components/schemas/AccessGrantStatus"
          },
          "reason": {
            "type": "string",
            "title": "Reason"
          },
          "requested_duration_minutes": {
            "type": "integer",
            "title": "Requested Duration Minutes"
          },
          "requested_by_id": {
            "type": "integer",
            "title": "Requested By Id"
          },
          "approved_by_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Approved By Id"
          },
          "revoked_by_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Revoked By Id"
          },
          "requested_at": {
            "type": "string",
            "format": "date-time",
            "title": "Requested At"
          },
          "decided_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Decided At"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "revoked_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Revoked At"
          },
          "case_task_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Case Task Id"
          },
          "community_notice": {
            "$ref": "#/components/schemas/CommunityNotice",
            "default": "none"
          },
          "user": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UserIdentity"
              },
              {
                "type": "null"
              }
            ]
          },
          "community_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Community Name"
          },
          "community_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommunityStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "approved_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UserIdentity"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_live": {
            "type": "boolean",
            "title": "Is Live",
            "description": "Whether this grant currently confers access (approved, unexpired).",
            "readOnly": true
          }
        },
        "type": "object",
        "required": [
          "id",
          "user_id",
          "community_id",
          "purpose",
          "access_level",
          "status",
          "reason",
          "requested_duration_minutes",
          "requested_by_id",
          "approved_by_id",
          "revoked_by_id",
          "requested_at",
          "decided_at",
          "expires_at",
          "revoked_at",
          "case_task_id",
          "community_notice",
          "user",
          "community_name",
          "community_status",
          "approved_by",
          "is_live"
        ],
        "title": "AccessGrantRead"
      },
      "AccessGrantStatus": {
        "type": "string",
        "enum": [
          "pending",
          "approved",
          "denied",
          "revoked",
          "expired"
        ],
        "title": "AccessGrantStatus",
        "description": "Lifecycle of a privileged-access grant.\n\n``pending`` \u2192 (``approved`` | ``denied``); ``approved`` \u2192 (``revoked`` |\n``expired``). A grant is *live* only while ``approved`` and before\n``expires_at`` \u2014 liveness is computed, not stored (:func:`grant_is_live`)."
      },
      "AccessLevel": {
        "type": "string",
        "enum": [
          "read",
          "read_write",
          "moderate"
        ],
        "title": "AccessLevel",
        "description": "How much of a guild's *content* a PAM grant confers."
      },
      "AccountChangeDone": {
        "properties": {
          "status": {
            "type": "string",
            "title": "Status"
          },
          "platform_told": {
            "type": "boolean",
            "title": "Platform Told",
            "default": false
          },
          "contact": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Contact"
          }
        },
        "type": "object",
        "required": [
          "status",
          "platform_told",
          "contact"
        ],
        "title": "AccountChangeDone",
        "description": "What answering a \"This wasn't me\" link did."
      },
      "AccountChangeRead": {
        "properties": {
          "notice": {
            "type": "string",
            "title": "Notice"
          },
          "sign_out": {
            "type": "boolean",
            "title": "Sign Out"
          },
          "undo": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Undo"
          },
          "subject": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subject"
          }
        },
        "type": "object",
        "required": [
          "notice",
          "sign_out"
        ],
        "title": "AccountChangeRead",
        "description": "What a \"This wasn't me\" link answers and what it may do."
      },
      "AccountChangeToken": {
        "properties": {
          "token": {
            "type": "string",
            "minLength": 10,
            "title": "Token"
          }
        },
        "type": "object",
        "required": [
          "token"
        ],
        "title": "AccountChangeToken",
        "description": "The token from the \"This wasn't me\" link in an account letter."
      },
      "AccountDeletionRequest": {
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "deactivate",
              "soft_delete"
            ],
            "title": "Action"
          },
          "password": {
            "type": "string",
            "title": "Password"
          },
          "confirmation_text": {
            "type": "string",
            "title": "Confirmation Text"
          }
        },
        "type": "object",
        "required": [
          "action",
          "password",
          "confirmation_text"
        ],
        "title": "AccountDeletionRequest",
        "description": "Request from a user to deactivate or anonymize (soft-delete) their own account.\n\n`hard_delete` is intentionally not allowed from this self-service endpoint;\nonly an operator can purge a row, and they do so via the operator endpoint."
      },
      "AccountDeletionResponse": {
        "properties": {
          "success": {
            "type": "boolean",
            "title": "Success"
          },
          "action": {
            "type": "string",
            "title": "Action"
          },
          "message": {
            "type": "string",
            "title": "Message"
          }
        },
        "type": "object",
        "required": [
          "success",
          "action",
          "message"
        ],
        "title": "AccountDeletionResponse",
        "description": "Response after a deactivate / anonymize / hard-delete action."
      },
      "AccountTimeOutRead": {
        "properties": {
          "contact_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Contact Email"
          },
          "since": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Since"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "can_appeal": {
            "type": "boolean",
            "title": "Can Appeal",
            "default": false
          },
          "appeal_task_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Appeal Task Id"
          }
        },
        "type": "object",
        "title": "AccountTimeOutRead",
        "description": "What a suspended account is told on its time-out screen."
      },
      "AccountsWithoutFactor": {
        "properties": {
          "platform_roles": {
            "type": "integer",
            "title": "Platform Roles"
          },
          "everyone": {
            "type": "integer",
            "title": "Everyone"
          }
        },
        "type": "object",
        "required": [
          "platform_roles",
          "everyone"
        ],
        "title": "AccountsWithoutFactor",
        "description": "How many accounts each level would ask to set a second factor up.\n\nBoth figures on every read, so the page states the consequence of a choice\nbefore it is made rather than after it binds anybody."
      },
      "ActivityEntry": {
        "properties": {
          "entity_type": {
            "$ref": "#/components/schemas/SearchEntityType"
          },
          "entity_id": {
            "type": "integer",
            "title": "Entity Id"
          },
          "title": {
            "type": "string",
            "title": "Title",
            "x-mentions": "markdown"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "initiative_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Name"
          },
          "tool": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Tool"
              },
              {
                "type": "null"
              }
            ]
          },
          "tool_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool Id"
          },
          "tool_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool Title"
          },
          "latest": {
            "type": "string",
            "format": "date-time",
            "title": "Latest"
          },
          "verbs": {
            "items": {
              "$ref": "#/components/schemas/Verb"
            },
            "type": "array",
            "title": "Verbs"
          },
          "fields": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Fields"
          },
          "editable": {
            "type": "boolean",
            "title": "Editable",
            "default": false
          },
          "actors": {
            "items": {
              "$ref": "#/components/schemas/UserPublic"
            },
            "type": "array",
            "title": "Actors"
          },
          "actor_count": {
            "type": "integer",
            "title": "Actor Count"
          }
        },
        "type": "object",
        "required": [
          "entity_type",
          "entity_id",
          "title",
          "initiative_id",
          "initiative_name",
          "tool",
          "tool_id",
          "tool_title",
          "latest",
          "verbs",
          "fields",
          "editable",
          "actors",
          "actor_count"
        ],
        "title": "ActivityEntry",
        "description": "One item, and what people did to it lately."
      },
      "ActivityFeedPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ActivityEntry"
            },
            "type": "array",
            "title": "Items"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          }
        },
        "type": "object",
        "required": [
          "items",
          "page",
          "page_size",
          "has_next"
        ],
        "title": "ActivityFeedPage"
      },
      "ActorKind": {
        "type": "string",
        "enum": [
          "member",
          "plugin",
          "system"
        ],
        "title": "ActorKind",
        "description": "Who did something to a row: what its ``created_by`` (made it) or\n``deleted_by`` (put it in the trash) names."
      },
      "AdminSurface": {
        "type": "string",
        "enum": [
          "profile",
          "invites",
          "members",
          "initiatives",
          "community_calendars",
          "community_contacts",
          "community_dashboards",
          "community_forms",
          "webhooks",
          "trash",
          "usage",
          "roles"
        ],
        "title": "AdminSurface",
        "description": "A part of administering a community, held as a whole.\n\nThe admin rung holds every one. What the rung holds beyond them, the reach\ninto all of the community's content (``initiative_access``, \"Full access\",\nthe trash's reads), is not one of these: it is the rung's own. Each admin\nroute names the surface it guards, and so does each policy leg that guards\none, reading the request's ``held_surfaces``."
      },
      "AgeConfirmation": {
        "properties": {
          "birthdate": {
            "type": "string",
            "format": "date",
            "title": "Birthdate"
          }
        },
        "type": "object",
        "required": [
          "birthdate"
        ],
        "title": "AgeConfirmation",
        "description": "Someone saying when they were born, once.\n\nThe date answers one question \u2014 are they old enough \u2014 and is then gone. It\nis never written to a column, never logged, and never put in an audit\nrecord; there is nowhere in the schema it could be kept. What the account\nkeeps is that the question was answered and when\n(``users.age_confirmed_at``), which is what a deployment needs to show it\nasked.\n\nAsking for a date rather than offering a box to tick is the difference\nbetween a question and a formality: a box says what the answer should be\nbefore it is given."
      },
      "AnnouncementAudienceAccounts": {
        "type": "string",
        "enum": [
          "everyone",
          "existing",
          "new"
        ],
        "title": "AnnouncementAudienceAccounts",
        "description": "Which accounts a notice is for, measured against its publication.\n\nA breaking change is about a *transition*: somebody who signed up\nafterwards never lived on the old behaviour and has nothing to act on.\nThe inverse is just as useful \u2014 an onboarding tip is for the people who\nhave just arrived, and stale for everyone else."
      },
      "AnnouncementCategory": {
        "type": "string",
        "enum": [
          "release",
          "feature",
          "breaking",
          "maintenance",
          "security",
          "info"
        ],
        "title": "AnnouncementCategory",
        "description": "What kind of news this is \u2014 drives the icon and accent, nothing else."
      },
      "AnnouncementImageRead": {
        "properties": {
          "url": {
            "type": "string",
            "title": "Url"
          },
          "sha256": {
            "type": "string",
            "title": "Sha256"
          },
          "content_type": {
            "type": "string",
            "title": "Content Type"
          },
          "byte_size": {
            "type": "integer",
            "title": "Byte Size"
          },
          "width": {
            "type": "integer",
            "title": "Width"
          },
          "height": {
            "type": "integer",
            "title": "Height"
          }
        },
        "type": "object",
        "required": [
          "url",
          "sha256",
          "content_type",
          "byte_size",
          "width",
          "height"
        ],
        "title": "AnnouncementImageRead",
        "description": "Where an uploaded picture now lives, and how big it is."
      },
      "AnnouncementListResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/AnnouncementRead"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "title": "AnnouncementListResponse"
      },
      "AnnouncementOperatorListResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/AnnouncementOperatorRead"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "title": "AnnouncementOperatorListResponse"
      },
      "AnnouncementOperatorRead": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "category": {
            "$ref": "#/components/schemas/AnnouncementCategory"
          },
          "sections": {
            "items": {
              "$ref": "#/components/schemas/AnnouncementSection"
            },
            "type": "array",
            "title": "Sections"
          },
          "published_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Published At"
          },
          "is_builtin": {
            "type": "boolean",
            "title": "Is Builtin",
            "default": false
          },
          "dismissed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dismissed At"
          },
          "dismissals_required": {
            "type": "integer",
            "title": "Dismissals Required",
            "default": 1
          },
          "dismiss_count": {
            "type": "integer",
            "title": "Dismiss Count",
            "default": 0
          },
          "trigger_route": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Trigger Route"
          },
          "id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id"
          },
          "min_platform_role": {
            "$ref": "#/components/schemas/UserRole",
            "default": "member"
          },
          "community_admins_only": {
            "type": "boolean",
            "title": "Community Admins Only",
            "default": false
          },
          "audience_accounts": {
            "$ref": "#/components/schemas/AnnouncementAudienceAccounts",
            "default": "everyone"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "key",
          "title",
          "category"
        ],
        "title": "AnnouncementOperatorRead",
        "description": "Everything about an announcement, for the people who write them."
      },
      "AnnouncementRead": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "category": {
            "$ref": "#/components/schemas/AnnouncementCategory"
          },
          "sections": {
            "items": {
              "$ref": "#/components/schemas/AnnouncementSection"
            },
            "type": "array",
            "title": "Sections"
          },
          "published_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Published At"
          },
          "is_builtin": {
            "type": "boolean",
            "title": "Is Builtin",
            "default": false
          },
          "dismissed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dismissed At"
          },
          "dismissals_required": {
            "type": "integer",
            "title": "Dismissals Required",
            "default": 1
          },
          "dismiss_count": {
            "type": "integer",
            "title": "Dismiss Count",
            "default": 0
          },
          "trigger_route": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Trigger Route"
          }
        },
        "type": "object",
        "required": [
          "key",
          "title",
          "category"
        ],
        "title": "AnnouncementRead",
        "description": "An announcement as a reader receives it."
      },
      "AnnouncementSection": {
        "properties": {
          "heading": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 160
              },
              {
                "type": "null"
              }
            ],
            "title": "Heading"
          },
          "starts_page": {
            "type": "boolean",
            "title": "Starts Page",
            "default": false
          },
          "body": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4000
              },
              {
                "type": "null"
              }
            ],
            "title": "Body"
          },
          "image_url": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2048
              },
              {
                "type": "null"
              }
            ],
            "title": "Image Url"
          },
          "image_alt": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Image Alt"
          }
        },
        "type": "object",
        "title": "AnnouncementSection",
        "description": "One beat of an announcement: a heading, some prose, and a picture.\n\nEvery part is optional on its own, but a section with none of them is\nnothing, so at least one must be present."
      },
      "AnnouncementUpdate": {
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "category": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AnnouncementCategory"
              },
              {
                "type": "null"
              }
            ]
          },
          "sections": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/AnnouncementSection"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sections"
          },
          "min_platform_role": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UserRole"
              },
              {
                "type": "null"
              }
            ]
          },
          "community_admins_only": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Community Admins Only"
          },
          "audience_accounts": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AnnouncementAudienceAccounts"
              },
              {
                "type": "null"
              }
            ]
          },
          "published_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Published At"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "dismissals_required": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 10.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Dismissals Required"
          },
          "trigger_route": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Trigger Route"
          },
          "clear_published_at": {
            "type": "boolean",
            "title": "Clear Published At",
            "default": false
          },
          "clear_expires_at": {
            "type": "boolean",
            "title": "Clear Expires At",
            "default": false
          },
          "clear_trigger_route": {
            "type": "boolean",
            "title": "Clear Trigger Route",
            "default": false
          }
        },
        "type": "object",
        "title": "AnnouncementUpdate",
        "description": "Body for editing an announcement \u2014 every field optional."
      },
      "AnnouncementWrite": {
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 200,
            "minLength": 1,
            "title": "Title"
          },
          "category": {
            "$ref": "#/components/schemas/AnnouncementCategory",
            "default": "info"
          },
          "sections": {
            "items": {
              "$ref": "#/components/schemas/AnnouncementSection"
            },
            "type": "array",
            "title": "Sections"
          },
          "min_platform_role": {
            "$ref": "#/components/schemas/UserRole",
            "default": "member"
          },
          "community_admins_only": {
            "type": "boolean",
            "title": "Community Admins Only",
            "default": false
          },
          "audience_accounts": {
            "$ref": "#/components/schemas/AnnouncementAudienceAccounts",
            "default": "everyone"
          },
          "published_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Published At"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "dismissals_required": {
            "type": "integer",
            "maximum": 10.0,
            "minimum": 1.0,
            "title": "Dismissals Required",
            "default": 1
          },
          "trigger_route": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Trigger Route"
          }
        },
        "type": "object",
        "required": [
          "title"
        ],
        "title": "AnnouncementWrite",
        "description": "Body for creating an announcement, and the base for editing one."
      },
      "ApiKeyCreateRequest": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "read_only": {
            "type": "boolean",
            "title": "Read Only",
            "default": false
          },
          "community_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Community Id"
          },
          "resource_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Tool"
              },
              {
                "type": "null"
              }
            ]
          },
          "resource_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resource Id"
          },
          "device": {
            "type": "boolean",
            "title": "Device",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "ApiKeyCreateRequest"
      },
      "ApiKeyCreateResponse": {
        "properties": {
          "api_key": {
            "$ref": "#/components/schemas/ApiKeyMetadata"
          },
          "secret": {
            "type": "string",
            "title": "Secret"
          }
        },
        "type": "object",
        "required": [
          "api_key",
          "secret"
        ],
        "title": "ApiKeyCreateResponse"
      },
      "ApiKeyListResponse": {
        "properties": {
          "keys": {
            "items": {
              "$ref": "#/components/schemas/ApiKeyMetadata"
            },
            "type": "array",
            "title": "Keys"
          }
        },
        "type": "object",
        "required": [
          "keys"
        ],
        "title": "ApiKeyListResponse"
      },
      "ApiKeyMetadata": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "token_prefix": {
            "type": "string",
            "title": "Token Prefix"
          },
          "is_active": {
            "type": "boolean",
            "title": "Is Active"
          },
          "read_only": {
            "type": "boolean",
            "title": "Read Only",
            "default": false
          },
          "community_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Community Id"
          },
          "resource_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Tool"
              },
              {
                "type": "null"
              }
            ]
          },
          "resource_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resource Id"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "last_used_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Used At"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "token_prefix",
          "is_active",
          "read_only",
          "community_id",
          "resource_type",
          "resource_id",
          "created_at",
          "last_used_at",
          "expires_at"
        ],
        "title": "ApiKeyMetadata"
      },
      "AppConfig": {
        "properties": {
          "captcha": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CaptchaConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "billing": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BillingConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "faro_collector_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Faro Collector Url"
          },
          "count_page_views": {
            "type": "boolean",
            "title": "Count Page Views",
            "default": false
          },
          "max_upload_bytes": {
            "type": "integer",
            "title": "Max Upload Bytes"
          },
          "community_directory_enabled": {
            "type": "boolean",
            "title": "Community Directory Enabled"
          },
          "community_age_gate_enabled": {
            "type": "boolean",
            "title": "Community Age Gate Enabled"
          },
          "direct_messages_enabled": {
            "type": "boolean",
            "title": "Direct Messages Enabled"
          },
          "guests_enabled": {
            "type": "boolean",
            "title": "Guests Enabled"
          },
          "engagement_ranking_enabled": {
            "type": "boolean",
            "title": "Engagement Ranking Enabled"
          },
          "cookie_consent_enabled": {
            "type": "boolean",
            "title": "Cookie Consent Enabled"
          },
          "light_accent_color": {
            "type": "string",
            "title": "Light Accent Color"
          },
          "dark_accent_color": {
            "type": "string",
            "title": "Dark Accent Color"
          },
          "cookie_categories": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Cookie Categories"
          },
          "login_methods": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Login Methods"
          },
          "min_native_version": {
            "type": "string",
            "title": "Min Native Version"
          },
          "min_desktop_version": {
            "type": "string",
            "title": "Min Desktop Version"
          }
        },
        "type": "object",
        "required": [
          "max_upload_bytes",
          "community_directory_enabled",
          "community_age_gate_enabled",
          "direct_messages_enabled",
          "guests_enabled",
          "engagement_ranking_enabled",
          "cookie_consent_enabled",
          "light_accent_color",
          "dark_accent_color",
          "cookie_categories",
          "login_methods",
          "min_native_version",
          "min_desktop_version"
        ],
        "title": "AppConfig",
        "description": "Public, runtime-injected configuration consumed by the SPA at boot."
      },
      "ArchiveBulkRequest": {
        "properties": {
          "entity_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 500,
            "minItems": 1,
            "title": "Entity Ids"
          }
        },
        "type": "object",
        "required": [
          "entity_ids"
        ],
        "title": "ArchiveBulkRequest",
        "description": "Many things of one kind to archive, or to take back out, together: every\none of them or none."
      },
      "ArchiveDoneResponse": {
        "properties": {
          "archived_count": {
            "type": "integer",
            "title": "Archived Count"
          }
        },
        "type": "object",
        "required": [
          "archived_count"
        ],
        "title": "ArchiveDoneResponse"
      },
      "ArchiveResponse": {
        "properties": {
          "entity_type": {
            "type": "string",
            "title": "Entity Type"
          },
          "entity_id": {
            "type": "integer",
            "title": "Entity Id"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          }
        },
        "type": "object",
        "required": [
          "entity_type",
          "entity_id"
        ],
        "title": "ArchiveResponse",
        "description": "What archiving or unarchiving answers with.\n\nThe stamp, not the entity: one endpoint serves ten kinds, and a caller that\nwants the whole row reads it back from the route that already serves it."
      },
      "AtlassianConfluenceProbe": {
        "properties": {
          "available": {
            "type": "boolean",
            "title": "Available",
            "default": false
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "spaces": {
            "items": {
              "$ref": "#/components/schemas/AtlassianConfluenceSpace"
            },
            "type": "array",
            "title": "Spaces",
            "default": []
          }
        },
        "type": "object",
        "title": "AtlassianConfluenceProbe"
      },
      "AtlassianConfluenceSpace": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "key": {
            "type": "string",
            "title": "Key"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "page_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Page Count"
          }
        },
        "type": "object",
        "required": [
          "id",
          "key",
          "name"
        ],
        "title": "AtlassianConfluenceSpace",
        "description": "One Confluence space the token can see."
      },
      "AtlassianConnectRequest": {
        "properties": {
          "site_url": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 1,
            "title": "Site Url"
          },
          "email": {
            "type": "string",
            "maxLength": 320,
            "minLength": 1,
            "title": "Email"
          },
          "api_token": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 1,
            "title": "Api Token"
          }
        },
        "type": "object",
        "required": [
          "site_url",
          "email",
          "api_token"
        ],
        "title": "AtlassianConnectRequest",
        "description": "What somebody types into the connect step.\n\n``site_url`` is the site as a person knows it \u2014\n``https://acme.atlassian.net``. Anything after the host is ignored: the\nproducts live at fixed paths under it, and a URL pasted from a browser's\naddress bar is usually pointing at a board."
      },
      "AtlassianConnectResponse": {
        "properties": {
          "site_url": {
            "type": "string",
            "title": "Site Url"
          },
          "jira": {
            "$ref": "#/components/schemas/AtlassianJiraProbe",
            "default": {
              "available": false,
              "projects": []
            }
          },
          "confluence": {
            "$ref": "#/components/schemas/AtlassianConfluenceProbe",
            "default": {
              "available": false,
              "spaces": []
            }
          }
        },
        "type": "object",
        "required": [
          "site_url"
        ],
        "title": "AtlassianConnectResponse",
        "description": "The connect step's answer: what is on the site.\n\nThe request that starts an import carries the token again, so there is\nnothing to quote back here and nothing kept between the two."
      },
      "AtlassianImportRequest": {
        "properties": {
          "site_url": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 1,
            "title": "Site Url"
          },
          "email": {
            "type": "string",
            "maxLength": 320,
            "minLength": 1,
            "title": "Email"
          },
          "api_token": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 1,
            "title": "Api Token"
          },
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "project_keys": {
            "items": {
              "type": "string",
              "maxLength": 50,
              "minLength": 1,
              "pattern": "^[A-Za-z][A-Za-z0-9_]*$"
            },
            "type": "array",
            "maxItems": 200,
            "title": "Project Keys",
            "default": []
          },
          "space_keys": {
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^~?[A-Za-z0-9_-]+$"
            },
            "type": "array",
            "maxItems": 200,
            "title": "Space Keys",
            "default": []
          },
          "include_comments": {
            "type": "boolean",
            "title": "Include Comments",
            "default": true
          },
          "include_attachments": {
            "type": "boolean",
            "title": "Include Attachments",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "site_url",
          "email",
          "api_token",
          "initiative_id"
        ],
        "title": "AtlassianImportRequest",
        "description": "The choose step's answer: which Jira projects and Confluence spaces,\nfrom which site, into which initiative. Either list may be empty, not\nboth.\n\nNothing is read from the site here. The request starts one job, and the\nworker reads the projects and spaces into one bundle and parks it for\nreview \u2014 so a link between an issue and a page read together is joined\nwhen it is applied.\n\nIt carries the same three values the connect step proved, because the job\nrow is what holds them from here on."
      },
      "AtlassianJiraProbe": {
        "properties": {
          "available": {
            "type": "boolean",
            "title": "Available",
            "default": false
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "projects": {
            "items": {
              "$ref": "#/components/schemas/AtlassianJiraProject"
            },
            "type": "array",
            "title": "Projects",
            "default": []
          }
        },
        "type": "object",
        "title": "AtlassianJiraProbe"
      },
      "AtlassianJiraProject": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "key": {
            "type": "string",
            "title": "Key"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "issue_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Issue Count"
          }
        },
        "type": "object",
        "required": [
          "id",
          "key",
          "name"
        ],
        "title": "AtlassianJiraProject",
        "description": "One Jira project the token can see."
      },
      "AttachmentUploadResponse": {
        "properties": {
          "filename": {
            "type": "string",
            "title": "Filename"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "content_type": {
            "type": "string",
            "title": "Content Type"
          },
          "size": {
            "type": "integer",
            "title": "Size"
          }
        },
        "type": "object",
        "required": [
          "filename",
          "url",
          "content_type",
          "size"
        ],
        "title": "AttachmentUploadResponse"
      },
      "AuthProviderCreate": {
        "properties": {
          "slug": {
            "type": "string",
            "maxLength": 64,
            "title": "Slug"
          },
          "display_name": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "title": "Display Name"
          },
          "kind": {
            "type": "string",
            "const": "oidc",
            "title": "Kind",
            "default": "oidc"
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": true
          },
          "issuer": {
            "type": "string",
            "title": "Issuer"
          },
          "client_id": {
            "type": "string",
            "minLength": 1,
            "title": "Client Id"
          },
          "client_secret": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Client Secret"
          },
          "scopes": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ],
            "title": "Scopes",
            "default": "openid email profile"
          },
          "role_claim_path": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 256
              },
              {
                "type": "null"
              }
            ],
            "title": "Role Claim Path"
          },
          "allow_jit": {
            "type": "boolean",
            "title": "Allow Jit",
            "default": true
          },
          "asserts_second_factor": {
            "type": "boolean",
            "title": "Asserts Second Factor",
            "default": false
          },
          "icon": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "button_style": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Button Style"
          }
        },
        "type": "object",
        "required": [
          "slug",
          "display_name",
          "issuer",
          "client_id"
        ],
        "title": "AuthProviderCreate",
        "description": "A new operator-global login provider. Complete rows only \u2014 the login\nflow refuses config-incomplete providers, so the CRUD does too."
      },
      "AuthProviderDiscoverRequest": {
        "properties": {
          "issuer": {
            "type": "string",
            "title": "Issuer"
          }
        },
        "type": "object",
        "required": [
          "issuer"
        ],
        "title": "AuthProviderDiscoverRequest",
        "description": "An address to look up before anything is saved."
      },
      "AuthProviderOwnerRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "display_name": {
            "type": "string",
            "title": "Display Name"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          },
          "issuer": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Issuer"
          },
          "client_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Client Id"
          },
          "scopes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scopes"
          },
          "role_claim_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Role Claim Path"
          },
          "allow_jit": {
            "type": "boolean",
            "title": "Allow Jit"
          },
          "asserts_second_factor": {
            "type": "boolean",
            "title": "Asserts Second Factor",
            "default": false
          },
          "icon": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "button_style": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Button Style"
          },
          "secret_set": {
            "type": "boolean",
            "title": "Secret Set",
            "default": false
          },
          "secret_hint": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Secret Hint"
          },
          "callback_url": {
            "type": "string",
            "title": "Callback Url",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "id",
          "slug",
          "display_name",
          "kind",
          "enabled",
          "issuer",
          "client_id",
          "scopes",
          "role_claim_path",
          "allow_jit",
          "asserts_second_factor",
          "icon",
          "button_style",
          "secret_set",
          "secret_hint",
          "callback_url"
        ],
        "title": "AuthProviderOwnerRead",
        "description": "One registry provider as the owner's settings read it \u2014 never the secret."
      },
      "AuthProviderProbeResult": {
        "properties": {
          "ok": {
            "type": "boolean",
            "title": "Ok"
          },
          "error_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error Code"
          },
          "issuer": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Issuer"
          },
          "authorization_endpoint": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Authorization Endpoint"
          },
          "token_endpoint": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Token Endpoint"
          },
          "jwks_uri": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Jwks Uri"
          },
          "userinfo_endpoint": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Userinfo Endpoint"
          },
          "signing_algs": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Signing Algs"
          },
          "scopes_supported": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Scopes Supported"
          },
          "claims_supported": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Claims Supported"
          },
          "callback_url_template": {
            "type": "string",
            "title": "Callback Url Template",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "ok",
          "error_code",
          "issuer",
          "authorization_endpoint",
          "token_endpoint",
          "jwks_uri",
          "userinfo_endpoint",
          "signing_algs",
          "scopes_supported",
          "claims_supported",
          "callback_url_template"
        ],
        "title": "AuthProviderProbeResult",
        "description": "What one look at a provider found.\n\nNamed fields only. The document itself and the status that carried it stay\nserver-side; ``error_code`` is what a failure says, and the detail behind\nit is in the log."
      },
      "AuthProviderUpdate": {
        "properties": {
          "display_name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 128,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Display Name"
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enabled"
          },
          "issuer": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Issuer"
          },
          "client_id": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Client Id"
          },
          "client_secret": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Client Secret"
          },
          "scopes": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ],
            "title": "Scopes"
          },
          "role_claim_path": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 256
              },
              {
                "type": "null"
              }
            ],
            "title": "Role Claim Path"
          },
          "allow_jit": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Allow Jit"
          },
          "asserts_second_factor": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Asserts Second Factor"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "button_style": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Button Style"
          }
        },
        "type": "object",
        "title": "AuthProviderUpdate",
        "description": "Partial update. ``client_secret``: absent = keep, empty = clear,\nvalue = replace. The slug is immutable \u2014 it is the identity the login\nURLs, flow states, and linked identities hang off."
      },
      "BackupEstimate": {
        "properties": {
          "tools": {
            "additionalProperties": {
              "$ref": "#/components/schemas/BackupToolEstimate"
            },
            "type": "object",
            "title": "Tools"
          },
          "uploads_count": {
            "type": "integer",
            "title": "Uploads Count",
            "default": 0
          },
          "uploads_bytes": {
            "type": "integer",
            "title": "Uploads Bytes",
            "default": 0
          },
          "uploads_approximate": {
            "type": "boolean",
            "title": "Uploads Approximate",
            "default": true
          },
          "estimated_rows": {
            "type": "integer",
            "title": "Estimated Rows",
            "default": 0
          },
          "max_rows": {
            "type": "integer",
            "title": "Max Rows",
            "default": 0
          },
          "max_upload_bytes": {
            "type": "integer",
            "title": "Max Upload Bytes",
            "default": 0
          },
          "max_download_bytes": {
            "type": "integer",
            "title": "Max Download Bytes",
            "default": 0
          },
          "delivery_available": {
            "type": "boolean",
            "title": "Delivery Available",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "tools"
        ],
        "title": "BackupEstimate",
        "description": "The wizard's pre-flight numbers: per-tool entity counts, the uploads\nfootprint (approximate \u2014 embedded document images resolve at build time),\nand the row/byte ceilings so the client can warn before submitting."
      },
      "BackupToolEstimate": {
        "properties": {
          "count": {
            "type": "integer",
            "title": "Count",
            "default": 0
          },
          "disabled": {
            "type": "boolean",
            "title": "Disabled",
            "default": false
          }
        },
        "type": "object",
        "title": "BackupToolEstimate"
      },
      "BannerFade": {
        "type": "string",
        "enum": [
          "none",
          "weak",
          "strong"
        ],
        "title": "BannerFade",
        "description": "How far a banner dissolves into the page beneath it.\n\n``none`` ends the banner at an edge \u2014 a band with the page starting under\nit. The other two extend it past that edge and fade it out there, so the\npage's own content rides over the tail rather than starting below it: a\n``weak`` fade is a soft join, a ``strong`` one lets the banner read as the\npage's background rather than as a strip on it."
      },
      "BannerTextAlign": {
        "type": "string",
        "enum": [
          "center",
          "left"
        ],
        "title": "BannerTextAlign",
        "description": "Where a banner's name and description sit across its width.\n\nTwo answers, not a free position: centred reads as a masthead and is what a\nbanner with artwork built around a middle wants, while left-aligned lines\nthe copy up with the page's own content and is what a photograph with its\nsubject on one side wants. Anything finer would be a design tool, and the\nguild is choosing between two looks rather than laying one out."
      },
      "BillingConfig": {
        "properties": {
          "url": {
            "type": "string",
            "title": "Url"
          }
        },
        "type": "object",
        "required": [
          "url"
        ],
        "title": "BillingConfig",
        "description": "Public link-out to an external billing portal.\n\nWhen ``BILLING_URL`` is unset on the backend (the default) this whole\nfield is ``None`` and the SPA shows no tier label, upgrade, or\nmanage-billing UI. The usage panel (caps + usage, all operator-set\nnumbers) renders regardless. Only the base URL crosses."
      },
      "BillingPortalHandoffResponse": {
        "properties": {
          "handoff_token": {
            "type": "string",
            "title": "Handoff Token"
          },
          "expires_in_seconds": {
            "type": "integer",
            "title": "Expires In Seconds"
          }
        },
        "type": "object",
        "required": [
          "handoff_token",
          "expires_in_seconds"
        ],
        "title": "BillingPortalHandoffResponse",
        "description": "Billing-portal handoff token and its lifetime in seconds."
      },
      "BindingSource": {
        "type": "string",
        "enum": [
          "item",
          "query"
        ],
        "title": "BindingSource",
        "description": "Data sources a widget binding may name."
      },
      "Body_file_ticket": {
        "properties": {
          "payload": {
            "type": "string",
            "title": "Payload",
            "description": "The ticket, as JSON: a support request, a report, a security problem, feedback or an appeal, told apart by ``stream`` (and an appeal by its ``type``)."
          },
          "files": {
            "items": {
              "type": "string",
              "contentMediaType": "application/octet-stream"
            },
            "type": "array",
            "title": "Files",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "payload"
        ],
        "title": "Body_file_ticket"
      },
      "Body_import_envelope_archive": {
        "properties": {
          "file": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "File"
          },
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "envelope_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Envelope Type",
            "description": "The envelope type the import was started for; a zip holding another tool's export is refused"
          }
        },
        "type": "object",
        "required": [
          "file",
          "initiative_id"
        ],
        "title": "Body_import_envelope_archive"
      },
      "Body_import_spreadsheet_file": {
        "properties": {
          "file": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "File"
          }
        },
        "type": "object",
        "required": [
          "file"
        ],
        "title": "Body_import_spreadsheet_file"
      },
      "Body_login_access_token": {
        "properties": {
          "device_name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255
              },
              {
                "type": "null"
              }
            ],
            "title": "Device Name"
          },
          "grant_type": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^password$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Grant Type"
          },
          "username": {
            "type": "string",
            "title": "Username"
          },
          "password": {
            "type": "string",
            "format": "password",
            "title": "Password"
          },
          "scope": {
            "type": "string",
            "title": "Scope",
            "default": ""
          },
          "client_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Client Id"
          },
          "client_secret": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "format": "password",
            "title": "Client Secret"
          }
        },
        "type": "object",
        "required": [
          "username",
          "password"
        ],
        "title": "Body_login_access_token"
      },
      "Body_notify_mentions": {
        "properties": {
          "mentioned_user_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Mentioned User Ids"
          }
        },
        "type": "object",
        "required": [
          "mentioned_user_ids"
        ],
        "title": "Body_notify_mentions"
      },
      "Body_put_video_thumbnail": {
        "properties": {
          "file": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "File"
          }
        },
        "type": "object",
        "required": [
          "file"
        ],
        "title": "Body_put_video_thumbnail"
      },
      "Body_reply_to_filed_ticket": {
        "properties": {
          "body": {
            "type": "string",
            "title": "Body"
          },
          "files": {
            "items": {
              "type": "string",
              "contentMediaType": "application/octet-stream"
            },
            "type": "array",
            "title": "Files",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "body"
        ],
        "title": "Body_reply_to_filed_ticket"
      },
      "Body_set_community_banner": {
        "properties": {
          "full": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "Full"
          },
          "card": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "Card"
          }
        },
        "type": "object",
        "required": [
          "full",
          "card"
        ],
        "title": "Body_set_community_banner"
      },
      "Body_set_community_brand_font": {
        "properties": {
          "file": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "File"
          },
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "file",
          "name"
        ],
        "title": "Body_set_community_brand_font"
      },
      "Body_set_community_icon": {
        "properties": {
          "icon": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "Icon"
          }
        },
        "type": "object",
        "required": [
          "icon"
        ],
        "title": "Body_set_community_icon"
      },
      "Body_share_to_marketplace": {
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/ListingKind"
          },
          "entity_id": {
            "type": "integer",
            "title": "Entity Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "description": {
            "type": "string",
            "title": "Description"
          },
          "example_entity_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Example Entity Id"
          },
          "long_description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Long Description"
          },
          "release_notes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Release Notes"
          },
          "listing_uid": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Listing Uid"
          },
          "images": {
            "items": {
              "type": "string",
              "contentMediaType": "application/octet-stream"
            },
            "type": "array",
            "title": "Images",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "kind",
          "entity_id",
          "name",
          "description"
        ],
        "title": "Body_share_to_marketplace"
      },
      "Body_start_confluence_export_import": {
        "properties": {
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "include_attachments": {
            "type": "boolean",
            "title": "Include Attachments",
            "default": true
          },
          "file": {
            "anyOf": [
              {
                "type": "string",
                "contentMediaType": "application/octet-stream"
              },
              {
                "type": "null"
              }
            ],
            "title": "File"
          },
          "upload_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Upload Id"
          }
        },
        "type": "object",
        "required": [
          "initiative_id"
        ],
        "title": "Body_start_confluence_export_import"
      },
      "Body_upload_announcement_image": {
        "properties": {
          "file": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "File"
          }
        },
        "type": "object",
        "required": [
          "file"
        ],
        "title": "Body_upload_announcement_image"
      },
      "Body_upload_attachment": {
        "properties": {
          "file": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "File"
          }
        },
        "type": "object",
        "required": [
          "file"
        ],
        "title": "Body_upload_attachment"
      },
      "Body_upload_backup": {
        "properties": {
          "file": {
            "anyOf": [
              {
                "type": "string",
                "contentMediaType": "application/octet-stream"
              },
              {
                "type": "null"
              }
            ],
            "title": "File"
          },
          "upload_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Upload Id"
          }
        },
        "type": "object",
        "title": "Body_upload_backup"
      },
      "Body_upload_file": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "file": {
            "anyOf": [
              {
                "type": "string",
                "contentMediaType": "application/octet-stream"
              },
              {
                "type": "null"
              }
            ],
            "title": "File"
          },
          "upload_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Upload Id"
          }
        },
        "type": "object",
        "required": [
          "name",
          "initiative_id"
        ],
        "title": "Body_upload_file"
      },
      "Body_upload_file_version": {
        "properties": {
          "file": {
            "anyOf": [
              {
                "type": "string",
                "contentMediaType": "application/octet-stream"
              },
              {
                "type": "null"
              }
            ],
            "title": "File"
          },
          "upload_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Upload Id"
          }
        },
        "type": "object",
        "title": "Body_upload_file_version"
      },
      "Body_upload_listing_picture": {
        "properties": {
          "file": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "File"
          }
        },
        "type": "object",
        "required": [
          "file"
        ],
        "title": "Body_upload_listing_picture"
      },
      "Body_upload_my_avatar": {
        "properties": {
          "file": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "File"
          }
        },
        "type": "object",
        "required": [
          "file"
        ],
        "title": "Body_upload_my_avatar"
      },
      "Body_upload_pasted_image": {
        "properties": {
          "file": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "File"
          }
        },
        "type": "object",
        "required": [
          "file"
        ],
        "title": "Body_upload_pasted_image"
      },
      "Body_upload_registry_bundle": {
        "properties": {
          "file": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "File"
          }
        },
        "type": "object",
        "required": [
          "file"
        ],
        "title": "Body_upload_registry_bundle"
      },
      "Brand": {
        "properties": {
          "colors": {
            "additionalProperties": {
              "type": "string"
            },
            "propertyNames": {
              "enum": [
                "primary",
                "secondary",
                "accent"
              ]
            },
            "type": "object",
            "title": "Colors",
            "default": {}
          },
          "fonts": {
            "additionalProperties": {
              "$ref": "#/components/schemas/BrandFont"
            },
            "propertyNames": {
              "enum": [
                "heading",
                "body"
              ]
            },
            "type": "object",
            "title": "Fonts",
            "default": {}
          }
        },
        "type": "object",
        "title": "Brand",
        "description": "The colors and fonts the community set, by role; a role it left\nunset is absent. Replaced whole."
      },
      "BrandFont": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "BrandFont",
        "description": "One brand font: its name, and the uploaded file it is drawn from where\nit is one. Without a file, the name is a font the reader's device or the\napp draws, as the font menu offers it."
      },
      "BreakGlassCreate": {
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Code"
          },
          "recovery_code": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Recovery Code"
          },
          "passkey": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Passkey"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "requested_duration_minutes": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Requested Duration Minutes"
          },
          "reason": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 1,
            "title": "Reason"
          },
          "case_task_id": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Case Task Id"
          },
          "community_notice": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommunityNotice"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "community_id",
          "reason"
        ],
        "title": "BreakGlassCreate",
        "description": "A self-approved, time-bound break-glass grant to one guild.\n\nIssued by a ``data.bypass`` holder who needs emergency access without\nwaiting for a second-person approval. It is not a dial: breaking glass\nissues write access to the community's content **and** a settings grant at\n``superadmin``, because that is what an emergency is for. Somebody who\nwants less asks for less through the ordinary request flow. The window is\nshort and capped server-side \u2014 re-issue to extend."
      },
      "BreakGlassRequirements": {
        "properties": {
          "second_factor_required": {
            "type": "boolean",
            "title": "Second Factor Required"
          },
          "max_duration_minutes": {
            "type": "integer",
            "title": "Max Duration Minutes"
          },
          "totp_enrolled": {
            "type": "boolean",
            "title": "Totp Enrolled"
          },
          "passkey_enrolled": {
            "type": "boolean",
            "title": "Passkey Enrolled"
          }
        },
        "type": "object",
        "required": [
          "second_factor_required",
          "max_duration_minutes",
          "totp_enrolled",
          "passkey_enrolled"
        ],
        "title": "BreakGlassRequirements",
        "description": "What a break-glass request will be asked for, before it is made.\n\nThe form reads this to know whether to offer a code field, and whether the\ncaller has a factor to answer with."
      },
      "BulkResponse": {
        "properties": {
          "updated_count": {
            "type": "integer",
            "title": "Updated Count"
          }
        },
        "type": "object",
        "required": [
          "updated_count"
        ],
        "title": "BulkResponse",
        "description": "How many things a universal route's bulk form was about. One that was\nalready so counts, as it does for the route's single form."
      },
      "CalendarCreate": {
        "properties": {
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertyValueInput"
            },
            "type": "array",
            "title": "Properties"
          },
          "name": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "color": {
            "type": "string",
            "maxLength": 32,
            "title": "Color",
            "default": "#6366f1"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "tag_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tag Ids"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantSchema"
            },
            "type": "array",
            "title": "Grants"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "CalendarCreate"
      },
      "CalendarEntriesResponse": {
        "properties": {
          "events": {
            "items": {
              "$ref": "#/components/schemas/CalendarEventSummary"
            },
            "type": "array",
            "title": "Events",
            "default": []
          },
          "tasks": {
            "items": {
              "$ref": "#/components/schemas/TaskListRead"
            },
            "type": "array",
            "title": "Tasks",
            "default": []
          },
          "task_occurrences": {
            "items": {
              "$ref": "#/components/schemas/TaskListRead"
            },
            "type": "array",
            "title": "Task Occurrences",
            "default": []
          },
          "projects": {
            "items": {
              "$ref": "#/components/schemas/ProjectRead"
            },
            "type": "array",
            "title": "Projects",
            "default": []
          },
          "polls": {
            "items": {
              "$ref": "#/components/schemas/PostRead"
            },
            "type": "array",
            "title": "Polls",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "events",
          "tasks",
          "task_occurrences",
          "projects",
          "polls"
        ],
        "title": "CalendarEntriesResponse"
      },
      "CalendarEventAttendeePreview": {
        "properties": {
          "user_id": {
            "type": "integer",
            "title": "User Id",
            "x-identity": "person"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          }
        },
        "type": "object",
        "required": [
          "user_id",
          "name",
          "avatar_url"
        ],
        "title": "CalendarEventAttendeePreview",
        "description": "Compact per-attendee snapshot for list responses.\n\nCarries the id + avatar fields the SPA needs to render tinted,\nimage-backed avatars on the calendar list view. The full\n``CalendarEventAttendeeRead`` (with RSVP status + timestamps) is\nstill exposed on the detail endpoint.",
        "x-person": true
      },
      "CalendarEventAttendeeRead": {
        "properties": {
          "user_id": {
            "type": "integer",
            "title": "User Id",
            "x-identity": "person"
          },
          "user": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UserPublic"
              },
              {
                "type": "null"
              }
            ]
          },
          "rsvp_status": {
            "$ref": "#/components/schemas/RSVPStatus"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "user_id",
          "user",
          "rsvp_status",
          "created_at"
        ],
        "title": "CalendarEventAttendeeRead"
      },
      "CalendarEventCreate": {
        "properties": {
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertyValueInput"
            },
            "type": "array",
            "title": "Properties"
          },
          "title": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "Title"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "location": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500,
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Location"
          },
          "start_at": {
            "type": "string",
            "format": "date-time",
            "title": "Start At"
          },
          "end_at": {
            "type": "string",
            "format": "date-time",
            "title": "End At"
          },
          "all_day": {
            "type": "boolean",
            "title": "All Day",
            "default": false
          },
          "rsvp_open": {
            "type": "boolean",
            "title": "Rsvp Open",
            "default": true
          },
          "recurrence": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4000,
                "description": "RFC 5545 recurrence lines: one RRULE, and optional EXDATE and RDATE lines in UTC. The rule's days are as picked in the request's tz, or UTC days without one. POST /recurrence/preview lists its next starts."
              },
              {
                "type": "null"
              }
            ],
            "title": "Recurrence"
          },
          "calendar_id": {
            "type": "integer",
            "title": "Calendar Id"
          },
          "tz": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Tz"
          },
          "attendee_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer",
                  "x-identity": "person"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Attendee Ids"
          },
          "tag_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tag Ids"
          }
        },
        "type": "object",
        "required": [
          "title",
          "start_at",
          "end_at",
          "calendar_id"
        ],
        "title": "CalendarEventCreate"
      },
      "CalendarEventRSVPUpdate": {
        "properties": {
          "rsvp_status": {
            "$ref": "#/components/schemas/RSVPStatus"
          },
          "occurrence": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Occurrence"
          }
        },
        "type": "object",
        "required": [
          "rsvp_status"
        ],
        "title": "CalendarEventRSVPUpdate"
      },
      "CalendarEventRead": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_kind": {
            "$ref": "#/components/schemas/ActorKind"
          },
          "created_by_install": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Install"
          },
          "title": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "Title"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "location": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500,
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Location"
          },
          "start_at": {
            "type": "string",
            "format": "date-time",
            "title": "Start At"
          },
          "end_at": {
            "type": "string",
            "format": "date-time",
            "title": "End At"
          },
          "all_day": {
            "type": "boolean",
            "title": "All Day",
            "default": false
          },
          "rsvp_open": {
            "type": "boolean",
            "title": "Rsvp Open",
            "default": true
          },
          "recurrence": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Recurrence"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "recurrence_shift": {
            "type": "integer",
            "title": "Recurrence Shift",
            "default": 0
          },
          "original_start": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Original Start"
          },
          "series_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Series Id"
          },
          "calendar_id": {
            "type": "integer",
            "title": "Calendar Id"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id",
            "x-identity": "community"
          },
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertySummary"
            },
            "type": "array",
            "title": "Properties"
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagSummary"
            },
            "type": "array",
            "title": "Tags"
          },
          "can": {
            "$ref": "#/components/schemas/ContentCan"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "attendees": {
            "items": {
              "$ref": "#/components/schemas/CalendarEventAttendeeRead"
            },
            "type": "array",
            "title": "Attendees"
          },
          "overridden_fields": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Overridden Fields"
          },
          "skipped_starts": {
            "items": {
              "type": "string",
              "format": "date-time"
            },
            "type": "array",
            "title": "Skipped Starts"
          },
          "extra_starts": {
            "items": {
              "type": "string",
              "format": "date-time"
            },
            "type": "array",
            "title": "Extra Starts"
          },
          "next_start": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Start"
          },
          "next_occurrence": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Occurrence"
          }
        },
        "type": "object",
        "required": [
          "created_by",
          "created_by_kind",
          "created_by_install",
          "title",
          "description",
          "location",
          "start_at",
          "end_at",
          "all_day",
          "rsvp_open",
          "recurrence",
          "id",
          "recurrence_shift",
          "original_start",
          "series_id",
          "calendar_id",
          "initiative_id",
          "community_id",
          "properties",
          "tags",
          "can",
          "created_at",
          "updated_at",
          "attendees",
          "overridden_fields",
          "skipped_starts",
          "extra_starts",
          "next_start",
          "next_occurrence"
        ],
        "title": "CalendarEventRead"
      },
      "CalendarEventSummary": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_kind": {
            "$ref": "#/components/schemas/ActorKind"
          },
          "created_by_install": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Install"
          },
          "title": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "Title"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "location": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500,
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Location"
          },
          "start_at": {
            "type": "string",
            "format": "date-time",
            "title": "Start At"
          },
          "end_at": {
            "type": "string",
            "format": "date-time",
            "title": "End At"
          },
          "all_day": {
            "type": "boolean",
            "title": "All Day",
            "default": false
          },
          "rsvp_open": {
            "type": "boolean",
            "title": "Rsvp Open",
            "default": true
          },
          "recurrence": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Recurrence"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "recurrence_shift": {
            "type": "integer",
            "title": "Recurrence Shift",
            "default": 0
          },
          "original_start": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Original Start"
          },
          "series_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Series Id"
          },
          "calendar_id": {
            "type": "integer",
            "title": "Calendar Id"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id",
            "x-identity": "community"
          },
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertySummary"
            },
            "type": "array",
            "title": "Properties"
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagSummary"
            },
            "type": "array",
            "title": "Tags"
          },
          "can": {
            "$ref": "#/components/schemas/ContentCan"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "attendee_previews": {
            "items": {
              "$ref": "#/components/schemas/CalendarEventAttendeePreview"
            },
            "type": "array",
            "title": "Attendee Previews"
          }
        },
        "type": "object",
        "required": [
          "created_by",
          "created_by_kind",
          "created_by_install",
          "title",
          "description",
          "location",
          "start_at",
          "end_at",
          "all_day",
          "rsvp_open",
          "recurrence",
          "id",
          "recurrence_shift",
          "original_start",
          "series_id",
          "calendar_id",
          "initiative_id",
          "community_id",
          "properties",
          "tags",
          "can",
          "created_at",
          "updated_at",
          "attendee_previews"
        ],
        "title": "CalendarEventSummary"
      },
      "CalendarEventUpdate": {
        "properties": {
          "properties": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/PropertyValueInput"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Properties"
          },
          "title": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "description_base": {
            "anyOf": [
              {
                "type": "string",
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Base"
          },
          "location": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500,
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Location"
          },
          "start_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Start At"
          },
          "end_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "End At"
          },
          "all_day": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "All Day"
          },
          "rsvp_open": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rsvp Open"
          },
          "recurrence": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4000,
                "description": "RFC 5545 recurrence lines: one RRULE, and optional EXDATE and RDATE lines in UTC. The rule's days are as picked in the request's tz, or UTC days without one. POST /recurrence/preview lists its next starts."
              },
              {
                "type": "null"
              }
            ],
            "title": "Recurrence"
          },
          "tz": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Tz"
          },
          "calendar_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Calendar Id"
          },
          "tag_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array",
                "maxItems": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Tag Ids"
          },
          "scope": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "this",
                  "following",
                  "all"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Scope"
          },
          "occurrence": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Occurrence"
          }
        },
        "type": "object",
        "title": "CalendarEventUpdate"
      },
      "CalendarFilterSpec": {
        "properties": {
          "status_categories": {
            "items": {
              "$ref": "#/components/schemas/TaskStatusCategory"
            },
            "type": "array",
            "title": "Status Categories"
          },
          "priorities": {
            "items": {
              "$ref": "#/components/schemas/TaskPriority"
            },
            "type": "array",
            "title": "Priorities"
          },
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PresetPropertyFilter"
            },
            "type": "array",
            "maxItems": 5,
            "title": "Properties"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "CalendarFilterSpec",
        "description": "The filters a preset on the initiative's calendar holds: what its tasks\nare, and the properties its events and tasks carry."
      },
      "CalendarListResponse": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/CalendarSummary"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items"
        ],
        "title": "CalendarListResponse"
      },
      "CalendarRead": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_kind": {
            "$ref": "#/components/schemas/ActorKind"
          },
          "created_by_install": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Install"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "can": {
            "$ref": "#/components/schemas/ToolCan"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id",
            "x-identity": "community"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "comments_enabled": {
            "type": "boolean",
            "title": "Comments Enabled",
            "default": true
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagSummary"
            },
            "type": "array",
            "title": "Tags"
          },
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertySummary"
            },
            "type": "array",
            "title": "Properties"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantSchema"
            },
            "type": "array",
            "title": "Grants"
          },
          "name": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "color": {
            "type": "string",
            "maxLength": 32,
            "title": "Color",
            "default": "#6366f1"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          }
        },
        "type": "object",
        "required": [
          "created_by",
          "created_by_kind",
          "created_by_install",
          "archived_at",
          "can",
          "id",
          "community_id",
          "created_at",
          "updated_at",
          "comments_enabled",
          "tags",
          "properties",
          "grants",
          "name",
          "description",
          "color",
          "initiative_id"
        ],
        "title": "CalendarRead"
      },
      "CalendarSummary": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_kind": {
            "$ref": "#/components/schemas/ActorKind"
          },
          "created_by_install": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Install"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "can": {
            "$ref": "#/components/schemas/ToolCan"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id",
            "x-identity": "community"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "comments_enabled": {
            "type": "boolean",
            "title": "Comments Enabled",
            "default": true
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagSummary"
            },
            "type": "array",
            "title": "Tags"
          },
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertySummary"
            },
            "type": "array",
            "title": "Properties"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantSchema"
            },
            "type": "array",
            "title": "Grants"
          },
          "name": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "color": {
            "type": "string",
            "maxLength": 32,
            "title": "Color",
            "default": "#6366f1"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          }
        },
        "type": "object",
        "required": [
          "created_by",
          "created_by_kind",
          "created_by_install",
          "archived_at",
          "can",
          "id",
          "community_id",
          "created_at",
          "updated_at",
          "comments_enabled",
          "tags",
          "properties",
          "grants",
          "name",
          "description",
          "color",
          "initiative_id"
        ],
        "title": "CalendarSummary"
      },
      "CalendarUpdate": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "color": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 32,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          }
        },
        "type": "object",
        "title": "CalendarUpdate"
      },
      "Capability": {
        "type": "string",
        "enum": [
          "users.read",
          "content.moderate",
          "users.age_unblock",
          "users.manage",
          "users.delete",
          "communities.read",
          "communities.manage",
          "communities.suspend",
          "billing.support",
          "billing.insights",
          "billing.contracts",
          "billing.directory",
          "billing.control",
          "announcements.manage",
          "roles.assign",
          "data.bypass",
          "access.request",
          "access.request_any",
          "access.approve",
          "config.manage",
          "plugins.manage"
        ],
        "title": "Capability",
        "description": "A discrete platform-level permission.\n\nValues are stable dotted strings shared with the frontend (exposed on\n``UserRead.capabilities``); treat them as part of the API contract."
      },
      "CaptchaConfig": {
        "properties": {
          "provider": {
            "type": "string",
            "title": "Provider"
          },
          "site_key": {
            "type": "string",
            "title": "Site Key"
          }
        },
        "type": "object",
        "required": [
          "provider",
          "site_key"
        ],
        "title": "CaptchaConfig",
        "description": "Public-safe captcha settings the SPA needs to render a widget.\n\nOnly the provider name and the (public) site key are exposed \u2014\nthe secret key stays server-side. ``None`` (i.e. the surrounding\n``AppConfig.captcha`` field is null) means the deployment has no\ncaptcha configured and the SPA shouldn't render a widget at all.\nMirrors the silent-disable behaviour of the verifier in\n``app.services.captcha``."
      },
      "CaptchaProvider": {
        "type": "string",
        "enum": [
          "hcaptcha",
          "turnstile",
          "recaptcha"
        ],
        "title": "CaptchaProvider",
        "description": "The registration captcha vendors ``CAPTCHA_PROVIDER`` may name."
      },
      "CaptchaSettingsResponse": {
        "properties": {
          "provider": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CaptchaProvider"
              },
              {
                "type": "null"
              }
            ]
          },
          "site_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Site Key"
          },
          "has_secret_key": {
            "type": "boolean",
            "title": "Has Secret Key",
            "default": false
          },
          "secret_key_hint": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Secret Key Hint"
          },
          "enforcing": {
            "type": "boolean",
            "title": "Enforcing",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "provider",
          "site_key",
          "has_secret_key",
          "secret_key_hint",
          "enforcing"
        ],
        "title": "CaptchaSettingsResponse",
        "description": "What the settings page shows for the registration captcha.\n\nThe secret is reported as stored or not, never returned \u2014 the same contract\nas the storage and email pages above."
      },
      "CaptchaSettingsUpdate": {
        "properties": {
          "provider": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CaptchaProvider"
              },
              {
                "type": "null"
              }
            ]
          },
          "site_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Site Key"
          },
          "secret_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Secret Key"
          }
        },
        "type": "object",
        "title": "CaptchaSettingsUpdate"
      },
      "CardPart-Input": {
        "properties": {
          "type": {
            "type": "string",
            "const": "card",
            "title": "Type"
          },
          "props": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CardProps"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/CardPart-Input"
                },
                {
                  "$ref": "#/components/schemas/StackPart-Input"
                },
                {
                  "$ref": "#/components/schemas/FieldPart"
                },
                {
                  "$ref": "#/components/schemas/PropertiesPart"
                },
                {
                  "$ref": "#/components/schemas/PluginPart"
                },
                {
                  "$ref": "#/components/schemas/ItemsPart"
                }
              ],
              "discriminator": {
                "propertyName": "type",
                "mapping": {
                  "card": "#/components/schemas/CardPart-Input",
                  "field": "#/components/schemas/FieldPart",
                  "items": "#/components/schemas/ItemsPart",
                  "plugin": "#/components/schemas/PluginPart",
                  "properties": "#/components/schemas/PropertiesPart",
                  "stack": "#/components/schemas/StackPart-Input"
                }
              }
            },
            "type": "array",
            "title": "Children"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "type"
        ],
        "title": "CardPart"
      },
      "CardPart-Output": {
        "properties": {
          "type": {
            "type": "string",
            "const": "card",
            "title": "Type"
          },
          "props": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CardProps"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/CardPart-Output"
                },
                {
                  "$ref": "#/components/schemas/StackPart-Output"
                },
                {
                  "$ref": "#/components/schemas/FieldPart"
                },
                {
                  "$ref": "#/components/schemas/PropertiesPart"
                },
                {
                  "$ref": "#/components/schemas/PluginPart"
                },
                {
                  "$ref": "#/components/schemas/ItemsPart"
                }
              ],
              "discriminator": {
                "propertyName": "type",
                "mapping": {
                  "card": "#/components/schemas/CardPart-Output",
                  "field": "#/components/schemas/FieldPart",
                  "items": "#/components/schemas/ItemsPart",
                  "plugin": "#/components/schemas/PluginPart",
                  "properties": "#/components/schemas/PropertiesPart",
                  "stack": "#/components/schemas/StackPart-Output"
                }
              }
            },
            "type": "array",
            "title": "Children"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "type"
        ],
        "title": "CardPart"
      },
      "CardProps": {
        "properties": {
          "tint": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tint"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "CardProps"
      },
      "CaseEvidenceRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "display_name": {
            "type": "string",
            "title": "Display Name"
          },
          "content_type": {
            "type": "string",
            "title": "Content Type"
          },
          "size_bytes": {
            "type": "integer",
            "title": "Size Bytes"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "comment_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Comment Id"
          },
          "from_requester": {
            "type": "boolean",
            "title": "From Requester",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "id",
          "display_name",
          "content_type",
          "size_bytes",
          "created_at"
        ],
        "title": "CaseEvidenceRead",
        "description": "A file attached to a case, and where in the conversation it came."
      },
      "CaseIdeaRead": {
        "properties": {
          "task_id": {
            "type": "integer",
            "title": "Task Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          }
        },
        "type": "object",
        "required": [
          "task_id",
          "title"
        ],
        "title": "CaseIdeaRead",
        "description": "The idea a feedback case is joined to."
      },
      "CaseMessageRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "author": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UserPublic"
              },
              {
                "type": "null"
              }
            ]
          },
          "from_requester": {
            "type": "boolean",
            "title": "From Requester"
          },
          "content": {
            "type": "string",
            "title": "Content"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "from_requester",
          "content",
          "created_at"
        ],
        "title": "CaseMessageRead",
        "description": "One part of the conversation with whoever filed a case."
      },
      "CatchUpRequest": {
        "properties": {
          "since": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Since"
          },
          "tool": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Tool"
              },
              {
                "type": "null"
              }
            ]
          },
          "tool_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool Id"
          }
        },
        "type": "object",
        "title": "CatchUpRequest",
        "description": "What a catch-up covers: what changed since ``since`` (the change log's\nwhole window without one), in the community or in one tool."
      },
      "CategoryGroup": {
        "type": "string",
        "enum": [
          "your_communities",
          "community",
          "account",
          "digests"
        ],
        "title": "CategoryGroup"
      },
      "CellChange": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "occurred_at": {
            "type": "string",
            "format": "date-time",
            "title": "Occurred At"
          },
          "editors": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Editors"
          },
          "install_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Install Id"
          },
          "value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Value"
          }
        },
        "type": "object",
        "required": [
          "id",
          "occurred_at",
          "editors",
          "install_id",
          "value"
        ],
        "title": "CellChange",
        "description": "A revision of a spreadsheet that changed one of its cells, and what the\ncell held after it: ``null`` for an empty cell."
      },
      "ChangeSummaryRequest": {
        "properties": {
          "since": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Since"
          },
          "until": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Until"
          }
        },
        "type": "object",
        "required": [
          "since"
        ],
        "title": "ChangeSummaryRequest",
        "description": "The two versions of a body a summary of its changes compares: from\n``since``, one of its body's revisions, to ``until``, a later one, or to\nthe body as it is now."
      },
      "ChangelogEntry": {
        "properties": {
          "version": {
            "type": "string",
            "title": "Version"
          },
          "date": {
            "type": "string",
            "title": "Date"
          },
          "changes": {
            "type": "string",
            "title": "Changes"
          }
        },
        "type": "object",
        "required": [
          "version",
          "date",
          "changes"
        ],
        "title": "ChangelogEntry",
        "description": "One parsed ``## [version] - date`` section of CHANGELOG.md."
      },
      "ChangelogResponse": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/ChangelogEntry"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items"
        ],
        "title": "ChangelogResponse",
        "description": "The `/changelog` payload: a page of entries, newest first (or the one\nrequested version)."
      },
      "Channel": {
        "type": "string",
        "enum": [
          "in_app",
          "email",
          "push",
          "desktop"
        ],
        "title": "Channel",
        "description": "How a notification reaches somebody.\n\n``in_app`` is a real channel, not an always-on floor. Before it existed the\nbell was written unconditionally and only email and push could be turned\ndown, which is the whole reason the surface felt loud."
      },
      "ChecklistItem": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "text": {
            "type": "string",
            "title": "Text",
            "x-mentions": "markdown"
          },
          "done": {
            "type": "boolean",
            "title": "Done",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "id",
          "text",
          "done"
        ],
        "title": "ChecklistItem",
        "description": "One checklist line as stored and read back."
      },
      "ChecklistItemInput": {
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 36
              },
              {
                "type": "null"
              }
            ],
            "title": "Id"
          },
          "text": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 1,
            "title": "Text",
            "x-mentions": "markdown"
          },
          "done": {
            "type": "boolean",
            "title": "Done",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "text"
        ],
        "title": "ChecklistItemInput",
        "description": "One checklist line as written. ``id`` is optional: an item that arrives\nwithout one is given a fresh id."
      },
      "ChecklistItemToggle": {
        "properties": {
          "done": {
            "type": "boolean",
            "title": "Done"
          }
        },
        "type": "object",
        "required": [
          "done"
        ],
        "title": "ChecklistItemToggle",
        "description": "The one field a tick changes."
      },
      "ChecklistProgress": {
        "properties": {
          "completed": {
            "type": "integer",
            "title": "Completed",
            "default": 0
          },
          "total": {
            "type": "integer",
            "title": "Total",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "completed",
          "total"
        ],
        "title": "ChecklistProgress"
      },
      "ClientKind": {
        "type": "string",
        "enum": [
          "mobile",
          "desktop",
          "unknown"
        ],
        "title": "ClientKind",
        "description": "Which picture the list draws beside a session."
      },
      "CollaborationHandover": {
        "properties": {
          "update": {
            "type": "string",
            "format": "base64",
            "contentMediaType": "application/octet-stream",
            "title": "Update"
          }
        },
        "type": "object",
        "required": [
          "update"
        ],
        "title": "CollaborationHandover",
        "description": "Edits a tab made while its room's socket was closed, handed over as the\ntab leaves: the Yjs update the room has not seen."
      },
      "CollectionCan": {
        "properties": {
          "edit": {
            "type": "boolean",
            "title": "Edit",
            "default": false
          },
          "unarchive": {
            "type": "boolean",
            "title": "Unarchive",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "edit",
          "unarchive"
        ],
        "title": "CollectionCan",
        "description": "What the caller may do to a collection\n(``resource_access.may_change``)."
      },
      "CollectionCover": {
        "properties": {
          "file_id": {
            "type": "integer",
            "title": "File Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "file_type": {
            "$ref": "#/components/schemas/FileType"
          },
          "file_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Url",
            "x-upload": true
          },
          "file_content_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Content Type"
          },
          "thumbnail_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Thumbnail Url",
            "x-upload": true
          },
          "width": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Width"
          },
          "height": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Height"
          }
        },
        "type": "object",
        "required": [
          "file_id",
          "name",
          "file_type",
          "file_url",
          "file_content_type",
          "thumbnail_url",
          "width",
          "height"
        ],
        "title": "CollectionCover",
        "description": "The file a card shows for a collection."
      },
      "CollectionCreate": {
        "properties": {
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertyValueInput"
            },
            "type": "array",
            "title": "Properties"
          },
          "file_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 500,
            "minItems": 1,
            "title": "File Ids"
          },
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "name": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000,
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "tag_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tag Ids"
          },
          "shape": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CollectionShapeKey"
              },
              {
                "type": "null"
              }
            ]
          },
          "shape_from": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Shape From"
          }
        },
        "type": "object",
        "required": [
          "file_ids",
          "initiative_id",
          "name"
        ],
        "title": "CollectionCreate",
        "description": "A new collection, made with the files it starts with: a collection is\nnever empty. It starts blank (its grid and table, and no metadata of its\nown), as a ready-made ``shape``, or with the metadata and lists of another\ncollection in the initiative (``shape_from``), none of its values."
      },
      "CollectionFileListResponse": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/CollectionFileSummary"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items"
        ],
        "title": "CollectionFileListResponse"
      },
      "CollectionFileSummary": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_kind": {
            "$ref": "#/components/schemas/ActorKind"
          },
          "created_by_install": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Install"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "can": {
            "$ref": "#/components/schemas/ToolCan"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id",
            "x-identity": "community"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "comments_enabled": {
            "type": "boolean",
            "title": "Comments Enabled",
            "default": true
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagSummary"
            },
            "type": "array",
            "title": "Tags"
          },
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertySummary"
            },
            "type": "array",
            "title": "Properties"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantSchema"
            },
            "type": "array",
            "title": "Grants"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "featured_image_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Featured Image Url",
            "x-upload": true
          },
          "is_template": {
            "type": "boolean",
            "title": "Is Template",
            "default": false
          },
          "initiative": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InitiativeSummary"
              },
              {
                "type": "null"
              }
            ]
          },
          "owner": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UserPublic"
              },
              {
                "type": "null"
              }
            ]
          },
          "owner_plugin": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OwnerPluginSummary"
              },
              {
                "type": "null"
              }
            ]
          },
          "comment_count": {
            "type": "integer",
            "title": "Comment Count",
            "default": 0
          },
          "file_type": {
            "$ref": "#/components/schemas/FileType",
            "default": "lexical"
          },
          "file_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Url",
            "x-upload": true
          },
          "file_content_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Content Type"
          },
          "file_size": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Size"
          },
          "original_filename": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Original Filename"
          },
          "thumbnail_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Thumbnail Url",
            "x-upload": true
          },
          "width": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Width"
          },
          "height": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Height"
          },
          "smart_link_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Smart Link Url"
          },
          "added_at": {
            "type": "string",
            "format": "date-time",
            "title": "Added At"
          },
          "metadata": {
            "items": {
              "$ref": "#/components/schemas/PropertySummary"
            },
            "type": "array",
            "title": "Metadata"
          },
          "kind": {
            "$ref": "#/components/schemas/FileKind",
            "description": "How the file is shown, which follows from its type.",
            "readOnly": true
          }
        },
        "type": "object",
        "required": [
          "created_by",
          "created_by_kind",
          "created_by_install",
          "archived_at",
          "can",
          "id",
          "community_id",
          "created_at",
          "updated_at",
          "comments_enabled",
          "tags",
          "properties",
          "grants",
          "name",
          "initiative_id",
          "featured_image_url",
          "is_template",
          "initiative",
          "owner",
          "owner_plugin",
          "comment_count",
          "file_type",
          "file_url",
          "file_content_type",
          "file_size",
          "original_filename",
          "thumbnail_url",
          "width",
          "height",
          "smart_link_url",
          "added_at",
          "metadata",
          "kind"
        ],
        "title": "CollectionFileSummary",
        "description": "A file as its collection lists it: with when it was added there, and\nits values of the collection's metadata."
      },
      "CollectionFilesAdd": {
        "properties": {
          "file_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 500,
            "minItems": 1,
            "title": "File Ids"
          },
          "metadata": {
            "items": {
              "$ref": "#/components/schemas/PropertyValueInput"
            },
            "type": "array",
            "title": "Metadata"
          }
        },
        "type": "object",
        "required": [
          "file_ids"
        ],
        "title": "CollectionFilesAdd",
        "description": "Files to put in a collection, and the values of the collection's\nmetadata each one it takes starts with: what its file page requires."
      },
      "CollectionListResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/CollectionRead"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "CollectionListResponse"
      },
      "CollectionMetadataBulkSetRequest": {
        "properties": {
          "values": {
            "items": {
              "$ref": "#/components/schemas/PropertyValueInput"
            },
            "type": "array",
            "title": "Values"
          },
          "merge": {
            "type": "boolean",
            "title": "Merge",
            "default": false
          },
          "removed": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 100,
            "title": "Removed"
          },
          "options": {
            "items": {
              "$ref": "#/components/schemas/PropertyOptionsChange"
            },
            "type": "array",
            "maxItems": 100,
            "title": "Options"
          },
          "steps": {
            "items": {
              "$ref": "#/components/schemas/PropertyStep"
            },
            "type": "array",
            "maxItems": 100,
            "title": "Steps"
          },
          "file_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 500,
            "minItems": 1,
            "title": "File Ids"
          }
        },
        "type": "object",
        "required": [
          "file_ids"
        ],
        "title": "CollectionMetadataBulkSetRequest",
        "description": "Payload for ``PUT /collections/{collection_id}/files/metadata``: what\none file's metadata write takes, written to every one of many files in\nthe collection, or to none of them."
      },
      "CollectionRead": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_kind": {
            "$ref": "#/components/schemas/ActorKind"
          },
          "created_by_install": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Install"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id",
            "x-identity": "community"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "cover_file_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover File Id"
          },
          "cover": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CollectionCover"
              },
              {
                "type": "null"
              }
            ]
          },
          "file_count": {
            "type": "integer",
            "title": "File Count",
            "default": 0
          },
          "hidden_files": {
            "$ref": "#/components/schemas/HiddenFiles"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "comments_enabled": {
            "type": "boolean",
            "title": "Comments Enabled",
            "default": true
          },
          "comments_locked_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Comments Locked At"
          },
          "comment_count": {
            "type": "integer",
            "title": "Comment Count",
            "default": 0
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagSummary"
            },
            "type": "array",
            "title": "Tags"
          },
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertySummary"
            },
            "type": "array",
            "title": "Properties"
          },
          "metadata": {
            "items": {
              "$ref": "#/components/schemas/PropertyDefinitionRead"
            },
            "type": "array",
            "title": "Metadata"
          },
          "can": {
            "$ref": "#/components/schemas/CollectionCan"
          }
        },
        "type": "object",
        "required": [
          "created_by",
          "created_by_kind",
          "created_by_install",
          "id",
          "initiative_id",
          "community_id",
          "name",
          "description",
          "cover_file_id",
          "cover",
          "file_count",
          "hidden_files",
          "created_at",
          "updated_at",
          "archived_at",
          "comments_enabled",
          "comments_locked_at",
          "comment_count",
          "tags",
          "properties",
          "metadata",
          "can"
        ],
        "title": "CollectionRead",
        "description": "A collection as its reader sees it: only the files they can open are\ncounted, and the cover is one of those."
      },
      "CollectionShapeEntry": {
        "properties": {
          "key": {
            "$ref": "#/components/schemas/CollectionShapeKey"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "hint": {
            "type": "string",
            "title": "Hint"
          },
          "lists": {
            "items": {
              "type": "string",
              "enum": [
                "table",
                "board",
                "gantt",
                "calendar",
                "masonry",
                "grid",
                "rows",
                "timeline"
              ]
            },
            "type": "array",
            "title": "Lists"
          },
          "metadata": {
            "items": {
              "$ref": "#/components/schemas/CollectionShapeMetadata"
            },
            "type": "array",
            "title": "Metadata"
          }
        },
        "type": "object",
        "required": [
          "key",
          "name",
          "hint",
          "lists",
          "metadata"
        ],
        "title": "CollectionShapeEntry"
      },
      "CollectionShapeGroup": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "entries": {
            "items": {
              "$ref": "#/components/schemas/CollectionShapeEntry"
            },
            "type": "array",
            "title": "Entries"
          }
        },
        "type": "object",
        "required": [
          "key",
          "name",
          "entries"
        ],
        "title": "CollectionShapeGroup"
      },
      "CollectionShapeKey": {
        "type": "string",
        "enum": [
          "gallery",
          "catalog",
          "log"
        ],
        "title": "CollectionShapeKey",
        "description": "A ready-made shape a collection can start as."
      },
      "CollectionShapeMetadata": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "type": {
            "$ref": "#/components/schemas/MetadataType"
          },
          "display": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "number",
                  "stars",
                  "bar",
                  "clock"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Display"
          },
          "currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "name",
          "type",
          "display",
          "currency"
        ],
        "title": "CollectionShapeMetadata",
        "description": "Metadata a ready-made shape brings, in the reader's language."
      },
      "CollectionUpdate": {
        "properties": {
          "properties": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/PropertyValueInput"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Properties"
          },
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000,
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "cover_file_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover File Id"
          },
          "tag_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tag Ids"
          },
          "comments_enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Comments Enabled"
          }
        },
        "type": "object",
        "title": "CollectionUpdate"
      },
      "ColumnFillRead": {
        "properties": {
          "project_id": {
            "type": "integer",
            "title": "Project Id"
          },
          "status_id": {
            "type": "integer",
            "title": "Status Id"
          },
          "limit": {
            "type": "integer",
            "title": "Limit"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          }
        },
        "type": "object",
        "required": [
          "project_id",
          "status_id",
          "limit",
          "count"
        ],
        "title": "ColumnFillRead",
        "description": "One limited column of a project's board: its limit, and how many open\ntasks it holds."
      },
      "ColumnLimit": {
        "properties": {
          "status_id": {
            "type": "integer",
            "title": "Status Id"
          },
          "limit": {
            "type": "integer",
            "maximum": 10000.0,
            "minimum": 1.0,
            "title": "Limit"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "status_id",
          "limit"
        ],
        "title": "ColumnLimit",
        "description": "How many open tasks one board column takes from a person."
      },
      "CommentAudience": {
        "type": "string",
        "enum": [
          "members",
          "filer",
          "editors"
        ],
        "title": "CommentAudience",
        "description": "Who a comment is said to.\n\nEvery comment is said to the people who can read its thread. A comment on\nan operations case can also be said to the person who filed the case, who\nis not one of them: that is the conversation with them, and it is the only\npart of the case they are ever shown. A comment on a suggestion in a\ndocument is said to the document's editors, who alone suggest and settle\nsuggestions: its row policy asks edit access of the subject, and it names\nthe suggestion it is about (``suggestion_id``). Each is kept apart from\nthe thread: the case and the suggestion show theirs on their own, and the\nthread, its counts and its feeds never carry them."
      },
      "CommentAuthor": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id",
            "x-identity": "person"
          },
          "username": {
            "type": "string",
            "title": "Username"
          },
          "discriminator": {
            "type": "integer",
            "title": "Discriminator"
          },
          "display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Display Name"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "profile_decorations": {
            "$ref": "#/components/schemas/ProfileDecorations-Output"
          },
          "presence": {
            "$ref": "#/components/schemas/Presence",
            "description": "How they appear, at the moment this was serialized.\n\nComputed rather than stamped by each endpoint: a comment author is\nbuilt in nine places, and what a reader is shown is not a column\nanything could select \u2014 it is what the account picked narrowed by which\nsockets are open. So it is read where the shape is made rather than\npassed down to it.",
            "readOnly": true
          }
        },
        "type": "object",
        "required": [
          "id",
          "username",
          "discriminator",
          "presence"
        ],
        "title": "CommentAuthor",
        "description": "Who wrote a comment.\n\nAn address never reaches a guild, so there is none here; the handle names\nthe author, and ``display_name`` is the name they set in this guild.\n\nIt carries what a picture needs to be drawn the way it is drawn everywhere\nelse \u2014 the decorations and how they are appearing \u2014 because a comment is\none of the places a person appears at a size where both are legible.\nNeither is private: the same two are on the public profile.",
        "x-person": true
      },
      "CommentCreate": {
        "properties": {
          "content": {
            "type": "string",
            "title": "Content",
            "x-mentions": "markdown"
          },
          "subject_type": {
            "type": "string",
            "title": "Subject Type"
          },
          "subject_id": {
            "type": "integer",
            "exclusiveMinimum": 0.0,
            "title": "Subject Id"
          },
          "parent_comment_id": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Parent Comment Id"
          },
          "audience": {
            "$ref": "#/components/schemas/CommentAudience",
            "default": "members"
          },
          "suggestion_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Suggestion Id"
          }
        },
        "type": "object",
        "required": [
          "content",
          "subject_type",
          "subject_id"
        ],
        "title": "CommentCreate",
        "description": "A comment, and what it is said on."
      },
      "CommentListResponse": {
        "properties": {
          "comments": {
            "items": {
              "$ref": "#/components/schemas/CommentRead"
            },
            "type": "array",
            "title": "Comments"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "locked": {
            "type": "boolean",
            "title": "Locked",
            "default": false
          },
          "can_moderate": {
            "type": "boolean",
            "title": "Can Moderate",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "comments",
          "next_cursor",
          "locked",
          "can_moderate"
        ],
        "title": "CommentListResponse",
        "description": "One page of a thread: ``limit`` conversations, newest first, each with\nevery reply under it."
      },
      "CommentRead": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_kind": {
            "$ref": "#/components/schemas/ActorKind"
          },
          "created_by_install": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Install"
          },
          "content": {
            "type": "string",
            "title": "Content",
            "x-mentions": "markdown"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "subject_type": {
            "type": "string",
            "title": "Subject Type"
          },
          "subject_id": {
            "type": "integer",
            "title": "Subject Id"
          },
          "parent_comment_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Parent Comment Id"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          },
          "author": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommentAuthor"
              },
              {
                "type": "null"
              }
            ]
          },
          "imported_author_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Imported Author Name"
          },
          "reactions": {
            "items": {
              "$ref": "#/components/schemas/ReactionGroup"
            },
            "type": "array",
            "title": "Reactions"
          },
          "can_remove": {
            "type": "boolean",
            "title": "Can Remove",
            "default": false
          },
          "removed": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommentRemoval"
              },
              {
                "type": "null"
              }
            ]
          },
          "audience": {
            "$ref": "#/components/schemas/CommentAudience",
            "default": "members"
          },
          "suggestion_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Suggestion Id"
          },
          "system_kind": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "System Kind"
          }
        },
        "type": "object",
        "required": [
          "created_by",
          "created_by_kind",
          "created_by_install",
          "content",
          "id",
          "subject_type",
          "subject_id",
          "parent_comment_id",
          "created_at",
          "updated_at",
          "author",
          "imported_author_name",
          "reactions",
          "can_remove",
          "removed",
          "audience",
          "suggestion_id",
          "system_kind"
        ],
        "title": "CommentRead",
        "description": "One comment, and what it is said on."
      },
      "CommentRemoval": {
        "properties": {
          "by": {
            "$ref": "#/components/schemas/RemovedBy"
          },
          "reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RemovalReason"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "by",
          "reason"
        ],
        "title": "CommentRemoval",
        "description": "What a tombstone says in place of a comment: who took it out, and,\nfor a moderator, why. Never what it said, or who wrote it."
      },
      "CommentUpdate": {
        "properties": {
          "content": {
            "type": "string",
            "title": "Content",
            "x-mentions": "markdown"
          }
        },
        "type": "object",
        "required": [
          "content"
        ],
        "title": "CommentUpdate",
        "description": "Schema for updating a comment. Only content can be changed."
      },
      "CommunityAction": {
        "type": "string",
        "enum": [
          "manage",
          "set_status",
          "suspend",
          "lift",
          "billing_support",
          "billing_operator",
          "request_access",
          "break_glass",
          "plugins"
        ],
        "title": "CommunityAction",
        "description": "What the reader may do to one community on the staff list. Worked out\nby the server per row, so a control the reader would be refused is never\ndrawn."
      },
      "CommunityAuthOption": {
        "type": "string",
        "enum": [
          "providers",
          "restrictions"
        ],
        "title": "CommunityAuthOption"
      },
      "CommunityAuthPolicyRead": {
        "properties": {
          "policy": {
            "type": "string",
            "enum": [
              "open",
              "required"
            ],
            "title": "Policy"
          },
          "provider_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider Id"
          },
          "provider_slug": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider Slug"
          },
          "provider_display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider Display Name"
          },
          "require_methods": {
            "items": {
              "type": "string",
              "enum": [
                "sso",
                "totp",
                "passkey"
              ]
            },
            "type": "array",
            "title": "Require Methods"
          },
          "factor_required_by_platform": {
            "type": "boolean",
            "title": "Factor Required By Platform",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "policy",
          "provider_id",
          "provider_slug",
          "provider_display_name",
          "require_methods",
          "factor_required_by_platform"
        ],
        "title": "CommunityAuthPolicyRead",
        "description": "The guild's sign-in requirement. ``open`` is the default (no stored\nrow). ``required`` names a provider a session must have satisfied, asks for\nthe guild's own single sign-on without naming which provider serves it, or\nboth."
      },
      "CommunityAuthPolicyUpdate": {
        "properties": {
          "policy": {
            "type": "string",
            "enum": [
              "open",
              "required"
            ],
            "title": "Policy"
          },
          "provider_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider Id"
          },
          "require_methods": {
            "items": {
              "type": "string",
              "enum": [
                "sso",
                "totp",
                "passkey"
              ]
            },
            "type": "array",
            "title": "Require Methods"
          }
        },
        "type": "object",
        "required": [
          "policy"
        ],
        "title": "CommunityAuthPolicyUpdate"
      },
      "CommunityAuthSettingsRead": {
        "properties": {
          "auth_options": {
            "items": {
              "$ref": "#/components/schemas/CommunityAuthOption"
            },
            "type": "array",
            "title": "Auth Options"
          },
          "auth_policy": {
            "$ref": "#/components/schemas/CommunityAuthPolicyRead"
          },
          "guest_auth_policy": {
            "$ref": "#/components/schemas/CommunityAuthPolicyRead"
          },
          "enforce_compliance_session": {
            "type": "boolean",
            "title": "Enforce Compliance Session"
          },
          "require_second_factor": {
            "type": "boolean",
            "title": "Require Second Factor",
            "default": false
          },
          "allow_push_notifications": {
            "type": "boolean",
            "title": "Allow Push Notifications",
            "default": true
          },
          "allow_email_notifications": {
            "type": "boolean",
            "title": "Allow Email Notifications",
            "default": true
          },
          "redact_notification_content": {
            "type": "boolean",
            "title": "Redact Notification Content",
            "default": false
          },
          "push_allowed_by_platform": {
            "type": "boolean",
            "title": "Push Allowed By Platform",
            "default": true
          },
          "email_allowed_by_platform": {
            "type": "boolean",
            "title": "Email Allowed By Platform",
            "default": true
          },
          "redacted_by_platform": {
            "type": "boolean",
            "title": "Redacted By Platform",
            "default": false
          },
          "allow_engagement_ranking": {
            "type": "boolean",
            "title": "Allow Engagement Ranking",
            "default": true
          },
          "engagement_ranking_allowed_by_platform": {
            "type": "boolean",
            "title": "Engagement Ranking Allowed By Platform",
            "default": true
          },
          "allow_ai": {
            "type": "boolean",
            "title": "Allow Ai",
            "default": true
          },
          "ai_offered_by_platform": {
            "type": "boolean",
            "title": "Ai Offered By Platform",
            "default": true
          },
          "use_platform_ai": {
            "type": "boolean",
            "title": "Use Platform Ai",
            "default": true
          },
          "guest_max_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Guest Max Days"
          },
          "guest_max_days_by_platform": {
            "type": "integer",
            "title": "Guest Max Days By Platform"
          },
          "set_by_deployment": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Set By Deployment"
          },
          "member_figures": {
            "$ref": "#/components/schemas/CommunityPeopleFigures"
          },
          "guest_figures": {
            "$ref": "#/components/schemas/CommunityPeopleFigures"
          }
        },
        "type": "object",
        "required": [
          "auth_options",
          "auth_policy",
          "guest_auth_policy",
          "enforce_compliance_session",
          "require_second_factor",
          "allow_push_notifications",
          "allow_email_notifications",
          "redact_notification_content",
          "push_allowed_by_platform",
          "email_allowed_by_platform",
          "redacted_by_platform",
          "allow_engagement_ranking",
          "engagement_ranking_allowed_by_platform",
          "allow_ai",
          "ai_offered_by_platform",
          "use_platform_ai",
          "guest_max_days",
          "guest_max_days_by_platform",
          "set_by_deployment",
          "member_figures",
          "guest_figures"
        ],
        "title": "CommunityAuthSettingsRead",
        "description": "Every control on the superadmin seat's Security page, and what the\ndeployment already asks beside them."
      },
      "CommunityAuthSettingsUpdate": {
        "properties": {
          "auth_policy": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommunityAuthPolicyUpdate"
              },
              {
                "type": "null"
              }
            ]
          },
          "guest_auth_policy": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommunityAuthPolicyUpdate"
              },
              {
                "type": "null"
              }
            ]
          },
          "enforce_compliance_session": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enforce Compliance Session"
          },
          "require_second_factor": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Require Second Factor"
          },
          "allow_push_notifications": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Allow Push Notifications"
          },
          "allow_email_notifications": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Allow Email Notifications"
          },
          "redact_notification_content": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Redact Notification Content"
          },
          "allow_engagement_ranking": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Allow Engagement Ranking"
          },
          "allow_ai": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Allow Ai"
          },
          "use_platform_ai": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Use Platform Ai"
          },
          "guest_max_days": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Guest Max Days"
          }
        },
        "type": "object",
        "title": "CommunityAuthSettingsUpdate",
        "description": "The rules to change. An omitted field is left as it is.\n\nThe whole request is one change: it is applied together or refused\ntogether, and a rule it loosens is loosened before one it tightens is\nchecked. Tightening a rule needs the option it belongs to; loosening one\nnever does."
      },
      "CommunityBanRead": {
        "properties": {
          "user": {
            "$ref": "#/components/schemas/UserSummary"
          },
          "banned_at": {
            "type": "string",
            "format": "date-time",
            "title": "Banned At"
          }
        },
        "type": "object",
        "required": [
          "user",
          "banned_at"
        ],
        "title": "CommunityBanRead",
        "description": "Somebody the community has banned, and since when."
      },
      "CommunityBannerRead": {
        "properties": {
          "image_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Image Url"
          },
          "color": {
            "type": "string",
            "title": "Color",
            "default": "#2563eb"
          },
          "text_color": {
            "type": "string",
            "title": "Text Color",
            "default": "#ffffff"
          },
          "text_align": {
            "$ref": "#/components/schemas/BannerTextAlign",
            "default": "center"
          },
          "fade": {
            "$ref": "#/components/schemas/BannerFade",
            "default": "strong"
          }
        },
        "type": "object",
        "required": [
          "image_url",
          "color",
          "text_color",
          "text_align",
          "fade"
        ],
        "title": "CommunityBannerRead",
        "description": "A guild's banner, whole \u2014 the picture and the look around it.\n\n``image_url`` is where to fetch the artwork, never the bytes: a banner is\n~350 KB and this rides in payloads that list every guild the caller is in.\nWhich rendition it names is the surface's business \u2014 a guild's own front\npage gets the full one, a directory card the card one. ``None`` means no\nartwork, not no banner: the fill is what shows then."
      },
      "CommunityBannerWrite": {
        "properties": {
          "color": {
            "type": "string",
            "title": "Color"
          },
          "text_color": {
            "type": "string",
            "title": "Text Color"
          },
          "text_align": {
            "$ref": "#/components/schemas/BannerTextAlign"
          },
          "fade": {
            "$ref": "#/components/schemas/BannerFade"
          }
        },
        "type": "object",
        "required": [
          "color",
          "text_color",
          "text_align",
          "fade"
        ],
        "title": "CommunityBannerWrite",
        "description": "The banner a guild admin sets, whole.\n\nEvery field is required: the banner is one value and this replaces it, so a\nbody naming two of the four would have to mean \"leave the rest\" \u2014 a merge\nthe caller cannot see the result of. Sending ``null`` for the whole object\nis how you go back to the default. The artwork is set through its own\nendpoint; it is bytes, not a look.\n\nThe layout fields are typed as their enums, so anything outside the\nvocabulary is a 422 rather than a rule the service restates; the colours\nare text here and normalized in the service."
      },
      "CommunityBillingChangeRead": {
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "cancel",
              "pause",
              "resume"
            ],
            "title": "Action"
          },
          "on": {
            "type": "string",
            "format": "date",
            "title": "On"
          }
        },
        "type": "object",
        "required": [
          "action",
          "on"
        ],
        "title": "CommunityBillingChangeRead"
      },
      "CommunityBillingChargeRead": {
        "properties": {
          "total": {
            "type": "integer",
            "title": "Total"
          },
          "currency": {
            "type": "string",
            "title": "Currency"
          }
        },
        "type": "object",
        "required": [
          "total",
          "currency"
        ],
        "title": "CommunityBillingChargeRead"
      },
      "CommunityBillingSummaryRead": {
        "properties": {
          "available": {
            "type": "boolean",
            "title": "Available",
            "default": false
          },
          "tier_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tier Name"
          },
          "trial_ends_on": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Trial Ends On"
          },
          "renews_on": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Renews On"
          },
          "next_charge": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommunityBillingChargeRead"
              },
              {
                "type": "null"
              }
            ]
          },
          "scheduled_change": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommunityBillingChangeRead"
              },
              {
                "type": "null"
              }
            ]
          },
          "payment_failed": {
            "type": "boolean",
            "title": "Payment Failed",
            "default": false
          },
          "can_upgrade": {
            "type": "boolean",
            "title": "Can Upgrade",
            "default": false
          },
          "can_cancel": {
            "type": "boolean",
            "title": "Can Cancel",
            "default": false
          }
        },
        "type": "object",
        "title": "CommunityBillingSummaryRead",
        "description": "The guild's plan as billing told it, fetched for this response alone.\n\n``available`` is False when billing could not be asked or did not answer\nsensibly, and every other field is then empty \u2014 not a free plan, an\nunknown one."
      },
      "CommunityBlockerInfo": {
        "properties": {
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "community_name": {
            "type": "string",
            "title": "Community Name"
          }
        },
        "type": "object",
        "required": [
          "community_id",
          "community_name"
        ],
        "title": "CommunityBlockerInfo",
        "description": "Info about a guild blocking user deletion."
      },
      "CommunityCan": {
        "properties": {
          "enter": {
            "type": "boolean",
            "title": "Enter",
            "default": false
          },
          "content": {
            "type": "boolean",
            "title": "Content",
            "default": false
          },
          "administer": {
            "type": "boolean",
            "title": "Administer",
            "default": false
          },
          "configure": {
            "type": "boolean",
            "title": "Configure",
            "default": false
          },
          "administer_content": {
            "type": "boolean",
            "title": "Administer Content",
            "default": false
          },
          "seat": {
            "type": "boolean",
            "title": "Seat",
            "default": false
          },
          "community_wide": {
            "type": "boolean",
            "title": "Community Wide",
            "default": false
          },
          "use_api": {
            "type": "boolean",
            "title": "Use Api",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "enter",
          "content",
          "administer",
          "configure",
          "administer_content",
          "seat",
          "community_wide",
          "use_api"
        ],
        "title": "CommunityCan",
        "description": "What the caller may do in a community, as the server answers it.\n\nEach flag is the check the routes that do the thing run, so a client reads\nits affordances here rather than working them out from a rung."
      },
      "CommunityCategory": {
        "type": "string",
        "enum": [
          "art",
          "gaming",
          "ttrpg",
          "music",
          "writing",
          "education",
          "technology",
          "sports",
          "business",
          "health",
          "social",
          "other"
        ],
        "title": "CommunityCategory",
        "description": "A subject a guild can file itself under in the community directory.\n\nA closed vocabulary rather than free-form tags: the directory's job is to\nnarrow a deployment's guilds down to a browsable shelf, and that only works\nif two guilds about the same thing pick the same word. Guilds choose their\nown (zero or more) from their settings page; the labels are localized\nclient-side from these keys, so the stored value is never user-facing text.\n\nStored as a ``text[]`` on ``guilds.categories`` with a CHECK that every\nelement is one of these, mirroring how ``status`` is a CHECK-constrained\nstring rather than a Postgres enum: adding a category is then an ordinary\nmigration instead of an enum alteration."
      },
      "CommunityClaimRuleCreate": {
        "properties": {
          "provider_id": {
            "type": "integer",
            "title": "Provider Id"
          },
          "claim_value": {
            "type": "string",
            "maxLength": 500,
            "title": "Claim Value"
          },
          "community_role": {
            "type": "string",
            "title": "Community Role",
            "default": "member"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "initiative_role_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Role Id"
          }
        },
        "type": "object",
        "required": [
          "provider_id",
          "claim_value"
        ],
        "title": "CommunityClaimRuleCreate",
        "description": "Place the people carrying one group.\n\nNaming an initiative places them there as well as in the community, since\nsomebody has to be in the community to be in one of its initiatives."
      },
      "CommunityClaimRuleRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "provider_id": {
            "type": "integer",
            "title": "Provider Id"
          },
          "provider_display_name": {
            "type": "string",
            "title": "Provider Display Name"
          },
          "provider_icon": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider Icon"
          },
          "claim_value": {
            "type": "string",
            "title": "Claim Value"
          },
          "community_role": {
            "type": "string",
            "title": "Community Role"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "initiative_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Name"
          },
          "initiative_role_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Role Id"
          },
          "initiative_role_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Role Name"
          }
        },
        "type": "object",
        "required": [
          "id",
          "provider_id",
          "provider_display_name",
          "provider_icon",
          "claim_value",
          "community_role",
          "initiative_id",
          "initiative_name",
          "initiative_role_id",
          "initiative_role_name"
        ],
        "title": "CommunityClaimRuleRead",
        "description": "One rule a community wrote: a group this provider asserts, and where\nsomebody carrying it lands."
      },
      "CommunityClaimRuleUpdate": {
        "properties": {
          "claim_value": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500
              },
              {
                "type": "null"
              }
            ],
            "title": "Claim Value"
          },
          "community_role": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Community Role"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "initiative_role_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Role Id"
          }
        },
        "type": "object",
        "title": "CommunityClaimRuleUpdate",
        "description": "Change what a community's rule matches or where it lands. Its provider\nis not editable: a rule pointed elsewhere is a different rule."
      },
      "CommunityClaimRulesResponse": {
        "properties": {
          "rules": {
            "items": {
              "$ref": "#/components/schemas/CommunityClaimRuleRead"
            },
            "type": "array",
            "title": "Rules"
          },
          "reporting_provider_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Reporting Provider Ids"
          },
          "provider_rules": {
            "items": {
              "$ref": "#/components/schemas/ProviderPlacementRuleRead"
            },
            "type": "array",
            "title": "Provider Rules"
          },
          "placement_everywhere": {
            "type": "boolean",
            "title": "Placement Everywhere",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "rules",
          "reporting_provider_ids",
          "provider_rules",
          "placement_everywhere"
        ],
        "title": "CommunityClaimRulesResponse",
        "description": "The rules, and whether the providers behind them report groups at all.\n\nWhich claim carries groups is the operator's to set per provider. A\ncommunity can write rules against a provider that has none, and they will\nnever match anything, so the surface says which of its connections are\nready to be written against rather than letting somebody find out later."
      },
      "CommunityCreate": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "owner_user_id": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Owner User Id"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "CommunityCreate"
      },
      "CommunityCreditsRead": {
        "properties": {
          "metered": {
            "type": "boolean",
            "title": "Metered"
          },
          "allowance": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Allowance"
          },
          "used": {
            "type": "number",
            "title": "Used"
          },
          "extras_left": {
            "type": "number",
            "title": "Extras Left"
          },
          "remaining": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Remaining"
          },
          "spenders": {
            "items": {
              "$ref": "#/components/schemas/CreditSpenderRead"
            },
            "type": "array",
            "title": "Spenders"
          }
        },
        "type": "object",
        "required": [
          "metered",
          "allowance",
          "used",
          "extras_left",
          "remaining",
          "spenders"
        ],
        "title": "CommunityCreditsRead"
      },
      "CommunityDeletionRequest": {
        "properties": {
          "password": {
            "type": "string",
            "title": "Password",
            "default": ""
          },
          "confirmation_text": {
            "type": "string",
            "title": "Confirmation Text"
          }
        },
        "type": "object",
        "required": [
          "confirmation_text"
        ],
        "title": "CommunityDeletionRequest",
        "description": "Body for ``DELETE /communities/{id}``.\n\nDeleting a guild cascades through every initiative, project, task,\nfile, membership, invite, and settings row it owns, so the\nendpoint gates on two confirmations:\n\n- ``confirmation_text`` must equal ``DELETE COMMUNITY <NAME>`` (the whole\n  phrase uppercased) so the action can't be triggered by a stray click.\n- ``password`` is the current user's password. An account that holds\n  none \u2014 one that signs in with a passkey or through an identity\n  provider \u2014 has nothing to confirm with and answers with the phrase\n  alone, mirroring the account-deletion endpoint, which is why it\n  defaults to empty."
      },
      "CommunityDmToggle": {
        "properties": {
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "icon_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon Url"
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          }
        },
        "type": "object",
        "required": [
          "community_id",
          "name",
          "icon_url",
          "enabled"
        ],
        "title": "CommunityDmToggle",
        "description": "One of the reader's communities, and whether it counts.\n\nOnly consulted while the policy is ``community``; the list is returned\nwhatever the policy is, so switching to it does not arrive on an empty\nscreen."
      },
      "CommunityDmToggleUpdate": {
        "properties": {
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          }
        },
        "type": "object",
        "required": [
          "community_id",
          "enabled"
        ],
        "title": "CommunityDmToggleUpdate"
      },
      "CommunityEntitlementsRead": {
        "properties": {
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "branding_enabled": {
            "type": "boolean",
            "title": "Branding Enabled",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "community_id",
          "branding_enabled"
        ],
        "title": "CommunityEntitlementsRead",
        "description": "What an operator has turned on for one guild, for its own admins.\n\nDeliberately its own read rather than fields on :class:`CommunityRead`: these\nare the operator's decisions about a guild, they live on the separate\n``guild_administration`` row, and only a guild admin has any use for them \u2014\na member's guild payload should not be carrying them at all."
      },
      "CommunityExportStatus": {
        "properties": {
          "cooldown_hours": {
            "type": "integer",
            "title": "Cooldown Hours"
          },
          "next_available_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Available At"
          },
          "latest": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DataJobRead"
              },
              {
                "type": "null"
              }
            ]
          },
          "latest_started_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Latest Started By"
          }
        },
        "type": "object",
        "required": [
          "cooldown_hours",
          "next_available_at",
          "latest",
          "latest_started_by"
        ],
        "title": "CommunityExportStatus",
        "description": "What the community settings page knows about whole-community exports\nwithout opening the wizard.\n\nA community takes one of these at a time and rarely \u2014 so the page says\nwho took the last one and how it ended, rather than leaving the next\nperson to find out by being refused."
      },
      "CommunityGuestExtend": {
        "properties": {
          "days": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Days"
          }
        },
        "type": "object",
        "required": [
          "days"
        ],
        "title": "CommunityGuestExtend"
      },
      "CommunityInviteAcceptRequest": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code"
          }
        },
        "type": "object",
        "required": [
          "code"
        ],
        "title": "CommunityInviteAcceptRequest"
      },
      "CommunityInviteCreate": {
        "properties": {
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "max_uses": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Uses",
            "default": 1
          },
          "invitee_email": {
            "anyOf": [
              {
                "type": "string",
                "format": "email"
              },
              {
                "type": "null"
              }
            ],
            "title": "Invitee Email"
          },
          "guest_days": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Guest Days"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/CommunityInviteGrant"
            },
            "type": "array",
            "maxItems": 100,
            "title": "Grants"
          }
        },
        "type": "object",
        "title": "CommunityInviteCreate"
      },
      "CommunityInviteCreated": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "created_by": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "max_uses": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Uses"
          },
          "uses": {
            "type": "integer",
            "title": "Uses"
          },
          "invitee_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Invitee Email"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "guest_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Guest Days"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/CommunityInviteGrant"
            },
            "type": "array",
            "title": "Grants"
          },
          "code": {
            "type": "string",
            "title": "Code"
          }
        },
        "type": "object",
        "required": [
          "id",
          "community_id",
          "created_by",
          "expires_at",
          "max_uses",
          "uses",
          "invitee_email",
          "created_at",
          "guest_days",
          "grants",
          "code"
        ],
        "title": "CommunityInviteCreated",
        "description": "A new invite, with its code: the one time the code is shown."
      },
      "CommunityInviteGrant": {
        "properties": {
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "resource_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resource Type"
          },
          "resource_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resource Id"
          },
          "level": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "read",
                  "write"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Level"
          }
        },
        "type": "object",
        "required": [
          "initiative_id"
        ],
        "title": "CommunityInviteGrant",
        "description": "What a guest invite gives: an initiative to join, or one item in it at\n``read`` or ``write``."
      },
      "CommunityInviteRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "created_by": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "max_uses": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Uses"
          },
          "uses": {
            "type": "integer",
            "title": "Uses"
          },
          "invitee_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Invitee Email"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "guest_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Guest Days"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/CommunityInviteGrant"
            },
            "type": "array",
            "title": "Grants"
          }
        },
        "type": "object",
        "required": [
          "id",
          "community_id",
          "created_by",
          "expires_at",
          "max_uses",
          "uses",
          "invitee_email",
          "created_at",
          "guest_days",
          "grants"
        ],
        "title": "CommunityInviteRead"
      },
      "CommunityInviteStatus": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code"
          },
          "community_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Community Id"
          },
          "community_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Community Name"
          },
          "is_valid": {
            "type": "boolean",
            "title": "Is Valid"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "max_uses": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Uses"
          },
          "uses": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Uses"
          },
          "guest_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Guest Days"
          }
        },
        "type": "object",
        "required": [
          "code",
          "community_id",
          "community_name",
          "is_valid",
          "reason",
          "expires_at",
          "max_uses",
          "uses",
          "guest_days"
        ],
        "title": "CommunityInviteStatus"
      },
      "CommunityJoinPolicy": {
        "type": "string",
        "enum": [
          "private",
          "request",
          "open"
        ],
        "title": "CommunityJoinPolicy",
        "description": "How somebody who is not in a community comes to join it.\n\nThe same three words as ``InitiativeJoinPolicy``. An invite and a sign-in\nrule bring people into a community whatever its policy.\n\n- ``private``: not in the directory; invite only. The default.\n- ``request``: listed; somebody asks and an admin answers\n  (``community_join_requests``).\n- ``open``: listed; anyone signed in joins."
      },
      "CommunityJoinRequestCreate": {
        "properties": {
          "message": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          }
        },
        "type": "object",
        "title": "CommunityJoinRequestCreate",
        "description": "Asking a ``request`` community to let the caller in."
      },
      "CommunityJoinRequestRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "user": {
            "$ref": "#/components/schemas/UserIdentity"
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "user",
          "message",
          "created_at"
        ],
        "title": "CommunityJoinRequestRead",
        "description": "One request in a community's queue: who is asking, what they wrote and\nwhen. The asker is not a member, so they are drawn from their public\nprofile rather than the community's roster."
      },
      "CommunityLocation-Input": {
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 200,
            "title": "Text"
          },
          "label": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 60
              },
              {
                "type": "null"
              }
            ],
            "title": "Label"
          },
          "country": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Za-z]{2}$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Country"
          },
          "latitude": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 90.0,
                "minimum": -90.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Latitude"
          },
          "longitude": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 180.0,
                "minimum": -180.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Longitude"
          }
        },
        "type": "object",
        "required": [
          "text"
        ],
        "title": "CommunityLocation",
        "description": "Where a community is, in its admin's own words.\n\n``text`` is the place as it was typed and as it is shown: a country alone\n(\"Japan\"), a city (\"Lyon, France\") or a full street address. ``label`` is\nthe community's own name for the place (\"Queen Anne Neighborhood\"), shown\nahead of it. ``country``\n(ISO 3166-1 alpha-2) and the coordinates are the place it was pinned to,\nfor putting the communities near a reader first: a country alone pins no\npoint, and text that was never pinned leaves all three out.\n\nThe same shape is read and written: the whole location is one value, and a\nPATCH replaces it."
      },
      "CommunityLocation-Output": {
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 200,
            "title": "Text"
          },
          "label": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 60
              },
              {
                "type": "null"
              }
            ],
            "title": "Label"
          },
          "country": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Za-z]{2}$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Country"
          },
          "latitude": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 90.0,
                "minimum": -90.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Latitude"
          },
          "longitude": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 180.0,
                "minimum": -180.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Longitude"
          }
        },
        "type": "object",
        "required": [
          "text",
          "label",
          "country",
          "latitude",
          "longitude"
        ],
        "title": "CommunityLocation",
        "description": "Where a community is, in its admin's own words.\n\n``text`` is the place as it was typed and as it is shown: a country alone\n(\"Japan\"), a city (\"Lyon, France\") or a full street address. ``label`` is\nthe community's own name for the place (\"Queen Anne Neighborhood\"), shown\nahead of it. ``country``\n(ISO 3166-1 alpha-2) and the coordinates are the place it was pinned to,\nfor putting the communities near a reader first: a country alone pins no\npoint, and text that was never pinned leaves all three out.\n\nThe same shape is read and written: the whole location is one value, and a\nPATCH replaces it."
      },
      "CommunityMembershipUpdate": {
        "properties": {
          "role": {
            "$ref": "#/components/schemas/CommunityRole"
          }
        },
        "type": "object",
        "required": [
          "role"
        ],
        "title": "CommunityMembershipUpdate",
        "description": "Schema for updating a user's guild membership role."
      },
      "CommunityMuteSet": {
        "properties": {
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "muted": {
            "type": "boolean",
            "title": "Muted"
          }
        },
        "type": "object",
        "required": [
          "community_id",
          "muted"
        ],
        "title": "CommunityMuteSet"
      },
      "CommunityNarrowingAgreement": {
        "properties": {
          "agreed": {
            "type": "boolean",
            "title": "Agreed"
          }
        },
        "type": "object",
        "required": [
          "agreed"
        ],
        "title": "CommunityNarrowingAgreement",
        "description": "Whether these values are this community's to claim."
      },
      "CommunityNarrowingPending": {
        "properties": {
          "connection_id": {
            "type": "integer",
            "title": "Connection Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "community_name": {
            "type": "string",
            "title": "Community Name"
          },
          "provider_display_name": {
            "type": "string",
            "title": "Provider Display Name"
          },
          "claim": {
            "type": "string",
            "title": "Claim"
          },
          "claim_values": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Claim Values"
          },
          "auto_join": {
            "type": "boolean",
            "title": "Auto Join"
          },
          "agreed": {
            "type": "boolean",
            "title": "Agreed"
          }
        },
        "type": "object",
        "required": [
          "connection_id",
          "community_id",
          "community_name",
          "provider_display_name",
          "claim",
          "claim_values",
          "auto_join",
          "agreed"
        ],
        "title": "CommunityNarrowingPending",
        "description": "One community's claim, waiting to be answered."
      },
      "CommunityNotice": {
        "type": "string",
        "enum": [
          "none",
          "when_granted",
          "when_ended"
        ],
        "title": "CommunityNotice",
        "description": "Whether, and when, a community's superadmins are emailed that platform\nstaff hold a grant to it.\n\nThe case a grant serves decides what may be chosen\n(``app.core.intake.CommunityNoticeRule``): a support case always tells\nthe community when access starts; a security or moderation case leaves\nit to whoever asks, who may tell it when access starts, once it has\nended, or not at all."
      },
      "CommunityNoticeRule": {
        "type": "string",
        "enum": [
          "never",
          "optional",
          "always"
        ],
        "title": "CommunityNoticeRule",
        "description": "Whether a community hears that platform staff were given access to it\nfor one of a stream's cases (``AccessGrant.community_notice``)."
      },
      "CommunityNotificationSettings": {
        "properties": {
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "community_name": {
            "type": "string",
            "title": "Community Name"
          },
          "muted": {
            "type": "boolean",
            "title": "Muted",
            "default": false
          },
          "off": {
            "items": {
              "$ref": "#/components/schemas/NotificationCategory"
            },
            "type": "array",
            "title": "Off"
          }
        },
        "type": "object",
        "required": [
          "community_id",
          "community_name",
          "muted",
          "off"
        ],
        "title": "CommunityNotificationSettings"
      },
      "CommunityOrderUpdate": {
        "properties": {
          "community_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "minItems": 1,
            "title": "Community Ids"
          }
        },
        "type": "object",
        "required": [
          "community_ids"
        ],
        "title": "CommunityOrderUpdate"
      },
      "CommunityPaymentIssueRead": {
        "properties": {
          "payment_failed": {
            "type": "boolean",
            "title": "Payment Failed",
            "default": false
          }
        },
        "type": "object",
        "title": "CommunityPaymentIssueRead"
      },
      "CommunityPeopleFigures": {
        "properties": {
          "total": {
            "type": "integer",
            "title": "Total",
            "default": 0
          },
          "without_factor": {
            "type": "integer",
            "title": "Without Factor",
            "default": 0
          },
          "without_passkey": {
            "type": "integer",
            "title": "Without Passkey",
            "default": 0
          },
          "never_through_any": {
            "type": "integer",
            "title": "Never Through Any",
            "default": 0
          },
          "never_through": {
            "items": {
              "$ref": "#/components/schemas/CommunityProviderReach"
            },
            "type": "array",
            "title": "Never Through"
          }
        },
        "type": "object",
        "required": [
          "total",
          "without_factor",
          "without_passkey",
          "never_through_any",
          "never_through"
        ],
        "title": "CommunityPeopleFigures",
        "description": "How many people one part of a community holds, and how many of them\nhold nothing yet that answers each kind of sign-in rule. Counts only,\nnever who.\n\n``never_through`` counts accounts with no link to a provider at all. A link\nthe community's narrowing would refuse is not seen here, so each figure is\nthe fewest a rule naming that provider would ask."
      },
      "CommunityPluginAction": {
        "type": "string",
        "enum": [
          "suspend",
          "lift",
          "set_status"
        ],
        "title": "CommunityPluginAction",
        "description": "What the reader may do to one of a community's plug-ins. Worked out by\nthe server per install."
      },
      "CommunityPluginArtifact": {
        "properties": {
          "type": {
            "type": "string",
            "title": "Type"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          }
        },
        "type": "object",
        "required": [
          "type",
          "id"
        ],
        "title": "CommunityPluginArtifact",
        "description": "One thing an install produced."
      },
      "CommunityPluginConfigUpdate": {
        "properties": {
          "values": {
            "additionalProperties": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "object",
            "title": "Values",
            "default": {}
          }
        },
        "type": "object",
        "title": "CommunityPluginConfigUpdate",
        "description": "Guild-scoped connection values, keyed by connection then field.\n\nA key sent as ``null`` clears that value; a key left out is untouched, so a\nform rendering part of a connection cannot wipe the rest.\n\nDeliberately untyped at this layer. A credential is opaque bytes to us, so\nsanitizing one would corrupt it, and the declared field types live in the\npinned definition rather than in this schema \u2014 the service checks each value\nagainst the type its own connection declared, which coercion here would\nquietly defeat (a ``true`` arriving at an ``int`` field must be refused, not\nturned into ``1``)."
      },
      "CommunityPluginConnectStart": {
        "properties": {
          "connection_id": {
            "type": "string",
            "title": "Connection Id"
          },
          "connect_url": {
            "type": "string",
            "title": "Connect Url"
          },
          "status": {
            "type": "string",
            "title": "Status"
          }
        },
        "type": "object",
        "required": [
          "connection_id",
          "connect_url",
          "status"
        ],
        "title": "CommunityPluginConnectStart",
        "description": "Where to send the person connecting: the vendor's authorization page,\nor its install page for a connection an organization installs.\n\nInitiative runs the flow, and the vendor returns the person to Initiative's\nown callback. Nothing is stored until it does."
      },
      "CommunityPluginConnectionRead": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "scope": {
            "type": "string",
            "title": "Scope"
          },
          "label": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Label",
            "default": {}
          },
          "fields": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Fields",
            "default": []
          },
          "access_hint": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Access Hint"
          },
          "values": {
            "additionalProperties": true,
            "type": "object",
            "title": "Values",
            "default": {}
          },
          "has_value": {
            "additionalProperties": {
              "type": "boolean"
            },
            "type": "object",
            "title": "Has Value",
            "default": {}
          },
          "satisfied": {
            "type": "boolean",
            "title": "Satisfied",
            "default": false
          },
          "runs_flow": {
            "type": "boolean",
            "title": "Runs Flow",
            "default": false
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status"
          },
          "account_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Account Label"
          },
          "platform": {
            "type": "boolean",
            "title": "Platform",
            "default": false
          },
          "blocked": {
            "type": "boolean",
            "title": "Blocked",
            "default": false
          },
          "setup": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommunityPluginConnectionSetup"
              },
              {
                "type": "null"
              }
            ]
          },
          "summary_returns": {
            "items": {
              "$ref": "#/components/schemas/PluginSummaryReturn"
            },
            "type": "array",
            "title": "Summary Returns",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "id",
          "scope",
          "label",
          "fields",
          "access_hint",
          "values",
          "has_value",
          "satisfied",
          "runs_flow",
          "status",
          "account_label",
          "platform",
          "blocked",
          "setup",
          "summary_returns"
        ],
        "title": "CommunityPluginConnectionRead",
        "description": "One connection of an install, as the current viewer sees it.\n\n``has_value`` is the whole of what is disclosed about stored values. For a\nper-member connection the presence, status and account label are the\n*viewer's own* \u2014 a colleague who has connected and one who has not are both\nlooking at a correct answer, because the underlying vendor access genuinely\ndiffers per person."
      },
      "CommunityPluginConnectionSetup": {
        "properties": {
          "label": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Label",
            "default": {}
          }
        },
        "type": "object",
        "required": [
          "label"
        ],
        "title": "CommunityPluginConnectionSetup",
        "description": "That a community connection may have a setup to go through once it is\nmade, which its plug-in's ``setup`` hook says."
      },
      "CommunityPluginConnectionSummary": {
        "properties": {
          "connection_id": {
            "type": "string",
            "title": "Connection Id"
          },
          "label": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Label",
            "default": {}
          },
          "connected_count": {
            "type": "integer",
            "title": "Connected Count",
            "default": 0
          },
          "blocked_count": {
            "type": "integer",
            "title": "Blocked Count",
            "default": 0
          },
          "member_count": {
            "type": "integer",
            "title": "Member Count",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "connection_id",
          "label",
          "connected_count",
          "blocked_count",
          "member_count"
        ],
        "title": "CommunityPluginConnectionSummary",
        "description": "The aggregate an admin actually wants: how many of the guild connected."
      },
      "CommunityPluginConsentAnswer": {
        "properties": {
          "access": {
            "$ref": "#/components/schemas/ConsentAccess"
          }
        },
        "type": "object",
        "required": [
          "access"
        ],
        "title": "CommunityPluginConsentAnswer",
        "description": "Allow a request, at ``access``: never more than the plug-in asked for.\nDeclining is withdrawing a request that was never granted."
      },
      "CommunityPluginConsentRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "purpose": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Purpose"
          },
          "label": {
            "type": "string",
            "title": "Label"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "requested_access": {
            "$ref": "#/components/schemas/ConsentAccess"
          },
          "granted_access": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ConsentAccess"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "$ref": "#/components/schemas/ConsentStatus"
          },
          "requested_at": {
            "type": "string",
            "format": "date-time",
            "title": "Requested At"
          },
          "granted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Granted At"
          },
          "revoked_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Revoked At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "purpose",
          "label",
          "initiative_id",
          "requested_access",
          "granted_access",
          "status",
          "requested_at",
          "granted_at",
          "revoked_at"
        ],
        "title": "CommunityPluginConsentRead",
        "description": "One request from this plug-in to act as the viewer, and their answer.\n\n``label`` is the plug-in's own description of what it wants to do, shown as\nthe plug-in's words. ``purpose`` is the plug-in's id for it; absent for plug-in-wide\nconsent."
      },
      "CommunityPluginConsentSummary": {
        "properties": {
          "member_count": {
            "type": "integer",
            "title": "Member Count",
            "default": 0
          },
          "allowed_count": {
            "type": "integer",
            "title": "Allowed Count",
            "default": 0
          },
          "open_count": {
            "type": "integer",
            "title": "Open Count",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "member_count",
          "allowed_count",
          "open_count"
        ],
        "title": "CommunityPluginConsentSummary",
        "description": "Every member's answers to this plug-in's requests, counted."
      },
      "CommunityPluginDecline": {
        "properties": {
          "version": {
            "type": "string",
            "maxLength": 32,
            "title": "Version"
          }
        },
        "type": "object",
        "required": [
          "version"
        ],
        "title": "CommunityPluginDecline",
        "description": "Keep the pinned version, and stop being asked about this one."
      },
      "CommunityPluginDetail": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "listing_uid": {
            "type": "string",
            "title": "Listing Uid"
          },
          "listing_version": {
            "type": "string",
            "title": "Listing Version"
          },
          "plugin_kind": {
            "type": "string",
            "title": "Plugin Kind"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          },
          "auto_update": {
            "type": "boolean",
            "title": "Auto Update",
            "default": true
          },
          "pending_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pending Version"
          },
          "artifacts": {
            "items": {
              "$ref": "#/components/schemas/CommunityPluginArtifact"
            },
            "type": "array",
            "title": "Artifacts",
            "default": []
          },
          "needs_config": {
            "type": "boolean",
            "title": "Needs Config",
            "default": false
          },
          "config_state": {
            "type": "string",
            "title": "Config State",
            "default": "unverified"
          },
          "config_state_detail": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Config State Detail"
          },
          "tool": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "features": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Features",
            "default": []
          },
          "definition": {
            "additionalProperties": true,
            "type": "object",
            "title": "Definition",
            "default": {}
          },
          "placed_initiative_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Placed Initiative Ids",
            "default": []
          },
          "permissions": {
            "items": {
              "$ref": "#/components/schemas/PluginPermissionRead"
            },
            "type": "array",
            "title": "Permissions",
            "default": []
          },
          "surface_access": {
            "items": {
              "$ref": "#/components/schemas/PluginSurfaceAccessRead"
            },
            "type": "array",
            "title": "Surface Access",
            "default": []
          },
          "item_access": {
            "items": {
              "$ref": "#/components/schemas/PluginItemAccessRead"
            },
            "type": "array",
            "title": "Item Access",
            "default": []
          },
          "setting_values": {
            "additionalProperties": true,
            "type": "object",
            "title": "Setting Values",
            "default": {}
          },
          "granted_scopes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Granted Scopes",
            "default": []
          },
          "mandatory": {
            "type": "boolean",
            "title": "Mandatory",
            "default": false
          },
          "available": {
            "type": "boolean",
            "title": "Available",
            "default": true
          },
          "read_only": {
            "type": "boolean",
            "title": "Read Only",
            "default": false
          },
          "created_by": {
            "type": "integer",
            "title": "Created By",
            "x-identity": "person"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "connections": {
            "items": {
              "$ref": "#/components/schemas/CommunityPluginConnectionRead"
            },
            "type": "array",
            "title": "Connections",
            "default": []
          },
          "settings": {
            "items": {
              "$ref": "#/components/schemas/CommunityPluginSettingRead"
            },
            "type": "array",
            "title": "Settings",
            "default": []
          },
          "consents": {
            "items": {
              "$ref": "#/components/schemas/CommunityPluginConsentRead"
            },
            "type": "array",
            "title": "Consents",
            "default": []
          },
          "update_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Update Version"
          },
          "update_refused": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommunityPluginUpdateRefused"
              },
              {
                "type": "null"
              }
            ]
          },
          "requested_scopes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Requested Scopes",
            "default": []
          },
          "grantable_scopes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Grantable Scopes",
            "default": []
          },
          "pending_update": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommunityPluginUpgradeAsks"
              },
              {
                "type": "null"
              }
            ]
          },
          "plugin_names": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Plugin Names",
            "default": {}
          },
          "listing": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommunityPluginListingRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "entitlement": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommunityPluginEntitlementRead"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "id",
          "community_id",
          "listing_uid",
          "listing_version",
          "plugin_kind",
          "name",
          "enabled",
          "auto_update",
          "pending_version",
          "artifacts",
          "needs_config",
          "config_state",
          "config_state_detail",
          "tool",
          "avatar_url",
          "features",
          "definition",
          "placed_initiative_ids",
          "permissions",
          "surface_access",
          "item_access",
          "setting_values",
          "granted_scopes",
          "mandatory",
          "available",
          "read_only",
          "created_by",
          "created_at",
          "updated_at",
          "connections",
          "settings",
          "consents",
          "update_version",
          "update_refused",
          "requested_scopes",
          "grantable_scopes",
          "pending_update",
          "plugin_names",
          "listing",
          "entitlement"
        ],
        "title": "CommunityPluginDetail",
        "description": "An install plus its connections, for the settings page.\n\nSeparate from the list payload because the connection blocks carry the whole\npinned form and the sidebar has no use for it."
      },
      "CommunityPluginEntitlementRead": {
        "properties": {
          "active": {
            "type": "boolean",
            "title": "Active"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "action_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Action Url"
          }
        },
        "type": "object",
        "required": [
          "active",
          "reason",
          "action_url"
        ],
        "title": "CommunityPluginEntitlementRead",
        "description": "What the entitlement statement held for an install's listing says, as\nthe plug-in's page reads it: whether it entitles the community, and why\nnot when it says (``term_full``: the deployment's term has no seat free).\nInactive for any other reason, its plan has ended."
      },
      "CommunityPluginHandoff": {
        "properties": {
          "handoff_token": {
            "type": "string",
            "title": "Handoff Token"
          },
          "expires_in_seconds": {
            "type": "integer",
            "title": "Expires In Seconds"
          },
          "page_url": {
            "type": "string",
            "title": "Page Url"
          },
          "allowed_origins": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Allowed Origins",
            "default": []
          },
          "audience": {
            "type": "string",
            "title": "Audience"
          },
          "surface_id": {
            "type": "string",
            "title": "Surface Id"
          }
        },
        "type": "object",
        "required": [
          "handoff_token",
          "expires_in_seconds",
          "page_url",
          "allowed_origins",
          "audience",
          "surface_id"
        ],
        "title": "CommunityPluginHandoff",
        "description": "A short-lived credential for one of a plug-in's pages.\n\nThe token reaches the iframe by ``postMessage`` and never a query string,\nand it is worth a minute. ``allowed_origins`` is what the SPA posts to and\naccepts messages from \u2014 the registration's own list, not a client guess."
      },
      "CommunityPluginInstall": {
        "properties": {
          "listing_uid": {
            "type": "string",
            "maxLength": 14,
            "title": "Listing Uid"
          },
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "granted_scopes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 64,
            "title": "Granted Scopes"
          },
          "callers": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 64,
            "title": "Callers"
          },
          "placements": {
            "anyOf": [
              {
                "type": "string",
                "const": "all"
              },
              {
                "items": {
                  "type": "integer"
                },
                "type": "array",
                "maxItems": 1000
              }
            ],
            "title": "Placements"
          }
        },
        "type": "object",
        "required": [
          "listing_uid"
        ],
        "title": "CommunityPluginInstall",
        "description": "Install a listing into this guild, with the seat's consent.\n\nThe definition comes from the catalog, and the content the install creates\nis made server-side. What the request adds is the seat's answer to the\ninstall dialog: what the plug-in may reach and where it appears. Who uses it\nthere is each initiative's roles' answer. The install, its grant and its\nplacements are one transaction."
      },
      "CommunityPluginListResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/CommunityPluginRead"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "CommunityPluginListResponse"
      },
      "CommunityPluginListingRef": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "source": {
            "$ref": "#/components/schemas/ListingSource"
          },
          "publisher": {
            "type": "string",
            "title": "Publisher"
          },
          "first_party": {
            "type": "boolean",
            "title": "First Party"
          }
        },
        "type": "object",
        "required": [
          "id",
          "source",
          "publisher",
          "first_party"
        ],
        "title": "CommunityPluginListingRef",
        "description": "Where an install came from in the catalog, as the plug-in's page shows it.\n\nRead from the catalog rather than pinned, like the artwork: who publishes a\nlisting is the catalog's to say."
      },
      "CommunityPluginMemberConnection": {
        "properties": {
          "connection_id": {
            "type": "string",
            "title": "Connection Id"
          },
          "user_id": {
            "type": "integer",
            "title": "User Id"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "account_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Account Label"
          },
          "blocked": {
            "type": "boolean",
            "title": "Blocked",
            "default": false
          },
          "blocked_by_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Blocked By Id"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "connection_id",
          "user_id",
          "status",
          "account_label",
          "blocked",
          "blocked_by_id",
          "created_at",
          "updated_at"
        ],
        "title": "CommunityPluginMemberConnection",
        "description": "One member's connection, in the admin's Members view.\n\nWho connected, as which vendor account, when, and whether they are blocked.\nNo values, and no ``connection_ref`` \u2014 the handle is between the platform\nand the plug-in, and putting it in an admin screen would make it something\npeople copy around."
      },
      "CommunityPluginMemberConsent": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "purpose": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Purpose"
          },
          "label": {
            "type": "string",
            "title": "Label"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "requested_access": {
            "$ref": "#/components/schemas/ConsentAccess"
          },
          "granted_access": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ConsentAccess"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "$ref": "#/components/schemas/ConsentStatus"
          },
          "requested_at": {
            "type": "string",
            "format": "date-time",
            "title": "Requested At"
          },
          "granted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Granted At"
          },
          "revoked_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Revoked At"
          },
          "user_id": {
            "type": "integer",
            "title": "User Id"
          }
        },
        "type": "object",
        "required": [
          "id",
          "purpose",
          "label",
          "initiative_id",
          "requested_access",
          "granted_access",
          "status",
          "requested_at",
          "granted_at",
          "revoked_at",
          "user_id"
        ],
        "title": "CommunityPluginMemberConsent",
        "description": "One member's answer to one of the plug-in's requests, in the seat's Members\nview."
      },
      "CommunityPluginMembersResponse": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "summary": {
            "items": {
              "$ref": "#/components/schemas/CommunityPluginConnectionSummary"
            },
            "type": "array",
            "title": "Summary",
            "default": []
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/CommunityPluginMemberConnection"
            },
            "type": "array",
            "title": "Items",
            "default": []
          },
          "consents": {
            "items": {
              "$ref": "#/components/schemas/CommunityPluginMemberConsent"
            },
            "type": "array",
            "title": "Consents",
            "default": []
          },
          "consent_summary": {
            "$ref": "#/components/schemas/CommunityPluginConsentSummary",
            "default": {
              "member_count": 0,
              "allowed_count": 0,
              "open_count": 0
            }
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "summary",
          "items",
          "consents",
          "consent_summary"
        ],
        "title": "CommunityPluginMembersResponse",
        "description": "One page of the members who connected to this plug-in or answered it.\n\n``summary`` and ``consent_summary`` count across every member; ``items``\nand ``consents`` are the rows of the members on this page."
      },
      "CommunityPluginRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "listing_uid": {
            "type": "string",
            "title": "Listing Uid"
          },
          "listing_version": {
            "type": "string",
            "title": "Listing Version"
          },
          "plugin_kind": {
            "type": "string",
            "title": "Plugin Kind"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          },
          "auto_update": {
            "type": "boolean",
            "title": "Auto Update",
            "default": true
          },
          "pending_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pending Version"
          },
          "artifacts": {
            "items": {
              "$ref": "#/components/schemas/CommunityPluginArtifact"
            },
            "type": "array",
            "title": "Artifacts",
            "default": []
          },
          "needs_config": {
            "type": "boolean",
            "title": "Needs Config",
            "default": false
          },
          "config_state": {
            "type": "string",
            "title": "Config State",
            "default": "unverified"
          },
          "config_state_detail": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Config State Detail"
          },
          "tool": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "features": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Features",
            "default": []
          },
          "definition": {
            "additionalProperties": true,
            "type": "object",
            "title": "Definition",
            "default": {}
          },
          "placed_initiative_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Placed Initiative Ids",
            "default": []
          },
          "permissions": {
            "items": {
              "$ref": "#/components/schemas/PluginPermissionRead"
            },
            "type": "array",
            "title": "Permissions",
            "default": []
          },
          "surface_access": {
            "items": {
              "$ref": "#/components/schemas/PluginSurfaceAccessRead"
            },
            "type": "array",
            "title": "Surface Access",
            "default": []
          },
          "item_access": {
            "items": {
              "$ref": "#/components/schemas/PluginItemAccessRead"
            },
            "type": "array",
            "title": "Item Access",
            "default": []
          },
          "setting_values": {
            "additionalProperties": true,
            "type": "object",
            "title": "Setting Values",
            "default": {}
          },
          "granted_scopes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Granted Scopes",
            "default": []
          },
          "mandatory": {
            "type": "boolean",
            "title": "Mandatory",
            "default": false
          },
          "available": {
            "type": "boolean",
            "title": "Available",
            "default": true
          },
          "read_only": {
            "type": "boolean",
            "title": "Read Only",
            "default": false
          },
          "created_by": {
            "type": "integer",
            "title": "Created By",
            "x-identity": "person"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "community_id",
          "listing_uid",
          "listing_version",
          "plugin_kind",
          "name",
          "enabled",
          "auto_update",
          "pending_version",
          "artifacts",
          "needs_config",
          "config_state",
          "config_state_detail",
          "tool",
          "avatar_url",
          "features",
          "definition",
          "placed_initiative_ids",
          "permissions",
          "surface_access",
          "item_access",
          "setting_values",
          "granted_scopes",
          "mandatory",
          "available",
          "read_only",
          "created_by",
          "created_at",
          "updated_at"
        ],
        "title": "CommunityPluginRead"
      },
      "CommunityPluginScopesUpdate": {
        "properties": {
          "granted": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 64,
            "title": "Granted"
          }
        },
        "type": "object",
        "title": "CommunityPluginScopesUpdate",
        "description": "The scopes the seat grants an install, as the whole set.\n\nEach must be one the plug-in's manifest requests and one this deployment\nallows the plug-in. An empty list withdraws every grant."
      },
      "CommunityPluginSettingRead": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "label": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Label",
            "default": {}
          },
          "description": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Description",
            "default": {}
          },
          "unique": {
            "type": "boolean",
            "title": "Unique",
            "default": false
          },
          "value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Value"
          },
          "aliases": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Aliases",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "key",
          "label",
          "description",
          "unique",
          "value",
          "aliases"
        ],
        "title": "CommunityPluginSettingRead",
        "description": "One setting the pinned definition declares, and what the install holds\nfor it."
      },
      "CommunityPluginSettingUpdate": {
        "properties": {
          "value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Value"
          }
        },
        "type": "object",
        "title": "CommunityPluginSettingUpdate",
        "description": "A value for one of the install's settings.\n\n``null`` clears a setting that is not unique. A unique one always holds a\nvalue: a lowercase letter, then lowercase letters and digits, which no other\ncommunity on this server holds."
      },
      "CommunityPluginSetupAnswers": {
        "properties": {
          "answers": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Answers",
            "default": {}
          }
        },
        "type": "object",
        "title": "CommunityPluginSetupAnswers",
        "description": "The seat's answers to a setup, by question: each one of the options\nthat question offers."
      },
      "CommunityPluginSetupRead": {
        "properties": {
          "steps": {
            "items": {
              "$ref": "#/components/schemas/PluginSetupStep"
            },
            "type": "array",
            "title": "Steps",
            "default": []
          },
          "submit": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submit"
          }
        },
        "type": "object",
        "required": [
          "steps",
          "submit"
        ],
        "title": "CommunityPluginSetupRead",
        "description": "What a community connection's plug-in asks now, in its own words: no\nsteps once there is nothing left to set up."
      },
      "CommunityPluginStateRead": {
        "properties": {
          "install_id": {
            "type": "integer",
            "title": "Install Id"
          },
          "listing_uid": {
            "type": "string",
            "title": "Listing Uid"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "status": {
            "$ref": "#/components/schemas/PluginInstallStatus"
          },
          "state": {
            "$ref": "#/components/schemas/PluginState"
          },
          "status_changed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status Changed At"
          },
          "suspended_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Suspended At"
          },
          "uninstall_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Uninstall At"
          },
          "allowed_actions": {
            "items": {
              "$ref": "#/components/schemas/CommunityPluginAction"
            },
            "type": "array",
            "title": "Allowed Actions"
          }
        },
        "type": "object",
        "required": [
          "install_id",
          "listing_uid",
          "name",
          "status",
          "state",
          "status_changed_at",
          "suspended_at",
          "uninstall_at",
          "allowed_actions"
        ],
        "title": "CommunityPluginStateRead",
        "description": "One of a community's plug-ins as staff see it."
      },
      "CommunityPluginStatusUpdate": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/PluginInstallStatus"
          }
        },
        "type": "object",
        "required": [
          "status"
        ],
        "title": "CommunityPluginStatusUpdate",
        "description": "Set the status of one of a community's plug-ins."
      },
      "CommunityPluginUninstallNotice": {
        "properties": {
          "managed": {
            "type": "boolean",
            "title": "Managed",
            "default": false
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          },
          "action_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Action Url"
          }
        },
        "type": "object",
        "required": [
          "managed",
          "message",
          "action_url"
        ],
        "title": "CommunityPluginUninstallNotice",
        "description": "What to tell somebody about to remove a plug-in, beyond what removing\nany plug-in does.\n\n``managed`` is whether this deployment's entitlement issuer has a say about\nthis plug-in at all: false, and nothing else, for every plug-in whose\nlisting carries no package terms. When it does, ``message`` is the\nissuer's own sentence in the reader's language, shown as it is, or null\nwhen it could not say in time, in which case the client shows its own\nneutral text. ``action_url`` is where to go about it."
      },
      "CommunityPluginUpdate": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enabled"
          },
          "auto_update": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Auto Update"
          },
          "placed_initiative_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Placed Initiative Ids"
          }
        },
        "type": "object",
        "title": "CommunityPluginUpdate"
      },
      "CommunityPluginUpdateRefused": {
        "properties": {
          "version": {
            "type": "string",
            "title": "Version"
          },
          "reason": {
            "type": "string",
            "title": "Reason"
          }
        },
        "type": "object",
        "required": [
          "version",
          "reason"
        ],
        "title": "CommunityPluginUpdateRefused",
        "description": "A newer version than the install's that this server cannot run.\n``reason`` is the ``messages.py`` code of the refusal."
      },
      "CommunityPluginUpgrade": {
        "properties": {
          "version": {
            "type": "string",
            "maxLength": 32,
            "title": "Version"
          },
          "add_scopes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 64,
            "title": "Add Scopes"
          },
          "drop_fields": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 160,
            "title": "Drop Fields"
          },
          "drop_options": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 1024,
            "title": "Drop Options"
          }
        },
        "type": "object",
        "required": [
          "version"
        ],
        "title": "CommunityPluginUpgrade",
        "description": "The seat's consent to a version that asks for more.\n\n``version`` is the version the seat was shown; if the catalog offers a\ndifferent one now, nothing is applied. ``add_scopes`` are the scopes the\nseat grants with it, each requested by that version and within the\nceiling. Consenting to a version's new surfaces alone sends none."
      },
      "CommunityPluginUpgradeAsks": {
        "properties": {
          "version": {
            "type": "string",
            "title": "Version"
          },
          "added_scopes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Added Scopes",
            "default": []
          },
          "added_surfaces": {
            "items": {
              "$ref": "#/components/schemas/PluginSurfaceSummary"
            },
            "type": "array",
            "title": "Added Surfaces",
            "default": []
          },
          "added_tables": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Added Tables",
            "default": []
          },
          "added_fields": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Added Fields",
            "default": []
          },
          "added_options": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Added Options",
            "default": []
          },
          "added_actions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Added Actions",
            "default": []
          },
          "dropped_fields": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Dropped Fields",
            "default": []
          },
          "dropped_options": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Dropped Options",
            "default": []
          },
          "declined": {
            "type": "boolean",
            "title": "Declined",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "version",
          "added_scopes",
          "added_surfaces",
          "added_tables",
          "added_fields",
          "added_options",
          "added_actions",
          "dropped_fields",
          "dropped_options",
          "declined"
        ],
        "title": "CommunityPluginUpgradeAsks",
        "description": "A version that asks for more than the install holds.\n\n``added_scopes`` are grantable scopes neither the grant nor the pinned\nversion names; ``added_surfaces`` are surfaces inside initiatives the\npinned version does not have. ``declined`` says the seat declined this\nversion: the install stays where it is and the sweep does not ask again."
      },
      "CommunityProviderConnectionCreate": {
        "properties": {
          "provider_id": {
            "type": "integer",
            "title": "Provider Id"
          },
          "claim": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Claim"
          },
          "claim_values": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "maxLength": 256
                },
                "type": "array",
                "maxItems": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Claim Values"
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": true
          },
          "auto_join": {
            "type": "boolean",
            "title": "Auto Join",
            "default": false
          },
          "accepts_provider_placement": {
            "type": "boolean",
            "title": "Accepts Provider Placement",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "provider_id"
        ],
        "title": "CommunityProviderConnectionCreate",
        "description": "Connect to one of the providers on offer."
      },
      "CommunityProviderConnectionRead": {
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id"
          },
          "inherited": {
            "type": "boolean",
            "title": "Inherited",
            "default": false
          },
          "provider_id": {
            "type": "integer",
            "title": "Provider Id"
          },
          "provider_slug": {
            "type": "string",
            "title": "Provider Slug"
          },
          "provider_display_name": {
            "type": "string",
            "title": "Provider Display Name"
          },
          "provider_icon": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider Icon"
          },
          "claim": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Claim"
          },
          "claim_values": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Claim Values"
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          },
          "auto_join": {
            "type": "boolean",
            "title": "Auto Join",
            "default": false
          },
          "narrowing_approved": {
            "type": "boolean",
            "title": "Narrowing Approved",
            "default": false
          },
          "accepts_provider_placement": {
            "type": "boolean",
            "title": "Accepts Provider Placement",
            "default": false
          },
          "login_ready": {
            "type": "boolean",
            "title": "Login Ready",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "id",
          "inherited",
          "provider_id",
          "provider_slug",
          "provider_display_name",
          "provider_icon",
          "claim",
          "claim_values",
          "enabled",
          "auto_join",
          "narrowing_approved",
          "accepts_provider_placement",
          "login_ready"
        ],
        "title": "CommunityProviderConnectionRead",
        "description": "One community signing its members in through one provider.\n\nAlso how an arrangement the community has not made itself is shown: the\ndeployment's default for that provider, marked ``inherited``, which the\ncommunity replaces by connecting to the provider itself."
      },
      "CommunityProviderConnectionUpdate": {
        "properties": {
          "claim": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Claim"
          },
          "claim_values": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "maxLength": 256
                },
                "type": "array",
                "maxItems": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Claim Values"
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enabled"
          },
          "auto_join": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Auto Join"
          },
          "accepts_provider_placement": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Accepts Provider Placement"
          }
        },
        "type": "object",
        "title": "CommunityProviderConnectionUpdate",
        "description": "Change the narrowing, or take the button away. The provider a\nconnection is to is not editable: pointing it elsewhere would change who\ngets in without saying so. Disconnect and connect instead."
      },
      "CommunityProviderReach": {
        "properties": {
          "provider_id": {
            "type": "integer",
            "title": "Provider Id"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          }
        },
        "type": "object",
        "required": [
          "provider_id",
          "count"
        ],
        "title": "CommunityProviderReach",
        "description": "How many people in one part of a community have never signed in through\none of its providers."
      },
      "CommunityRead": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "role": {
            "$ref": "#/components/schemas/CommunityRole"
          },
          "can": {
            "$ref": "#/components/schemas/CommunityCan"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          },
          "display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Display Name"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "retention_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Retention Days"
          },
          "max_storage_bytes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Storage Bytes"
          },
          "max_users": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Users"
          },
          "member_count": {
            "type": "integer",
            "title": "Member Count",
            "default": 0
          },
          "max_guests": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Guests"
          },
          "tier_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tier Name"
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommunityStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "content_read_only": {
            "type": "boolean",
            "title": "Content Read Only",
            "default": false
          },
          "timed_out_until": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Timed Out Until"
          },
          "contact_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Contact Email"
          },
          "auth_options": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/CommunityAuthOption"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Auth Options"
          },
          "closed_surfaces": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Closed Surfaces"
          },
          "join_policy": {
            "$ref": "#/components/schemas/CommunityJoinPolicy",
            "default": "private"
          },
          "categories": {
            "items": {
              "$ref": "#/components/schemas/CommunityCategory"
            },
            "type": "array",
            "title": "Categories",
            "default": []
          },
          "has_adult_content": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Has Adult Content"
          },
          "banner": {
            "$ref": "#/components/schemas/CommunityBannerRead",
            "default": {
              "color": "#2563eb",
              "text_color": "#ffffff",
              "text_align": "center",
              "fade": "strong"
            }
          },
          "location": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommunityLocation-Output"
              },
              {
                "type": "null"
              }
            ]
          },
          "online_count": {
            "type": "integer",
            "title": "Online Count",
            "default": 0
          },
          "icon_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon Url"
          },
          "banner_card_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Banner Card Url"
          }
        },
        "type": "object",
        "required": [
          "name",
          "description",
          "id",
          "role",
          "can",
          "position",
          "display_name",
          "created_at",
          "updated_at",
          "retention_days",
          "max_storage_bytes",
          "max_users",
          "member_count",
          "max_guests",
          "tier_name",
          "status",
          "content_read_only",
          "timed_out_until",
          "contact_email",
          "auth_options",
          "closed_surfaces",
          "join_policy",
          "categories",
          "has_adult_content",
          "banner",
          "location",
          "online_count",
          "icon_url",
          "banner_card_url"
        ],
        "title": "CommunityRead",
        "description": "A guild as its own members see it (``GET /communities/`` and friends).\n\nThe payload has two tiers, decided in one place \u2014 ``_serialize_guild`` in\nthe guilds router:\n\n- The fields below with no note are for **every member**: guild identity,\n  the caller's own rung, the roster size, ``content_read_only``.\n- The ones marked ADMIN-ONLY are guild administration \u2014 caps, plan label,\n  retention window, lifecycle status, sign-in entitlement. They back\n  admin-gated surfaces, so a regular member's payload leaves them ``None``.\n  (Operators read the same underlying columns through\n  :class:`PlatformCommunityStorageRead` instead, which is capability-gated.)"
      },
      "CommunityRole": {
        "type": "string",
        "enum": [
          "admin",
          "member",
          "superadmin",
          "guest",
          "support"
        ],
        "title": "CommunityRole"
      },
      "CommunityRosterMember": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id",
            "x-identity": "person"
          },
          "username": {
            "type": "string",
            "title": "Username"
          },
          "discriminator": {
            "type": "integer",
            "title": "Discriminator"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "status": {
            "$ref": "#/components/schemas/UserStatus",
            "default": "active"
          },
          "display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Display Name"
          },
          "profile_decorations": {
            "$ref": "#/components/schemas/ProfileDecorations-Output"
          },
          "custom_status": {
            "$ref": "#/components/schemas/CustomStatus-Output"
          },
          "community_role": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Community Role"
          },
          "presence": {
            "$ref": "#/components/schemas/Presence",
            "default": "offline"
          }
        },
        "type": "object",
        "required": [
          "id",
          "username",
          "discriminator",
          "avatar_url",
          "status",
          "display_name",
          "profile_decorations",
          "custom_status",
          "community_role",
          "presence"
        ],
        "title": "CommunityRosterMember",
        "description": "One person on a community's people roster.\n\n``UserSummary`` plus what a roster row draws beside the name: how they\nappear right now. It is public, as it is on the profile.",
        "x-person": true
      },
      "CommunityRosterResponse": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/CommunityRosterMember"
            },
            "type": "array",
            "title": "Items"
          },
          "presence_counts": {
            "additionalProperties": {
              "type": "integer"
            },
            "propertyNames": {
              "$ref": "#/components/schemas/Presence"
            },
            "type": "object",
            "title": "Presence Counts"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items",
          "presence_counts"
        ],
        "title": "CommunityRosterResponse",
        "description": "A page of the roster, and how many people are in each presence group\nacross every page, so a group's heading can count people not yet loaded."
      },
      "CommunityRowSet": {
        "properties": {
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "category": {
            "$ref": "#/components/schemas/NotificationCategory"
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          }
        },
        "type": "object",
        "required": [
          "community_id",
          "category",
          "enabled"
        ],
        "title": "CommunityRowSet",
        "description": "One row switched on or off in one community, on every channel."
      },
      "CommunitySettingsResponse": {
        "properties": {
          "community_directory_enabled": {
            "type": "boolean",
            "title": "Community Directory Enabled"
          },
          "age_gate_enabled": {
            "type": "boolean",
            "title": "Age Gate Enabled"
          },
          "default_dm_policy": {
            "$ref": "#/components/schemas/DmPolicy"
          },
          "direct_messages_enabled": {
            "type": "boolean",
            "title": "Direct Messages Enabled"
          },
          "deleted_community_retention_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Deleted Community Retention Days"
          },
          "deleted_account_retention_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Deleted Account Retention Days"
          },
          "on_hold_community_deletion_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "On Hold Community Deletion Days"
          },
          "engagement_ranking_enabled": {
            "type": "boolean",
            "title": "Engagement Ranking Enabled"
          },
          "guests_enabled": {
            "type": "boolean",
            "title": "Guests Enabled"
          },
          "max_guest_days": {
            "type": "integer",
            "title": "Max Guest Days"
          },
          "public_registration_enabled": {
            "type": "boolean",
            "title": "Public Registration Enabled"
          },
          "community_creation_enabled": {
            "type": "boolean",
            "title": "Community Creation Enabled"
          },
          "community_creation_daily_limit": {
            "type": "integer",
            "title": "Community Creation Daily Limit"
          },
          "community_export_cooldown_hours": {
            "type": "integer",
            "title": "Community Export Cooldown Hours"
          },
          "history_days": {
            "type": "integer",
            "title": "History Days"
          }
        },
        "type": "object",
        "required": [
          "community_directory_enabled",
          "age_gate_enabled",
          "default_dm_policy",
          "direct_messages_enabled",
          "deleted_community_retention_days",
          "deleted_account_retention_days",
          "on_hold_community_deletion_days",
          "engagement_ranking_enabled",
          "guests_enabled",
          "max_guest_days",
          "public_registration_enabled",
          "community_creation_enabled",
          "community_creation_daily_limit",
          "community_export_cooldown_hours",
          "history_days"
        ],
        "title": "CommunitySettingsResponse",
        "description": "Whether this deployment runs a community directory.\n\nRead back by the owner's settings page after a write; everyone else learns\nthe same fact from ``GET /config``, which is where the SPA reads it to\ndecide whether to offer the directory at all."
      },
      "CommunitySettingsUpdate": {
        "properties": {
          "community_directory_enabled": {
            "type": "boolean",
            "title": "Community Directory Enabled"
          },
          "age_gate_enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Age Gate Enabled"
          },
          "default_dm_policy": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DmPolicy"
              },
              {
                "type": "null"
              }
            ]
          },
          "direct_messages_enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Direct Messages Enabled"
          },
          "engagement_ranking_enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Engagement Ranking Enabled"
          },
          "deleted_community_retention_days": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 3650.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Deleted Community Retention Days"
          },
          "deleted_account_retention_days": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 3650.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Deleted Account Retention Days"
          },
          "on_hold_community_deletion_days": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 3650.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "On Hold Community Deletion Days"
          },
          "guests_enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Guests Enabled"
          },
          "max_guest_days": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 3650.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Guest Days"
          },
          "public_registration_enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Public Registration Enabled"
          },
          "community_creation_enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Community Creation Enabled"
          },
          "community_creation_daily_limit": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 1000.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Community Creation Daily Limit"
          },
          "community_export_cooldown_hours": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 8760.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Community Export Cooldown Hours"
          },
          "history_days": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 3650.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "History Days"
          }
        },
        "type": "object",
        "required": [
          "community_directory_enabled"
        ],
        "title": "CommunitySettingsUpdate"
      },
      "CommunityStatus": {
        "type": "string",
        "enum": [
          "active",
          "read_only",
          "suspended",
          "on_hold",
          "deleted"
        ],
        "title": "CommunityStatus",
        "description": "Lifecycle status of a guild.\n\nThe first four are operator-set from the platform Guilds tab (platform\n`communities.manage`) and are freely interchangeable:\n\n- ``active``: normal operation.\n- ``read_only``: members keep read access to content but writes are denied\n  at the Postgres role level (routed into ``guild_<id>_ro``).\n- ``suspended``: the guild is in time out. Nobody in it reaches anything\n  in it \u2014 content or settings, members and admins alike \u2014 and only the\n  platform lifts it. It vanishes from members' guild lists; its admins\n  keep a closed entry, so they can tell a time out from a loss. Set by\n  the platform operator alone; the billing service cannot.\n- ``on_hold``: the guild is held for a significantly late payment. Nobody\n  in it reaches it, its admins included, and it is absent from every\n  member's guild list. Its superadmins are told once, on the way in, whom\n  to contact. Set by the billing service, or by the operator.\n\nGuild admins keep the settings surface (billing / data ownership / danger\nzone) under ``active`` and ``read_only`` only.\n\nThe fifth is not:\n\n- ``deleted``: the guild has been deleted and is being retained for\n  :data:`~app.services.platform.retention.COMMUNITY_DELETION` before\n  it is destroyed. Nobody in the guild reaches it, its admins included,\n  and it is absent from every member's guild list.\n\n  Reached only through deletion and left only through restore, both of\n  which do more than move a column, so it is deliberately not offered in\n  the operator's status control and a PATCH that names it is refused.\n\nPAM/break-glass grants deliberately override all of this: a grantee\nbehaves exactly as against an active guild (the resolver's grant branch\nnever consults the status), so no status can lock the platform operators\nout \u2014 which is what lets an operator look inside a deleted guild before\ndeciding whether to bring it back. The status is not serialized to guild\nmembers."
      },
      "CommunityStorageUsageRead": {
        "properties": {
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "usage_bytes": {
            "type": "integer",
            "title": "Usage Bytes"
          }
        },
        "type": "object",
        "required": [
          "community_id",
          "usage_bytes"
        ],
        "title": "CommunityStorageUsageRead"
      },
      "CommunitySuspensionUpdate": {
        "properties": {
          "suspended": {
            "type": "boolean",
            "title": "Suspended"
          }
        },
        "type": "object",
        "required": [
          "suspended"
        ],
        "title": "CommunitySuspensionUpdate",
        "description": "Suspend a community, or one of its plug-ins, or lift the suspension."
      },
      "CommunityTaskBreakdown": {
        "properties": {
          "community_id": {
            "type": "integer",
            "title": "Community Id",
            "description": "Guild ID"
          },
          "community_name": {
            "type": "string",
            "title": "Community Name",
            "description": "Guild name"
          },
          "completed_count": {
            "type": "integer",
            "title": "Completed Count",
            "description": "Number of completed tasks in this guild"
          }
        },
        "type": "object",
        "required": [
          "community_id",
          "community_name",
          "completed_count"
        ],
        "title": "CommunityTaskBreakdown",
        "description": "Task completion breakdown by guild."
      },
      "CommunityTimeoutWrite": {
        "properties": {
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "title": "Ends At"
          }
        },
        "type": "object",
        "required": [
          "ends_at"
        ],
        "title": "CommunityTimeoutWrite",
        "description": "When a timeout ends, with its offset: an instant, not a wall-clock time."
      },
      "CommunityUpdate": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "retention_days": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 3650.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Retention Days"
          },
          "join_policy": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommunityJoinPolicy"
              },
              {
                "type": "null"
              }
            ]
          },
          "categories": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/CommunityCategory"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Categories"
          },
          "banner": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommunityBannerWrite"
              },
              {
                "type": "null"
              }
            ]
          },
          "location": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommunityLocation-Input"
              },
              {
                "type": "null"
              }
            ]
          },
          "has_adult_content": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Has Adult Content"
          }
        },
        "type": "object",
        "title": "CommunityUpdate"
      },
      "ConnectableProviderRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "display_name": {
            "type": "string",
            "title": "Display Name"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "login_ready": {
            "type": "boolean",
            "title": "Login Ready",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "id",
          "display_name",
          "icon",
          "login_ready"
        ],
        "title": "ConnectableProviderRead",
        "description": "One provider a community may connect to, as the community sees it.\n\nDeliberately less than the operator's view: a community picks a provider by\nname. It holds no issuer and no client id, so it is shown neither \u2014 which\nalso keeps one customer's identity provider out of another's list."
      },
      "ConnectingApp": {
        "type": "string",
        "enum": [
          "desktop",
          "phone"
        ],
        "title": "ConnectingApp",
        "description": "The app starting a flow, which says how it can be handed back\n(``plugin_connection_flows.app_handback``)."
      },
      "ConnectionRequestCreate": {
        "properties": {
          "username": {
            "type": "string",
            "title": "Username"
          },
          "discriminator": {
            "type": "integer",
            "title": "Discriminator"
          }
        },
        "type": "object",
        "required": [
          "username",
          "discriminator"
        ],
        "title": "ConnectionRequestCreate",
        "description": "A connection is addressed by handle, never by id.\n\nOne shape whatever the target's policy, and the shape the app-wide people\nsearch will use: an account on ``private`` is reached by somebody typing\nits handle rather than by being offered from a list."
      },
      "ConnectionScope": {
        "type": "string",
        "enum": [
          "platform",
          "community"
        ],
        "title": "ConnectionScope",
        "description": "Which table a connection lives in \u2014 ``platform`` = the shared\n``platform_ai_connections`` row, ``community`` = a ``guild_ai_connections`` row."
      },
      "ConsentAccess": {
        "type": "string",
        "enum": [
          "read",
          "read_write"
        ],
        "title": "ConsentAccess",
        "description": "How deeply a plug-in may act as the member."
      },
      "ConsentStatus": {
        "type": "string",
        "enum": [
          "pending",
          "granted",
          "declined",
          "revoked"
        ],
        "title": "ConsentStatus",
        "description": "Where a request stands, read off its columns."
      },
      "ContactAddress": {
        "properties": {
          "label": {
            "type": "string",
            "maxLength": 40,
            "title": "Label",
            "default": ""
          },
          "value": {
            "type": "string",
            "maxLength": 1000,
            "minLength": 1,
            "title": "Value"
          }
        },
        "type": "object",
        "required": [
          "value"
        ],
        "title": "ContactAddress",
        "description": "An address, as one block of text written as it is on an envelope, so\nany country's form fits."
      },
      "ContactCreate": {
        "properties": {
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertyValueInput"
            },
            "type": "array",
            "title": "Properties"
          },
          "name": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "Name"
          },
          "is_organization": {
            "type": "boolean",
            "title": "Is Organization",
            "default": false
          },
          "emails": {
            "items": {
              "$ref": "#/components/schemas/ContactEmail"
            },
            "type": "array",
            "maxItems": 20,
            "title": "Emails"
          },
          "phones": {
            "items": {
              "$ref": "#/components/schemas/ContactPhone"
            },
            "type": "array",
            "maxItems": 20,
            "title": "Phones"
          },
          "addresses": {
            "items": {
              "$ref": "#/components/schemas/ContactAddress"
            },
            "type": "array",
            "maxItems": 20,
            "title": "Addresses"
          },
          "websites": {
            "items": {
              "$ref": "#/components/schemas/ContactWebsite"
            },
            "type": "array",
            "maxItems": 20,
            "title": "Websites"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "tag_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tag Ids"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantSchema"
            },
            "type": "array",
            "title": "Grants"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "ContactCreate"
      },
      "ContactCsvColumn": {
        "properties": {
          "column": {
            "type": "integer",
            "exclusiveMaximum": 1000.0,
            "minimum": 0.0,
            "title": "Column"
          },
          "target": {
            "$ref": "#/components/schemas/ContactCsvTarget"
          },
          "label_column": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMaximum": 1000.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Label Column"
          },
          "property_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Property Id"
          }
        },
        "type": "object",
        "required": [
          "column",
          "target"
        ],
        "title": "ContactCsvColumn",
        "description": "One column of a spreadsheet of contacts, and what it holds. A column\nnamed by none of them is left out.\n\nSeveral columns may hold one target: the names are joined with a space,\na detail's values are kept in column order, and tags are read from each."
      },
      "ContactCsvImportRequest": {
        "properties": {
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "content": {
            "type": "string",
            "title": "Content"
          },
          "columns": {
            "items": {
              "$ref": "#/components/schemas/ContactCsvColumn"
            },
            "type": "array",
            "maxItems": 1000,
            "title": "Columns"
          }
        },
        "type": "object",
        "required": [
          "content",
          "columns"
        ],
        "title": "ContactCsvImportRequest",
        "description": "Body of ``POST /imports/contacts``: the spreadsheet, sent back with\nwhat its columns hold, and where its contacts go \u2014 an initiative, or with\nnone the community's contacts."
      },
      "ContactCsvPreview": {
        "properties": {
          "headers": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Headers"
          },
          "row_count": {
            "type": "integer",
            "title": "Row Count"
          },
          "samples": {
            "items": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "type": "array",
            "title": "Samples"
          },
          "columns": {
            "items": {
              "$ref": "#/components/schemas/ContactCsvColumn"
            },
            "type": "array",
            "title": "Columns"
          }
        },
        "type": "object",
        "required": [
          "headers",
          "row_count",
          "samples",
          "columns"
        ],
        "title": "ContactCsvPreview",
        "description": "A spreadsheet of contacts, read without keeping it: its header, how\nmany rows it holds, the first few of them, and what each column looks\nlike it holds."
      },
      "ContactCsvTarget": {
        "type": "string",
        "enum": [
          "name",
          "type",
          "emails",
          "phones",
          "addresses",
          "websites",
          "organization",
          "tags",
          "property"
        ],
        "title": "ContactCsvTarget",
        "description": "What a spreadsheet column of contacts holds. The four details take\ntheir field's name, as a contact names them."
      },
      "ContactDetail": {
        "properties": {
          "label": {
            "type": "string",
            "maxLength": 40,
            "title": "Label",
            "default": ""
          },
          "value": {
            "type": "string",
            "maxLength": 1000,
            "minLength": 1,
            "title": "Value"
          }
        },
        "type": "object",
        "required": [
          "value"
        ],
        "title": "ContactDetail",
        "description": "One of a contact's details: its value, and a short label saying which\none it is."
      },
      "ContactEmail": {
        "properties": {
          "label": {
            "type": "string",
            "maxLength": 40,
            "title": "Label",
            "default": ""
          },
          "value": {
            "type": "string",
            "format": "email",
            "title": "Value"
          }
        },
        "type": "object",
        "required": [
          "value"
        ],
        "title": "ContactEmail"
      },
      "ContactGrantRead": {
        "properties": {
          "user_id": {
            "type": "integer",
            "title": "User Id"
          },
          "username": {
            "type": "string",
            "title": "Username"
          },
          "discriminator": {
            "type": "integer",
            "title": "Discriminator"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "status": {
            "$ref": "#/components/schemas/UserStatus",
            "default": "active"
          },
          "presence": {
            "$ref": "#/components/schemas/Presence",
            "default": "offline"
          },
          "profile_decorations": {
            "$ref": "#/components/schemas/ProfileDecorations-Output"
          },
          "state": {
            "type": "string",
            "title": "State"
          },
          "outgoing": {
            "type": "boolean",
            "title": "Outgoing"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "responded_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Responded At"
          }
        },
        "type": "object",
        "required": [
          "user_id",
          "username",
          "discriminator",
          "avatar_url",
          "status",
          "presence",
          "profile_decorations",
          "state",
          "outgoing",
          "created_at",
          "responded_at"
        ],
        "title": "ContactGrantRead",
        "description": "One connection or message request, from the reader's side of it."
      },
      "ContactGrantsResponse": {
        "properties": {
          "accepted": {
            "items": {
              "$ref": "#/components/schemas/ContactGrantRead"
            },
            "type": "array",
            "title": "Accepted"
          },
          "incoming": {
            "items": {
              "$ref": "#/components/schemas/ContactGrantRead"
            },
            "type": "array",
            "title": "Incoming"
          },
          "outgoing": {
            "items": {
              "$ref": "#/components/schemas/ContactGrantRead"
            },
            "type": "array",
            "title": "Outgoing"
          }
        },
        "type": "object",
        "required": [
          "accepted",
          "incoming",
          "outgoing"
        ],
        "title": "ContactGrantsResponse"
      },
      "ContactListResponse": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/ContactSummary"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items"
        ],
        "title": "ContactListResponse"
      },
      "ContactOrganization": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "title": "ContactOrganization",
        "description": "The organization a person is ``part_of``."
      },
      "ContactPhone": {
        "properties": {
          "label": {
            "type": "string",
            "maxLength": 40,
            "title": "Label",
            "default": ""
          },
          "value": {
            "type": "string",
            "maxLength": 40,
            "minLength": 1,
            "title": "Value"
          }
        },
        "type": "object",
        "required": [
          "value"
        ],
        "title": "ContactPhone"
      },
      "ContactRead": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_kind": {
            "$ref": "#/components/schemas/ActorKind"
          },
          "created_by_install": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Install"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "can": {
            "$ref": "#/components/schemas/ToolCan"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id",
            "x-identity": "community"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "comments_enabled": {
            "type": "boolean",
            "title": "Comments Enabled",
            "default": true
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagSummary"
            },
            "type": "array",
            "title": "Tags"
          },
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertySummary"
            },
            "type": "array",
            "title": "Properties"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantSchema"
            },
            "type": "array",
            "title": "Grants"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "is_organization": {
            "type": "boolean",
            "title": "Is Organization",
            "default": false
          },
          "emails": {
            "items": {
              "$ref": "#/components/schemas/ContactDetail"
            },
            "type": "array",
            "title": "Emails"
          },
          "phones": {
            "items": {
              "$ref": "#/components/schemas/ContactDetail"
            },
            "type": "array",
            "title": "Phones"
          },
          "addresses": {
            "items": {
              "$ref": "#/components/schemas/ContactDetail"
            },
            "type": "array",
            "title": "Addresses"
          },
          "websites": {
            "items": {
              "$ref": "#/components/schemas/ContactWebsite"
            },
            "type": "array",
            "title": "Websites"
          },
          "organization": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContactOrganization"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "created_by",
          "created_by_kind",
          "created_by_install",
          "archived_at",
          "can",
          "id",
          "community_id",
          "created_at",
          "updated_at",
          "comments_enabled",
          "tags",
          "properties",
          "grants",
          "initiative_id",
          "name",
          "is_organization",
          "emails",
          "phones",
          "addresses",
          "websites",
          "organization"
        ],
        "title": "ContactRead"
      },
      "ContactSummary": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_kind": {
            "$ref": "#/components/schemas/ActorKind"
          },
          "created_by_install": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Install"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "can": {
            "$ref": "#/components/schemas/ToolCan"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id",
            "x-identity": "community"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "comments_enabled": {
            "type": "boolean",
            "title": "Comments Enabled",
            "default": true
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagSummary"
            },
            "type": "array",
            "title": "Tags"
          },
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertySummary"
            },
            "type": "array",
            "title": "Properties"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantSchema"
            },
            "type": "array",
            "title": "Grants"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "is_organization": {
            "type": "boolean",
            "title": "Is Organization",
            "default": false
          },
          "emails": {
            "items": {
              "$ref": "#/components/schemas/ContactDetail"
            },
            "type": "array",
            "title": "Emails"
          },
          "phones": {
            "items": {
              "$ref": "#/components/schemas/ContactDetail"
            },
            "type": "array",
            "title": "Phones"
          },
          "addresses": {
            "items": {
              "$ref": "#/components/schemas/ContactDetail"
            },
            "type": "array",
            "title": "Addresses"
          },
          "websites": {
            "items": {
              "$ref": "#/components/schemas/ContactWebsite"
            },
            "type": "array",
            "title": "Websites"
          },
          "organization": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContactOrganization"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "created_by",
          "created_by_kind",
          "created_by_install",
          "archived_at",
          "can",
          "id",
          "community_id",
          "created_at",
          "updated_at",
          "comments_enabled",
          "tags",
          "properties",
          "grants",
          "initiative_id",
          "name",
          "is_organization",
          "emails",
          "phones",
          "addresses",
          "websites",
          "organization"
        ],
        "title": "ContactSummary"
      },
      "ContactUpdate": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "is_organization": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Organization"
          },
          "emails": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ContactEmail"
                },
                "type": "array",
                "maxItems": 20
              },
              {
                "type": "null"
              }
            ],
            "title": "Emails"
          },
          "phones": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ContactPhone"
                },
                "type": "array",
                "maxItems": 20
              },
              {
                "type": "null"
              }
            ],
            "title": "Phones"
          },
          "addresses": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ContactAddress"
                },
                "type": "array",
                "maxItems": 20
              },
              {
                "type": "null"
              }
            ],
            "title": "Addresses"
          },
          "websites": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ContactWebsite"
                },
                "type": "array",
                "maxItems": 20
              },
              {
                "type": "null"
              }
            ],
            "title": "Websites"
          }
        },
        "type": "object",
        "title": "ContactUpdate",
        "description": "A change to a contact. Only what is sent is written; a list sent\nreplaces the one there."
      },
      "ContactWebsite": {
        "properties": {
          "label": {
            "type": "string",
            "maxLength": 40,
            "title": "Label",
            "default": ""
          },
          "value": {
            "type": "string",
            "maxLength": 2048,
            "minLength": 1,
            "title": "Value"
          }
        },
        "type": "object",
        "required": [
          "value"
        ],
        "title": "ContactWebsite"
      },
      "ContentCan": {
        "properties": {
          "edit": {
            "type": "boolean",
            "title": "Edit",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "edit"
        ],
        "title": "ContentCan",
        "description": "What the caller may do to a piece of content, as the server answers it.\n\nEach flag is the check the route that does the thing runs, so a client\nreads its affordances here rather than working them out from a rung."
      },
      "ContentHoldRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "target_type": {
            "type": "string",
            "title": "Target Type"
          },
          "target_id": {
            "type": "integer",
            "title": "Target Id"
          },
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Label"
          },
          "case_task_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Case Task Id"
          },
          "placed_via": {
            "$ref": "#/components/schemas/HoldVia"
          },
          "reason": {
            "$ref": "#/components/schemas/HoldReason"
          },
          "legal_basis": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LegalBasis"
              },
              {
                "type": "null"
              }
            ]
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          },
          "placed_at": {
            "type": "string",
            "format": "date-time",
            "title": "Placed At"
          },
          "released_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Released At"
          },
          "release_outcome": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HoldRelease"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "id",
          "target_type",
          "target_id",
          "placed_via",
          "reason",
          "placed_at"
        ],
        "title": "ContentHoldRead",
        "description": "One hold, as the platform reads it."
      },
      "ContentKind": {
        "type": "string",
        "enum": [
          "project",
          "file",
          "calendar",
          "dashboard",
          "post",
          "wiki",
          "contact",
          "form",
          "task",
          "calendar_event",
          "wiki_page",
          "collection",
          "form_response"
        ],
        "title": "ContentKind"
      },
      "ControlKind": {
        "type": "string",
        "enum": [
          "select",
          "task_status",
          "task_type",
          "task",
          "member",
          "tag",
          "project",
          "initiative",
          "calendar",
          "reference",
          "property",
          "property_value",
          "date",
          "boolean",
          "number",
          "text"
        ],
        "title": "ControlKind",
        "description": "Which control fills this field.\n\nA presentation fact, kept here rather than on the client because it belongs\nto the field: that an assignee is chosen from a member picker is true of the\nfield, not of any one screen that offers it.\n\n**Declared in the order a client lists them** \u2014 related controls together,\nfree text last. That ordering is read straight off this enum, so adding a\ncontrol in the right place is all there is to placing it."
      },
      "Conversation": {
        "type": "string",
        "enum": [
          "none",
          "staff_first",
          "open"
        ],
        "title": "Conversation",
        "description": "Whether the people handling a case and the person who filed it talk."
      },
      "CookieCategory": {
        "type": "string",
        "enum": [
          "analytics",
          "marketing"
        ],
        "title": "CookieCategory",
        "description": "A kind of optional storage a visitor can be asked about.\n\nThe vocabulary, not the offer \u2014 see the module docstring. Frontend labels\nare keyed on these values and a drift test keeps the two in step."
      },
      "CookieConsentRead": {
        "properties": {
          "granted": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Granted"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          },
          "decided_at": {
            "type": "string",
            "format": "date-time",
            "title": "Decided At"
          }
        },
        "type": "object",
        "required": [
          "granted",
          "version",
          "decided_at"
        ],
        "title": "CookieConsentRead",
        "description": "What an account allows to be kept in a browser, and when it said so."
      },
      "CookieConsentUpdate": {
        "properties": {
          "granted": {
            "items": {
              "$ref": "#/components/schemas/CookieCategory"
            },
            "type": "array",
            "title": "Granted"
          },
          "version": {
            "type": "integer",
            "title": "Version"
          }
        },
        "type": "object",
        "required": [
          "version"
        ],
        "title": "CookieConsentUpdate",
        "description": "An answer given in one browser, for the account to carry to the rest."
      },
      "CounterLook": {
        "type": "string",
        "enum": [
          "number",
          "bar",
          "clock"
        ],
        "title": "CounterLook",
        "description": "How a counter field is drawn: a number, a progress bar or a segmented\nclock. A bar and a clock need both bounds; a counter without them is\ndrawn as a number."
      },
      "CounterSettings-Input": {
        "properties": {
          "step": {
            "type": "number",
            "exclusiveMinimum": 0.0,
            "title": "Step",
            "default": 1
          },
          "min": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Min"
          },
          "max": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max"
          },
          "initial": {
            "type": "number",
            "title": "Initial",
            "default": 0
          },
          "look": {
            "$ref": "#/components/schemas/CounterLook",
            "default": "number"
          }
        },
        "type": "object",
        "title": "CounterSettings",
        "description": "How a counter field moves: by ``step`` a tap, never past ``min`` or\n``max``, and back to ``initial`` on a reset. A counter with no value\nholds ``initial``. ``look`` is how it is drawn wherever a list's layout\nsays nothing else."
      },
      "CounterSettings-Output": {
        "properties": {
          "step": {
            "type": "number",
            "exclusiveMinimum": 0.0,
            "title": "Step",
            "default": 1
          },
          "min": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Min"
          },
          "max": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max"
          },
          "initial": {
            "type": "number",
            "title": "Initial",
            "default": 0
          },
          "look": {
            "$ref": "#/components/schemas/CounterLook",
            "default": "number"
          }
        },
        "type": "object",
        "required": [
          "step",
          "min",
          "max",
          "initial",
          "look"
        ],
        "title": "CounterSettings",
        "description": "How a counter field moves: by ``step`` a tap, never past ``min`` or\n``max``, and back to ``initial`` on a reset. A counter with no value\nholds ``initial``. ``look`` is how it is drawn wherever a list's layout\nsays nothing else."
      },
      "CreditSpenderRead": {
        "properties": {
          "spender": {
            "type": "string",
            "title": "Spender"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "credits": {
            "type": "number",
            "title": "Credits"
          }
        },
        "type": "object",
        "required": [
          "spender",
          "name",
          "credits"
        ],
        "title": "CreditSpenderRead",
        "description": "What one spender used this month: a plug-in, by its listing's name, or\nthe platform's AI (``platform``, with no name)."
      },
      "CurrencyCode": {
        "type": "string",
        "enum": [
          "AED",
          "AFN",
          "ALL",
          "AMD",
          "AOA",
          "ARS",
          "AUD",
          "AWG",
          "AZN",
          "BAM",
          "BBD",
          "BDT",
          "BHD",
          "BIF",
          "BMD",
          "BND",
          "BOB",
          "BRL",
          "BSD",
          "BTN",
          "BWP",
          "BYN",
          "BZD",
          "CAD",
          "CDF",
          "CHF",
          "CLP",
          "CNY",
          "COP",
          "CRC",
          "CUP",
          "CVE",
          "CZK",
          "DJF",
          "DKK",
          "DOP",
          "DZD",
          "EGP",
          "ERN",
          "ETB",
          "EUR",
          "FJD",
          "FKP",
          "GBP",
          "GEL",
          "GHS",
          "GIP",
          "GMD",
          "GNF",
          "GTQ",
          "GYD",
          "HKD",
          "HNL",
          "HTG",
          "HUF",
          "IDR",
          "ILS",
          "INR",
          "IQD",
          "IRR",
          "ISK",
          "JMD",
          "JOD",
          "JPY",
          "KES",
          "KGS",
          "KHR",
          "KMF",
          "KPW",
          "KRW",
          "KWD",
          "KYD",
          "KZT",
          "LAK",
          "LBP",
          "LKR",
          "LRD",
          "LSL",
          "LYD",
          "MAD",
          "MDL",
          "MGA",
          "MKD",
          "MMK",
          "MNT",
          "MOP",
          "MRU",
          "MUR",
          "MVR",
          "MWK",
          "MXN",
          "MYR",
          "MZN",
          "NAD",
          "NGN",
          "NIO",
          "NOK",
          "NPR",
          "NZD",
          "OMR",
          "PAB",
          "PEN",
          "PGK",
          "PHP",
          "PKR",
          "PLN",
          "PYG",
          "QAR",
          "RON",
          "RSD",
          "RUB",
          "RWF",
          "SAR",
          "SBD",
          "SCR",
          "SDG",
          "SEK",
          "SGD",
          "SHP",
          "SLE",
          "SOS",
          "SRD",
          "SSP",
          "STN",
          "SVC",
          "SYP",
          "SZL",
          "THB",
          "TJS",
          "TMT",
          "TND",
          "TOP",
          "TRY",
          "TTD",
          "TWD",
          "TZS",
          "UAH",
          "UGX",
          "USD",
          "UYU",
          "UZS",
          "VED",
          "VES",
          "VND",
          "VUV",
          "WST",
          "XAF",
          "XCD",
          "XCG",
          "XOF",
          "XPF",
          "YER",
          "ZAR",
          "ZMW",
          "ZWG"
        ],
        "title": "CurrencyCode",
        "description": "The ISO 4217 code a money property's amounts are in."
      },
      "CustomRoleAssignment": {
        "properties": {
          "role_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Role Id"
          }
        },
        "type": "object",
        "title": "CustomRoleAssignment"
      },
      "CustomRoleClaimRuleCreate": {
        "properties": {
          "provider_id": {
            "type": "integer",
            "title": "Provider Id"
          },
          "claim_value": {
            "type": "string",
            "maxLength": 500,
            "minLength": 1,
            "title": "Claim Value"
          },
          "role_id": {
            "type": "integer",
            "title": "Role Id"
          }
        },
        "type": "object",
        "required": [
          "provider_id",
          "claim_value",
          "role_id"
        ],
        "title": "CustomRoleClaimRuleCreate"
      },
      "CustomRoleClaimRuleOrder": {
        "properties": {
          "rule_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Rule Ids"
          }
        },
        "type": "object",
        "required": [
          "rule_ids"
        ],
        "title": "CustomRoleClaimRuleOrder"
      },
      "CustomRoleClaimRuleRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "provider_id": {
            "type": "integer",
            "title": "Provider Id"
          },
          "claim_value": {
            "type": "string",
            "title": "Claim Value"
          },
          "role_id": {
            "type": "integer",
            "title": "Role Id"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          }
        },
        "type": "object",
        "required": [
          "id",
          "provider_id",
          "claim_value",
          "role_id",
          "position"
        ],
        "title": "CustomRoleClaimRuleRead"
      },
      "CustomRoleClaimRuleUpdate": {
        "properties": {
          "claim_value": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Claim Value"
          },
          "role_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Role Id"
          }
        },
        "type": "object",
        "title": "CustomRoleClaimRuleUpdate",
        "description": "Change the group a rule reads or the role it gives. Its provider and\nits place in the order are not changed here."
      },
      "CustomRoleCreate": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1,
            "title": "Name"
          },
          "base_rung": {
            "$ref": "#/components/schemas/CommunityRole"
          },
          "surfaces": {
            "items": {
              "$ref": "#/components/schemas/AdminSurface"
            },
            "type": "array",
            "title": "Surfaces"
          },
          "plugin_permissions": {
            "items": {
              "$ref": "#/components/schemas/PluginPermissionRef"
            },
            "type": "array",
            "maxItems": 1000,
            "title": "Plugin Permissions"
          }
        },
        "type": "object",
        "required": [
          "name",
          "base_rung"
        ],
        "title": "CustomRoleCreate"
      },
      "CustomRoleHolder": {
        "properties": {
          "user_id": {
            "type": "integer",
            "title": "User Id"
          },
          "role_id": {
            "type": "integer",
            "title": "Role Id"
          }
        },
        "type": "object",
        "required": [
          "user_id",
          "role_id"
        ],
        "title": "CustomRoleHolder"
      },
      "CustomRoleRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "base_rung": {
            "$ref": "#/components/schemas/CommunityRole"
          },
          "surfaces": {
            "items": {
              "$ref": "#/components/schemas/AdminSurface"
            },
            "type": "array",
            "title": "Surfaces"
          },
          "plugin_permissions": {
            "items": {
              "$ref": "#/components/schemas/PluginPermissionRef"
            },
            "type": "array",
            "title": "Plugin Permissions",
            "default": []
          },
          "set_by": {
            "$ref": "#/components/schemas/SetBy"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "base_rung",
          "surfaces",
          "set_by"
        ],
        "title": "CustomRoleRead"
      },
      "CustomRoleUpdate": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "surfaces": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/AdminSurface"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Surfaces"
          },
          "plugin_permissions": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/PluginPermissionRef"
                },
                "type": "array",
                "maxItems": 1000
              },
              {
                "type": "null"
              }
            ],
            "title": "Plugin Permissions"
          }
        },
        "type": "object",
        "title": "CustomRoleUpdate"
      },
      "CustomStatus-Input": {
        "properties": {
          "emoji": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Emoji"
          },
          "text": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40
              },
              {
                "type": "null"
              }
            ],
            "title": "Text"
          },
          "clear_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Clear At"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "CustomStatus",
        "description": "What a person is up to, in their own words.\n\nOne object, stored in one column, because it is one thing a person sets\nand one thing every surface that names them renders: splitting it in two\nwould mean two reads and two writes for a single line of text.\n\nNot to be confused with ``UserStatus`` (``users.status``), which is the\naccount's standing \u2014 suspended, deactivated \u2014 and is not the person's to\nwrite."
      },
      "CustomStatus-Output": {
        "properties": {
          "emoji": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Emoji"
          },
          "text": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40
              },
              {
                "type": "null"
              }
            ],
            "title": "Text"
          },
          "clear_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Clear At"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "emoji",
          "text",
          "clear_at"
        ],
        "title": "CustomStatus",
        "description": "What a person is up to, in their own words.\n\nOne object, stored in one column, because it is one thing a person sets\nand one thing every surface that names them renders: splitting it in two\nwould mean two reads and two writes for a single line of text.\n\nNot to be confused with ``UserStatus`` (``users.status``), which is the\naccount's standing \u2014 suspended, deactivated \u2014 and is not the person's to\nwrite."
      },
      "DashboardCreate": {
        "properties": {
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertyValueInput"
            },
            "type": "array",
            "title": "Properties"
          },
          "name": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "tag_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tag Ids"
          },
          "listing_uid": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 14
              },
              {
                "type": "null"
              }
            ],
            "title": "Listing Uid"
          },
          "definition": {
            "additionalProperties": true,
            "type": "object",
            "title": "Definition"
          },
          "config": {
            "additionalProperties": true,
            "type": "object",
            "title": "Config"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantSchema"
            },
            "type": "array",
            "title": "Grants"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "DashboardCreate"
      },
      "DashboardDataResponse": {
        "properties": {
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "widgets": {
            "additionalProperties": {
              "$ref": "#/components/schemas/DashboardWidgetData"
            },
            "type": "object",
            "title": "Widgets"
          }
        },
        "type": "object",
        "required": [
          "initiative_id",
          "widgets"
        ],
        "title": "DashboardDataResponse",
        "description": "Every widget on a canvas that reads data, answered together, keyed by\nwidget id."
      },
      "DashboardInstalledListings": {
        "properties": {
          "counts": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Counts"
          }
        },
        "type": "object",
        "required": [
          "counts"
        ],
        "title": "DashboardInstalledListings",
        "description": "How many dashboards in this guild came from each marketplace listing.\n\nKeyed by listing uid, because that is what an install pins. Answered here\nrather than by the catalog: which listings a guild has is guild data, and the\ncatalog holds none of it. Small and unpaginated by construction \u2014 one entry\nper distinct listing, not per dashboard \u2014 so a browse surface can mark what\nis already installed without walking the dashboard list."
      },
      "DashboardListResponse": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/DashboardSummary"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items"
        ],
        "title": "DashboardListResponse"
      },
      "DashboardPreview": {
        "properties": {
          "definition": {
            "additionalProperties": true,
            "type": "object",
            "title": "Definition"
          },
          "config": {
            "additionalProperties": true,
            "type": "object",
            "title": "Config"
          }
        },
        "type": "object",
        "required": [
          "definition",
          "config"
        ],
        "title": "DashboardPreview",
        "description": "A dashboard as a list's card draws it: its canvas alone. Every widget\ndraws from sample data there, so a list runs none of their queries."
      },
      "DashboardRead": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_kind": {
            "$ref": "#/components/schemas/ActorKind"
          },
          "created_by_install": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Install"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "can": {
            "$ref": "#/components/schemas/ToolCan"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id",
            "x-identity": "community"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "comments_enabled": {
            "type": "boolean",
            "title": "Comments Enabled",
            "default": true
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagSummary"
            },
            "type": "array",
            "title": "Tags"
          },
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertySummary"
            },
            "type": "array",
            "title": "Properties"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantSchema"
            },
            "type": "array",
            "title": "Grants"
          },
          "name": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "listing_uid": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Listing Uid"
          },
          "listing_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Listing Version"
          },
          "view_mode": {
            "$ref": "#/components/schemas/DashboardViewMode",
            "default": "individual"
          },
          "preview": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DashboardPreview"
              },
              {
                "type": "null"
              }
            ]
          },
          "definition": {
            "additionalProperties": true,
            "type": "object",
            "title": "Definition"
          },
          "config": {
            "additionalProperties": true,
            "type": "object",
            "title": "Config"
          },
          "can_run_as_initiative": {
            "type": "boolean",
            "title": "Can Run As Initiative",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "created_by",
          "created_by_kind",
          "created_by_install",
          "archived_at",
          "can",
          "id",
          "community_id",
          "created_at",
          "updated_at",
          "comments_enabled",
          "tags",
          "properties",
          "grants",
          "name",
          "description",
          "initiative_id",
          "listing_uid",
          "listing_version",
          "view_mode",
          "preview",
          "definition",
          "config",
          "can_run_as_initiative"
        ],
        "title": "DashboardRead"
      },
      "DashboardSummary": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_kind": {
            "$ref": "#/components/schemas/ActorKind"
          },
          "created_by_install": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Install"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "can": {
            "$ref": "#/components/schemas/ToolCan"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id",
            "x-identity": "community"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "comments_enabled": {
            "type": "boolean",
            "title": "Comments Enabled",
            "default": true
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagSummary"
            },
            "type": "array",
            "title": "Tags"
          },
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertySummary"
            },
            "type": "array",
            "title": "Properties"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantSchema"
            },
            "type": "array",
            "title": "Grants"
          },
          "name": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "listing_uid": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Listing Uid"
          },
          "listing_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Listing Version"
          },
          "view_mode": {
            "$ref": "#/components/schemas/DashboardViewMode",
            "default": "individual"
          },
          "preview": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DashboardPreview"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "created_by",
          "created_by_kind",
          "created_by_install",
          "archived_at",
          "can",
          "id",
          "community_id",
          "created_at",
          "updated_at",
          "comments_enabled",
          "tags",
          "properties",
          "grants",
          "name",
          "description",
          "initiative_id",
          "listing_uid",
          "listing_version",
          "view_mode",
          "preview"
        ],
        "title": "DashboardSummary"
      },
      "DashboardUpdate": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "definition": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Definition"
          },
          "config": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Config"
          }
        },
        "type": "object",
        "title": "DashboardUpdate"
      },
      "DashboardViewMode": {
        "type": "string",
        "enum": [
          "individual",
          "initiative"
        ],
        "title": "DashboardViewMode",
        "description": "Whose access a dashboard's query widgets answer from."
      },
      "DashboardViewModeRequest": {
        "properties": {
          "mode": {
            "$ref": "#/components/schemas/DashboardViewMode"
          }
        },
        "type": "object",
        "required": [
          "mode"
        ],
        "title": "DashboardViewModeRequest"
      },
      "DashboardWidgetData": {
        "properties": {
          "result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/QueryResponse"
              },
              {
                "type": "null"
              }
            ]
          },
          "plugin": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PluginDataResponse"
              },
              {
                "type": "null"
              }
            ]
          },
          "summary": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SummaryRead"
              },
              {
                "type": "null"
              }
            ]
          },
          "refused": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Refused"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          }
        },
        "type": "object",
        "title": "DashboardWidgetData",
        "description": "One widget's answer when its canvas is loaded: a statement's rows, a\nplug-in widget's rows and values, a summary of one thing, the thing it\nnames that its reader cannot open, or the code it was refused with.\nExactly one is set."
      },
      "DataJobDirection": {
        "type": "string",
        "enum": [
          "import",
          "export"
        ],
        "title": "DataJobDirection"
      },
      "DataJobPluginPart": {
        "properties": {
          "listing_uid": {
            "type": "string",
            "title": "Listing Uid"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "state": {
            "$ref": "#/components/schemas/PluginPartState"
          }
        },
        "type": "object",
        "required": [
          "listing_uid",
          "name",
          "state"
        ],
        "title": "DataJobPluginPart",
        "description": "A container plug-in's own part of a backup or a restore, as the job's\nreport shows it: whose it is, and where it stands. Nothing else of the\npart's record is read out."
      },
      "DataJobRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "direction": {
            "$ref": "#/components/schemas/DataJobDirection"
          },
          "created_by": {
            "type": "integer",
            "title": "Created By",
            "x-identity": "person"
          },
          "source": {
            "type": "string",
            "title": "Source"
          },
          "params": {
            "additionalProperties": true,
            "type": "object",
            "title": "Params"
          },
          "status": {
            "$ref": "#/components/schemas/DataJobStatus"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "plan": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Plan"
          },
          "result": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Result"
          },
          "template_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Template Id"
          },
          "format": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Format"
          },
          "plugin_parts": {
            "items": {
              "$ref": "#/components/schemas/DataJobPluginPart"
            },
            "type": "array",
            "title": "Plugin Parts",
            "default": []
          },
          "delivered": {
            "type": "boolean",
            "title": "Delivered",
            "description": "The export's archive went to the operator's destination; there is\nnothing here to download.",
            "readOnly": true
          }
        },
        "type": "object",
        "required": [
          "id",
          "community_id",
          "direction",
          "created_by",
          "source",
          "params",
          "status",
          "error",
          "expires_at",
          "created_at",
          "updated_at",
          "plan",
          "result",
          "template_id",
          "format",
          "plugin_parts",
          "delivered"
        ],
        "title": "DataJobRead"
      },
      "DataJobStatus": {
        "type": "string",
        "enum": [
          "staged",
          "fetching",
          "queued",
          "running",
          "done",
          "failed",
          "cancelled",
          "expired"
        ],
        "title": "DataJobStatus"
      },
      "DateBucket": {
        "type": "string",
        "enum": [
          "day",
          "week",
          "month",
          "quarter",
          "year"
        ],
        "title": "DateBucket",
        "description": "What a date is grouped by: the calendar's day, week, month, quarter or\nyear it falls in. A week starts on Monday, as Postgres counts one."
      },
      "DecorationPack": {
        "properties": {
          "uid": {
            "type": "string",
            "title": "Uid"
          },
          "public_id": {
            "type": "string",
            "title": "Public Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "publisher": {
            "type": "string",
            "title": "Publisher"
          },
          "description": {
            "type": "string",
            "title": "Description"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "contents": {
            "items": {
              "$ref": "#/components/schemas/OwnedDecoration"
            },
            "type": "array",
            "title": "Contents"
          },
          "installed": {
            "type": "boolean",
            "title": "Installed",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "uid",
          "public_id",
          "name",
          "publisher",
          "description",
          "avatar_url",
          "contents",
          "installed"
        ],
        "title": "DecorationPack",
        "description": "One installable set of decorations, and whether this account has it.\n\nA marketplace listing, so the words are the listing's \u2014 its publisher named\nit, and nobody else can. ``uid`` is the identity: it means this pack on\nevery deployment carrying the catalog, and it is what a granted row records."
      },
      "DecorationPackListResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/DecorationPack"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "DecorationPackListResponse",
        "description": "Every pack this build ships. Small and read all at once \u2014 the store is\none page."
      },
      "DefaultFilter": {
        "properties": {
          "field": {
            "type": "string",
            "title": "Field"
          },
          "op": {
            "$ref": "#/components/schemas/FilterOp"
          },
          "value": {
            "title": "Value"
          }
        },
        "type": "object",
        "required": [
          "field",
          "op"
        ],
        "title": "DefaultFilter",
        "description": "One condition a new statement about this dataset starts with.\n\nShaped as the builder's own condition so a client seeds its filter rows\nwith it rather than translating: what comes back is an ordinary filter,\nshown like every other and removed the same way."
      },
      "DeletionEligibilityResponse": {
        "properties": {
          "can_delete": {
            "type": "boolean",
            "title": "Can Delete"
          },
          "last_owner": {
            "type": "boolean",
            "title": "Last Owner",
            "default": false
          },
          "sole_superadmin_communities": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Sole Superadmin Communities"
          }
        },
        "type": "object",
        "required": [
          "can_delete",
          "last_owner",
          "sole_superadmin_communities"
        ],
        "title": "DeletionEligibilityResponse",
        "description": "Response indicating whether user can be deleted and any blockers"
      },
      "DemoCopyRead": {
        "properties": {
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "ready": {
            "type": "boolean",
            "title": "Ready"
          },
          "failed": {
            "type": "boolean",
            "title": "Failed",
            "default": false
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          }
        },
        "type": "object",
        "required": [
          "community_id",
          "ready"
        ],
        "title": "DemoCopyRead",
        "description": "A demo visitor's own copy, and whether its import has finished, or\nfailed and left the copy unusable."
      },
      "DemoLeadCreate": {
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          }
        },
        "type": "object",
        "required": [
          "email"
        ],
        "title": "DemoLeadCreate",
        "description": "An address a demo visitor leaves for a follow-up."
      },
      "DemoPitchRead": {
        "properties": {
          "is_pitch": {
            "type": "boolean",
            "title": "Is Pitch"
          },
          "last_published_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Published At"
          }
        },
        "type": "object",
        "required": [
          "is_pitch"
        ],
        "title": "DemoPitchRead",
        "description": "Whether a community is a pitch, and when it was last published: the\nversion visitors get."
      },
      "DemoRedeem": {
        "properties": {
          "token": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1,
            "title": "Token"
          },
          "captcha_token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Captcha Token"
          },
          "email": {
            "anyOf": [
              {
                "type": "string",
                "format": "email"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          }
        },
        "type": "object",
        "required": [
          "token"
        ],
        "title": "DemoRedeem",
        "description": "A demo link's token, read from the link's fragment."
      },
      "DemoRedemption": {
        "properties": {
          "access_token": {
            "type": "string",
            "title": "Access Token"
          },
          "token_type": {
            "type": "string",
            "title": "Token Type",
            "default": "bearer"
          },
          "refresh_token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Refresh Token"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "import_job_id": {
            "type": "integer",
            "title": "Import Job Id"
          }
        },
        "type": "object",
        "required": [
          "access_token",
          "community_id",
          "import_job_id"
        ],
        "title": "DemoRedemption",
        "description": "A visitor signed in to their own copy of the pitch.\n\nThe copy is filled in the background by the import ``import_job_id``\nnames; the account and its session end when the copy does."
      },
      "DetailFieldPart": {
        "properties": {
          "type": {
            "type": "string",
            "const": "field",
            "title": "Type"
          },
          "props": {
            "$ref": "#/components/schemas/DetailFieldProps"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "type",
          "props"
        ],
        "title": "DetailFieldPart"
      },
      "DetailFieldProps": {
        "properties": {
          "field": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaskDetailFieldId"
              },
              {
                "$ref": "#/components/schemas/EventDetailFieldId"
              },
              {
                "$ref": "#/components/schemas/PostDetailFieldId"
              },
              {
                "$ref": "#/components/schemas/FileFieldId"
              },
              {
                "type": "string"
              }
            ],
            "title": "Field"
          },
          "required": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Required"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "field"
        ],
        "title": "DetailFieldProps"
      },
      "DetailLayoutDefinition-Input": {
        "properties": {
          "header": {
            "anyOf": [
              {
                "items": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/DetailStackPart-Input"
                    },
                    {
                      "$ref": "#/components/schemas/SectionPart-Input"
                    },
                    {
                      "$ref": "#/components/schemas/DetailFieldPart"
                    },
                    {
                      "$ref": "#/components/schemas/PropertiesPart"
                    },
                    {
                      "$ref": "#/components/schemas/PluginPart"
                    },
                    {
                      "$ref": "#/components/schemas/OwnPart"
                    },
                    {
                      "$ref": "#/components/schemas/FormPart"
                    }
                  ],
                  "discriminator": {
                    "propertyName": "type",
                    "mapping": {
                      "actions": "#/components/schemas/OwnPart",
                      "body": "#/components/schemas/OwnPart",
                      "byline": "#/components/schemas/OwnPart",
                      "case": "#/components/schemas/OwnPart",
                      "comments": "#/components/schemas/OwnPart",
                      "dates": "#/components/schemas/OwnPart",
                      "field": "#/components/schemas/DetailFieldPart",
                      "form": "#/components/schemas/FormPart",
                      "notice": "#/components/schemas/OwnPart",
                      "plugin": "#/components/schemas/PluginPart",
                      "poll": "#/components/schemas/OwnPart",
                      "properties": "#/components/schemas/PropertiesPart",
                      "reactions": "#/components/schemas/OwnPart",
                      "relations": "#/components/schemas/OwnPart",
                      "rsvp": "#/components/schemas/OwnPart",
                      "schedule": "#/components/schemas/OwnPart",
                      "section": "#/components/schemas/SectionPart-Input",
                      "stack": "#/components/schemas/DetailStackPart-Input",
                      "status": "#/components/schemas/OwnPart"
                    }
                  }
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Header"
          },
          "main": {
            "anyOf": [
              {
                "items": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/DetailStackPart-Input"
                    },
                    {
                      "$ref": "#/components/schemas/SectionPart-Input"
                    },
                    {
                      "$ref": "#/components/schemas/DetailFieldPart"
                    },
                    {
                      "$ref": "#/components/schemas/PropertiesPart"
                    },
                    {
                      "$ref": "#/components/schemas/PluginPart"
                    },
                    {
                      "$ref": "#/components/schemas/OwnPart"
                    },
                    {
                      "$ref": "#/components/schemas/FormPart"
                    }
                  ],
                  "discriminator": {
                    "propertyName": "type",
                    "mapping": {
                      "actions": "#/components/schemas/OwnPart",
                      "body": "#/components/schemas/OwnPart",
                      "byline": "#/components/schemas/OwnPart",
                      "case": "#/components/schemas/OwnPart",
                      "comments": "#/components/schemas/OwnPart",
                      "dates": "#/components/schemas/OwnPart",
                      "field": "#/components/schemas/DetailFieldPart",
                      "form": "#/components/schemas/FormPart",
                      "notice": "#/components/schemas/OwnPart",
                      "plugin": "#/components/schemas/PluginPart",
                      "poll": "#/components/schemas/OwnPart",
                      "properties": "#/components/schemas/PropertiesPart",
                      "reactions": "#/components/schemas/OwnPart",
                      "relations": "#/components/schemas/OwnPart",
                      "rsvp": "#/components/schemas/OwnPart",
                      "schedule": "#/components/schemas/OwnPart",
                      "section": "#/components/schemas/SectionPart-Input",
                      "stack": "#/components/schemas/DetailStackPart-Input",
                      "status": "#/components/schemas/OwnPart"
                    }
                  }
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Main"
          },
          "side": {
            "anyOf": [
              {
                "items": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/DetailStackPart-Input"
                    },
                    {
                      "$ref": "#/components/schemas/SectionPart-Input"
                    },
                    {
                      "$ref": "#/components/schemas/DetailFieldPart"
                    },
                    {
                      "$ref": "#/components/schemas/PropertiesPart"
                    },
                    {
                      "$ref": "#/components/schemas/PluginPart"
                    },
                    {
                      "$ref": "#/components/schemas/OwnPart"
                    },
                    {
                      "$ref": "#/components/schemas/FormPart"
                    }
                  ],
                  "discriminator": {
                    "propertyName": "type",
                    "mapping": {
                      "actions": "#/components/schemas/OwnPart",
                      "body": "#/components/schemas/OwnPart",
                      "byline": "#/components/schemas/OwnPart",
                      "case": "#/components/schemas/OwnPart",
                      "comments": "#/components/schemas/OwnPart",
                      "dates": "#/components/schemas/OwnPart",
                      "field": "#/components/schemas/DetailFieldPart",
                      "form": "#/components/schemas/FormPart",
                      "notice": "#/components/schemas/OwnPart",
                      "plugin": "#/components/schemas/PluginPart",
                      "poll": "#/components/schemas/OwnPart",
                      "properties": "#/components/schemas/PropertiesPart",
                      "reactions": "#/components/schemas/OwnPart",
                      "relations": "#/components/schemas/OwnPart",
                      "rsvp": "#/components/schemas/OwnPart",
                      "schedule": "#/components/schemas/OwnPart",
                      "section": "#/components/schemas/SectionPart-Input",
                      "stack": "#/components/schemas/DetailStackPart-Input",
                      "status": "#/components/schemas/OwnPart"
                    }
                  }
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Side"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "DetailLayoutDefinition",
        "description": "How one task (or event) is shown on its own, in three regions, each its\nparts in order. A region it leaves out is drawn as shipped; what it places\nnowhere is not shown."
      },
      "DetailLayoutDefinition-Output": {
        "properties": {
          "header": {
            "anyOf": [
              {
                "items": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/DetailStackPart-Output"
                    },
                    {
                      "$ref": "#/components/schemas/SectionPart-Output"
                    },
                    {
                      "$ref": "#/components/schemas/DetailFieldPart"
                    },
                    {
                      "$ref": "#/components/schemas/PropertiesPart"
                    },
                    {
                      "$ref": "#/components/schemas/PluginPart"
                    },
                    {
                      "$ref": "#/components/schemas/OwnPart"
                    },
                    {
                      "$ref": "#/components/schemas/FormPart"
                    }
                  ],
                  "discriminator": {
                    "propertyName": "type",
                    "mapping": {
                      "actions": "#/components/schemas/OwnPart",
                      "body": "#/components/schemas/OwnPart",
                      "byline": "#/components/schemas/OwnPart",
                      "case": "#/components/schemas/OwnPart",
                      "comments": "#/components/schemas/OwnPart",
                      "dates": "#/components/schemas/OwnPart",
                      "field": "#/components/schemas/DetailFieldPart",
                      "form": "#/components/schemas/FormPart",
                      "notice": "#/components/schemas/OwnPart",
                      "plugin": "#/components/schemas/PluginPart",
                      "poll": "#/components/schemas/OwnPart",
                      "properties": "#/components/schemas/PropertiesPart",
                      "reactions": "#/components/schemas/OwnPart",
                      "relations": "#/components/schemas/OwnPart",
                      "rsvp": "#/components/schemas/OwnPart",
                      "schedule": "#/components/schemas/OwnPart",
                      "section": "#/components/schemas/SectionPart-Output",
                      "stack": "#/components/schemas/DetailStackPart-Output",
                      "status": "#/components/schemas/OwnPart"
                    }
                  }
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Header"
          },
          "main": {
            "anyOf": [
              {
                "items": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/DetailStackPart-Output"
                    },
                    {
                      "$ref": "#/components/schemas/SectionPart-Output"
                    },
                    {
                      "$ref": "#/components/schemas/DetailFieldPart"
                    },
                    {
                      "$ref": "#/components/schemas/PropertiesPart"
                    },
                    {
                      "$ref": "#/components/schemas/PluginPart"
                    },
                    {
                      "$ref": "#/components/schemas/OwnPart"
                    },
                    {
                      "$ref": "#/components/schemas/FormPart"
                    }
                  ],
                  "discriminator": {
                    "propertyName": "type",
                    "mapping": {
                      "actions": "#/components/schemas/OwnPart",
                      "body": "#/components/schemas/OwnPart",
                      "byline": "#/components/schemas/OwnPart",
                      "case": "#/components/schemas/OwnPart",
                      "comments": "#/components/schemas/OwnPart",
                      "dates": "#/components/schemas/OwnPart",
                      "field": "#/components/schemas/DetailFieldPart",
                      "form": "#/components/schemas/FormPart",
                      "notice": "#/components/schemas/OwnPart",
                      "plugin": "#/components/schemas/PluginPart",
                      "poll": "#/components/schemas/OwnPart",
                      "properties": "#/components/schemas/PropertiesPart",
                      "reactions": "#/components/schemas/OwnPart",
                      "relations": "#/components/schemas/OwnPart",
                      "rsvp": "#/components/schemas/OwnPart",
                      "schedule": "#/components/schemas/OwnPart",
                      "section": "#/components/schemas/SectionPart-Output",
                      "stack": "#/components/schemas/DetailStackPart-Output",
                      "status": "#/components/schemas/OwnPart"
                    }
                  }
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Main"
          },
          "side": {
            "anyOf": [
              {
                "items": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/DetailStackPart-Output"
                    },
                    {
                      "$ref": "#/components/schemas/SectionPart-Output"
                    },
                    {
                      "$ref": "#/components/schemas/DetailFieldPart"
                    },
                    {
                      "$ref": "#/components/schemas/PropertiesPart"
                    },
                    {
                      "$ref": "#/components/schemas/PluginPart"
                    },
                    {
                      "$ref": "#/components/schemas/OwnPart"
                    },
                    {
                      "$ref": "#/components/schemas/FormPart"
                    }
                  ],
                  "discriminator": {
                    "propertyName": "type",
                    "mapping": {
                      "actions": "#/components/schemas/OwnPart",
                      "body": "#/components/schemas/OwnPart",
                      "byline": "#/components/schemas/OwnPart",
                      "case": "#/components/schemas/OwnPart",
                      "comments": "#/components/schemas/OwnPart",
                      "dates": "#/components/schemas/OwnPart",
                      "field": "#/components/schemas/DetailFieldPart",
                      "form": "#/components/schemas/FormPart",
                      "notice": "#/components/schemas/OwnPart",
                      "plugin": "#/components/schemas/PluginPart",
                      "poll": "#/components/schemas/OwnPart",
                      "properties": "#/components/schemas/PropertiesPart",
                      "reactions": "#/components/schemas/OwnPart",
                      "relations": "#/components/schemas/OwnPart",
                      "rsvp": "#/components/schemas/OwnPart",
                      "schedule": "#/components/schemas/OwnPart",
                      "section": "#/components/schemas/SectionPart-Output",
                      "stack": "#/components/schemas/DetailStackPart-Output",
                      "status": "#/components/schemas/OwnPart"
                    }
                  }
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Side"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "DetailLayoutDefinition",
        "description": "How one task (or event) is shown on its own, in three regions, each its\nparts in order. A region it leaves out is drawn as shipped; what it places\nnowhere is not shown."
      },
      "DetailLayoutRead": {
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "task",
              "calendar_event",
              "post",
              "file"
            ],
            "title": "Kind"
          },
          "task_type_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Task Type Id"
          },
          "task_type_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Task Type Name"
          },
          "definition": {
            "$ref": "#/components/schemas/DetailLayoutDefinition-Output"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "kind",
          "task_type_id",
          "task_type_name",
          "definition",
          "updated_at"
        ],
        "title": "DetailLayoutRead",
        "description": "How a target shows one of its items: as shipped until it is changed."
      },
      "DetailLayoutWrite": {
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "task",
              "calendar_event",
              "post",
              "file"
            ],
            "title": "Kind"
          },
          "task_type_id": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Task Type Id"
          },
          "definition": {
            "$ref": "#/components/schemas/DetailLayoutDefinition-Input"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "kind",
          "definition"
        ],
        "title": "DetailLayoutWrite"
      },
      "DetailStackPart-Input": {
        "properties": {
          "type": {
            "type": "string",
            "const": "stack",
            "title": "Type"
          },
          "props": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StackProps"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/DetailStackPart-Input"
                },
                {
                  "$ref": "#/components/schemas/SectionPart-Input"
                },
                {
                  "$ref": "#/components/schemas/DetailFieldPart"
                },
                {
                  "$ref": "#/components/schemas/PropertiesPart"
                },
                {
                  "$ref": "#/components/schemas/PluginPart"
                },
                {
                  "$ref": "#/components/schemas/OwnPart"
                },
                {
                  "$ref": "#/components/schemas/FormPart"
                }
              ],
              "discriminator": {
                "propertyName": "type",
                "mapping": {
                  "actions": "#/components/schemas/OwnPart",
                  "body": "#/components/schemas/OwnPart",
                  "byline": "#/components/schemas/OwnPart",
                  "case": "#/components/schemas/OwnPart",
                  "comments": "#/components/schemas/OwnPart",
                  "dates": "#/components/schemas/OwnPart",
                  "field": "#/components/schemas/DetailFieldPart",
                  "form": "#/components/schemas/FormPart",
                  "notice": "#/components/schemas/OwnPart",
                  "plugin": "#/components/schemas/PluginPart",
                  "poll": "#/components/schemas/OwnPart",
                  "properties": "#/components/schemas/PropertiesPart",
                  "reactions": "#/components/schemas/OwnPart",
                  "relations": "#/components/schemas/OwnPart",
                  "rsvp": "#/components/schemas/OwnPart",
                  "schedule": "#/components/schemas/OwnPart",
                  "section": "#/components/schemas/SectionPart-Input",
                  "stack": "#/components/schemas/DetailStackPart-Input",
                  "status": "#/components/schemas/OwnPart"
                }
              }
            },
            "type": "array",
            "title": "Children"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "type"
        ],
        "title": "DetailStackPart"
      },
      "DetailStackPart-Output": {
        "properties": {
          "type": {
            "type": "string",
            "const": "stack",
            "title": "Type"
          },
          "props": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StackProps"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/DetailStackPart-Output"
                },
                {
                  "$ref": "#/components/schemas/SectionPart-Output"
                },
                {
                  "$ref": "#/components/schemas/DetailFieldPart"
                },
                {
                  "$ref": "#/components/schemas/PropertiesPart"
                },
                {
                  "$ref": "#/components/schemas/PluginPart"
                },
                {
                  "$ref": "#/components/schemas/OwnPart"
                },
                {
                  "$ref": "#/components/schemas/FormPart"
                }
              ],
              "discriminator": {
                "propertyName": "type",
                "mapping": {
                  "actions": "#/components/schemas/OwnPart",
                  "body": "#/components/schemas/OwnPart",
                  "byline": "#/components/schemas/OwnPart",
                  "case": "#/components/schemas/OwnPart",
                  "comments": "#/components/schemas/OwnPart",
                  "dates": "#/components/schemas/OwnPart",
                  "field": "#/components/schemas/DetailFieldPart",
                  "form": "#/components/schemas/FormPart",
                  "notice": "#/components/schemas/OwnPart",
                  "plugin": "#/components/schemas/PluginPart",
                  "poll": "#/components/schemas/OwnPart",
                  "properties": "#/components/schemas/PropertiesPart",
                  "reactions": "#/components/schemas/OwnPart",
                  "relations": "#/components/schemas/OwnPart",
                  "rsvp": "#/components/schemas/OwnPart",
                  "schedule": "#/components/schemas/OwnPart",
                  "section": "#/components/schemas/SectionPart-Output",
                  "stack": "#/components/schemas/DetailStackPart-Output",
                  "status": "#/components/schemas/OwnPart"
                }
              }
            },
            "type": "array",
            "title": "Children"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "type"
        ],
        "title": "DetailStackPart"
      },
      "DigestCadence": {
        "type": "string",
        "enum": [
          "daily",
          "weekly"
        ],
        "title": "DigestCadence",
        "description": "How often one digest goes out. Each digest keeps its own, apart from\nthe email's: a summary is read at a time of day, which is not when the\nrest of the mail arrives."
      },
      "DigestSchedule-Input": {
        "properties": {
          "cadence": {
            "$ref": "#/components/schemas/DigestCadence",
            "default": "daily"
          },
          "at": {
            "type": "string",
            "title": "At"
          },
          "weekday": {
            "type": "integer",
            "maximum": 7.0,
            "minimum": 1.0,
            "title": "Weekday",
            "default": 1
          }
        },
        "type": "object",
        "required": [
          "at"
        ],
        "title": "DigestSchedule",
        "description": "When one digest goes out."
      },
      "DigestSchedule-Output": {
        "properties": {
          "cadence": {
            "$ref": "#/components/schemas/DigestCadence",
            "default": "daily"
          },
          "at": {
            "type": "string",
            "title": "At"
          },
          "weekday": {
            "type": "integer",
            "maximum": 7.0,
            "minimum": 1.0,
            "title": "Weekday",
            "default": 1
          }
        },
        "type": "object",
        "required": [
          "cadence",
          "at",
          "weekday"
        ],
        "title": "DigestSchedule",
        "description": "When one digest goes out."
      },
      "DirectMessagePermissionRead": {
        "properties": {
          "may_connect": {
            "type": "boolean",
            "title": "May Connect",
            "default": false
          },
          "permission": {
            "type": "string",
            "title": "Permission"
          }
        },
        "type": "object",
        "required": [
          "may_connect",
          "permission"
        ],
        "title": "DirectMessagePermissionRead",
        "description": "What this reader may do about that account, right now.\n\n``denied`` covers every refusal with no distinguishing field: a policy that\ndoes not admit them, an account that cannot be reached, and being ignored\nall answer the same way."
      },
      "DirectMessagePermissionsRequest": {
        "properties": {
          "user_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 100,
            "minItems": 1,
            "title": "User Ids"
          }
        },
        "type": "object",
        "required": [
          "user_ids"
        ],
        "title": "DirectMessagePermissionsRequest",
        "description": "Which accounts a surface is about to draw controls for."
      },
      "DirectMessagePermissionsResponse": {
        "properties": {
          "permissions": {
            "additionalProperties": {
              "$ref": "#/components/schemas/DirectMessagePermissionRead"
            },
            "type": "object",
            "title": "Permissions"
          }
        },
        "type": "object",
        "required": [
          "permissions"
        ],
        "title": "DirectMessagePermissionsResponse",
        "description": "One answer per account asked about, keyed by id as a string.\n\nAccounts the caller may not see are simply absent rather than refused: the\nreader is drawing a list, and a page that fails because one row is gone is\nworse than one that offers nothing for that row."
      },
      "DirectMessageSettingsRead": {
        "properties": {
          "dm_policy": {
            "$ref": "#/components/schemas/DmPolicy"
          },
          "communities": {
            "items": {
              "$ref": "#/components/schemas/CommunityDmToggle"
            },
            "type": "array",
            "title": "Communities"
          },
          "age_confirmed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Age Confirmed At"
          },
          "age_answer_required": {
            "type": "boolean",
            "title": "Age Answer Required",
            "default": false
          },
          "send_receipts": {
            "type": "boolean",
            "title": "Send Receipts",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "dm_policy",
          "communities",
          "age_confirmed_at",
          "age_answer_required",
          "send_receipts"
        ],
        "title": "DirectMessageSettingsRead"
      },
      "DirectMessageSettingsUpdate": {
        "properties": {
          "dm_policy": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DmPolicy"
              },
              {
                "type": "null"
              }
            ]
          },
          "communities": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/CommunityDmToggleUpdate"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Communities"
          },
          "send_receipts": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Send Receipts"
          }
        },
        "type": "object",
        "title": "DirectMessageSettingsUpdate",
        "description": "Both halves optional, and omitting one leaves it alone.\n\nA toggle list is a set of changes rather than the whole list: a client that\nknows about three communities should not be able to silently switch on a\nfourth it has never rendered."
      },
      "DirectoryCommunityPage": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/DirectoryCommunityRead"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items"
        ],
        "title": "DirectoryCommunityPage",
        "description": "A page of directory results."
      },
      "DirectoryCommunityRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "icon_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon Url"
          },
          "categories": {
            "items": {
              "$ref": "#/components/schemas/CommunityCategory"
            },
            "type": "array",
            "title": "Categories",
            "default": []
          },
          "member_count": {
            "type": "integer",
            "title": "Member Count",
            "default": 0
          },
          "online_count": {
            "type": "integer",
            "title": "Online Count",
            "default": 0
          },
          "already_member": {
            "type": "boolean",
            "title": "Already Member",
            "default": false
          },
          "join_policy": {
            "$ref": "#/components/schemas/CommunityJoinPolicy",
            "default": "open"
          },
          "request_pending": {
            "type": "boolean",
            "title": "Request Pending",
            "default": false
          },
          "banner": {
            "$ref": "#/components/schemas/CommunityBannerRead",
            "default": {
              "color": "#2563eb",
              "text_color": "#ffffff",
              "text_align": "center",
              "fade": "strong"
            }
          },
          "location": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommunityLocation-Output"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "description",
          "icon_url",
          "categories",
          "member_count",
          "online_count",
          "already_member",
          "join_policy",
          "request_pending",
          "banner",
          "location"
        ],
        "title": "DirectoryCommunityRead",
        "description": "One card in the community directory.\n\nDeliberately not a :class:`CommunityRead`: the reader is a stranger, so this\ncarries only what the guild published by opting in \u2014 its identity, its\nshelves, and how many people are already there. No membership fields (they\nhave none), no lifecycle status, no administration. ``already_member`` and\n``request_pending`` are about the *caller*: which button applies to them,\nbeside the ``join_policy`` that says whether it joins or asks.\n\n``online_count`` is how many of those people have the guild open right now.\nIt is a live reading rather than a stored one, taken from the process\nanswering the request, so it is a sense of how busy a guild is rather than a\nfigure to reconcile against anything."
      },
      "DisplayFrom": {
        "properties": {
          "from": {
            "type": "string",
            "title": "From"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "from"
        ],
        "title": "DisplayFrom",
        "description": "A look read from the row: a select field of it, each of whose options\nis a look the drawn field has, so each row keeps its own."
      },
      "DmConversationCreate": {
        "properties": {
          "user_id": {
            "type": "integer",
            "minimum": 1.0,
            "title": "User Id"
          }
        },
        "type": "object",
        "required": [
          "user_id"
        ],
        "title": "DmConversationCreate"
      },
      "DmConversationRead": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "other_user_id": {
            "type": "integer",
            "title": "Other User Id"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "kind": {
            "type": "string",
            "title": "Kind",
            "default": "direct"
          },
          "member_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Member Ids",
            "default": []
          },
          "members": {
            "items": {
              "$ref": "#/components/schemas/DmRosterMember"
            },
            "type": "array",
            "title": "Members",
            "default": []
          },
          "pending": {
            "type": "boolean",
            "title": "Pending",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "id",
          "other_user_id",
          "created_at"
        ],
        "title": "DmConversationRead"
      },
      "DmConversationsResponse": {
        "properties": {
          "conversations": {
            "items": {
              "$ref": "#/components/schemas/DmConversationRead"
            },
            "type": "array",
            "title": "Conversations"
          }
        },
        "type": "object",
        "required": [
          "conversations"
        ],
        "title": "DmConversationsResponse"
      },
      "DmDeviceRead": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "identity_key": {
            "type": "string",
            "title": "Identity Key"
          },
          "fingerprint_key": {
            "type": "string",
            "title": "Fingerprint Key"
          },
          "signature": {
            "type": "string",
            "title": "Signature"
          },
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Label"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "last_seen_at": {
            "type": "string",
            "format": "date-time",
            "title": "Last Seen At"
          },
          "one_time_key_count": {
            "type": "integer",
            "title": "One Time Key Count"
          }
        },
        "type": "object",
        "required": [
          "id",
          "identity_key",
          "fingerprint_key",
          "signature",
          "label",
          "created_at",
          "last_seen_at",
          "one_time_key_count"
        ],
        "title": "DmDeviceRead",
        "description": "One of the caller's own devices, for the Security page."
      },
      "DmDeviceRegistration": {
        "properties": {
          "identity_key": {
            "type": "string",
            "maxLength": 44,
            "minLength": 1,
            "title": "Identity Key"
          },
          "fingerprint_key": {
            "type": "string",
            "maxLength": 44,
            "minLength": 1,
            "title": "Fingerprint Key"
          },
          "signature": {
            "type": "string",
            "maxLength": 88,
            "minLength": 1,
            "title": "Signature"
          },
          "fallback_key": {
            "$ref": "#/components/schemas/DmOneTimeKeyUpload"
          },
          "one_time_keys": {
            "items": {
              "$ref": "#/components/schemas/DmOneTimeKeyUpload"
            },
            "type": "array",
            "maxItems": 100,
            "title": "One Time Keys"
          }
        },
        "type": "object",
        "required": [
          "identity_key",
          "fingerprint_key",
          "signature",
          "fallback_key"
        ],
        "title": "DmDeviceRegistration"
      },
      "DmDevicesResponse": {
        "properties": {
          "devices": {
            "items": {
              "$ref": "#/components/schemas/DmDeviceRead"
            },
            "type": "array",
            "title": "Devices"
          },
          "device_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Device Id"
          }
        },
        "type": "object",
        "required": [
          "devices"
        ],
        "title": "DmDevicesResponse"
      },
      "DmGroupCreate": {
        "properties": {
          "user_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 40,
            "minItems": 2,
            "title": "User Ids"
          }
        },
        "type": "object",
        "required": [
          "user_ids"
        ],
        "title": "DmGroupCreate"
      },
      "DmOneTimeKeyBatch": {
        "properties": {
          "device_id": {
            "type": "string",
            "format": "uuid",
            "title": "Device Id"
          },
          "one_time_keys": {
            "items": {
              "$ref": "#/components/schemas/DmOneTimeKeyUpload"
            },
            "type": "array",
            "maxItems": 100,
            "minItems": 1,
            "title": "One Time Keys"
          }
        },
        "type": "object",
        "required": [
          "device_id",
          "one_time_keys"
        ],
        "title": "DmOneTimeKeyBatch"
      },
      "DmOneTimeKeyUpload": {
        "properties": {
          "key_id": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1,
            "title": "Key Id"
          },
          "public_key": {
            "type": "string",
            "maxLength": 44,
            "minLength": 1,
            "title": "Public Key"
          },
          "signature": {
            "type": "string",
            "maxLength": 88,
            "minLength": 1,
            "title": "Signature"
          },
          "fallback": {
            "type": "boolean",
            "title": "Fallback",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "key_id",
          "public_key",
          "signature"
        ],
        "title": "DmOneTimeKeyUpload"
      },
      "DmOutboundMessage": {
        "properties": {
          "recipient_device_id": {
            "type": "string",
            "format": "uuid",
            "title": "Recipient Device Id"
          },
          "message_type": {
            "type": "integer",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Message Type"
          },
          "payload": {
            "type": "string",
            "maxLength": 87384,
            "minLength": 1,
            "title": "Payload"
          }
        },
        "type": "object",
        "required": [
          "recipient_device_id",
          "message_type",
          "payload"
        ],
        "title": "DmOutboundMessage"
      },
      "DmOwnSessionKeysRequest": {
        "properties": {
          "device_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "type": "array",
                "maxItems": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Device Ids"
          },
          "device_id": {
            "type": "string",
            "format": "uuid",
            "title": "Device Id"
          }
        },
        "type": "object",
        "required": [
          "device_id"
        ],
        "title": "DmOwnSessionKeysRequest",
        "description": "Which device is asking, so it is left out of its own answer."
      },
      "DmPolicy": {
        "type": "string",
        "enum": [
          "private",
          "community",
          "public"
        ],
        "title": "DmPolicy",
        "description": "Who may ask to message this account, outside its connections.\n\nA connection satisfies every value here, which is what makes it the one\nthing that works whatever the holder picks."
      },
      "DmQueueAck": {
        "properties": {
          "device_id": {
            "type": "string",
            "format": "uuid",
            "title": "Device Id"
          },
          "message_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 500,
            "minItems": 1,
            "title": "Message Ids"
          }
        },
        "type": "object",
        "required": [
          "device_id",
          "message_ids"
        ],
        "title": "DmQueueAck"
      },
      "DmQueueItemRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "conversation_id": {
            "type": "string",
            "format": "uuid",
            "title": "Conversation Id"
          },
          "message_type": {
            "type": "integer",
            "title": "Message Type"
          },
          "payload": {
            "type": "string",
            "title": "Payload"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "conversation_id",
          "message_type",
          "payload",
          "created_at"
        ],
        "title": "DmQueueItemRead"
      },
      "DmQueueResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/DmQueueItemRead"
            },
            "type": "array",
            "title": "Items"
          },
          "more": {
            "type": "boolean",
            "title": "More",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "DmQueueResponse"
      },
      "DmRosterCheckRequest": {
        "properties": {
          "user_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 80,
            "title": "User Ids"
          }
        },
        "type": "object",
        "required": [
          "user_ids"
        ],
        "title": "DmRosterCheckRequest"
      },
      "DmRosterCheckResponse": {
        "properties": {
          "unreachable_pair": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Unreachable Pair",
            "default": []
          },
          "max_members": {
            "type": "integer",
            "title": "Max Members",
            "default": 40
          },
          "too_large": {
            "type": "boolean",
            "title": "Too Large",
            "default": false
          }
        },
        "type": "object",
        "title": "DmRosterCheckResponse",
        "description": "Whether this roster could be proposed, and what is wrong if not.\n\nAsked while the roster is being built rather than only when it is\nsubmitted, so the answer arrives while somebody can still drop a name."
      },
      "DmRosterMember": {
        "properties": {
          "user_id": {
            "type": "integer",
            "title": "User Id"
          },
          "username": {
            "type": "string",
            "title": "Username"
          },
          "discriminator": {
            "type": "integer",
            "title": "Discriminator"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "profile_decorations": {
            "$ref": "#/components/schemas/ProfileDecorations-Output"
          },
          "presence": {
            "$ref": "#/components/schemas/Presence",
            "default": "offline"
          }
        },
        "type": "object",
        "required": [
          "user_id",
          "username",
          "discriminator"
        ],
        "title": "DmRosterMember",
        "description": "One person on a conversation, as a client has to draw them.\n\nThe public projection of an account and nothing else: what it is called,\nthe picture, and what is worn around it. A real name is absent because a\nreal name is a per-community disclosure and a conversation is outside every\ncommunity."
      },
      "DmSendRequest": {
        "properties": {
          "messages": {
            "items": {
              "$ref": "#/components/schemas/DmOutboundMessage"
            },
            "type": "array",
            "maxItems": 64,
            "minItems": 1,
            "title": "Messages"
          },
          "silent": {
            "type": "boolean",
            "title": "Silent",
            "default": false
          },
          "wake_own_devices": {
            "type": "boolean",
            "title": "Wake Own Devices",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "messages"
        ],
        "title": "DmSendRequest"
      },
      "DmSendResponse": {
        "properties": {
          "accepted": {
            "type": "integer",
            "title": "Accepted"
          },
          "queue_full_for": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Queue Full For",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "accepted"
        ],
        "title": "DmSendResponse"
      },
      "DmSessionKey": {
        "properties": {
          "device_id": {
            "type": "string",
            "format": "uuid",
            "title": "Device Id"
          },
          "identity_key": {
            "type": "string",
            "title": "Identity Key"
          },
          "fingerprint_key": {
            "type": "string",
            "title": "Fingerprint Key"
          },
          "signature": {
            "type": "string",
            "title": "Signature"
          },
          "one_time_key": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DmOneTimeKeyUpload"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "device_id",
          "identity_key",
          "fingerprint_key",
          "signature"
        ],
        "title": "DmSessionKey",
        "description": "What a sender needs to open a session with one device."
      },
      "DmSessionKeysRequest": {
        "properties": {
          "device_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "format": "uuid"
                },
                "type": "array",
                "maxItems": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Device Ids"
          }
        },
        "type": "object",
        "title": "DmSessionKeysRequest",
        "description": "Which devices to claim for: the ones a sender has no session with yet.\nEvery device of the account when absent."
      },
      "DmSessionKeysResponse": {
        "properties": {
          "user_id": {
            "type": "integer",
            "title": "User Id"
          },
          "devices": {
            "items": {
              "$ref": "#/components/schemas/DmSessionKey"
            },
            "type": "array",
            "title": "Devices"
          }
        },
        "type": "object",
        "required": [
          "user_id",
          "devices"
        ],
        "title": "DmSessionKeysResponse"
      },
      "DmVerificationInbox": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/DmVerificationMessage"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "DmVerificationInbox"
      },
      "DmVerificationMessage": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "sender_device_id": {
            "type": "string",
            "format": "uuid",
            "title": "Sender Device Id"
          },
          "body": {
            "type": "string",
            "title": "Body"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "sender_device_id",
          "body",
          "created_at"
        ],
        "title": "DmVerificationMessage"
      },
      "DmVerificationSend": {
        "properties": {
          "device_id": {
            "type": "string",
            "format": "uuid",
            "title": "Device Id"
          },
          "to_device_id": {
            "type": "string",
            "format": "uuid",
            "title": "To Device Id"
          },
          "body": {
            "type": "string",
            "maxLength": 4096,
            "minLength": 1,
            "title": "Body"
          }
        },
        "type": "object",
        "required": [
          "device_id",
          "to_device_id",
          "body"
        ],
        "title": "DmVerificationSend",
        "description": "One message of a verification, from one of the caller's devices to\nanother of them. ``body`` is the client's own JSON, relayed as-is."
      },
      "EmailCadence": {
        "type": "string",
        "enum": [
          "instant",
          "hourly",
          "daily",
          "weekly"
        ],
        "title": "EmailCadence",
        "description": "How often email is allowed to arrive.\n\nOne value for the whole account rather than one per category: the category\ngrid says *whether* something is worth an email and the community dial says\nhow much a community may say, so a third per-category axis would be a\nfifteen-row schedule nobody would fill in. This says when the account reads\nits mail, which is one fact about a person.\n\nThere is deliberately no ``never``. Two controls already switch email off,\nand standing down for a while is a pause, which has an end date."
      },
      "EmailOtpRegister": {
        "properties": {
          "registration_ticket": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1,
            "title": "Registration Ticket"
          },
          "username": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1,
            "title": "Username"
          },
          "timezone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Timezone"
          },
          "invite_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Invite Code"
          },
          "community": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NewCommunity"
              },
              {
                "type": "null"
              }
            ]
          },
          "username_offer": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1024
              },
              {
                "type": "null"
              }
            ],
            "title": "Username Offer"
          },
          "birthdate": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Birthdate"
          },
          "accepted_documents": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 32,
            "title": "Accepted Documents"
          }
        },
        "type": "object",
        "required": [
          "registration_ticket",
          "username"
        ],
        "title": "EmailOtpRegister",
        "description": "Make the account a proved address earned."
      },
      "EmailOtpSend": {
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          },
          "captcha_token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Captcha Token"
          },
          "invite_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Invite Code"
          }
        },
        "type": "object",
        "required": [
          "email"
        ],
        "title": "EmailOtpSend",
        "description": "Ask for a code at an address."
      },
      "EmailOtpSent": {
        "properties": {
          "status": {
            "type": "string",
            "title": "Status",
            "default": "sent"
          },
          "challenge": {
            "type": "string",
            "title": "Challenge"
          }
        },
        "type": "object",
        "required": [
          "challenge"
        ],
        "title": "EmailOtpSent",
        "description": "What asking always returns, whoever the address belongs to.\n\n``challenge`` names the waiting code. It is the half of the proof that\nstays with the page that asked; the other half is in the mailbox."
      },
      "EmailOtpVerify": {
        "properties": {
          "challenge": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1,
            "title": "Challenge"
          },
          "code": {
            "type": "string",
            "maxLength": 16,
            "minLength": 1,
            "title": "Code"
          }
        },
        "type": "object",
        "required": [
          "challenge",
          "code"
        ],
        "title": "EmailOtpVerify",
        "description": "Answer a waiting code."
      },
      "EmailSchedule-Input": {
        "properties": {
          "cadence": {
            "$ref": "#/components/schemas/EmailCadence",
            "default": "instant"
          },
          "at": {
            "type": "string",
            "title": "At",
            "default": "21:00"
          },
          "weekday": {
            "type": "integer",
            "maximum": 7.0,
            "minimum": 1.0,
            "title": "Weekday",
            "default": 1
          },
          "personal_instant": {
            "type": "boolean",
            "title": "Personal Instant",
            "default": true
          }
        },
        "type": "object",
        "title": "EmailSchedule",
        "description": "When this account reads its mail."
      },
      "EmailSchedule-Output": {
        "properties": {
          "cadence": {
            "$ref": "#/components/schemas/EmailCadence",
            "default": "instant"
          },
          "at": {
            "type": "string",
            "title": "At",
            "default": "21:00"
          },
          "weekday": {
            "type": "integer",
            "maximum": 7.0,
            "minimum": 1.0,
            "title": "Weekday",
            "default": 1
          },
          "personal_instant": {
            "type": "boolean",
            "title": "Personal Instant",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "cadence",
          "at",
          "weekday",
          "personal_instant"
        ],
        "title": "EmailSchedule",
        "description": "When this account reads its mail."
      },
      "EmailSettingsResponse": {
        "properties": {
          "host": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Host"
          },
          "port": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Port"
          },
          "secure": {
            "type": "boolean",
            "title": "Secure",
            "default": false
          },
          "reject_unauthorized": {
            "type": "boolean",
            "title": "Reject Unauthorized",
            "default": true
          },
          "username": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Username"
          },
          "has_password": {
            "type": "boolean",
            "title": "Has Password",
            "default": false
          },
          "from_address": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "From Address"
          },
          "test_recipient": {
            "anyOf": [
              {
                "type": "string",
                "format": "email"
              },
              {
                "type": "null"
              }
            ],
            "title": "Test Recipient"
          }
        },
        "type": "object",
        "required": [
          "host",
          "port",
          "secure",
          "reject_unauthorized",
          "username",
          "has_password",
          "from_address",
          "test_recipient"
        ],
        "title": "EmailSettingsResponse"
      },
      "EmailSettingsUpdate": {
        "properties": {
          "host": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Host"
          },
          "port": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 65535.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Port"
          },
          "secure": {
            "type": "boolean",
            "title": "Secure",
            "default": false
          },
          "reject_unauthorized": {
            "type": "boolean",
            "title": "Reject Unauthorized",
            "default": true
          },
          "username": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Username"
          },
          "password": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Password"
          },
          "from_address": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "From Address"
          },
          "test_recipient": {
            "anyOf": [
              {
                "type": "string",
                "format": "email"
              },
              {
                "type": "null"
              }
            ],
            "title": "Test Recipient"
          }
        },
        "type": "object",
        "title": "EmailSettingsUpdate"
      },
      "EmailTestRequest": {
        "properties": {
          "recipient": {
            "anyOf": [
              {
                "type": "string",
                "format": "email"
              },
              {
                "type": "null"
              }
            ],
            "title": "Recipient"
          }
        },
        "type": "object",
        "title": "EmailTestRequest"
      },
      "EmailTestResponse": {
        "properties": {
          "status": {
            "type": "string",
            "title": "Status"
          }
        },
        "type": "object",
        "required": [
          "status"
        ],
        "title": "EmailTestResponse",
        "description": "Result of a test-email send. ``status`` is ``\"sent\"`` on success;\nfailures surface as HTTP errors, not a status value here."
      },
      "EmbedRead": {
        "properties": {
          "refs": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 25,
            "title": "Refs",
            "description": "References to read. `task:12` names a thing, `task:12:status` a fact about it. One that names nothing is ignored."
          }
        },
        "type": "object",
        "title": "EmbedRead",
        "description": "The references to show in full, as `kind:id`."
      },
      "EndpointRef": {
        "properties": {
          "type": {
            "type": "string",
            "title": "Type"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          }
        },
        "type": "object",
        "required": [
          "type",
          "id"
        ],
        "title": "EndpointRef",
        "description": "One end of an edge: what kind of thing, and which one. The kind is a\nbuilt-in one, a person (``user``), or a kind of a tool plug-in the\ncommunity has installed."
      },
      "EntryFormOwed": {
        "properties": {
          "form_id": {
            "type": "integer",
            "title": "Form Id"
          },
          "due_at": {
            "type": "string",
            "format": "date-time",
            "title": "Due At"
          }
        },
        "type": "object",
        "required": [
          "form_id",
          "due_at"
        ],
        "title": "EntryFormOwed",
        "description": "The entry form a newcomer has to answer, and when their window ends:\nleft unanswered then, they are removed and may join again."
      },
      "EntryFormRead": {
        "properties": {
          "form_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Form Id"
          },
          "window_hours": {
            "type": "integer",
            "title": "Window Hours"
          },
          "set_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Set At"
          },
          "owed": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EntryFormOwed"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "window_hours"
        ],
        "title": "EntryFormRead",
        "description": "The community's entry form: what somebody answers on joining."
      },
      "EntryFormUpdate": {
        "properties": {
          "form_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Form Id"
          },
          "window_hours": {
            "type": "integer",
            "maximum": 720.0,
            "minimum": 1.0,
            "title": "Window Hours",
            "default": 24
          }
        },
        "type": "object",
        "title": "EntryFormUpdate"
      },
      "EnvelopeImportRequest": {
        "properties": {
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "envelope": {
            "additionalProperties": true,
            "type": "object",
            "title": "Envelope"
          }
        },
        "type": "object",
        "required": [
          "initiative_id",
          "envelope"
        ],
        "title": "EnvelopeImportRequest",
        "description": "Body of ``POST /imports/envelope``. The envelope is a raw dict \u2014\nits ``type`` field selects the importer, which validates the full shape\n(typing it as a union here would split the OpenAPI schema per type)."
      },
      "EnvelopeImportResult": {
        "properties": {
          "entity_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Entity Id"
          },
          "entity_title": {
            "type": "string",
            "title": "Entity Title",
            "default": ""
          },
          "created": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Created",
            "default": {}
          },
          "matched": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Matched",
            "default": {}
          },
          "failed": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Failed",
            "default": {}
          },
          "failed_rows": {
            "items": {
              "$ref": "#/components/schemas/ImportRowFailure"
            },
            "type": "array",
            "title": "Failed Rows",
            "default": []
          },
          "renamed_property_count": {
            "type": "integer",
            "title": "Renamed Property Count",
            "default": 0
          },
          "links_created": {
            "type": "integer",
            "title": "Links Created",
            "default": 0
          },
          "links_unresolved": {
            "type": "integer",
            "title": "Links Unresolved",
            "default": 0
          },
          "unmatched_handles": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Unmatched Handles",
            "default": []
          },
          "warnings": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Warnings",
            "default": []
          }
        },
        "type": "object",
        "title": "EnvelopeImportResult",
        "description": "One envelope's apply outcome \u2014 JSON-serializable because it is\npersisted verbatim into ``data_jobs.result`` and rendered by the UI."
      },
      "EventDetailFieldId": {
        "type": "string",
        "enum": [
          "title",
          "description",
          "location",
          "recurrence",
          "attendees",
          "tags"
        ],
        "title": "EventDetailFieldId",
        "description": "What an event's detail edits as a field. Its dates, its properties and\nyour answer are parts of their own."
      },
      "EvidencePolicyRead": {
        "properties": {
          "max_files": {
            "type": "integer",
            "title": "Max Files"
          },
          "max_bytes": {
            "type": "integer",
            "title": "Max Bytes"
          },
          "types": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Types"
          }
        },
        "type": "object",
        "required": [
          "max_files",
          "max_bytes",
          "types"
        ],
        "title": "EvidencePolicyRead",
        "description": "What may be attached: how many files, how large, of which types."
      },
      "EvidenceRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "display_name": {
            "type": "string",
            "title": "Display Name"
          },
          "content_type": {
            "type": "string",
            "title": "Content Type"
          },
          "size_bytes": {
            "type": "integer",
            "title": "Size Bytes"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "display_name",
          "content_type",
          "size_bytes",
          "created_at"
        ],
        "title": "EvidenceRead",
        "description": "One attached file: what it is called and what it is. Fetched by its\nown route, never by a link that outlives the reader's access."
      },
      "FCMConfigResponse": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          },
          "project_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Id"
          },
          "application_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Application Id"
          },
          "api_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Api Key"
          },
          "sender_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sender Id"
          },
          "push_relay_server_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Push Relay Server Id"
          },
          "android_via_relay": {
            "type": "boolean",
            "title": "Android Via Relay",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "enabled",
          "project_id",
          "application_id",
          "api_key",
          "sender_id",
          "push_relay_server_id",
          "android_via_relay"
        ],
        "title": "FCMConfigResponse",
        "description": "Public FCM configuration for mobile app initialization.\n\nOnly exposes public fields (API key, project ID, sender ID).\nDoes NOT expose service account credentials.\n\n``push_relay_server_id`` is this server's id at the push relay, under\nwhich the app registers its device token with the relay for a handle;\nnull while push is off or the server could not register.\n``android_via_relay`` says Android pushes go through the relay too (no\nservice account is configured), so the Android app registers a handle\nrather than its FCM token. iPhone pushes always go through the relay."
      },
      "FeedView": {
        "type": "string",
        "enum": [
          "all",
          "yours",
          "comments"
        ],
        "title": "FeedView",
        "description": "What an entry has to be, to be in a view."
      },
      "FeedbackSwitchUpdate": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          }
        },
        "type": "object",
        "required": [
          "enabled"
        ],
        "title": "FeedbackSwitchUpdate",
        "description": "Let people here send feedback to the Initiative team, or stop."
      },
      "FieldCatalogResponse": {
        "properties": {
          "dataset": {
            "type": "string",
            "title": "Dataset"
          },
          "fields": {
            "items": {
              "$ref": "#/components/schemas/FieldDescription"
            },
            "type": "array",
            "title": "Fields"
          },
          "relations": {
            "items": {
              "$ref": "#/components/schemas/RelationDescription"
            },
            "type": "array",
            "title": "Relations",
            "default": []
          },
          "default_filters": {
            "items": {
              "$ref": "#/components/schemas/DefaultFilter"
            },
            "type": "array",
            "title": "Default Filters",
            "default": []
          },
          "groupings": {
            "items": {
              "$ref": "#/components/schemas/GroupingDescription"
            },
            "type": "array",
            "title": "Groupings",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "dataset",
          "fields"
        ],
        "title": "FieldCatalogResponse",
        "description": "Every field a dataset offers, in the order a client lists them."
      },
      "FieldDescription": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "type": {
            "$ref": "#/components/schemas/FieldType"
          },
          "kind": {
            "$ref": "#/components/schemas/ControlKind"
          },
          "ops": {
            "items": {
              "$ref": "#/components/schemas/FilterOp"
            },
            "type": "array",
            "title": "Ops"
          },
          "multiple": {
            "type": "boolean",
            "title": "Multiple"
          },
          "sortable": {
            "type": "boolean",
            "title": "Sortable"
          },
          "options": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Options",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "name",
          "type",
          "kind",
          "ops",
          "multiple",
          "sortable"
        ],
        "title": "FieldDescription",
        "description": "One field a client may offer for filtering."
      },
      "FieldPart": {
        "properties": {
          "type": {
            "type": "string",
            "const": "field",
            "title": "Type"
          },
          "props": {
            "$ref": "#/components/schemas/FieldProps"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "type",
          "props"
        ],
        "title": "FieldPart"
      },
      "FieldProps": {
        "properties": {
          "field": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaskFieldId"
              },
              {
                "$ref": "#/components/schemas/FileFieldId"
              },
              {
                "type": "string"
              }
            ],
            "title": "Field"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "field"
        ],
        "title": "FieldProps"
      },
      "FieldType": {
        "type": "string",
        "enum": [
          "text",
          "number",
          "date",
          "boolean",
          "enum",
          "reference"
        ],
        "title": "FieldType",
        "description": "What a value *is*, for comparison and formatting.\n\nCoarser than a SQL type on purpose: a consumer needs to know that a due date\norders and a title does not, never that one is ``timestamptz`` and the other\n``varchar(200)``."
      },
      "FileCreate": {
        "properties": {
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertyValueInput"
            },
            "type": "array",
            "title": "Properties"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "featured_image_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Featured Image Url"
          },
          "is_template": {
            "type": "boolean",
            "title": "Is Template",
            "default": false
          },
          "content": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object",
                "x-mentions": "lexical"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content"
          },
          "file_type": {
            "type": "string",
            "enum": [
              "lexical",
              "excalidraw",
              "url",
              "sheet"
            ],
            "title": "File Type",
            "default": "lexical"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantSchema"
            },
            "type": "array",
            "title": "Grants"
          }
        },
        "type": "object",
        "required": [
          "name",
          "initiative_id"
        ],
        "title": "FileCreate"
      },
      "FileFieldId": {
        "type": "string",
        "enum": [
          "name",
          "type",
          "size",
          "added",
          "created"
        ],
        "title": "FileFieldId",
        "description": "A file's own fields, as a collection's lists and its file detail show\nthem."
      },
      "FileKind": {
        "type": "string",
        "enum": [
          "document",
          "spreadsheet",
          "presentation",
          "whiteboard",
          "pdf",
          "image",
          "video",
          "audio",
          "text",
          "compressed",
          "design",
          "3d",
          "font",
          "raw",
          "code",
          "ebook",
          "cad",
          "link",
          "other"
        ],
        "title": "FileKind"
      },
      "FileListResponse": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/FileSummary"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items"
        ],
        "title": "FileListResponse"
      },
      "FileRead": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_kind": {
            "$ref": "#/components/schemas/ActorKind"
          },
          "created_by_install": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Install"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "can": {
            "$ref": "#/components/schemas/ToolCan"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id",
            "x-identity": "community"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "comments_enabled": {
            "type": "boolean",
            "title": "Comments Enabled",
            "default": true
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagSummary"
            },
            "type": "array",
            "title": "Tags"
          },
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertySummary"
            },
            "type": "array",
            "title": "Properties"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantSchema"
            },
            "type": "array",
            "title": "Grants"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "featured_image_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Featured Image Url",
            "x-upload": true
          },
          "is_template": {
            "type": "boolean",
            "title": "Is Template",
            "default": false
          },
          "initiative": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InitiativeSummary"
              },
              {
                "type": "null"
              }
            ]
          },
          "owner": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UserPublic"
              },
              {
                "type": "null"
              }
            ]
          },
          "owner_plugin": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OwnerPluginSummary"
              },
              {
                "type": "null"
              }
            ]
          },
          "comment_count": {
            "type": "integer",
            "title": "Comment Count",
            "default": 0
          },
          "file_type": {
            "$ref": "#/components/schemas/FileType",
            "default": "lexical"
          },
          "file_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Url",
            "x-upload": true
          },
          "file_content_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Content Type"
          },
          "file_size": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Size"
          },
          "original_filename": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Original Filename"
          },
          "thumbnail_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Thumbnail Url",
            "x-upload": true
          },
          "width": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Width"
          },
          "height": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Height"
          },
          "smart_link_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Smart Link Url"
          },
          "content": {
            "additionalProperties": true,
            "type": "object",
            "title": "Content",
            "x-mentions": "lexical"
          },
          "theme": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Theme"
              },
              {
                "type": "null"
              }
            ]
          },
          "collection_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Collection Ids"
          },
          "content_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content Version"
          },
          "kind": {
            "$ref": "#/components/schemas/FileKind",
            "description": "How the file is shown, which follows from its type.",
            "readOnly": true
          },
          "converts_to": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FileType"
              },
              {
                "type": "null"
              }
            ],
            "description": "The editor's own type this uploaded file becomes when somebody\nconverts it to edit it (``POST /files/{id}/convert``), or ``None``.",
            "readOnly": true
          }
        },
        "type": "object",
        "required": [
          "created_by",
          "created_by_kind",
          "created_by_install",
          "archived_at",
          "can",
          "id",
          "community_id",
          "created_at",
          "updated_at",
          "comments_enabled",
          "tags",
          "properties",
          "grants",
          "name",
          "initiative_id",
          "featured_image_url",
          "is_template",
          "initiative",
          "owner",
          "owner_plugin",
          "comment_count",
          "file_type",
          "file_url",
          "file_content_type",
          "file_size",
          "original_filename",
          "thumbnail_url",
          "width",
          "height",
          "smart_link_url",
          "content",
          "theme",
          "collection_ids",
          "content_version",
          "kind",
          "converts_to"
        ],
        "title": "FileRead"
      },
      "FileSummary": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_kind": {
            "$ref": "#/components/schemas/ActorKind"
          },
          "created_by_install": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Install"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "can": {
            "$ref": "#/components/schemas/ToolCan"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id",
            "x-identity": "community"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "comments_enabled": {
            "type": "boolean",
            "title": "Comments Enabled",
            "default": true
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagSummary"
            },
            "type": "array",
            "title": "Tags"
          },
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertySummary"
            },
            "type": "array",
            "title": "Properties"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantSchema"
            },
            "type": "array",
            "title": "Grants"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "featured_image_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Featured Image Url",
            "x-upload": true
          },
          "is_template": {
            "type": "boolean",
            "title": "Is Template",
            "default": false
          },
          "initiative": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InitiativeSummary"
              },
              {
                "type": "null"
              }
            ]
          },
          "owner": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UserPublic"
              },
              {
                "type": "null"
              }
            ]
          },
          "owner_plugin": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OwnerPluginSummary"
              },
              {
                "type": "null"
              }
            ]
          },
          "comment_count": {
            "type": "integer",
            "title": "Comment Count",
            "default": 0
          },
          "file_type": {
            "$ref": "#/components/schemas/FileType",
            "default": "lexical"
          },
          "file_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Url",
            "x-upload": true
          },
          "file_content_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Content Type"
          },
          "file_size": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Size"
          },
          "original_filename": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Original Filename"
          },
          "thumbnail_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Thumbnail Url",
            "x-upload": true
          },
          "width": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Width"
          },
          "height": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Height"
          },
          "smart_link_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Smart Link Url"
          },
          "kind": {
            "$ref": "#/components/schemas/FileKind",
            "description": "How the file is shown, which follows from its type.",
            "readOnly": true
          }
        },
        "type": "object",
        "required": [
          "created_by",
          "created_by_kind",
          "created_by_install",
          "archived_at",
          "can",
          "id",
          "community_id",
          "created_at",
          "updated_at",
          "comments_enabled",
          "tags",
          "properties",
          "grants",
          "name",
          "initiative_id",
          "featured_image_url",
          "is_template",
          "initiative",
          "owner",
          "owner_plugin",
          "comment_count",
          "file_type",
          "file_url",
          "file_content_type",
          "file_size",
          "original_filename",
          "thumbnail_url",
          "width",
          "height",
          "smart_link_url",
          "kind"
        ],
        "title": "FileSummary"
      },
      "FileType": {
        "type": "string",
        "enum": [
          "lexical",
          "excalidraw",
          "sheet",
          "url",
          "pdf",
          "doc",
          "docx",
          "odt",
          "rtf",
          "md",
          "xls",
          "xlsx",
          "ods",
          "csv",
          "tsv",
          "ppt",
          "pptx",
          "odp",
          "png",
          "jpeg",
          "gif",
          "webp",
          "svg",
          "heic",
          "tiff",
          "mp4",
          "webm",
          "mov",
          "mp3",
          "m4a",
          "wav",
          "ogg",
          "flac",
          "txt",
          "json",
          "html",
          "zip",
          "tar",
          "gz",
          "7z",
          "rar",
          "ai",
          "psd",
          "eps",
          "indd",
          "xcf",
          "kra",
          "procreate",
          "clip",
          "sketch",
          "fig",
          "afdesign",
          "afphoto",
          "afpub",
          "cdr",
          "blend",
          "fbx",
          "obj",
          "stl",
          "glb",
          "gltf",
          "3mf",
          "usdz",
          "ttf",
          "otf",
          "woff",
          "woff2",
          "dng",
          "cr2",
          "cr3",
          "nef",
          "arw",
          "raf",
          "orf",
          "py",
          "js",
          "ts",
          "css",
          "sql",
          "yaml",
          "xml",
          "toml",
          "c",
          "cpp",
          "cs",
          "java",
          "go",
          "rs",
          "rb",
          "php",
          "swift",
          "kt",
          "epub",
          "mobi",
          "dwg",
          "dxf",
          "step",
          "other"
        ],
        "title": "FileType"
      },
      "FileUpdate": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "content": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object",
                "x-mentions": "lexical"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content"
          },
          "content_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content Version"
          },
          "replaces_suggestions": {
            "type": "boolean",
            "title": "Replaces Suggestions",
            "default": false
          },
          "featured_image_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Featured Image Url"
          },
          "is_template": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Template"
          },
          "theme": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ThemeWrite"
              },
              {
                "type": "null"
              }
            ]
          },
          "current_version_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Version Id"
          }
        },
        "type": "object",
        "title": "FileUpdate"
      },
      "FileVersionRead": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_kind": {
            "$ref": "#/components/schemas/ActorKind"
          },
          "created_by_install": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Install"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "version_number": {
            "type": "integer",
            "title": "Version Number"
          },
          "file_content_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Content Type"
          },
          "file_size": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Size"
          },
          "original_filename": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Original Filename"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "is_current": {
            "type": "boolean",
            "title": "Is Current",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "created_by",
          "created_by_kind",
          "created_by_install",
          "id",
          "version_number",
          "file_content_type",
          "file_size",
          "original_filename",
          "created_at",
          "is_current"
        ],
        "title": "FileVersionRead",
        "description": "A single stored version of an uploaded file. The binary is fetched\nvia the version download endpoint by id \u2014 ``file_url`` is intentionally\nnot exposed."
      },
      "FiledTicketDetailRead": {
        "properties": {
          "task_id": {
            "type": "integer",
            "title": "Task Id"
          },
          "stream": {
            "$ref": "#/components/schemas/IntakeStream"
          },
          "topic": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Topic"
          },
          "subject": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subject"
          },
          "state": {
            "$ref": "#/components/schemas/FilerState"
          },
          "opened_at": {
            "type": "string",
            "format": "date-time",
            "title": "Opened At"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "can_reply": {
            "type": "boolean",
            "title": "Can Reply"
          },
          "evidence": {
            "$ref": "#/components/schemas/EvidencePolicyRead"
          },
          "messages": {
            "items": {
              "$ref": "#/components/schemas/TicketMessageRead"
            },
            "type": "array",
            "title": "Messages"
          }
        },
        "type": "object",
        "required": [
          "task_id",
          "stream",
          "topic",
          "subject",
          "state",
          "opened_at",
          "updated_at",
          "conversation",
          "can_reply",
          "evidence",
          "messages"
        ],
        "title": "FiledTicketDetailRead",
        "description": "One case its filer filed, with what has been said to them about it."
      },
      "FiledTicketList": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/FiledTicketRead"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "FiledTicketList",
        "description": "The cases the reader filed, most recently moved first."
      },
      "FiledTicketRead": {
        "properties": {
          "task_id": {
            "type": "integer",
            "title": "Task Id"
          },
          "stream": {
            "$ref": "#/components/schemas/IntakeStream"
          },
          "topic": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Topic"
          },
          "subject": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subject"
          },
          "state": {
            "$ref": "#/components/schemas/FilerState"
          },
          "opened_at": {
            "type": "string",
            "format": "date-time",
            "title": "Opened At"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "task_id",
          "stream",
          "topic",
          "subject",
          "state",
          "opened_at",
          "updated_at"
        ],
        "title": "FiledTicketRead",
        "description": "One case its filer can follow: what they called it, and where it stands."
      },
      "FilerState": {
        "type": "string",
        "enum": [
          "received",
          "in_progress",
          "waiting_on_you",
          "closed"
        ],
        "title": "FilerState",
        "description": "Where a filed case stands, as its filer is shown it.\n\nDerived from the case's status when read, never stored: the people working\nthe case move it, and this follows."
      },
      "FilterOp": {
        "type": "string",
        "enum": [
          "eq",
          "lt",
          "lte",
          "gt",
          "gte",
          "in_",
          "ilike",
          "is_null"
        ],
        "title": "FilterOp",
        "description": "Comparison operators for filter conditions.\n\nNegation is handled by the ``negate`` flag on FilterCondition,\nnot by separate operators."
      },
      "ForeignImportRequest": {
        "properties": {
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "selection": {
            "type": "string",
            "title": "Selection",
            "default": ""
          },
          "content": {
            "type": "string",
            "title": "Content"
          }
        },
        "type": "object",
        "required": [
          "initiative_id",
          "content"
        ],
        "title": "ForeignImportRequest",
        "description": "Body of ``POST /imports/foreign/{source}``.\n\n``content`` is the export's own text \u2014 a CSV or a JSON document \u2014 sent\nback with the choice made about it, so nothing is held server-side\nbetween the preview and the import."
      },
      "ForeignPreview": {
        "properties": {
          "source": {
            "type": "string",
            "title": "Source"
          },
          "picks_one": {
            "type": "boolean",
            "title": "Picks One"
          },
          "options": {
            "items": {
              "$ref": "#/components/schemas/ForeignSourceOption"
            },
            "type": "array",
            "title": "Options"
          }
        },
        "type": "object",
        "required": [
          "source",
          "picks_one",
          "options"
        ],
        "title": "ForeignPreview",
        "description": "What an uploaded export holds, read without storing any of it.\n\n``picks_one`` tells the wizard what its next step is for: choosing\nbetween the options, or naming the single project the file describes."
      },
      "ForeignSourceOption": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "task_count": {
            "type": "integer",
            "title": "Task Count"
          }
        },
        "type": "object",
        "required": [
          "key",
          "name",
          "task_count"
        ],
        "title": "ForeignSourceOption",
        "description": "One importable thing inside an uploaded export."
      },
      "FormAnswerSummary": {
        "properties": {
          "form_version_id": {
            "type": "integer",
            "title": "Form Version Id"
          },
          "responses": {
            "type": "integer",
            "title": "Responses"
          },
          "questions": {
            "items": {
              "$ref": "#/components/schemas/FormQuestionAnswers"
            },
            "type": "array",
            "title": "Questions"
          }
        },
        "type": "object",
        "required": [
          "form_version_id",
          "responses",
          "questions"
        ],
        "title": "FormAnswerSummary"
      },
      "FormAnswersPer": {
        "type": "string",
        "enum": [
          "item",
          "person"
        ],
        "title": "FormAnswersPer",
        "description": "What satisfies something that depends on a form: the builder's\n**Answers** setting."
      },
      "FormCreate": {
        "properties": {
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertyValueInput"
            },
            "type": "array",
            "title": "Properties"
          },
          "one_per_person": {
            "type": "boolean",
            "title": "One Per Person",
            "default": true
          },
          "edit_after_submit": {
            "type": "boolean",
            "title": "Edit After Submit",
            "default": false
          },
          "answers_per": {
            "$ref": "#/components/schemas/FormAnswersPer",
            "default": "item"
          },
          "name": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "Name"
          },
          "description": {
            "type": "string",
            "maxLength": 10000,
            "title": "Description",
            "default": "",
            "x-mentions": "markdown"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "tag_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tag Ids"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantSchema"
            },
            "type": "array",
            "title": "Grants"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "FormCreate"
      },
      "FormDraftStart": {
        "properties": {
          "from_version_id": {
            "type": "integer",
            "title": "From Version Id"
          }
        },
        "type": "object",
        "required": [
          "from_version_id"
        ],
        "title": "FormDraftStart",
        "description": "Start the draft from a published version rather than the current one."
      },
      "FormDraftUpdate": {
        "properties": {
          "sections": {
            "items": {
              "$ref": "#/components/schemas/FormSectionDraft"
            },
            "type": "array",
            "maxItems": 50,
            "title": "Sections"
          }
        },
        "type": "object",
        "required": [
          "sections"
        ],
        "title": "FormDraftUpdate",
        "description": "The whole draft, as the builder holds it. A question keeps its key\nfrom version to version; one the draft no longer has goes."
      },
      "FormListResponse": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/FormSummary"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items"
        ],
        "title": "FormListResponse"
      },
      "FormOptionCount": {
        "properties": {
          "value": {
            "type": "string",
            "title": "Value"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          }
        },
        "type": "object",
        "required": [
          "value",
          "count"
        ],
        "title": "FormOptionCount"
      },
      "FormPart": {
        "properties": {
          "type": {
            "type": "string",
            "const": "form",
            "title": "Type"
          },
          "props": {
            "$ref": "#/components/schemas/FormPartProps"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "type",
          "props"
        ],
        "title": "FormPart",
        "description": "A form, filled in about the item: the item's responses to it, and Fill\nin for a reader of the form."
      },
      "FormPartProps": {
        "properties": {
          "form": {
            "type": "integer",
            "exclusiveMinimum": 0.0,
            "title": "Form"
          },
          "required": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Required"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "form"
        ],
        "title": "FormPartProps"
      },
      "FormPublish": {
        "properties": {
          "ask_again": {
            "type": "boolean",
            "title": "Ask Again",
            "default": false
          }
        },
        "type": "object",
        "title": "FormPublish"
      },
      "FormQuestionAnswers": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "property_id": {
            "type": "integer",
            "title": "Property Id"
          },
          "answered": {
            "type": "integer",
            "title": "Answered"
          },
          "options": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/FormOptionCount"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Options"
          }
        },
        "type": "object",
        "required": [
          "key",
          "property_id",
          "answered"
        ],
        "title": "FormQuestionAnswers",
        "description": "How one question was answered across the responses: a count of\nanswers, and per option for a choice, checkbox or scale question."
      },
      "FormQuestionDefinition": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name"
          },
          "type": {
            "$ref": "#/components/schemas/MetadataType"
          },
          "position": {
            "type": "number",
            "title": "Position",
            "default": 0.0
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          },
          "options": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/PropertyOption"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Options"
          },
          "currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              {
                "type": "null"
              }
            ]
          },
          "counter": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CounterSettings-Output"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "type": "integer",
            "title": "Id"
          }
        },
        "type": "object",
        "required": [
          "name",
          "type",
          "id"
        ],
        "title": "FormQuestionDefinition",
        "description": "What a question asks: the property its version owns. Its ``name`` is\nthe question as written."
      },
      "FormQuestionDraft": {
        "properties": {
          "key": {
            "type": "string",
            "maxLength": 36,
            "minLength": 1,
            "title": "Key"
          },
          "required": {
            "type": "boolean",
            "title": "Required",
            "default": false
          },
          "help": {
            "type": "string",
            "maxLength": 2000,
            "title": "Help",
            "default": ""
          },
          "definition": {
            "$ref": "#/components/schemas/PropertyDefinitionBase"
          }
        },
        "type": "object",
        "required": [
          "key",
          "definition"
        ],
        "title": "FormQuestionDraft",
        "description": "One question as the builder saves it: what it asks, written in full."
      },
      "FormQuestionRead": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "required": {
            "type": "boolean",
            "title": "Required"
          },
          "help": {
            "type": "string",
            "title": "Help"
          },
          "definition": {
            "$ref": "#/components/schemas/FormQuestionDefinition"
          }
        },
        "type": "object",
        "required": [
          "key",
          "required",
          "help",
          "definition"
        ],
        "title": "FormQuestionRead"
      },
      "FormRead": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_kind": {
            "$ref": "#/components/schemas/ActorKind"
          },
          "created_by_install": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Install"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "can": {
            "$ref": "#/components/schemas/ToolCan"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id",
            "x-identity": "community"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "comments_enabled": {
            "type": "boolean",
            "title": "Comments Enabled",
            "default": true
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagSummary"
            },
            "type": "array",
            "title": "Tags"
          },
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertySummary"
            },
            "type": "array",
            "title": "Properties"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantSchema"
            },
            "type": "array",
            "title": "Grants"
          },
          "one_per_person": {
            "type": "boolean",
            "title": "One Per Person",
            "default": true
          },
          "edit_after_submit": {
            "type": "boolean",
            "title": "Edit After Submit",
            "default": false
          },
          "answers_per": {
            "$ref": "#/components/schemas/FormAnswersPer",
            "default": "item"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "description": {
            "type": "string",
            "title": "Description",
            "default": "",
            "x-mentions": "markdown"
          },
          "counts_from_version": {
            "type": "integer",
            "title": "Counts From Version",
            "default": 1
          },
          "current_version_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Version Id"
          },
          "current_version_number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Version Number"
          },
          "draft_version_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Draft Version Id"
          },
          "my_response": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FormResponseBrief"
              },
              {
                "type": "null"
              }
            ]
          },
          "response_count": {
            "type": "integer",
            "title": "Response Count",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "created_by",
          "created_by_kind",
          "created_by_install",
          "archived_at",
          "can",
          "id",
          "community_id",
          "created_at",
          "updated_at",
          "comments_enabled",
          "tags",
          "properties",
          "grants",
          "one_per_person",
          "edit_after_submit",
          "answers_per",
          "initiative_id",
          "name",
          "description",
          "counts_from_version",
          "current_version_id",
          "current_version_number",
          "draft_version_id",
          "my_response",
          "response_count"
        ],
        "title": "FormRead"
      },
      "FormResponseBrief": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "form_version_id": {
            "type": "integer",
            "title": "Form Version Id"
          },
          "submitted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submitted At"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "subject": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FormSubject"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "id",
          "form_version_id"
        ],
        "title": "FormResponseBrief"
      },
      "FormResponseList": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/FormResponseRead"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items"
        ],
        "title": "FormResponseList"
      },
      "FormResponseRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "form_id": {
            "type": "integer",
            "title": "Form Id"
          },
          "form_version_id": {
            "type": "integer",
            "title": "Form Version Id"
          },
          "version_number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Version Number"
          },
          "respondent_id": {
            "type": "integer",
            "title": "Respondent Id",
            "x-identity": "person"
          },
          "subject": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FormSubject"
              },
              {
                "type": "null"
              }
            ]
          },
          "submitted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submitted At"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "counts": {
            "type": "boolean",
            "title": "Counts",
            "default": true
          },
          "answers": {
            "items": {
              "$ref": "#/components/schemas/PropertySummary"
            },
            "type": "array",
            "title": "Answers"
          },
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertySummary"
            },
            "type": "array",
            "title": "Properties"
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagSummary"
            },
            "type": "array",
            "title": "Tags"
          }
        },
        "type": "object",
        "required": [
          "id",
          "form_id",
          "form_version_id",
          "respondent_id",
          "created_at",
          "updated_at"
        ],
        "title": "FormResponseRead"
      },
      "FormResponseWrite": {
        "properties": {
          "answers": {
            "items": {
              "$ref": "#/components/schemas/PropertyValueInput"
            },
            "type": "array",
            "maxItems": 200,
            "title": "Answers"
          },
          "removed": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 200,
            "title": "Removed"
          },
          "submit": {
            "type": "boolean",
            "title": "Submit",
            "default": false
          },
          "subject": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FormSubject"
              },
              {
                "type": "null"
              }
            ]
          },
          "tag_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array",
                "maxItems": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Tag Ids"
          }
        },
        "type": "object",
        "title": "FormResponseWrite",
        "description": "Answers to a form. A draft saves whatever is filled in; ``submit``\nis refused while a required question is empty."
      },
      "FormSectionDraft": {
        "properties": {
          "key": {
            "type": "string",
            "maxLength": 36,
            "minLength": 1,
            "title": "Key"
          },
          "title": {
            "type": "string",
            "maxLength": 255,
            "title": "Title",
            "default": ""
          },
          "description": {
            "type": "string",
            "maxLength": 10000,
            "title": "Description",
            "default": "",
            "x-mentions": "markdown"
          },
          "show_when": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FormShowWhen"
              },
              {
                "type": "null"
              }
            ]
          },
          "questions": {
            "items": {
              "$ref": "#/components/schemas/FormQuestionDraft"
            },
            "type": "array",
            "title": "Questions"
          }
        },
        "type": "object",
        "required": [
          "key"
        ],
        "title": "FormSectionDraft"
      },
      "FormSectionRead": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "description": {
            "type": "string",
            "title": "Description",
            "x-mentions": "markdown"
          },
          "show_when": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FormShowWhen"
              },
              {
                "type": "null"
              }
            ]
          },
          "questions": {
            "items": {
              "$ref": "#/components/schemas/FormQuestionRead"
            },
            "type": "array",
            "title": "Questions"
          }
        },
        "type": "object",
        "required": [
          "key",
          "title",
          "description",
          "questions"
        ],
        "title": "FormSectionRead"
      },
      "FormShowWhen": {
        "properties": {
          "question": {
            "type": "string",
            "maxLength": 36,
            "minLength": 1,
            "title": "Question"
          },
          "options": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 100,
            "minItems": 1,
            "title": "Options"
          }
        },
        "type": "object",
        "required": [
          "question",
          "options"
        ],
        "title": "FormShowWhen",
        "description": "Show a section only when a choice question, in a section before it,\nwas answered with one of ``options``."
      },
      "FormSubject": {
        "properties": {
          "kind": {
            "type": "string",
            "maxLength": 32,
            "minLength": 1,
            "title": "Kind"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          }
        },
        "type": "object",
        "required": [
          "kind",
          "id"
        ],
        "title": "FormSubject",
        "description": "What a response is about: the item it was filled in from, or the\ninitiative it joins."
      },
      "FormSummary": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_kind": {
            "$ref": "#/components/schemas/ActorKind"
          },
          "created_by_install": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Install"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "can": {
            "$ref": "#/components/schemas/ToolCan"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id",
            "x-identity": "community"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "comments_enabled": {
            "type": "boolean",
            "title": "Comments Enabled",
            "default": true
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagSummary"
            },
            "type": "array",
            "title": "Tags"
          },
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertySummary"
            },
            "type": "array",
            "title": "Properties"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantSchema"
            },
            "type": "array",
            "title": "Grants"
          },
          "one_per_person": {
            "type": "boolean",
            "title": "One Per Person",
            "default": true
          },
          "edit_after_submit": {
            "type": "boolean",
            "title": "Edit After Submit",
            "default": false
          },
          "answers_per": {
            "$ref": "#/components/schemas/FormAnswersPer",
            "default": "item"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "description": {
            "type": "string",
            "title": "Description",
            "default": "",
            "x-mentions": "markdown"
          },
          "counts_from_version": {
            "type": "integer",
            "title": "Counts From Version",
            "default": 1
          },
          "current_version_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Version Id"
          },
          "current_version_number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Version Number"
          },
          "draft_version_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Draft Version Id"
          },
          "my_response": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FormResponseBrief"
              },
              {
                "type": "null"
              }
            ]
          },
          "response_count": {
            "type": "integer",
            "title": "Response Count",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "created_by",
          "created_by_kind",
          "created_by_install",
          "archived_at",
          "can",
          "id",
          "community_id",
          "created_at",
          "updated_at",
          "comments_enabled",
          "tags",
          "properties",
          "grants",
          "one_per_person",
          "edit_after_submit",
          "answers_per",
          "initiative_id",
          "name",
          "description",
          "counts_from_version",
          "current_version_id",
          "current_version_number",
          "draft_version_id",
          "my_response",
          "response_count"
        ],
        "title": "FormSummary"
      },
      "FormUpdate": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 10000,
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "one_per_person": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "One Per Person"
          },
          "edit_after_submit": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Edit After Submit"
          },
          "answers_per": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FormAnswersPer"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "title": "FormUpdate"
      },
      "FormVersionList": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/FormVersionSummary"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "FormVersionList"
      },
      "FormVersionRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "form_id": {
            "type": "integer",
            "title": "Form Id"
          },
          "version_number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Version Number"
          },
          "published_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Published At"
          },
          "published_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Published By"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "response_count": {
            "type": "integer",
            "title": "Response Count",
            "default": 0
          },
          "sections": {
            "items": {
              "$ref": "#/components/schemas/FormSectionRead"
            },
            "type": "array",
            "title": "Sections"
          }
        },
        "type": "object",
        "required": [
          "id",
          "form_id",
          "created_at",
          "updated_at",
          "sections"
        ],
        "title": "FormVersionRead"
      },
      "FormVersionSummary": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "form_id": {
            "type": "integer",
            "title": "Form Id"
          },
          "version_number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Version Number"
          },
          "published_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Published At"
          },
          "published_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Published By"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "response_count": {
            "type": "integer",
            "title": "Response Count",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "id",
          "form_id",
          "created_at",
          "updated_at"
        ],
        "title": "FormVersionSummary"
      },
      "GenerateChecklistResponse": {
        "properties": {
          "comments_read": {
            "type": "integer",
            "title": "Comments Read"
          },
          "comments_total": {
            "type": "integer",
            "title": "Comments Total"
          },
          "items": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "comments_read",
          "comments_total",
          "items"
        ],
        "title": "GenerateChecklistResponse",
        "description": "Suggested checklist lines, as text \u2014 the caller decides which to keep."
      },
      "GenerateDescriptionResponse": {
        "properties": {
          "comments_read": {
            "type": "integer",
            "title": "Comments Read"
          },
          "comments_total": {
            "type": "integer",
            "title": "Comments Total"
          },
          "description": {
            "type": "string",
            "title": "Description"
          }
        },
        "type": "object",
        "required": [
          "comments_read",
          "comments_total",
          "description"
        ],
        "title": "GenerateDescriptionResponse",
        "description": "A description for the reader to start from."
      },
      "GrantCaseList": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/GrantCaseRead"
            },
            "type": "array",
            "title": "Items"
          },
          "required": {
            "type": "boolean",
            "title": "Required"
          }
        },
        "type": "object",
        "required": [
          "items",
          "required"
        ],
        "title": "GrantCaseList",
        "description": "The open cases the reader may name, theirs first. ``required`` says\nwhether a request must name one here."
      },
      "GrantCaseRead": {
        "properties": {
          "task_id": {
            "type": "integer",
            "title": "Task Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "stream": {
            "$ref": "#/components/schemas/IntakeStream"
          },
          "subject_community_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subject Community Id"
          },
          "mine": {
            "type": "boolean",
            "title": "Mine",
            "default": false
          },
          "community_notice": {
            "$ref": "#/components/schemas/CommunityNoticeRule",
            "default": "never"
          }
        },
        "type": "object",
        "required": [
          "task_id",
          "title",
          "stream",
          "subject_community_id",
          "mine",
          "community_notice"
        ],
        "title": "GrantCaseRead",
        "description": "An open operations case the reader may name as the reason for a grant."
      },
      "GroupRead": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Label"
          }
        },
        "type": "object",
        "required": [
          "key"
        ],
        "title": "GroupRead",
        "description": "One group of a grouped list."
      },
      "GroupingDescription": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "bucket": {
            "type": "boolean",
            "title": "Bucket",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "name",
          "kind"
        ],
        "title": "GroupingDescription",
        "description": "A field a list of the dataset can be grouped by."
      },
      "GroupsResponse": {
        "properties": {
          "groups": {
            "items": {
              "$ref": "#/components/schemas/GroupRead"
            },
            "type": "array",
            "title": "Groups"
          },
          "rows": {
            "additionalProperties": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "type": "object",
            "title": "Rows"
          }
        },
        "type": "object",
        "required": [
          "groups",
          "rows"
        ],
        "title": "GroupsResponse",
        "description": "A list's groups by one field, and the groups each row is in.\n\nGrouped by a person, a key is their id. An installed plug-in reads its own\nreference for them instead, in ``groups`` and ``rows`` alike, and their\nname only where it reads people's names, as wherever else it reads a\nperson."
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "HeatmapDayData": {
        "properties": {
          "date": {
            "type": "string",
            "format": "date",
            "title": "Date",
            "description": "Date of activity"
          },
          "activity_count": {
            "type": "integer",
            "title": "Activity Count",
            "description": "Number of task activities on this date"
          }
        },
        "type": "object",
        "required": [
          "date",
          "activity_count"
        ],
        "title": "HeatmapDayData",
        "description": "Daily activity data for heatmap visualization."
      },
      "HeldChangeKind": {
        "type": "string",
        "enum": [
          "primary",
          "remove_address",
          "second_factor_off",
          "last_passkey"
        ],
        "title": "HeldChangeKind",
        "description": "The changes to how an account is signed into that can wait."
      },
      "HeldChangeOutcome": {
        "properties": {
          "held": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HeldChangeRead"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "held"
        ],
        "title": "HeldChangeOutcome",
        "description": "What a change that may be held answers, made or not: ``held`` is the\nchange waiting (``202``), or null where it was made at once (``200``)."
      },
      "HeldChangeRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "kind": {
            "$ref": "#/components/schemas/HeldChangeKind"
          },
          "subject": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subject"
          },
          "requested_at": {
            "type": "string",
            "format": "date-time",
            "title": "Requested At"
          },
          "applies_at": {
            "type": "string",
            "format": "date-time",
            "title": "Applies At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "kind",
          "requested_at",
          "applies_at"
        ],
        "title": "HeldChangeRead",
        "description": "A change to how the account is signed into that waits until\n``applies_at``. ``subject`` is the address or passkey it acts on."
      },
      "HeldSurfacesRead": {
        "properties": {
          "surfaces": {
            "items": {
              "$ref": "#/components/schemas/AdminSurface"
            },
            "type": "array",
            "title": "Surfaces"
          },
          "plugin_permissions": {
            "items": {
              "$ref": "#/components/schemas/PluginPermissionRef"
            },
            "type": "array",
            "title": "Plugin Permissions",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "surfaces"
        ],
        "title": "HeldSurfacesRead"
      },
      "HiddenFiles": {
        "properties": {
          "count": {
            "type": "integer",
            "title": "Count",
            "default": 0
          },
          "requested": {
            "type": "integer",
            "title": "Requested",
            "default": 0
          }
        },
        "type": "object",
        "title": "HiddenFiles",
        "description": "The files of a collection or a wiki the reader knows are there and\ncan't open, and how many of those they have asked for."
      },
      "HoldCreate": {
        "properties": {
          "target_type": {
            "type": "string",
            "maxLength": 32,
            "minLength": 1,
            "title": "Target Type"
          },
          "target_id": {
            "type": "integer",
            "title": "Target Id"
          },
          "reason": {
            "$ref": "#/components/schemas/HoldReason"
          },
          "legal_basis": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LegalBasis"
              },
              {
                "type": "null"
              }
            ]
          },
          "note": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          },
          "case_task_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Case Task Id"
          }
        },
        "type": "object",
        "required": [
          "target_type",
          "target_id",
          "reason"
        ],
        "title": "HoldCreate",
        "description": "Hold something for the platform."
      },
      "HoldPlaced": {
        "properties": {
          "placed": {
            "type": "boolean",
            "title": "Placed",
            "default": true
          }
        },
        "type": "object",
        "title": "HoldPlaced",
        "description": "A hold was placed. Nothing more is said: from now on, the content\nreads as absent to the community, the moderator who held it included."
      },
      "HoldReason": {
        "type": "string",
        "enum": [
          "legal_request",
          "illegal_content"
        ],
        "title": "HoldReason",
        "description": "Why content is held."
      },
      "HoldRelease": {
        "type": "string",
        "enum": [
          "restore",
          "remove",
          "purge"
        ],
        "title": "HoldRelease",
        "description": "How a hold ended. Only the platform releases one."
      },
      "HoldReleaseCreate": {
        "properties": {
          "outcome": {
            "$ref": "#/components/schemas/HoldRelease"
          }
        },
        "type": "object",
        "required": [
          "outcome"
        ],
        "title": "HoldReleaseCreate",
        "description": "End a hold."
      },
      "HoldVia": {
        "type": "string",
        "enum": [
          "community",
          "platform"
        ],
        "title": "HoldVia",
        "description": "Who placed a hold."
      },
      "HomeLayoutGrid": {
        "properties": {
          "x": {
            "type": "integer",
            "title": "X"
          },
          "y": {
            "type": "integer",
            "title": "Y"
          },
          "w": {
            "type": "integer",
            "title": "W"
          },
          "h": {
            "type": "integer",
            "title": "H"
          }
        },
        "type": "object",
        "required": [
          "x",
          "y",
          "w",
          "h"
        ],
        "title": "HomeLayoutGrid",
        "description": "Where a widget sits on the twelve-column home grid, in columns and rows."
      },
      "HomeLayoutListResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/HomeLayoutListing"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "HomeLayoutListResponse",
        "description": "Every home layout this deployment offers. Read all at once \u2014 one shelf."
      },
      "HomeLayoutListing": {
        "properties": {
          "uid": {
            "type": "string",
            "title": "Uid"
          },
          "public_id": {
            "type": "string",
            "title": "Public Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "publisher": {
            "type": "string",
            "title": "Publisher"
          },
          "description": {
            "type": "string",
            "title": "Description"
          },
          "long_description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Long Description"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "version": {
            "type": "string",
            "title": "Version"
          },
          "widgets": {
            "items": {
              "$ref": "#/components/schemas/HomeLayoutWidget"
            },
            "type": "array",
            "title": "Widgets"
          }
        },
        "type": "object",
        "required": [
          "uid",
          "public_id",
          "name",
          "publisher",
          "description",
          "long_description",
          "avatar_url",
          "version",
          "widgets"
        ],
        "title": "HomeLayoutListing",
        "description": "A home layout somebody can add to their home page as a new view.\n\nA marketplace listing, so the words are its publisher's; ``uid`` names it on\nevery deployment carrying the catalog."
      },
      "HomeLayoutWidget": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "type": {
            "type": "string",
            "title": "Type"
          },
          "grid": {
            "$ref": "#/components/schemas/HomeLayoutGrid"
          },
          "options": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Options"
          }
        },
        "type": "object",
        "required": [
          "id",
          "type",
          "grid",
          "options"
        ],
        "title": "HomeLayoutWidget",
        "description": "One widget a layout places. ``options`` are the few that mean the same on\nanybody's page \u2014 how far ahead, which tools, clock or timer."
      },
      "ICalEventPreview": {
        "properties": {
          "summary": {
            "type": "string",
            "title": "Summary"
          },
          "start_at": {
            "type": "string",
            "title": "Start At"
          },
          "end_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "End At"
          },
          "all_day": {
            "type": "boolean",
            "title": "All Day"
          },
          "has_recurrence": {
            "type": "boolean",
            "title": "Has Recurrence"
          }
        },
        "type": "object",
        "required": [
          "summary",
          "start_at",
          "all_day",
          "has_recurrence"
        ],
        "title": "ICalEventPreview"
      },
      "ICalImportError": {
        "properties": {
          "problem": {
            "$ref": "#/components/schemas/ICalImportProblem"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          }
        },
        "type": "object",
        "required": [
          "problem"
        ],
        "title": "ICalImportError"
      },
      "ICalImportProblem": {
        "type": "string",
        "enum": [
          "no_start",
          "unreadable",
          "not_saved"
        ],
        "title": "ICalImportProblem",
        "description": "Why one event in the file was not imported."
      },
      "ICalImportRequest": {
        "properties": {
          "calendar_id": {
            "type": "integer",
            "title": "Calendar Id"
          },
          "ics_content": {
            "type": "string",
            "maxLength": 2000000,
            "title": "Ics Content"
          },
          "tz": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Tz"
          }
        },
        "type": "object",
        "required": [
          "calendar_id",
          "ics_content"
        ],
        "title": "ICalImportRequest"
      },
      "ICalImportResult": {
        "properties": {
          "events_created": {
            "type": "integer",
            "title": "Events Created",
            "default": 0
          },
          "events_failed": {
            "type": "integer",
            "title": "Events Failed",
            "default": 0
          },
          "errors": {
            "items": {
              "$ref": "#/components/schemas/ICalImportError"
            },
            "type": "array",
            "title": "Errors"
          }
        },
        "type": "object",
        "title": "ICalImportResult"
      },
      "ICalParseRequest": {
        "properties": {
          "ics_content": {
            "type": "string",
            "maxLength": 2000000,
            "title": "Ics Content"
          },
          "tz": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Tz"
          }
        },
        "type": "object",
        "required": [
          "ics_content"
        ],
        "title": "ICalParseRequest"
      },
      "ICalParseResult": {
        "properties": {
          "event_count": {
            "type": "integer",
            "title": "Event Count"
          },
          "events": {
            "items": {
              "$ref": "#/components/schemas/ICalEventPreview"
            },
            "type": "array",
            "title": "Events"
          },
          "has_recurring": {
            "type": "boolean",
            "title": "Has Recurring"
          }
        },
        "type": "object",
        "required": [
          "event_count",
          "events",
          "has_recurring"
        ],
        "title": "ICalParseResult"
      },
      "IdeaCategoryCount": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          }
        },
        "type": "object",
        "required": [
          "name",
          "count"
        ],
        "title": "IdeaCategoryCount",
        "description": "One category, and how many of the ideas the list can show are in it."
      },
      "IdeaJoin": {
        "properties": {
          "idea_task_id": {
            "type": "integer",
            "title": "Idea Task Id"
          }
        },
        "type": "object",
        "required": [
          "idea_task_id"
        ],
        "title": "IdeaJoin",
        "description": "The idea on the Ideas board to join a case or another idea to."
      },
      "IdeaListRead": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/IdeaRead"
            },
            "type": "array",
            "title": "Items"
          },
          "statuses": {
            "items": {
              "$ref": "#/components/schemas/IdeaStatusRead"
            },
            "type": "array",
            "title": "Statuses"
          },
          "categories": {
            "items": {
              "$ref": "#/components/schemas/IdeaCategoryCount"
            },
            "type": "array",
            "title": "Categories"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items",
          "statuses",
          "categories"
        ],
        "title": "IdeaListRead",
        "description": "A page of the published ideas, the statuses they read as, and the\ncategories they are in."
      },
      "IdeaRead": {
        "properties": {
          "task_id": {
            "type": "integer",
            "title": "Task Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "status": {
            "$ref": "#/components/schemas/IdeaStatusRead"
          },
          "votes": {
            "type": "integer",
            "title": "Votes"
          },
          "voted": {
            "type": "boolean",
            "title": "Voted"
          },
          "closed": {
            "type": "boolean",
            "title": "Closed"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          },
          "category": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Category"
          },
          "release": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Release"
          },
          "summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Summary"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          }
        },
        "type": "object",
        "required": [
          "task_id",
          "title",
          "status",
          "votes",
          "voted",
          "closed",
          "created_at"
        ],
        "title": "IdeaRead",
        "description": "One published idea."
      },
      "IdeaRoadmapColumn": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/IdeaStatusRead"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/IdeaRead"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "status",
          "items"
        ],
        "title": "IdeaRoadmapColumn",
        "description": "One status on the roadmap, and the ideas that read as it."
      },
      "IdeaRoadmapRead": {
        "properties": {
          "columns": {
            "items": {
              "$ref": "#/components/schemas/IdeaRoadmapColumn"
            },
            "type": "array",
            "title": "Columns"
          }
        },
        "type": "object",
        "required": [
          "columns"
        ],
        "title": "IdeaRoadmapRead",
        "description": "The board's in-progress statuses in its order, then its shipped\nstatus."
      },
      "IdeaSort": {
        "type": "string",
        "enum": [
          "votes",
          "newest"
        ],
        "title": "IdeaSort",
        "description": "How the list is ordered."
      },
      "IdeaStatusRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "category": {
            "type": "string",
            "title": "Category"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "category"
        ],
        "title": "IdeaStatusRead",
        "description": "A status of the Ideas board, under the name the team gave it."
      },
      "IgnoreAccountCreate": {
        "properties": {
          "username": {
            "type": "string",
            "title": "Username"
          },
          "discriminator": {
            "type": "integer",
            "title": "Discriminator"
          }
        },
        "type": "object",
        "required": [
          "username",
          "discriminator"
        ],
        "title": "IgnoreAccountCreate",
        "description": "Ignoring by handle, the same address a connection request takes."
      },
      "IgnoredAccountRead": {
        "properties": {
          "user_id": {
            "type": "integer",
            "title": "User Id"
          },
          "username": {
            "type": "string",
            "title": "Username"
          },
          "discriminator": {
            "type": "integer",
            "title": "Discriminator"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "user_id",
          "username",
          "discriminator",
          "avatar_url",
          "created_at"
        ],
        "title": "IgnoredAccountRead",
        "description": "One row of the holder's own list."
      },
      "IgnoredAccountsResponse": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/IgnoredAccountRead"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items"
        ],
        "title": "IgnoredAccountsResponse"
      },
      "ImportRowFailure": {
        "properties": {
          "row": {
            "type": "integer",
            "title": "Row"
          },
          "field": {
            "type": "string",
            "title": "Field"
          }
        },
        "type": "object",
        "required": [
          "row",
          "field"
        ],
        "title": "ImportRowFailure",
        "description": "A row of a spreadsheet that was left out, and the field that stopped\nit. ``row`` is the row a spreadsheet shows it on, the header being 1."
      },
      "InitiativeCan": {
        "properties": {
          "manage": {
            "type": "boolean",
            "title": "Manage",
            "default": false
          },
          "moderate": {
            "type": "boolean",
            "title": "Moderate",
            "default": false
          },
          "roster": {
            "type": "boolean",
            "title": "Roster",
            "default": false
          },
          "answer_join_requests": {
            "type": "boolean",
            "title": "Answer Join Requests",
            "default": false
          },
          "view": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "View"
          },
          "create": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Create"
          }
        },
        "type": "object",
        "required": [
          "manage",
          "moderate",
          "roster",
          "answer_join_requests",
          "view",
          "create"
        ],
        "title": "InitiativeCan",
        "description": "What the caller may do in an initiative (:func:`initiative_can`)."
      },
      "InitiativeCreate": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          },
          "tools": {
            "additionalProperties": {
              "type": "boolean"
            },
            "type": "object",
            "title": "Tools"
          },
          "join_policy": {
            "$ref": "#/components/schemas/InitiativeJoinPolicy",
            "default": "private"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "InitiativeCreate"
      },
      "InitiativeDefaultsRead": {
        "properties": {
          "tools": {
            "additionalProperties": {
              "type": "boolean"
            },
            "type": "object",
            "title": "Tools"
          },
          "member_permissions": {
            "additionalProperties": {
              "type": "boolean"
            },
            "type": "object",
            "title": "Member Permissions"
          },
          "plugin_member_permissions": {
            "items": {
              "$ref": "#/components/schemas/PluginPermissionRule"
            },
            "type": "array",
            "title": "Plugin Member Permissions"
          },
          "custom_roles": {
            "type": "boolean",
            "title": "Custom Roles",
            "default": true
          },
          "own_tools": {
            "additionalProperties": {
              "items": {
                "type": "integer"
              },
              "type": "array"
            },
            "type": "object",
            "title": "Own Tools"
          },
          "own_member_permissions": {
            "additionalProperties": {
              "items": {
                "type": "integer"
              },
              "type": "array"
            },
            "type": "object",
            "title": "Own Member Permissions"
          },
          "own_plugin_member_permissions": {
            "items": {
              "$ref": "#/components/schemas/PluginPermissionInitiatives"
            },
            "type": "array",
            "title": "Own Plugin Member Permissions"
          }
        },
        "type": "object",
        "required": [
          "tools",
          "member_permissions",
          "plugin_member_permissions",
          "custom_roles",
          "own_tools",
          "own_member_permissions",
          "own_plugin_member_permissions"
        ],
        "title": "InitiativeDefaultsRead",
        "description": "What the community sets for every initiative in it. A tool or a member\npermission absent here is each initiative's own to set."
      },
      "InitiativeDefaultsUpdate": {
        "properties": {
          "tools": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "object",
            "title": "Tools"
          },
          "member_permissions": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "object",
            "title": "Member Permissions"
          },
          "plugin_member_permissions": {
            "items": {
              "$ref": "#/components/schemas/PluginPermissionDefault"
            },
            "type": "array",
            "maxItems": 1000,
            "title": "Plugin Member Permissions"
          },
          "custom_roles": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Custom Roles"
          }
        },
        "type": "object",
        "title": "InitiativeDefaultsUpdate",
        "description": "The defaults to change. A ``null`` hands that tool or permission back\nto each initiative; an omitted one is left as it is."
      },
      "InitiativeDirectoryEntry": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          },
          "join_policy": {
            "$ref": "#/components/schemas/InitiativeJoinPolicy"
          },
          "auto_join": {
            "type": "boolean",
            "title": "Auto Join",
            "default": false
          },
          "join_form_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Join Form Id"
          },
          "member_count": {
            "type": "integer",
            "title": "Member Count",
            "default": 0
          },
          "is_member": {
            "type": "boolean",
            "title": "Is Member",
            "default": false
          },
          "role_display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Role Display Name"
          },
          "has_pending_request": {
            "type": "boolean",
            "title": "Has Pending Request",
            "default": false
          },
          "pending_join_request_count": {
            "type": "integer",
            "title": "Pending Join Request Count",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "description",
          "color",
          "join_policy",
          "auto_join",
          "join_form_id",
          "member_count",
          "is_member",
          "role_display_name",
          "has_pending_request",
          "pending_join_request_count"
        ],
        "title": "InitiativeDirectoryEntry",
        "description": "One card in a guild's initiative directory.\n\nOnly initiatives that chose to be listed (``request`` / ``open``) ever reach\nthis shape; a ``private`` one is excluded in the service. The three caller-\nrelative fields answer which call to action the card renders: already in it,\nknocked and waiting, or free to join."
      },
      "InitiativeJoinPolicy": {
        "type": "string",
        "enum": [
          "private",
          "request",
          "open"
        ],
        "title": "InitiativeJoinPolicy",
        "description": "How a guild member may come to hold a membership row in an initiative.\n\nThe policy governs *how a membership row comes to exist* \u2014 it is never\nconsulted by RLS. ``initiative_access`` still answers every access\nquestion from ``initiative_members`` exactly as it did before.\n\n- ``private``: invisible outside its membership; a manager adds people by\n  hand. The default, so nothing opens on upgrade.\n- ``request``: listed in the guild's initiative directory; members ask and a\n  manager resolves the request.\n- ``open``: listed in the directory; any guild member self-joins and\n  receives the built-in ``member`` role.\n\nStored as a plain string with a table CHECK (the ``guilds.status`` pattern)\nrather than a Postgres enum, so adding a policy is an ordinary migration."
      },
      "InitiativeJoinRequestCreate": {
        "properties": {
          "message": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          }
        },
        "type": "object",
        "title": "InitiativeJoinRequestCreate",
        "description": "A guild member knocking on a ``request``-policy initiative."
      },
      "InitiativeJoinRequestRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "user": {
            "$ref": "#/components/schemas/UserSummary"
          },
          "status": {
            "$ref": "#/components/schemas/JoinRequestStatus"
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          },
          "response": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FormResponseRead"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "resolved_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resolved At"
          },
          "resolved_by": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resolved By"
          },
          "prior_denials": {
            "type": "integer",
            "title": "Prior Denials",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "id",
          "initiative_id",
          "user",
          "status",
          "message",
          "response",
          "created_at",
          "resolved_at",
          "resolved_by",
          "prior_denials"
        ],
        "title": "InitiativeJoinRequestRead",
        "description": "One row of an initiative's join-request queue.\n\nCarries everything the manager needs to decide without a second call: who\nis asking (the same slim user projection the member pickers use), what they\nsaid, when they asked, and how many times this initiative has turned them\ndown before \u2014 a denied requester may ask again, so the history is what keeps\nthe repeat visible."
      },
      "InitiativeListScope": {
        "type": "string",
        "enum": [
          "member",
          "community"
        ],
        "title": "InitiativeListScope",
        "description": "Which initiatives ``GET /initiatives/`` should return.\n\n``member`` \u2014 the caller's own workspace: the initiatives they hold a\nmembership in. This is what the sidebar and every initiative picker show.\n\n``community`` \u2014 every initiative in the community, for the guild-settings\nmanagement table. Guild admins only."
      },
      "InitiativeMemberAdd": {
        "properties": {
          "user_id": {
            "type": "integer",
            "title": "User Id"
          },
          "role_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Role Id"
          }
        },
        "type": "object",
        "required": [
          "user_id"
        ],
        "title": "InitiativeMemberAdd",
        "description": "Add a member to an initiative."
      },
      "InitiativeMemberListResponse": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/InitiativeMemberRead"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items"
        ],
        "title": "InitiativeMemberListResponse",
        "description": "One page of an initiative's roster, each member with their role."
      },
      "InitiativeMemberRead": {
        "properties": {
          "user": {
            "$ref": "#/components/schemas/UserSummary"
          },
          "role_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Role Id"
          },
          "role_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Role Name"
          },
          "role_display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Role Display Name"
          },
          "is_manager": {
            "type": "boolean",
            "title": "Is Manager",
            "default": false
          },
          "override_share_restrictions": {
            "type": "boolean",
            "title": "Override Share Restrictions",
            "default": false
          },
          "joined_at": {
            "type": "string",
            "format": "date-time",
            "title": "Joined At"
          },
          "oidc_managed": {
            "type": "boolean",
            "title": "Oidc Managed",
            "default": false
          },
          "presence": {
            "$ref": "#/components/schemas/Presence",
            "default": "offline"
          },
          "guest_until": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Guest Until"
          }
        },
        "type": "object",
        "required": [
          "user",
          "role_id",
          "role_name",
          "role_display_name",
          "is_manager",
          "override_share_restrictions",
          "joined_at",
          "oidc_managed",
          "presence",
          "guest_until"
        ],
        "title": "InitiativeMemberRead",
        "description": "Member info including their role."
      },
      "InitiativeMemberUpdate": {
        "properties": {
          "role_id": {
            "type": "integer",
            "title": "Role Id"
          }
        },
        "type": "object",
        "required": [
          "role_id"
        ],
        "title": "InitiativeMemberUpdate",
        "description": "Update a member's role."
      },
      "InitiativePinRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "entity_type": {
            "type": "string",
            "title": "Entity Type"
          },
          "entity_id": {
            "type": "integer",
            "title": "Entity Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "archived": {
            "type": "boolean",
            "title": "Archived",
            "default": false
          },
          "icon": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          },
          "file_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Type"
          },
          "mime_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mime Type"
          },
          "original_filename": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Original Filename"
          },
          "smart_link_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Smart Link Url"
          },
          "can_edit": {
            "type": "boolean",
            "title": "Can Edit",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "id",
          "initiative_id",
          "community_id",
          "entity_type",
          "entity_id",
          "name",
          "archived",
          "icon",
          "color",
          "file_type",
          "mime_type",
          "original_filename",
          "smart_link_url",
          "can_edit"
        ],
        "title": "InitiativePinRead",
        "description": "One tool pinned to an initiative's sidebar: enough to draw its icon and\nlink to it without a fetch per kind, and nothing of its content."
      },
      "InitiativePinRef": {
        "properties": {
          "entity_type": {
            "type": "string",
            "title": "Entity Type"
          },
          "entity_id": {
            "type": "integer",
            "title": "Entity Id"
          }
        },
        "type": "object",
        "required": [
          "entity_type",
          "entity_id"
        ],
        "title": "InitiativePinRef",
        "description": "A tool, by its kind and id."
      },
      "InitiativePinsWrite": {
        "properties": {
          "pins": {
            "items": {
              "$ref": "#/components/schemas/InitiativePinRef"
            },
            "type": "array",
            "maxItems": 200,
            "title": "Pins"
          }
        },
        "type": "object",
        "title": "InitiativePinsWrite",
        "description": "Everything an initiative pins: what is listed is pinned there, and what\nthe writer can read that is left out is unpinned."
      },
      "InitiativeRead": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "community_id": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "community"
              },
              {
                "type": "null"
              }
            ],
            "title": "Community Id"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "join_policy": {
            "$ref": "#/components/schemas/InitiativeJoinPolicy",
            "default": "private"
          },
          "auto_join": {
            "type": "boolean",
            "title": "Auto Join",
            "default": false
          },
          "join_form_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Join Form Id"
          },
          "keep_content_in": {
            "type": "boolean",
            "title": "Keep Content In",
            "default": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "tools": {
            "additionalProperties": {
              "type": "boolean"
            },
            "type": "object",
            "title": "Tools"
          },
          "auto_pin": {
            "additionalProperties": {
              "type": "boolean"
            },
            "type": "object",
            "title": "Auto Pin"
          },
          "can": {
            "$ref": "#/components/schemas/InitiativeCan"
          },
          "member_count": {
            "type": "integer",
            "title": "Member Count",
            "default": 0
          },
          "role_display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Role Display Name"
          }
        },
        "type": "object",
        "required": [
          "name",
          "description",
          "color",
          "id",
          "community_id",
          "archived_at",
          "join_policy",
          "auto_join",
          "join_form_id",
          "keep_content_in",
          "created_at",
          "updated_at",
          "tools",
          "auto_pin",
          "can",
          "member_count",
          "role_display_name"
        ],
        "title": "InitiativeRead",
        "description": "An initiative: the row, its headcount, what the caller may do in it and\nthe role they hold there. Its roster is read a page at a time from\n``GET /initiatives/{id}/members``."
      },
      "InitiativeRoleCreate": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name"
          },
          "display_name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Display Name"
          },
          "is_manager": {
            "type": "boolean",
            "title": "Is Manager",
            "default": false
          },
          "permissions": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "boolean"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Permissions"
          }
        },
        "type": "object",
        "required": [
          "name",
          "display_name"
        ],
        "title": "InitiativeRoleCreate",
        "description": "Create a new custom role."
      },
      "InitiativeRoleRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "display_name": {
            "type": "string",
            "title": "Display Name"
          },
          "is_builtin": {
            "type": "boolean",
            "title": "Is Builtin"
          },
          "is_manager": {
            "type": "boolean",
            "title": "Is Manager"
          },
          "override_share_restrictions": {
            "type": "boolean",
            "title": "Override Share Restrictions",
            "default": false
          },
          "position": {
            "type": "integer",
            "title": "Position"
          },
          "permissions": {
            "additionalProperties": {
              "type": "boolean"
            },
            "type": "object",
            "title": "Permissions"
          },
          "plugin_permissions": {
            "items": {
              "$ref": "#/components/schemas/PluginPermissionRule"
            },
            "type": "array",
            "title": "Plugin Permissions"
          },
          "member_count": {
            "type": "integer",
            "title": "Member Count",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "display_name",
          "is_builtin",
          "is_manager",
          "override_share_restrictions",
          "position",
          "permissions",
          "plugin_permissions",
          "member_count"
        ],
        "title": "InitiativeRoleRead",
        "description": "Role definition with permissions."
      },
      "InitiativeRoleUpdate": {
        "properties": {
          "display_name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Display Name"
          },
          "is_manager": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Manager"
          },
          "permissions": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "boolean"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Permissions"
          },
          "plugin_permissions": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/PluginPermissionRule"
                },
                "type": "array",
                "maxItems": 1000
              },
              {
                "type": "null"
              }
            ],
            "title": "Plugin Permissions"
          }
        },
        "type": "object",
        "title": "InitiativeRoleUpdate",
        "description": "Update a role's display name and/or permissions."
      },
      "InitiativeSharingRead": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SharedResourceRead"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "InitiativeSharingRead",
        "description": "Who can reach what, across one initiative.\n\nCounts rather than names: the question this answers is *how widely*, and a\nmoderator who needs the detail opens the resource's own sharing control,\nwhich is the one editor for it."
      },
      "InitiativeSummary": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "color"
        ],
        "title": "InitiativeSummary",
        "description": "An initiative as something else names it: enough to label and link it.\n\nWhat a project, a file or a task carries about the initiative it is in.\nThe initiative's own read is :class:`InitiativeRead`."
      },
      "InitiativeTaskStatusRead": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "category": {
            "$ref": "#/components/schemas/TaskStatusCategory"
          },
          "color": {
            "type": "string",
            "title": "Color"
          },
          "icon": {
            "type": "string",
            "title": "Icon"
          },
          "project_count": {
            "type": "integer",
            "title": "Project Count"
          },
          "projects_total": {
            "type": "integer",
            "title": "Projects Total"
          }
        },
        "type": "object",
        "required": [
          "name",
          "category",
          "color",
          "icon",
          "project_count",
          "projects_total"
        ],
        "title": "InitiativeTaskStatusRead",
        "description": "A status column as it appears across one initiative's projects.\n\nEntries are aggregated by ``(name, category)``, so the same column\nconfigured in several projects collapses to a single row; ``color`` and\n``icon`` come from the first project that defines it. ``project_count`` is\nhow many of the projects the caller can read carry the column, out of\n``projects_total``."
      },
      "InitiativeToolLayoutsRead": {
        "properties": {
          "layouts": {
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/ListLayoutRead"
                },
                {
                  "$ref": "#/components/schemas/DetailLayoutRead"
                },
                {
                  "$ref": "#/components/schemas/ToolPluginDetailLayoutRead"
                }
              ]
            },
            "type": "array",
            "title": "Layouts"
          },
          "can_configure": {
            "type": "boolean",
            "title": "Can Configure"
          },
          "tool": {
            "$ref": "#/components/schemas/Tool"
          },
          "tool_id": {
            "type": "integer",
            "title": "Tool Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "layouts",
          "can_configure",
          "tool",
          "tool_id",
          "name"
        ],
        "title": "InitiativeToolLayoutsRead",
        "description": "One instance's layouts, as its initiative's list of them shows them."
      },
      "InitiativeUpdate": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          },
          "join_policy": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InitiativeJoinPolicy"
              },
              {
                "type": "null"
              }
            ]
          },
          "auto_join": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Auto Join"
          },
          "keep_content_in": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Keep Content In"
          },
          "join_form_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Join Form Id"
          },
          "tools": {
            "additionalProperties": {
              "type": "boolean"
            },
            "type": "object",
            "title": "Tools"
          },
          "auto_pin": {
            "additionalProperties": {
              "type": "boolean"
            },
            "type": "object",
            "title": "Auto Pin"
          }
        },
        "type": "object",
        "title": "InitiativeUpdate"
      },
      "IntakeBindingRead": {
        "properties": {
          "stream": {
            "$ref": "#/components/schemas/IntakeStream"
          },
          "binding_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Binding Id"
          },
          "project_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Id"
          },
          "project_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Name"
          },
          "project_archived": {
            "type": "boolean",
            "title": "Project Archived",
            "default": false
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "initiative_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Name"
          },
          "default_status_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Default Status Id"
          },
          "default_status_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Default Status Name"
          },
          "task_type_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Task Type Id"
          },
          "task_type_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Task Type Name"
          },
          "awaiting_filer_status_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Awaiting Filer Status Id"
          },
          "active_status_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Active Status Id"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation",
            "default": "none"
          },
          "filed": {
            "type": "boolean",
            "title": "Filed",
            "default": true
          },
          "isolated": {
            "type": "boolean",
            "title": "Isolated",
            "default": false
          },
          "shares_initiative": {
            "type": "boolean",
            "title": "Shares Initiative",
            "default": false
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": false
          },
          "last_case_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Case At"
          }
        },
        "type": "object",
        "required": [
          "stream"
        ],
        "title": "IntakeBindingRead",
        "description": "One stream and where it currently lands."
      },
      "IntakeBindingUpsert": {
        "properties": {
          "project_id": {
            "type": "integer",
            "title": "Project Id"
          },
          "default_status_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Default Status Id"
          },
          "task_type_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Task Type Id"
          },
          "awaiting_filer_status_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Awaiting Filer Status Id"
          },
          "active_status_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Active Status Id"
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "project_id"
        ],
        "title": "IntakeBindingUpsert",
        "description": "Route one stream into a project of the operations guild."
      },
      "IntakeBlueprintImport": {
        "properties": {
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          }
        },
        "type": "object",
        "required": [
          "initiative_id"
        ],
        "title": "IntakeBlueprintImport",
        "description": "Set a stream up from its committed blueprint, in this initiative."
      },
      "IntakeContactUpdate": {
        "properties": {
          "email": {
            "anyOf": [
              {
                "type": "string",
                "format": "email"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          }
        },
        "type": "object",
        "title": "IntakeContactUpdate",
        "description": "Set a contact address, or clear it with ``null``."
      },
      "IntakeInitiativeOption": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "projects": {
            "items": {
              "$ref": "#/components/schemas/IntakeProjectOption"
            },
            "type": "array",
            "title": "Projects"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "projects"
        ],
        "title": "IntakeInitiativeOption",
        "description": "One initiative of the operations guild, and the projects in it."
      },
      "IntakeOptionsRead": {
        "properties": {
          "initiatives": {
            "items": {
              "$ref": "#/components/schemas/IntakeInitiativeOption"
            },
            "type": "array",
            "title": "Initiatives"
          }
        },
        "type": "object",
        "required": [
          "initiatives"
        ],
        "title": "IntakeOptionsRead",
        "description": "What the settings page offers to bind to.\n\nThe operations guild alone, names and ids only \u2014 enough to fill the\npickers. Empty until a guild has been named."
      },
      "IntakeProjectOption": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "statuses": {
            "items": {
              "$ref": "#/components/schemas/IntakeStatusOption"
            },
            "type": "array",
            "title": "Statuses"
          },
          "task_types": {
            "items": {
              "$ref": "#/components/schemas/IntakeTypeOption"
            },
            "type": "array",
            "title": "Task Types",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "statuses"
        ],
        "title": "IntakeProjectOption",
        "description": "One project a stream could be bound to, and where a case would start."
      },
      "IntakeSettingsRead": {
        "properties": {
          "operations_community_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Operations Community Id"
          },
          "operations_community_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Operations Community Name"
          },
          "bindings": {
            "items": {
              "$ref": "#/components/schemas/IntakeBindingRead"
            },
            "type": "array",
            "title": "Bindings"
          },
          "general_contact_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "General Contact Email"
          },
          "contact_emails": {
            "additionalProperties": {
              "type": "string"
            },
            "propertyNames": {
              "$ref": "#/components/schemas/IntakeStream"
            },
            "type": "object",
            "title": "Contact Emails"
          },
          "feedback_enabled": {
            "type": "boolean",
            "title": "Feedback Enabled"
          }
        },
        "type": "object",
        "required": [
          "bindings",
          "feedback_enabled"
        ],
        "title": "IntakeSettingsRead",
        "description": "The pointer, every stream whether bound or not, and who to contact."
      },
      "IntakeStatusOption": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "title": "IntakeStatusOption",
        "description": "One column a case could land in."
      },
      "IntakeStream": {
        "type": "string",
        "enum": [
          "security",
          "moderation",
          "support",
          "feedback",
          "ideas"
        ],
        "title": "IntakeStream",
        "description": "The kinds of operations work a deployment can route into a project."
      },
      "IntakeTypeOption": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "title": "IntakeTypeOption",
        "description": "One type a case could be."
      },
      "InterfaceSettingsResponse": {
        "properties": {
          "light_accent_color": {
            "type": "string",
            "title": "Light Accent Color"
          },
          "dark_accent_color": {
            "type": "string",
            "title": "Dark Accent Color"
          },
          "cookie_consent_enabled": {
            "type": "boolean",
            "title": "Cookie Consent Enabled"
          }
        },
        "type": "object",
        "required": [
          "light_accent_color",
          "dark_accent_color",
          "cookie_consent_enabled"
        ],
        "title": "InterfaceSettingsResponse"
      },
      "InterfaceSettingsUpdate": {
        "properties": {
          "light_accent_color": {
            "type": "string",
            "title": "Light Accent Color"
          },
          "dark_accent_color": {
            "type": "string",
            "title": "Dark Accent Color"
          },
          "cookie_consent_enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cookie Consent Enabled"
          }
        },
        "type": "object",
        "required": [
          "light_accent_color",
          "dark_accent_color"
        ],
        "title": "InterfaceSettingsUpdate"
      },
      "ItemKind": {
        "type": "string",
        "enum": [
          "task",
          "calendar_event",
          "post"
        ],
        "title": "ItemKind",
        "description": "A kind of item a plug-in's fields and actions are offered on."
      },
      "ItemMode": {
        "type": "string",
        "enum": [
          "editing",
          "suggesting",
          "viewing"
        ],
        "title": "ItemMode",
        "description": "How a member who can edit an item has it open. Only documents and wiki\npages take Suggesting; on anything else it reads as Editing."
      },
      "ItemModeSet": {
        "properties": {
          "mode": {
            "$ref": "#/components/schemas/ItemMode"
          }
        },
        "type": "object",
        "required": [
          "mode"
        ],
        "title": "ItemModeSet",
        "description": "The mode the reader switched an item to."
      },
      "ItemsPart": {
        "properties": {
          "type": {
            "type": "string",
            "const": "items",
            "title": "Type"
          },
          "props": {
            "$ref": "#/components/schemas/ItemsProps"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "type",
          "props"
        ],
        "title": "ItemsPart",
        "description": "The row's first items of one item table, in their own order, each drawn\nsmall with the fields ``fields`` names."
      },
      "ItemsProps": {
        "properties": {
          "item": {
            "type": "string",
            "maxLength": 82,
            "minLength": 1,
            "title": "Item"
          },
          "fields": {
            "items": {
              "type": "string",
              "maxLength": 82,
              "minLength": 1
            },
            "type": "array",
            "maxItems": 4,
            "minItems": 1,
            "title": "Fields"
          },
          "limit": {
            "type": "integer",
            "maximum": 8.0,
            "minimum": 1.0,
            "title": "Limit"
          },
          "tint": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 82,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Tint"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "item",
          "fields",
          "limit"
        ],
        "title": "ItemsProps"
      },
      "JoinRequestStatus": {
        "type": "string",
        "enum": [
          "pending",
          "approved",
          "denied"
        ],
        "title": "JoinRequestStatus",
        "description": "Lifecycle of a row in ``initiative_join_requests``."
      },
      "LayoutGrouping": {
        "properties": {
          "field": {
            "type": "string",
            "title": "Field"
          },
          "bucket": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DateBucket"
              },
              {
                "type": "null"
              }
            ]
          },
          "hidden": {
            "items": {
              "type": "string",
              "maxLength": 64
            },
            "type": "array",
            "maxItems": 200,
            "title": "Hidden"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "field"
        ],
        "title": "LayoutGrouping",
        "description": "One way a list offers to group its tasks, and the groups it leaves out\nwhile grouped by it."
      },
      "LayoutPreset": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100,
                "minLength": 1
              },
              {
                "additionalProperties": {
                  "type": "string",
                  "maxLength": 100,
                  "minLength": 1
                },
                "propertyNames": {
                  "maxLength": 35,
                  "minLength": 1
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "slug": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
            "title": "Slug"
          },
          "filters": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaskFilterSpec"
              },
              {
                "$ref": "#/components/schemas/CalendarFilterSpec"
              }
            ],
            "title": "Filters"
          },
          "sort": {
            "items": {
              "$ref": "#/components/schemas/PresetSort"
            },
            "type": "array",
            "maxItems": 7,
            "title": "Sort"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "slug"
        ],
        "title": "LayoutPreset",
        "description": "Filters, and for a table a sort, that a person can pick to start from.\nPicking one makes them that person's own."
      },
      "LeaveCommunityEligibilityResponse": {
        "properties": {
          "can_leave": {
            "type": "boolean",
            "title": "Can Leave"
          },
          "is_last_superadmin": {
            "type": "boolean",
            "title": "Is Last Superadmin",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "can_leave",
          "is_last_superadmin"
        ],
        "title": "LeaveCommunityEligibilityResponse",
        "description": "Response for checking if a user can leave a guild.\n\nTwo things stop them, and the caller is told which. Being the guild's last\nadmin is one. Holding its only superadmin seat while the guild requires\na sign-in is the other \u2014 the requirement is lifted from the surface that\nseat holds, so the seat stays for as long as the requirement does.\n\nContent they own is released on the way out and left unowned for a guild\nadmin to claim, so there is nothing to hand over first."
      },
      "LegalBasis": {
        "type": "string",
        "enum": [
          "child_safety",
          "terrorism",
          "intellectual_property",
          "fraud",
          "privacy",
          "other"
        ],
        "title": "LegalBasis",
        "description": "The law something is held, or reported, under. Closed, so cases can be\ncounted by it."
      },
      "LegalDocumentRead": {
        "properties": {
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Version"
          },
          "effective_date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Effective Date"
          },
          "sha256": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sha256"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url"
          }
        },
        "type": "object",
        "required": [
          "slug",
          "title"
        ],
        "title": "LegalDocumentRead",
        "description": "One document in the index \u2014 everything but the text."
      },
      "LegalIndexRead": {
        "properties": {
          "documents": {
            "items": {
              "$ref": "#/components/schemas/LegalDocumentRead"
            },
            "type": "array",
            "title": "Documents"
          },
          "required": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Required"
          }
        },
        "type": "object",
        "required": [
          "documents",
          "required"
        ],
        "title": "LegalIndexRead"
      },
      "LinkedTaskRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "start_date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Start Date"
          },
          "due_date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Due Date"
          },
          "project_id": {
            "type": "integer",
            "title": "Project Id"
          },
          "project_name": {
            "type": "string",
            "title": "Project Name"
          },
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "done": {
            "type": "boolean",
            "title": "Done"
          }
        },
        "type": "object",
        "required": [
          "id",
          "title",
          "start_date",
          "due_date",
          "project_id",
          "project_name",
          "initiative_id",
          "done"
        ],
        "title": "LinkedTaskRead",
        "description": "A task of another project at the far end of one of those edges, as a\nGantt draws it beside the project's own."
      },
      "ListLayoutDefinition-Input": {
        "properties": {
          "card": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CardPart-Input"
              },
              {
                "type": "null"
              }
            ]
          },
          "columns": {
            "anyOf": [
              {
                "items": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/TaskColumnFieldId"
                    },
                    {
                      "$ref": "#/components/schemas/FileFieldId"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Columns"
          },
          "presets": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/LayoutPreset"
                },
                "type": "array",
                "maxItems": 20
              },
              {
                "type": "null"
              }
            ],
            "title": "Presets"
          },
          "groupings": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/LayoutGrouping"
                },
                "type": "array",
                "maxItems": 50
              },
              {
                "type": "null"
              }
            ],
            "title": "Groupings"
          },
          "group_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Group By"
          },
          "limits": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ColumnLimit"
                },
                "type": "array",
                "maxItems": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Limits"
          },
          "hidden": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Hidden"
          },
          "displays": {
            "anyOf": [
              {
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "number",
                        "stars",
                        "bar",
                        "clock"
                      ]
                    },
                    {
                      "$ref": "#/components/schemas/DisplayFrom"
                    }
                  ]
                },
                "type": "object",
                "maxProperties": 300
              },
              {
                "type": "null"
              }
            ],
            "title": "Displays"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "ListLayoutDefinition",
        "description": "How a list draws its items, and the presets and groupings it offers.\nWhat it leaves out is drawn as shipped: a board with no ``card`` draws the\nshipped card, a table with no ``columns`` the shipped columns, a list with\nno ``presets`` the shipped presets and none with no ``groupings`` every\nfield of what it lists that groups without a bucket."
      },
      "ListLayoutDefinition-Output": {
        "properties": {
          "card": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CardPart-Output"
              },
              {
                "type": "null"
              }
            ]
          },
          "columns": {
            "anyOf": [
              {
                "items": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/TaskColumnFieldId"
                    },
                    {
                      "$ref": "#/components/schemas/FileFieldId"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Columns"
          },
          "presets": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/LayoutPreset"
                },
                "type": "array",
                "maxItems": 20
              },
              {
                "type": "null"
              }
            ],
            "title": "Presets"
          },
          "groupings": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/LayoutGrouping"
                },
                "type": "array",
                "maxItems": 50
              },
              {
                "type": "null"
              }
            ],
            "title": "Groupings"
          },
          "group_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Group By"
          },
          "limits": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ColumnLimit"
                },
                "type": "array",
                "maxItems": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Limits"
          },
          "hidden": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Hidden"
          },
          "displays": {
            "anyOf": [
              {
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "number",
                        "stars",
                        "bar",
                        "clock"
                      ]
                    },
                    {
                      "$ref": "#/components/schemas/DisplayFrom"
                    }
                  ]
                },
                "type": "object",
                "maxProperties": 300
              },
              {
                "type": "null"
              }
            ],
            "title": "Displays"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "ListLayoutDefinition",
        "description": "How a list draws its items, and the presets and groupings it offers.\nWhat it leaves out is drawn as shipped: a board with no ``card`` draws the\nshipped card, a table with no ``columns`` the shipped columns, a list with\nno ``presets`` the shipped presets and none with no ``groupings`` every\nfield of what it lists that groups without a bucket."
      },
      "ListLayoutRead": {
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "table",
              "board",
              "gantt",
              "calendar",
              "masonry",
              "grid",
              "rows",
              "timeline"
            ],
            "title": "Kind"
          },
          "is_default": {
            "type": "boolean",
            "title": "Is Default"
          },
          "hidden": {
            "type": "boolean",
            "title": "Hidden",
            "default": false
          },
          "definition": {
            "$ref": "#/components/schemas/ListLayoutDefinition-Output"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "kind",
          "is_default",
          "hidden",
          "definition",
          "updated_at"
        ],
        "title": "ListLayoutRead",
        "description": "One way a target lists its items: as shipped until it is changed."
      },
      "ListLayoutWrite": {
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "table",
              "board",
              "gantt",
              "calendar",
              "masonry",
              "grid",
              "rows",
              "timeline"
            ],
            "title": "Kind"
          },
          "definition": {
            "$ref": "#/components/schemas/ListLayoutDefinition-Input"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "kind",
          "definition"
        ],
        "title": "ListLayoutWrite"
      },
      "ListedMark": {
        "type": "string",
        "enum": [
          "view",
          "bookmark"
        ],
        "title": "ListedMark",
        "description": "The marks a list of tools is read by: the tabs, and the bookmarks."
      },
      "ListingKind": {
        "type": "string",
        "enum": [
          "auto",
          "calendar",
          "contact",
          "dashboard",
          "file",
          "form",
          "home_layout",
          "plugin",
          "post",
          "profile_pack",
          "project",
          "wiki"
        ],
        "title": "ListingKind",
        "description": "What a marketplace listing installs as."
      },
      "ListingMediaRead": {
        "properties": {
          "path": {
            "type": "string",
            "title": "Path"
          }
        },
        "type": "object",
        "required": [
          "path"
        ],
        "title": "ListingMediaRead",
        "description": "A picture uploaded to the marketplace's media."
      },
      "ListingOffer": {
        "properties": {
          "charge": {
            "$ref": "#/components/schemas/ListingOfferCharge"
          },
          "way": {
            "$ref": "#/components/schemas/ListingOfferWay"
          },
          "upgrade": {
            "type": "boolean",
            "title": "Upgrade",
            "default": false
          },
          "lines": {
            "items": {
              "$ref": "#/components/schemas/ListingOfferLine"
            },
            "type": "array",
            "title": "Lines",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "charge",
          "way",
          "upgrade",
          "lines"
        ],
        "title": "ListingOffer",
        "description": "How the asking community gets a paid plug-in, as this deployment's\nbilling answered it in the reader's language. Shown, never reasoned\nabout: the deployment's catalog terms decide it, on billing's side."
      },
      "ListingOfferCharge": {
        "type": "string",
        "enum": [
          "subscription",
          "one_time"
        ],
        "title": "ListingOfferCharge",
        "description": "How a paid plug-in is charged for, as billing sells it."
      },
      "ListingOfferLine": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "display": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Display"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "display"
        ],
        "title": "ListingOfferLine",
        "description": "One plan or item a paid plug-in is sold as, worded by billing."
      },
      "ListingOfferWay": {
        "type": "string",
        "enum": [
          "buy",
          "none"
        ],
        "title": "ListingOfferWay",
        "description": "How the asking community gets a paid plug-in on the plan it is on."
      },
      "ListingSource": {
        "type": "string",
        "enum": [
          "builtin",
          "local",
          "operator",
          "registry"
        ],
        "title": "ListingSource",
        "description": "How a listing reached this deployment."
      },
      "ListingStartFrom": {
        "type": "string",
        "enum": [
          "blank",
          "example"
        ],
        "title": "ListingStartFrom",
        "description": "What an install copies: the listing itself, or its example."
      },
      "ListingUnavailable": {
        "properties": {
          "reason": {
            "$ref": "#/components/schemas/ListingUnavailableReason"
          },
          "action_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Action Url"
          },
          "offer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ListingOffer"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "reason",
          "action_url",
          "offer"
        ],
        "title": "ListingUnavailable",
        "description": "A listing the asking community is shown and cannot install yet."
      },
      "ListingUnavailableReason": {
        "type": "string",
        "enum": [
          "entitlement_required",
          "term_full"
        ],
        "title": "ListingUnavailableReason",
        "description": "Why this community cannot install a listing it is offered."
      },
      "ListingUploadRequest": {
        "properties": {
          "manifest": {
            "additionalProperties": true,
            "type": "object",
            "title": "Manifest"
          }
        },
        "type": "object",
        "required": [
          "manifest"
        ],
        "title": "ListingUploadRequest",
        "description": "A listing file the owner uploads: the manifest a catalog directory or a\nregistry carries, published as a ``local`` listing."
      },
      "ListingUploadResult": {
        "properties": {
          "uid": {
            "type": "string",
            "title": "Uid"
          },
          "public_id": {
            "type": "string",
            "title": "Public Id"
          },
          "version": {
            "type": "string",
            "title": "Version"
          }
        },
        "type": "object",
        "required": [
          "uid",
          "public_id",
          "version"
        ],
        "title": "ListingUploadResult"
      },
      "LoginMethod": {
        "type": "string",
        "enum": [
          "password",
          "sso",
          "totp",
          "passkey",
          "email_otp"
        ],
        "title": "LoginMethod"
      },
      "LoginMethodStatus": {
        "properties": {
          "method": {
            "$ref": "#/components/schemas/LoginMethod"
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          },
          "primary": {
            "type": "boolean",
            "title": "Primary"
          },
          "answers_factor": {
            "type": "boolean",
            "title": "Answers Factor",
            "default": false
          },
          "would_strand": {
            "type": "integer",
            "title": "Would Strand"
          }
        },
        "type": "object",
        "required": [
          "method",
          "enabled",
          "primary",
          "answers_factor",
          "would_strand"
        ],
        "title": "LoginMethodStatus",
        "description": "One way in, and what withdrawing it would cost."
      },
      "LoginProviderEntry": {
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "display_name": {
            "type": "string",
            "title": "Display Name"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "login_url": {
            "type": "string",
            "title": "Login Url"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "button_style": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Button Style"
          }
        },
        "type": "object",
        "required": [
          "id",
          "slug",
          "display_name",
          "kind",
          "login_url",
          "icon",
          "button_style"
        ],
        "title": "LoginProviderEntry",
        "description": "One sign-in provider offered on the login page (non-secret metadata)."
      },
      "LoginProvidersResponse": {
        "properties": {
          "providers": {
            "items": {
              "$ref": "#/components/schemas/LoginProviderEntry"
            },
            "type": "array",
            "title": "Providers"
          },
          "community_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Community Name"
          }
        },
        "type": "object",
        "required": [
          "providers",
          "community_name"
        ],
        "title": "LoginProvidersResponse"
      },
      "MarketplaceInstallRequest": {
        "properties": {
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "start_from": {
            "$ref": "#/components/schemas/ListingStartFrom",
            "default": "blank"
          },
          "starts_on": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Starts On"
          }
        },
        "type": "object",
        "required": [
          "initiative_id"
        ],
        "title": "MarketplaceInstallRequest",
        "description": "Install a tool listing: import a copy of it into an initiative."
      },
      "MarketplaceInstallResult": {
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/ListingKind"
          },
          "listing_uid": {
            "type": "string",
            "title": "Listing Uid"
          },
          "listing_version": {
            "type": "string",
            "title": "Listing Version"
          },
          "result": {
            "$ref": "#/components/schemas/EnvelopeImportResult"
          }
        },
        "type": "object",
        "required": [
          "kind",
          "listing_uid",
          "listing_version",
          "result"
        ],
        "title": "MarketplaceInstallResult",
        "description": "What installing a tool listing created."
      },
      "MarketplaceListingCaller": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "title": "MarketplaceListingCaller",
        "description": "An install that asks to use the plug-in a listing would install."
      },
      "MarketplaceListingDetail": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "uid": {
            "type": "string",
            "title": "Uid"
          },
          "public_id": {
            "type": "string",
            "title": "Public Id"
          },
          "kind": {
            "$ref": "#/components/schemas/ListingKind"
          },
          "source": {
            "$ref": "#/components/schemas/ListingSource"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "publisher": {
            "type": "string",
            "title": "Publisher"
          },
          "first_party": {
            "type": "boolean",
            "title": "First Party"
          },
          "description": {
            "type": "string",
            "title": "Description"
          },
          "avatar_url": {
            "type": "string",
            "title": "Avatar Url"
          },
          "images": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Images",
            "default": []
          },
          "installs_count": {
            "type": "integer",
            "title": "Installs Count",
            "default": 0
          },
          "available": {
            "type": "boolean",
            "title": "Available",
            "default": true
          },
          "latest_version": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MarketplaceVersionRead"
              },
              {
                "type": "null"
              }
            ]
          },
          "installable": {
            "type": "boolean",
            "title": "Installable",
            "default": true
          },
          "unavailable": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ListingUnavailable"
              },
              {
                "type": "null"
              }
            ]
          },
          "beta": {
            "type": "boolean",
            "title": "Beta",
            "default": false
          },
          "paid": {
            "type": "boolean",
            "title": "Paid",
            "default": false
          },
          "included": {
            "type": "boolean",
            "title": "Included",
            "default": false
          },
          "plugin_tag": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PluginTag"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "long_description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Long Description"
          },
          "definition": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Definition"
          },
          "example": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Example"
          },
          "requested_scopes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Requested Scopes",
            "default": []
          },
          "grantable_scopes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Grantable Scopes",
            "default": []
          },
          "plugin_names": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Plugin Names",
            "default": {}
          },
          "has_initiative_surfaces": {
            "type": "boolean",
            "title": "Has Initiative Surfaces",
            "default": false
          },
          "callers": {
            "items": {
              "$ref": "#/components/schemas/MarketplaceListingCaller"
            },
            "type": "array",
            "title": "Callers",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "id",
          "uid",
          "public_id",
          "kind",
          "source",
          "name",
          "publisher",
          "first_party",
          "description",
          "avatar_url",
          "images",
          "installs_count",
          "available",
          "latest_version",
          "installable",
          "unavailable",
          "beta",
          "paid",
          "included",
          "plugin_tag",
          "updated_at",
          "long_description",
          "definition",
          "example",
          "requested_scopes",
          "grantable_scopes",
          "plugin_names",
          "has_initiative_surfaces",
          "callers"
        ],
        "title": "MarketplaceListingDetail",
        "description": "A listing's full page, including what it would install."
      },
      "MarketplaceListingPage": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/MarketplaceListingSummary"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items"
        ],
        "title": "MarketplaceListingPage"
      },
      "MarketplaceListingSummary": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "uid": {
            "type": "string",
            "title": "Uid"
          },
          "public_id": {
            "type": "string",
            "title": "Public Id"
          },
          "kind": {
            "$ref": "#/components/schemas/ListingKind"
          },
          "source": {
            "$ref": "#/components/schemas/ListingSource"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "publisher": {
            "type": "string",
            "title": "Publisher"
          },
          "first_party": {
            "type": "boolean",
            "title": "First Party"
          },
          "description": {
            "type": "string",
            "title": "Description"
          },
          "avatar_url": {
            "type": "string",
            "title": "Avatar Url"
          },
          "images": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Images",
            "default": []
          },
          "installs_count": {
            "type": "integer",
            "title": "Installs Count",
            "default": 0
          },
          "available": {
            "type": "boolean",
            "title": "Available",
            "default": true
          },
          "latest_version": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MarketplaceVersionRead"
              },
              {
                "type": "null"
              }
            ]
          },
          "installable": {
            "type": "boolean",
            "title": "Installable",
            "default": true
          },
          "unavailable": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ListingUnavailable"
              },
              {
                "type": "null"
              }
            ]
          },
          "beta": {
            "type": "boolean",
            "title": "Beta",
            "default": false
          },
          "paid": {
            "type": "boolean",
            "title": "Paid",
            "default": false
          },
          "included": {
            "type": "boolean",
            "title": "Included",
            "default": false
          },
          "plugin_tag": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PluginTag"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "uid",
          "public_id",
          "kind",
          "source",
          "name",
          "publisher",
          "first_party",
          "description",
          "avatar_url",
          "images",
          "installs_count",
          "available",
          "latest_version",
          "installable",
          "unavailable",
          "beta",
          "paid",
          "included",
          "plugin_tag",
          "updated_at"
        ],
        "title": "MarketplaceListingSummary",
        "description": "A listing as it appears on a browse card."
      },
      "MarketplaceLocalSettings": {
        "properties": {
          "members_publish_directly": {
            "type": "boolean",
            "title": "Members Publish Directly"
          }
        },
        "type": "object",
        "required": [
          "members_publish_directly"
        ],
        "title": "MarketplaceLocalSettings",
        "description": "How this deployment takes its members' shares."
      },
      "MarketplacePendingVersionRead": {
        "properties": {
          "uid": {
            "type": "string",
            "title": "Uid"
          },
          "public_id": {
            "type": "string",
            "title": "Public Id"
          },
          "kind": {
            "$ref": "#/components/schemas/ListingKind"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "publisher": {
            "type": "string",
            "title": "Publisher"
          },
          "description": {
            "type": "string",
            "title": "Description"
          },
          "version": {
            "type": "string",
            "title": "Version"
          },
          "release_notes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Release Notes"
          },
          "submitted_at": {
            "type": "string",
            "format": "date-time",
            "title": "Submitted At"
          },
          "is_new_listing": {
            "type": "boolean",
            "title": "Is New Listing"
          },
          "definition": {
            "additionalProperties": true,
            "type": "object",
            "title": "Definition"
          },
          "example": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Example"
          }
        },
        "type": "object",
        "required": [
          "uid",
          "public_id",
          "kind",
          "name",
          "publisher",
          "description",
          "version",
          "release_notes",
          "submitted_at",
          "is_new_listing",
          "definition",
          "example"
        ],
        "title": "MarketplacePendingVersionRead",
        "description": "A shared version waiting for the owner's review, with what it would\npublish."
      },
      "MarketplaceShareResult": {
        "properties": {
          "uid": {
            "type": "string",
            "title": "Uid"
          },
          "public_id": {
            "type": "string",
            "title": "Public Id"
          },
          "version": {
            "type": "string",
            "title": "Version"
          },
          "awaiting_review": {
            "type": "boolean",
            "title": "Awaiting Review"
          }
        },
        "type": "object",
        "required": [
          "uid",
          "public_id",
          "version",
          "awaiting_review"
        ],
        "title": "MarketplaceShareResult",
        "description": "What a share published, and whether it waits for the owner's review."
      },
      "MarketplaceSharedListingRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "uid": {
            "type": "string",
            "title": "Uid"
          },
          "public_id": {
            "type": "string",
            "title": "Public Id"
          },
          "kind": {
            "$ref": "#/components/schemas/ListingKind"
          },
          "source": {
            "$ref": "#/components/schemas/ListingSource"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "publisher": {
            "type": "string",
            "title": "Publisher"
          },
          "first_party": {
            "type": "boolean",
            "title": "First Party"
          },
          "description": {
            "type": "string",
            "title": "Description"
          },
          "avatar_url": {
            "type": "string",
            "title": "Avatar Url"
          },
          "images": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Images",
            "default": []
          },
          "installs_count": {
            "type": "integer",
            "title": "Installs Count",
            "default": 0
          },
          "available": {
            "type": "boolean",
            "title": "Available",
            "default": true
          },
          "latest_version": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MarketplaceVersionRead"
              },
              {
                "type": "null"
              }
            ]
          },
          "installable": {
            "type": "boolean",
            "title": "Installable",
            "default": true
          },
          "unavailable": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ListingUnavailable"
              },
              {
                "type": "null"
              }
            ]
          },
          "beta": {
            "type": "boolean",
            "title": "Beta",
            "default": false
          },
          "paid": {
            "type": "boolean",
            "title": "Paid",
            "default": false
          },
          "included": {
            "type": "boolean",
            "title": "Included",
            "default": false
          },
          "plugin_tag": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PluginTag"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "pending_versions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Pending Versions",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "id",
          "uid",
          "public_id",
          "kind",
          "source",
          "name",
          "publisher",
          "first_party",
          "description",
          "avatar_url",
          "images",
          "installs_count",
          "available",
          "latest_version",
          "installable",
          "unavailable",
          "beta",
          "paid",
          "included",
          "plugin_tag",
          "updated_at",
          "pending_versions"
        ],
        "title": "MarketplaceSharedListingRead",
        "description": "A listing the signed-in member shared, with anything still waiting."
      },
      "MarketplaceVersionRead": {
        "properties": {
          "version": {
            "type": "string",
            "title": "Version"
          },
          "release_notes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Release Notes"
          },
          "min_app_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Min App Version"
          },
          "published_at": {
            "type": "string",
            "format": "date-time",
            "title": "Published At"
          },
          "compatible": {
            "type": "boolean",
            "title": "Compatible",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "version",
          "release_notes",
          "min_app_version",
          "published_at",
          "compatible"
        ],
        "title": "MarketplaceVersionRead",
        "description": "One published version of a listing."
      },
      "MemberApiAccessUpdate": {
        "properties": {
          "api_keys_allowed": {
            "type": "boolean",
            "title": "Api Keys Allowed"
          }
        },
        "type": "object",
        "required": [
          "api_keys_allowed"
        ],
        "title": "MemberApiAccessUpdate",
        "description": "Whether one member's personal API keys reach this community."
      },
      "MemberDisplayNameUpdate": {
        "properties": {
          "display_name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Display Name"
          }
        },
        "type": "object",
        "title": "MemberDisplayNameUpdate",
        "description": "What a member is called in one community. ``None`` or blank clears it,\nand their handle shows again."
      },
      "MessageRequestCreate": {
        "properties": {
          "user_id": {
            "type": "integer",
            "title": "User Id"
          }
        },
        "type": "object",
        "required": [
          "user_id"
        ],
        "title": "MessageRequestCreate",
        "description": "A message request is addressed by id: everyone you may ask is somebody\nyou can already see."
      },
      "MetadataOwnerKind": {
        "type": "string",
        "enum": [
          "initiative",
          "project",
          "collection"
        ],
        "title": "MetadataOwnerKind",
        "description": "Who owns a definition people define: the initiative (its metadata), or\na project or a collection (its properties)."
      },
      "MetadataType": {
        "type": "string",
        "enum": [
          "text",
          "number",
          "checkbox",
          "date",
          "datetime",
          "url",
          "select",
          "multi_select",
          "user_reference",
          "currency",
          "scale",
          "counter",
          "file",
          "signature",
          "link",
          "badge",
          "json"
        ],
        "title": "MetadataType",
        "description": "What a metadata definition's values are.\n\nThe property types, which every owner may define, and beside them the\nkinds only a plug-in's definitions take: ``link`` and ``badge``, and\n``json`` for a key its manifest declares no field for."
      },
      "ModerationAct": {
        "type": "string",
        "enum": [
          "remove",
          "restore",
          "lock_comments",
          "unlock_comments",
          "clear_reactions",
          "warn"
        ],
        "title": "ModerationAct",
        "description": "What a moderator did, as the moderation log records it."
      },
      "ModerationActCreate": {
        "properties": {
          "act": {
            "$ref": "#/components/schemas/ModerationAct"
          },
          "target_type": {
            "type": "string",
            "title": "Target Type"
          },
          "target_id": {
            "type": "integer",
            "title": "Target Id"
          },
          "reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RemovalReason"
              },
              {
                "type": "null"
              }
            ]
          },
          "note": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          }
        },
        "type": "object",
        "required": [
          "act",
          "target_type",
          "target_id"
        ],
        "title": "ModerationActCreate",
        "description": "A moderator acting on something directly, rather than settling a\nreport about it."
      },
      "ModerationActionRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "action": {
            "$ref": "#/components/schemas/ModerationAct"
          },
          "target_type": {
            "type": "string",
            "title": "Target Type"
          },
          "target_id": {
            "type": "integer",
            "title": "Target Id"
          },
          "reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RemovalReason"
              },
              {
                "type": "null"
              }
            ]
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          },
          "snapshot": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Snapshot"
          },
          "actor": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModerationPerson"
              },
              {
                "type": "null"
              }
            ]
          },
          "subject": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModerationPerson"
              },
              {
                "type": "null"
              }
            ]
          },
          "report_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Report Id"
          },
          "hold_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Hold Id"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "restorable": {
            "type": "boolean",
            "title": "Restorable",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "id",
          "initiative_id",
          "action",
          "target_type",
          "target_id",
          "created_at"
        ],
        "title": "ModerationActionRead",
        "description": "One row of a community's moderation log, as its moderators read it."
      },
      "ModerationLogList": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/ModerationActionRead"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items"
        ],
        "title": "ModerationLogList"
      },
      "ModerationPerson": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "title": "ModerationPerson",
        "description": "Somebody the moderation log names: who acted, or whose work it was."
      },
      "ModerationReportList": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/ModerationReportRead"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items"
        ],
        "title": "ModerationReportList"
      },
      "ModerationReportRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "target_type": {
            "type": "string",
            "title": "Target Type"
          },
          "target_id": {
            "type": "integer",
            "title": "Target Id"
          },
          "reason": {
            "$ref": "#/components/schemas/ReportReason"
          },
          "reported_at": {
            "type": "string",
            "format": "date-time",
            "title": "Reported At"
          },
          "reporter_count": {
            "type": "integer",
            "title": "Reporter Count"
          },
          "details": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Details"
          },
          "outcome": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReportOutcome"
              },
              {
                "type": "null"
              }
            ]
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          },
          "decided_by": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Decided By"
          },
          "decided_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Decided At"
          },
          "target_excerpt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Target Excerpt"
          },
          "target_link": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReportTargetLink"
              },
              {
                "type": "null"
              }
            ]
          },
          "evidence": {
            "items": {
              "$ref": "#/components/schemas/EvidenceRead"
            },
            "type": "array",
            "title": "Evidence"
          },
          "legal_basis": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LegalBasis"
              },
              {
                "type": "null"
              }
            ]
          },
          "platform_notified_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Platform Notified At"
          },
          "action_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Action Id"
          }
        },
        "type": "object",
        "required": [
          "id",
          "initiative_id",
          "target_type",
          "target_id",
          "reason",
          "reported_at",
          "reporter_count",
          "details"
        ],
        "title": "ModerationReportRead",
        "description": "One report, as its community's moderators see it."
      },
      "ModerationRestore": {
        "properties": {
          "note": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          }
        },
        "type": "object",
        "title": "ModerationRestore",
        "description": "Putting back what a removal took down."
      },
      "MyToolCountsResponse": {
        "properties": {
          "counts": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Counts"
          }
        },
        "type": "object",
        "required": [
          "counts"
        ],
        "title": "MyToolCountsResponse",
        "description": "How much of each tool reaches the caller across their communities.\n\nKeyed by the tool's kind rather than fielded per tool: every built-in\ntool, and each tool plug-in installed in one of the caller's communities.\nA built-in tool the caller has nothing of is present with a zero, not\nabsent \u2014 the difference between \"none\" and \"not asked\" matters to the\npage deciding which tabs to draw."
      },
      "NativeSignInRedeem": {
        "properties": {
          "code": {
            "type": "string",
            "maxLength": 4096,
            "title": "Code"
          },
          "code_verifier": {
            "type": "string",
            "maxLength": 128,
            "minLength": 43,
            "title": "Code Verifier"
          }
        },
        "type": "object",
        "required": [
          "code",
          "code_verifier"
        ],
        "title": "NativeSignInRedeem",
        "description": "The code a sign-in in the phone's browser came back with, and the PKCE\nverifier the app began it with."
      },
      "NeighbourhoodEdge": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "relationship_type": {
            "$ref": "#/components/schemas/RelationshipType"
          },
          "anchor": {
            "$ref": "#/components/schemas/EndpointRef"
          },
          "other": {
            "$ref": "#/components/schemas/EndpointRef"
          },
          "direction": {
            "type": "string",
            "title": "Direction"
          },
          "provenance": {
            "type": "string",
            "title": "Provenance"
          }
        },
        "type": "object",
        "required": [
          "id",
          "relationship_type",
          "anchor",
          "other",
          "direction",
          "provenance"
        ],
        "title": "NeighbourhoodEdge",
        "description": "One link in a neighbourhood, from the side the walk reached it on.\n\n``direction`` is relative to ``anchor``, as a :class:`RelationshipRead`'s is\nto the entity asked about."
      },
      "NeighbourhoodNode": {
        "properties": {
          "end": {
            "$ref": "#/components/schemas/RelatedEnd"
          },
          "depth": {
            "type": "integer",
            "title": "Depth"
          }
        },
        "type": "object",
        "required": [
          "end",
          "depth"
        ],
        "title": "NeighbourhoodNode",
        "description": "One thing in a neighbourhood, and how many hops out it was found."
      },
      "NeighbourhoodRead": {
        "properties": {
          "nodes": {
            "items": {
              "$ref": "#/components/schemas/NeighbourhoodNode"
            },
            "type": "array",
            "title": "Nodes"
          },
          "edges": {
            "items": {
              "$ref": "#/components/schemas/NeighbourhoodEdge"
            },
            "type": "array",
            "title": "Edges"
          }
        },
        "type": "object",
        "required": [
          "nodes",
          "edges"
        ],
        "title": "NeighbourhoodRead",
        "description": "Everything within some hops of one thing, in one answer."
      },
      "NewCommunity": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "NewCommunity",
        "description": "A community, as somebody names it when they make one."
      },
      "NotificationAlertRead": {
        "properties": {
          "notification": {
            "$ref": "#/components/schemas/NotificationRead"
          },
          "redacted": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RedactedAlert"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "notification",
          "redacted"
        ],
        "title": "NotificationAlertRead",
        "description": "What the desktop app shows for one line."
      },
      "NotificationCategory": {
        "type": "string",
        "enum": [
          "mentions",
          "assignments",
          "subscriptions",
          "news",
          "approvals",
          "moderation",
          "cases",
          "direct_messages",
          "jobs",
          "account",
          "overdue",
          "coming_up"
        ],
        "title": "NotificationCategory"
      },
      "NotificationCategoryRead": {
        "properties": {
          "category": {
            "$ref": "#/components/schemas/NotificationCategory"
          },
          "group": {
            "$ref": "#/components/schemas/CategoryGroup"
          },
          "personal": {
            "type": "boolean",
            "title": "Personal"
          },
          "community_scoped": {
            "type": "boolean",
            "title": "Community Scoped"
          },
          "per_community": {
            "type": "boolean",
            "title": "Per Community"
          },
          "mutable_channels": {
            "items": {
              "$ref": "#/components/schemas/Channel"
            },
            "type": "array",
            "title": "Mutable Channels"
          },
          "defaults": {
            "additionalProperties": {
              "type": "boolean"
            },
            "propertyNames": {
              "$ref": "#/components/schemas/Channel"
            },
            "type": "object",
            "title": "Defaults"
          }
        },
        "type": "object",
        "required": [
          "category",
          "group",
          "personal",
          "community_scoped",
          "per_community",
          "mutable_channels",
          "defaults"
        ],
        "title": "NotificationCategoryRead",
        "description": "One row of the settings grid, described by the backend."
      },
      "NotificationChannelSet": {
        "properties": {
          "category": {
            "$ref": "#/components/schemas/NotificationCategory"
          },
          "channel": {
            "$ref": "#/components/schemas/Channel"
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          }
        },
        "type": "object",
        "required": [
          "category",
          "channel",
          "enabled"
        ],
        "title": "NotificationChannelSet",
        "description": "One switch being moved, for the whole account."
      },
      "NotificationCountResponse": {
        "properties": {
          "unread_count": {
            "type": "integer",
            "title": "Unread Count"
          }
        },
        "type": "object",
        "required": [
          "unread_count"
        ],
        "title": "NotificationCountResponse"
      },
      "NotificationListResponse": {
        "properties": {
          "notifications": {
            "items": {
              "$ref": "#/components/schemas/NotificationRead"
            },
            "type": "array",
            "title": "Notifications"
          },
          "unread_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Unread Count"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "type": "object",
        "required": [
          "notifications",
          "unread_count",
          "next_cursor"
        ],
        "title": "NotificationListResponse"
      },
      "NotificationPlace": {
        "properties": {
          "community_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Community Id"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "tool": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool"
          },
          "resource_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resource Id"
          },
          "subject_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subject Type"
          },
          "subject_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subject Id"
          }
        },
        "type": "object",
        "required": [
          "community_id",
          "initiative_id",
          "tool",
          "resource_id",
          "subject_type",
          "subject_id"
        ],
        "title": "NotificationPlace",
        "description": "One place with unread activity. Every level is optional: a direct\nmessage names none of them, a membership notice only a community, a\ncomment on a task all of them down to the task."
      },
      "NotificationPreferencesRead": {
        "properties": {
          "categories": {
            "items": {
              "$ref": "#/components/schemas/NotificationCategoryRead"
            },
            "type": "array",
            "title": "Categories"
          },
          "settings": {
            "additionalProperties": {
              "additionalProperties": {
                "type": "boolean"
              },
              "type": "object"
            },
            "type": "object",
            "title": "Settings"
          },
          "quiet_hours": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/QuietHours"
              },
              {
                "type": "null"
              }
            ]
          },
          "email": {
            "$ref": "#/components/schemas/EmailSchedule-Output"
          },
          "digests": {
            "additionalProperties": {
              "$ref": "#/components/schemas/DigestSchedule-Output"
            },
            "propertyNames": {
              "$ref": "#/components/schemas/NotificationCategory"
            },
            "type": "object",
            "title": "Digests"
          },
          "pause": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PauseRead"
              },
              {
                "type": "null"
              }
            ]
          },
          "max_pause_days": {
            "type": "integer",
            "title": "Max Pause Days",
            "default": 90
          },
          "respect_presence": {
            "type": "boolean",
            "title": "Respect Presence",
            "default": true
          },
          "communities": {
            "items": {
              "$ref": "#/components/schemas/CommunityNotificationSettings"
            },
            "type": "array",
            "title": "Communities"
          }
        },
        "type": "object",
        "required": [
          "categories",
          "settings",
          "quiet_hours",
          "email",
          "digests",
          "pause",
          "max_pause_days",
          "respect_presence",
          "communities"
        ],
        "title": "NotificationPreferencesRead"
      },
      "NotificationPreferencesUpdate": {
        "properties": {
          "channels": {
            "items": {
              "$ref": "#/components/schemas/NotificationChannelSet"
            },
            "type": "array",
            "title": "Channels"
          },
          "rows": {
            "items": {
              "$ref": "#/components/schemas/CommunityRowSet"
            },
            "type": "array",
            "title": "Rows"
          },
          "mutes": {
            "items": {
              "$ref": "#/components/schemas/CommunityMuteSet"
            },
            "type": "array",
            "title": "Mutes"
          },
          "quiet_hours": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/QuietHours"
              },
              {
                "type": "null"
              }
            ]
          },
          "clear_quiet_hours": {
            "type": "boolean",
            "title": "Clear Quiet Hours",
            "default": false
          },
          "email": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmailSchedule-Input"
              },
              {
                "type": "null"
              }
            ]
          },
          "digests": {
            "additionalProperties": {
              "$ref": "#/components/schemas/DigestSchedule-Input"
            },
            "propertyNames": {
              "$ref": "#/components/schemas/NotificationCategory"
            },
            "type": "object",
            "title": "Digests"
          },
          "pause_from": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pause From"
          },
          "pause_until": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pause Until"
          },
          "clear_pause": {
            "type": "boolean",
            "title": "Clear Pause",
            "default": false
          },
          "respect_presence": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Respect Presence"
          }
        },
        "type": "object",
        "title": "NotificationPreferencesUpdate",
        "description": "A partial write: only what moved.\n\nWhole-document writes would make two open settings tabs clobber each other,\nand a single switch is what the page actually sends."
      },
      "NotificationRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "type": {
            "$ref": "#/components/schemas/NotificationType"
          },
          "data": {
            "additionalProperties": true,
            "type": "object",
            "title": "Data"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "read_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Read At"
          },
          "community_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Community Id"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "tool": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool"
          }
        },
        "type": "object",
        "required": [
          "id",
          "type",
          "data",
          "created_at",
          "read_at",
          "community_id",
          "initiative_id",
          "tool"
        ],
        "title": "NotificationRead"
      },
      "NotificationSettingsResponse": {
        "properties": {
          "push_notifications_enabled": {
            "type": "boolean",
            "title": "Push Notifications Enabled"
          },
          "email_notifications_enabled": {
            "type": "boolean",
            "title": "Email Notifications Enabled"
          },
          "redact_notification_content": {
            "type": "boolean",
            "title": "Redact Notification Content"
          }
        },
        "type": "object",
        "required": [
          "push_notifications_enabled",
          "email_notifications_enabled",
          "redact_notification_content"
        ],
        "title": "NotificationSettingsResponse",
        "description": "What this deployment permits a notification to leave the app carrying.\n\nThree answers, each also asked of every community; the stricter of the pair\napplies, so a community may decline what this permits and never the other\nway round."
      },
      "NotificationSettingsUpdate": {
        "properties": {
          "push_notifications_enabled": {
            "type": "boolean",
            "title": "Push Notifications Enabled"
          },
          "email_notifications_enabled": {
            "type": "boolean",
            "title": "Email Notifications Enabled"
          },
          "redact_notification_content": {
            "type": "boolean",
            "title": "Redact Notification Content"
          }
        },
        "type": "object",
        "required": [
          "push_notifications_enabled",
          "email_notifications_enabled",
          "redact_notification_content"
        ],
        "title": "NotificationSettingsUpdate"
      },
      "NotificationType": {
        "type": "string",
        "enum": [
          "task_assignment",
          "overdue_tasks",
          "coming_up",
          "initiative_added",
          "initiative_join_requested",
          "initiative_join_approved",
          "initiative_join_denied",
          "community_join_requested",
          "community_join_approved",
          "community_join_denied",
          "share_requested",
          "share_granted",
          "share_declined",
          "item_sent",
          "project_added",
          "mention",
          "comment_on_task",
          "comment_on_resource",
          "comment_reply",
          "comment_reaction",
          "subscription_activity",
          "assigned_activity",
          "post_published",
          "access_grant_requested",
          "access_grant_approved",
          "access_grant_denied",
          "access_grant_revoked",
          "event_invitation",
          "event_cancelled",
          "event_rsvp",
          "event_reminder",
          "task_reminder",
          "export_ready",
          "export_failed",
          "import_ready",
          "import_failed",
          "avatar_removed",
          "username_changed",
          "profile_field_cleared",
          "account_suspended",
          "account_unsuspended",
          "community_on_hold",
          "community_trial_ending",
          "community_trial_ended",
          "community_pause_reminder",
          "community_welcome",
          "announcement",
          "connection_requested",
          "connection_accepted",
          "message_request_received",
          "message_request_accepted",
          "direct_message",
          "plugin_consent_requested",
          "plugin_update_pending",
          "ticket_updated",
          "idea_updated",
          "moderation_removal",
          "moderation_warning",
          "case_opened",
          "case_replied"
        ],
        "title": "NotificationType"
      },
      "OIDCSettingsResponse": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          },
          "issuer": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Issuer"
          },
          "client_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Client Id"
          },
          "redirect_uri": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Redirect Uri"
          },
          "post_login_redirect": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Post Login Redirect"
          },
          "mobile_redirect_uri": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mobile Redirect Uri"
          },
          "provider_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider Name"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Scopes"
          }
        },
        "type": "object",
        "required": [
          "enabled",
          "issuer",
          "client_id",
          "redirect_uri",
          "post_login_redirect",
          "mobile_redirect_uri",
          "provider_name",
          "scopes"
        ],
        "title": "OIDCSettingsResponse"
      },
      "OccurrenceRequest": {
        "properties": {
          "start": {
            "type": "string",
            "format": "date-time",
            "title": "Start"
          }
        },
        "type": "object",
        "required": [
          "start"
        ],
        "title": "OccurrenceRequest"
      },
      "OperationsCommunityUpdate": {
        "properties": {
          "community_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Community Id"
          }
        },
        "type": "object",
        "title": "OperationsCommunityUpdate",
        "description": "Point this deployment's operations work at a guild, or at nothing."
      },
      "OperatorAccountCaseRead": {
        "properties": {
          "task_id": {
            "type": "integer",
            "title": "Task Id"
          },
          "stream": {
            "$ref": "#/components/schemas/IntakeStream"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "project_id": {
            "type": "integer",
            "title": "Project Id"
          },
          "filed": {
            "type": "boolean",
            "title": "Filed"
          }
        },
        "type": "object",
        "required": [
          "task_id",
          "stream",
          "community_id",
          "initiative_id",
          "project_id",
          "filed"
        ],
        "title": "OperatorAccountCaseRead",
        "description": "An open case an account filed or is the subject of: where it lives, to\nlink to it, and nothing of what it says. Opening it is the case's\ninitiative's to allow."
      },
      "OperatorCatalogProblem": {
        "properties": {
          "file": {
            "type": "string",
            "title": "File"
          },
          "reason": {
            "type": "string",
            "title": "Reason"
          }
        },
        "type": "object",
        "required": [
          "file",
          "reason"
        ],
        "title": "OperatorCatalogProblem",
        "description": "A manifest the scan would not publish, named so it can be fixed."
      },
      "OperatorCatalogScanResult": {
        "properties": {
          "published": {
            "type": "integer",
            "title": "Published",
            "default": 0
          },
          "withdrawn": {
            "type": "integer",
            "title": "Withdrawn",
            "default": 0
          },
          "skipped": {
            "type": "integer",
            "title": "Skipped",
            "default": 0
          },
          "problems": {
            "items": {
              "$ref": "#/components/schemas/OperatorCatalogProblem"
            },
            "type": "array",
            "title": "Problems",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "published",
          "withdrawn",
          "skipped",
          "problems"
        ],
        "title": "OperatorCatalogScanResult",
        "description": "What a rescan of the operator's catalog directory did.\n\nRead by the person who just dropped a file in, so it reports the skipped\nfiles as well as the count: a listing that did not appear should say why\nwithout a trip to the server log."
      },
      "OperatorDeletionEligibilityResponse": {
        "properties": {
          "can_delete": {
            "type": "boolean",
            "title": "Can Delete"
          },
          "last_owner": {
            "type": "boolean",
            "title": "Last Owner",
            "default": false
          },
          "community_blockers": {
            "items": {
              "$ref": "#/components/schemas/CommunityBlockerInfo"
            },
            "type": "array",
            "title": "Community Blockers"
          }
        },
        "type": "object",
        "required": [
          "can_delete",
          "last_owner",
          "community_blockers"
        ],
        "title": "OperatorDeletionEligibilityResponse",
        "description": "Enhanced eligibility response with actionable blocker details."
      },
      "OperatorSuspensionUpdate": {
        "properties": {
          "suspended": {
            "type": "boolean",
            "title": "Suspended"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          }
        },
        "type": "object",
        "required": [
          "suspended"
        ],
        "title": "OperatorSuspensionUpdate",
        "description": "Freeze an account, or let it go.\n\n``reason`` is shown to the person it is about, so it is written for them\nrather than as an internal note."
      },
      "OperatorUserDeleteRequest": {
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "deactivate",
              "soft_delete",
              "hard_delete"
            ],
            "title": "Action"
          }
        },
        "type": "object",
        "required": [
          "action"
        ],
        "title": "OperatorUserDeleteRequest",
        "description": "Request to deactivate, anonymize (soft delete), or hard delete another account."
      },
      "OperatorUserListResponse": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/OperatorUserRead"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items"
        ],
        "title": "OperatorUserListResponse",
        "description": "One page of the operator roster."
      },
      "OperatorUserRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "role": {
            "$ref": "#/components/schemas/UserRole",
            "default": "member"
          },
          "username": {
            "type": "string",
            "title": "Username"
          },
          "discriminator": {
            "type": "integer",
            "title": "Discriminator"
          },
          "username_chosen": {
            "type": "boolean",
            "title": "Username Chosen",
            "default": false
          },
          "age_confirmed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Age Confirmed At"
          },
          "age_below_minimum_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Age Below Minimum At"
          },
          "legal_acceptance_required": {
            "type": "boolean",
            "title": "Legal Acceptance Required",
            "default": false
          },
          "birthdate_on_file": {
            "type": "boolean",
            "title": "Birthdate On File",
            "default": false
          },
          "birthdate_required": {
            "type": "boolean",
            "title": "Birthdate Required",
            "default": false
          },
          "cookie_consent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CookieConsentRead"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "$ref": "#/components/schemas/UserStatus"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          },
          "email_verified": {
            "type": "boolean",
            "title": "Email Verified",
            "default": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "custom_status": {
            "$ref": "#/components/schemas/CustomStatus-Output"
          },
          "presence": {
            "$ref": "#/components/schemas/Presence",
            "default": "online"
          },
          "profile_decorations": {
            "$ref": "#/components/schemas/ProfileDecorations-Output"
          },
          "week_starts_on": {
            "type": "integer",
            "title": "Week Starts On",
            "default": 0
          },
          "time_format": {
            "type": "string",
            "title": "Time Format",
            "default": "system"
          },
          "recent_tabs_limit": {
            "type": "integer",
            "title": "Recent Tabs Limit",
            "default": 20
          },
          "count_toward_engagement_ranking": {
            "type": "boolean",
            "title": "Count Toward Engagement Ranking",
            "default": true
          },
          "timezone": {
            "type": "string",
            "title": "Timezone",
            "default": "UTC"
          },
          "event_reminder_minutes_before": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Event Reminder Minutes Before",
            "default": 15
          },
          "last_overdue_notification_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Overdue Notification At"
          },
          "color_theme": {
            "type": "string",
            "title": "Color Theme",
            "default": "kobold"
          },
          "custom_themes": {
            "items": {
              "$ref": "#/components/schemas/Theme"
            },
            "type": "array",
            "title": "Custom Themes"
          },
          "task_completion_visual_feedback": {
            "type": "string",
            "title": "Task Completion Visual Feedback",
            "default": "none"
          },
          "task_completion_audio_feedback": {
            "type": "boolean",
            "title": "Task Completion Audio Feedback",
            "default": true
          },
          "task_completion_haptic_feedback": {
            "type": "boolean",
            "title": "Task Completion Haptic Feedback",
            "default": true
          },
          "smart_task_titles": {
            "type": "boolean",
            "title": "Smart Task Titles",
            "default": true
          },
          "open_in_viewing": {
            "type": "boolean",
            "title": "Open In Viewing",
            "default": false
          },
          "locale": {
            "type": "string",
            "title": "Locale",
            "default": "en"
          },
          "has_federated_identity": {
            "type": "boolean",
            "title": "Has Federated Identity",
            "default": false
          },
          "has_password": {
            "type": "boolean",
            "title": "Has Password",
            "default": false
          },
          "password_required": {
            "type": "boolean",
            "title": "Password Required",
            "default": false
          },
          "demo_expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Demo Expires At"
          },
          "demo_community_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Demo Community Id"
          },
          "can_create_communities": {
            "type": "boolean",
            "title": "Can Create Communities",
            "default": false
          },
          "can_open_billing": {
            "type": "boolean",
            "title": "Can Open Billing",
            "default": false
          },
          "initiative_roles": {
            "items": {
              "$ref": "#/components/schemas/UserInitiativeRole"
            },
            "type": "array",
            "title": "Initiative Roles"
          },
          "purge_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Purge At"
          },
          "sign_in_locked_until": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sign In Locked Until"
          },
          "second_factor_enrolled": {
            "type": "boolean",
            "title": "Second Factor Enrolled",
            "default": false
          },
          "api_key_count": {
            "type": "integer",
            "title": "Api Key Count",
            "default": 0
          },
          "allowed_actions": {
            "items": {
              "$ref": "#/components/schemas/UserAction"
            },
            "type": "array",
            "title": "Allowed Actions"
          },
          "open_case_count": {
            "type": "integer",
            "title": "Open Case Count",
            "default": 0
          },
          "capabilities": {
            "items": {
              "$ref": "#/components/schemas/Capability"
            },
            "type": "array",
            "title": "Capabilities",
            "description": "Platform capabilities granted by this user's standing role \u2014 none\nwhile the account is suspended.\n\nThe frontend gates UI on these values (single source of truth);\nsee ``app.core.capabilities``. Sorted by value.",
            "readOnly": true
          }
        },
        "type": "object",
        "required": [
          "id",
          "role",
          "username",
          "discriminator",
          "username_chosen",
          "age_confirmed_at",
          "age_below_minimum_at",
          "legal_acceptance_required",
          "birthdate_on_file",
          "birthdate_required",
          "cookie_consent",
          "status",
          "email",
          "email_verified",
          "created_at",
          "updated_at",
          "avatar_url",
          "custom_status",
          "presence",
          "profile_decorations",
          "week_starts_on",
          "time_format",
          "recent_tabs_limit",
          "count_toward_engagement_ranking",
          "timezone",
          "event_reminder_minutes_before",
          "last_overdue_notification_at",
          "color_theme",
          "custom_themes",
          "task_completion_visual_feedback",
          "task_completion_audio_feedback",
          "task_completion_haptic_feedback",
          "smart_task_titles",
          "open_in_viewing",
          "locale",
          "has_federated_identity",
          "has_password",
          "password_required",
          "demo_expires_at",
          "demo_community_id",
          "can_create_communities",
          "can_open_billing",
          "initiative_roles",
          "purge_at",
          "sign_in_locked_until",
          "second_factor_enrolled",
          "api_key_count",
          "allowed_actions",
          "open_case_count",
          "capabilities"
        ],
        "title": "OperatorUserRead",
        "description": "A staff view of somebody else's account: the address masked.\n\nEverything staff do to an account \u2014 reset its password, rename\nit, change its tier, suspend it, delete it \u2014 is addressed by id, and the\nroster is read and searched by handle, so none of it needs the address\nitself. What the mask leaves is enough to match a row against an address\nsomebody has quoted at you, which is what the column is read for.\n\nMasking lives on the shape rather than in each operator route: subclassing\nkeeps ``/me`` \u2014 where the reader is the address's owner \u2014 on plain\n``UserRead``, while every operator route that returns an account gets the\nmasked form without opting in."
      },
      "OperatorUsernameUpdate": {
        "properties": {
          "username": {
            "type": "string",
            "maxLength": 64,
            "title": "Username"
          }
        },
        "type": "object",
        "required": [
          "username"
        ],
        "title": "OperatorUsernameUpdate",
        "description": "The name part a moderator sets on someone else's account.\n\nThe number is not here and never will be: it is drawn, not chosen, by\nanyone. It is re-drawn only if the new pair is already held."
      },
      "OwnPart": {
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "status",
              "dates",
              "byline",
              "notice",
              "actions",
              "relations",
              "case",
              "comments",
              "rsvp",
              "body",
              "schedule",
              "reactions",
              "poll"
            ],
            "title": "Type"
          },
          "props": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OwnPartProps"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "type"
        ],
        "title": "OwnPart",
        "description": "One of a detail's own parts."
      },
      "OwnPartProps": {
        "properties": {
          "required": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Required"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "OwnPartProps"
      },
      "OwnedContentItem": {
        "properties": {
          "tool": {
            "type": "string",
            "title": "Tool"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "tool",
          "id",
          "name"
        ],
        "title": "OwnedContentItem",
        "description": "One thing someone owns, or that nobody does."
      },
      "OwnedContentResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/OwnedContentItem"
            },
            "type": "array",
            "title": "Items"
          },
          "counts": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Counts"
          },
          "total": {
            "type": "integer",
            "title": "Total",
            "default": 0
          },
          "eligible_plugins": {
            "items": {
              "$ref": "#/components/schemas/OwnerPluginSummary"
            },
            "type": "array",
            "title": "Eligible Plugins"
          }
        },
        "type": "object",
        "required": [
          "items",
          "counts",
          "total",
          "eligible_plugins"
        ],
        "title": "OwnedContentResponse",
        "description": "What a user owns in this guild, or what no current member owns.\n\n``counts`` is per tool, keyed by the tool's kind, so the dialog can say\n\"3 projects, 1 calendar\" without walking the list. ``eligible_plugins`` are the\ninstalled plug-ins that may own every item listed, which the dialog offers\nbeside the community's admins."
      },
      "OwnedDecoration": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source"
          },
          "image_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Image Url"
          }
        },
        "type": "object",
        "required": [
          "id",
          "kind",
          "name",
          "source",
          "image_url"
        ],
        "title": "OwnedDecoration",
        "description": "One decoration an account may wear, and where it came from.\n\n``source`` names the marketplace pack that granted it, and is ``None`` for\nthe ones that ship with the app. The client renders a picker per slot from\nthese, drawing each id with the artwork it has for it and skipping the ones\nit doesn't."
      },
      "OwnedDecorationsResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/OwnedDecoration"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "OwnedDecorationsResponse",
        "description": "A person's whole library, in one read \u2014 it is small and it is all\nneeded at once, because the profile form renders every slot together."
      },
      "OwnerPluginSummary": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "avatar_url"
        ],
        "title": "OwnerPluginSummary",
        "description": "An installed plug-in that owns a resource, or may be handed one: the\ninstall's id, its name in this community, and its listing's picture."
      },
      "OwnershipTransferRequest": {
        "properties": {
          "new_owner_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "New Owner Id"
          },
          "new_owner_plugin_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "New Owner Plugin Id"
          }
        },
        "type": "object",
        "title": "OwnershipTransferRequest",
        "description": "Who should end up owning it: an active admin of this guild\n(``new_owner_id``), or an installed plug-in that may own all of it\n(``new_owner_plugin_id``). Exactly one is set."
      },
      "OwnershipTransferResponse": {
        "properties": {
          "counts": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Counts"
          },
          "total": {
            "type": "integer",
            "title": "Total",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "counts",
          "total"
        ],
        "title": "OwnershipTransferResponse"
      },
      "PageView": {
        "properties": {
          "route": {
            "type": "string",
            "maxLength": 256,
            "title": "Route"
          }
        },
        "type": "object",
        "required": [
          "route"
        ],
        "title": "PageView"
      },
      "PasskeyAuthenticationOptions": {
        "properties": {
          "options": {
            "additionalProperties": true,
            "type": "object",
            "title": "Options"
          }
        },
        "type": "object",
        "required": [
          "options"
        ],
        "title": "PasskeyAuthenticationOptions",
        "description": "What the browser's credential API is handed, as the library renders it."
      },
      "PasskeyList": {
        "properties": {
          "passkeys": {
            "items": {
              "$ref": "#/components/schemas/PasskeyRead"
            },
            "type": "array",
            "title": "Passkeys"
          },
          "password_required": {
            "type": "boolean",
            "title": "Password Required",
            "default": true
          },
          "limit": {
            "type": "integer",
            "title": "Limit"
          },
          "site_supported": {
            "type": "boolean",
            "title": "Site Supported",
            "default": true
          },
          "offered": {
            "type": "boolean",
            "title": "Offered",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "limit"
        ],
        "title": "PasskeyList",
        "description": "What the account holds, for the settings surface."
      },
      "PasskeyRead": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "last_used_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Used At"
          },
          "backed_up": {
            "type": "boolean",
            "title": "Backed Up"
          },
          "user_verified": {
            "type": "boolean",
            "title": "User Verified"
          },
          "transports": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Transports"
          },
          "aaguid": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Aaguid"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "created_at",
          "backed_up",
          "user_verified"
        ],
        "title": "PasskeyRead",
        "description": "One credential, as its holder sees it."
      },
      "PasskeyRegisterFinish": {
        "properties": {
          "credential": {
            "additionalProperties": true,
            "type": "object",
            "title": "Credential"
          },
          "name": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1,
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "credential",
          "name"
        ],
        "title": "PasskeyRegisterFinish",
        "description": "The browser's answer, and the name the person gives the credential."
      },
      "PasskeyRegisterStart": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1,
            "title": "Name"
          },
          "current_password": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Password"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "PasskeyRegisterStart",
        "description": "Beginning a registration. The name is settled here, before the browser\nmakes anything; the password is re-checked as it is for a password change,\nand an account with no usable password sends nothing."
      },
      "PasskeyRegistrationOptions": {
        "properties": {
          "options": {
            "additionalProperties": true,
            "type": "object",
            "title": "Options"
          }
        },
        "type": "object",
        "required": [
          "options"
        ],
        "title": "PasskeyRegistrationOptions",
        "description": "What the browser's credential API is handed, as the library renders it."
      },
      "PasskeyRemove": {
        "properties": {
          "current_password": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Password"
          }
        },
        "type": "object",
        "title": "PasskeyRemove",
        "description": "Removing a way in asks for the password, where there is one."
      },
      "PasskeyRename": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1,
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "PasskeyRename"
      },
      "PasskeySignInFinish": {
        "properties": {
          "credential": {
            "additionalProperties": true,
            "type": "object",
            "title": "Credential"
          },
          "device_name": {
            "type": "string",
            "maxLength": 255,
            "title": "Device Name",
            "default": ""
          },
          "code_verifier": {
            "type": "string",
            "title": "Code Verifier",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "credential"
        ],
        "title": "PasskeySignInFinish",
        "description": "The browser's answer."
      },
      "PasskeySignInStart": {
        "properties": {
          "code_challenge": {
            "type": "string",
            "title": "Code Challenge",
            "default": ""
          }
        },
        "type": "object",
        "title": "PasskeySignInStart",
        "description": "Beginning a sign-in. No account is named: the authenticator offers what\nit holds for this domain, and the assertion names the credential."
      },
      "PasskeySignUpFinish": {
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          },
          "username": {
            "type": "string",
            "maxLength": 64,
            "title": "Username"
          },
          "timezone": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Timezone"
          },
          "captcha_token": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4096
              },
              {
                "type": "null"
              }
            ],
            "title": "Captcha Token"
          },
          "community": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NewCommunity"
              },
              {
                "type": "null"
              }
            ]
          },
          "username_offer": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1024
              },
              {
                "type": "null"
              }
            ],
            "title": "Username Offer"
          },
          "birthdate": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Birthdate"
          },
          "accepted_documents": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 32,
            "title": "Accepted Documents"
          },
          "credential": {
            "additionalProperties": true,
            "type": "object",
            "title": "Credential"
          },
          "name": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1,
            "title": "Name",
            "default": "Passkey"
          },
          "code_verifier": {
            "type": "string",
            "title": "Code Verifier",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "email",
          "username",
          "credential"
        ],
        "title": "PasskeySignUpFinish",
        "description": "The browser's answer, with the same details it began with.\n\nSaid again rather than kept: nothing about the account exists between the\ntwo calls, and everything here is checked again before one is made."
      },
      "PasskeySignUpResult": {
        "properties": {
          "access_token": {
            "type": "string",
            "title": "Access Token"
          },
          "token_type": {
            "type": "string",
            "title": "Token Type",
            "default": "bearer"
          },
          "refresh_token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Refresh Token"
          },
          "codes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Codes"
          }
        },
        "type": "object",
        "required": [
          "access_token"
        ],
        "title": "PasskeySignUpResult",
        "description": "The account, signed in, and the codes that are now its way back.\n\nAn account with no password cannot be sent a reset, so the recovery set is\nissued here and shown once \u2014 on a deployment with no mail configured,\nwhich is the self-hosted case, it is the only way back."
      },
      "PasskeySignUpStart": {
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          },
          "username": {
            "type": "string",
            "maxLength": 64,
            "title": "Username"
          },
          "timezone": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Timezone"
          },
          "captcha_token": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4096
              },
              {
                "type": "null"
              }
            ],
            "title": "Captcha Token"
          },
          "community": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NewCommunity"
              },
              {
                "type": "null"
              }
            ]
          },
          "username_offer": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1024
              },
              {
                "type": "null"
              }
            ],
            "title": "Username Offer"
          },
          "birthdate": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Birthdate"
          },
          "accepted_documents": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 32,
            "title": "Accepted Documents"
          },
          "code_challenge": {
            "type": "string",
            "title": "Code Challenge",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "email",
          "username"
        ],
        "title": "PasskeySignUpStart",
        "description": "Registering an account whose way in is a key rather than a password.\n\nThe same things a password registration says about itself, minus the\npassword. A deployment that has withdrawn passwords has no other door of\nits own; before this, it could only take a registration through an\nidentity provider."
      },
      "PasskeyStepUpFinish": {
        "properties": {
          "credential": {
            "additionalProperties": true,
            "type": "object",
            "title": "Credential"
          }
        },
        "type": "object",
        "required": [
          "credential"
        ],
        "title": "PasskeyStepUpFinish",
        "description": "The browser's answer, presented against the session already open."
      },
      "PasswordRecover": {
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          },
          "recovery_code": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1,
            "title": "Recovery Code"
          },
          "password": {
            "type": "string",
            "maxLength": 256,
            "title": "Password"
          }
        },
        "type": "object",
        "required": [
          "email",
          "recovery_code",
          "password"
        ],
        "title": "PasswordRecover",
        "description": "Setting a password with a recovery code, for an account that holds none.\n\nThe address names the account, the code proves it, and the password is what\nthe account signs in with from now on."
      },
      "PasswordRemove": {
        "properties": {
          "current_password": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 256
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Password"
          }
        },
        "type": "object",
        "title": "PasswordRemove",
        "description": "Giving up the password. It is asked for one last time, as a change asks\nfor it; an account holding none has nothing to remove. Where the deployment\nsigns nobody in with a password, a recent sign-in answers instead, and it\nis left out."
      },
      "PasswordResetRequest": {
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          }
        },
        "type": "object",
        "required": [
          "email"
        ],
        "title": "PasswordResetRequest"
      },
      "PasswordResetSubmit": {
        "properties": {
          "token": {
            "type": "string",
            "minLength": 10,
            "title": "Token"
          },
          "password": {
            "type": "string",
            "maxLength": 256,
            "title": "Password"
          }
        },
        "type": "object",
        "required": [
          "token",
          "password"
        ],
        "title": "PasswordResetSubmit"
      },
      "PauseRead": {
        "properties": {
          "since": {
            "type": "string",
            "format": "date-time",
            "title": "Since"
          },
          "until": {
            "type": "string",
            "format": "date-time",
            "title": "Until"
          }
        },
        "type": "object",
        "required": [
          "since",
          "until"
        ],
        "title": "PauseRead",
        "description": "A stand-down in force, as the settings page shows it."
      },
      "PeopleCommunitySection": {
        "properties": {
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "community_name": {
            "type": "string",
            "title": "Community Name"
          },
          "icon_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon Url"
          },
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PersonRead"
            },
            "type": "array",
            "title": "Items"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          }
        },
        "type": "object",
        "required": [
          "community_id",
          "community_name",
          "icon_url",
          "total_count",
          "items",
          "has_next"
        ],
        "title": "PeopleCommunitySection",
        "description": "One guild's roster, as one accordion section."
      },
      "PeopleSectionsResponse": {
        "properties": {
          "sections": {
            "items": {
              "$ref": "#/components/schemas/PeopleCommunitySection"
            },
            "type": "array",
            "title": "Sections"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          }
        },
        "type": "object",
        "required": [
          "sections",
          "page",
          "page_size"
        ],
        "title": "PeopleSectionsResponse",
        "description": "Every guild section, in the reader's own rail order.\n\nPaginated *within* each section rather than across a merged list: the\nresponse is grouped, so a flat offset would not mean anything."
      },
      "PersonRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id",
            "x-identity": "person"
          },
          "username": {
            "type": "string",
            "title": "Username"
          },
          "discriminator": {
            "type": "integer",
            "title": "Discriminator"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "status": {
            "$ref": "#/components/schemas/UserStatus",
            "default": "active"
          },
          "display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Display Name"
          },
          "profile_decorations": {
            "$ref": "#/components/schemas/ProfileDecorations-Output"
          },
          "custom_status": {
            "$ref": "#/components/schemas/CustomStatus-Output"
          },
          "community_role": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Community Role"
          },
          "presence": {
            "$ref": "#/components/schemas/Presence",
            "default": "offline"
          },
          "shared_community_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Shared Community Ids"
          }
        },
        "type": "object",
        "required": [
          "id",
          "username",
          "discriminator",
          "avatar_url",
          "status",
          "display_name",
          "profile_decorations",
          "custom_status",
          "community_role",
          "presence",
          "shared_community_ids"
        ],
        "title": "PersonRead",
        "description": "One person, on one row of the roster.\n\nInherits ``UserSummary``'s ``display_name``: the name the person set in\nthe guild this row was read under, which the cross-guild loop reads per\nguild.",
        "x-person": true
      },
      "PersonalItemRead": {
        "properties": {
          "entity_type": {
            "type": "string",
            "title": "Entity Type"
          },
          "entity_id": {
            "type": "integer",
            "title": "Entity Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "viewed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Viewed At"
          },
          "bookmarked_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Bookmarked At"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "file_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Type"
          },
          "mime_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mime Type"
          },
          "original_filename": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Original Filename"
          }
        },
        "type": "object",
        "required": [
          "entity_type",
          "entity_id",
          "community_id",
          "initiative_id",
          "name",
          "viewed_at",
          "bookmarked_at",
          "icon",
          "file_type",
          "mime_type",
          "original_filename"
        ],
        "title": "PersonalItemRead",
        "description": "One tool in the reader's tabs or bookmarks: enough to draw its icon and link\nto it without a fetch per kind, and nothing of its content."
      },
      "PersonalItemState": {
        "properties": {
          "entity_type": {
            "type": "string",
            "title": "Entity Type"
          },
          "entity_id": {
            "type": "integer",
            "title": "Entity Id"
          },
          "viewed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Viewed At"
          },
          "view_source": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ViewSource"
              },
              {
                "type": "null"
              }
            ]
          },
          "bookmarked_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Bookmarked At"
          },
          "subscribed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subscribed At"
          },
          "subscribed": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subscribed"
          },
          "remind_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Remind At"
          },
          "reminded_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reminded At"
          },
          "mode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ItemMode"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "entity_type",
          "entity_id",
          "viewed_at",
          "view_source",
          "bookmarked_at",
          "subscribed_at",
          "subscribed",
          "remind_at",
          "reminded_at",
          "mode"
        ],
        "title": "PersonalItemState",
        "description": "What the reader keeps about one item."
      },
      "PlacementCommunityRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "placeable": {
            "type": "boolean",
            "title": "Placeable"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "placeable"
        ],
        "title": "PlacementCommunityRead",
        "description": "A community a rule may name, and whether a rule naming it applies."
      },
      "PlacementEverywhereUpdate": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          }
        },
        "type": "object",
        "required": [
          "enabled"
        ],
        "title": "PlacementEverywhereUpdate",
        "description": "Apply the platform's rules to every community they name, or only to\nthe ones that accepted them."
      },
      "PlacementInitiativeRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "roles": {
            "items": {
              "$ref": "#/components/schemas/PlacementInitiativeRoleRead"
            },
            "type": "array",
            "title": "Roles"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "roles"
        ],
        "title": "PlacementInitiativeRead",
        "description": "An initiative a rule may place people in, with the roles it offers."
      },
      "PlacementInitiativeRoleRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "is_manager": {
            "type": "boolean",
            "title": "Is Manager"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "is_manager"
        ],
        "title": "PlacementInitiativeRoleRead"
      },
      "PlacementProviderRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "display_name": {
            "type": "string",
            "title": "Display Name"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "reports_groups": {
            "type": "boolean",
            "title": "Reports Groups"
          }
        },
        "type": "object",
        "required": [
          "id",
          "display_name",
          "icon",
          "reports_groups"
        ],
        "title": "PlacementProviderRead",
        "description": "A provider rules can be written for, as the placement page lists it."
      },
      "PlatformAISettings": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          }
        },
        "type": "object",
        "required": [
          "enabled"
        ],
        "title": "PlatformAISettings",
        "description": "Whether AI features run on this deployment at all."
      },
      "PlatformAuthSettingsResponse": {
        "properties": {
          "methods": {
            "items": {
              "$ref": "#/components/schemas/LoginMethodStatus"
            },
            "type": "array",
            "title": "Methods"
          },
          "communities_requiring_sign_in": {
            "type": "integer",
            "title": "Communities Requiring Sign In"
          },
          "factor_methods_permitted": {
            "type": "boolean",
            "title": "Factor Methods Permitted",
            "default": true
          },
          "session_max_hours": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Session Max Hours"
          },
          "session_idle_minutes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Session Idle Minutes"
          },
          "second_factor_requirement": {
            "$ref": "#/components/schemas/SecondFactorRequirement",
            "default": "nobody"
          },
          "breached_password_check_enabled": {
            "type": "boolean",
            "title": "Breached Password Check Enabled",
            "default": true
          },
          "accounts_without_factor": {
            "$ref": "#/components/schemas/AccountsWithoutFactor"
          }
        },
        "type": "object",
        "required": [
          "methods",
          "communities_requiring_sign_in",
          "factor_methods_permitted",
          "session_max_hours",
          "session_idle_minutes",
          "second_factor_requirement",
          "breached_password_check_enabled",
          "accounts_without_factor"
        ],
        "title": "PlatformAuthSettingsResponse",
        "description": "The ways in this deployment permits, with the facts a change would turn\non."
      },
      "PlatformAuthSettingsUpdate": {
        "properties": {
          "methods": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/LoginMethod"
                },
                "type": "array",
                "minItems": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Methods"
          },
          "acknowledge_stranded": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Acknowledge Stranded"
          },
          "second_factor_requirement": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SecondFactorRequirement"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_max_hours": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 87600.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Session Max Hours"
          },
          "session_idle_minutes": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 525600.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Session Idle Minutes"
          },
          "breached_password_check_enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Breached Password Check Enabled"
          }
        },
        "type": "object",
        "title": "PlatformAuthSettingsUpdate",
        "description": "The rules to change. An omitted field is left as it is.\n\nThe whole request is one change: it is applied together or refused\ntogether, and a rule it loosens is loosened before one it tightens is\nchecked. Nobody is signed out by any of it."
      },
      "PlatformCommunityRestore": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/CommunityStatus",
            "default": "active"
          },
          "seat_user_id": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Seat User Id"
          }
        },
        "type": "object",
        "title": "PlatformCommunityRestore",
        "description": "Bring a deleted guild back (platform ``communities.manage``).\n\n``status`` is what it returns at \u2014 the operator decides, because a\ncommunity suspended for nonpayment and then deleted should not come back\ntrading, and a column remembering what it used to be would be one more\nthing to keep correct for a decision somebody is making anyway.\n\n``seat_user_id`` names the account that will run it, and is required only\nwhen the guild's roster no longer holds a ``superadmin`` \u2014 which is what a\ndeletion that cleared the roster leaves behind. The endpoint re-checks\nthat rather than trusting the client's reading of it."
      },
      "PlatformCommunityStorageListResponse": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PlatformCommunityStorageRead"
            },
            "type": "array",
            "title": "Items"
          },
          "support_bound": {
            "type": "boolean",
            "title": "Support Bound",
            "default": false
          },
          "billing_manages_plans": {
            "type": "boolean",
            "title": "Billing Manages Plans",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items",
          "support_bound",
          "billing_manages_plans"
        ],
        "title": "PlatformCommunityStorageListResponse",
        "description": "One page of the operator's community list."
      },
      "PlatformCommunityStorageRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "member_count": {
            "type": "integer",
            "title": "Member Count",
            "default": 0
          },
          "tier_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tier Name"
          },
          "max_storage_bytes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Storage Bytes"
          },
          "max_users": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Users"
          },
          "max_guests": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Guests"
          },
          "history_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "History Days"
          },
          "status": {
            "$ref": "#/components/schemas/CommunityStatus",
            "default": "active"
          },
          "status_changed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status Changed At"
          },
          "status_choices": {
            "items": {
              "$ref": "#/components/schemas/CommunityStatus"
            },
            "type": "array",
            "title": "Status Choices"
          },
          "purge_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Purge At"
          },
          "has_seat": {
            "type": "boolean",
            "title": "Has Seat",
            "default": true
          },
          "auth_options": {
            "items": {
              "$ref": "#/components/schemas/CommunityAuthOption"
            },
            "type": "array",
            "title": "Auth Options"
          },
          "branding_enabled": {
            "type": "boolean",
            "title": "Branding Enabled",
            "default": true
          },
          "support_enabled": {
            "type": "boolean",
            "title": "Support Enabled",
            "default": false
          },
          "ai_connections_open": {
            "type": "boolean",
            "title": "Ai Connections Open",
            "default": false
          },
          "plugins_open": {
            "type": "boolean",
            "title": "Plugins Open",
            "default": true
          },
          "custom_roles_open": {
            "type": "boolean",
            "title": "Custom Roles Open",
            "default": true
          },
          "platform_ai_open": {
            "type": "boolean",
            "title": "Platform Ai Open",
            "default": true
          },
          "lifts_to": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommunityStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "allowed_actions": {
            "items": {
              "$ref": "#/components/schemas/CommunityAction"
            },
            "type": "array",
            "title": "Allowed Actions"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "member_count",
          "tier_name",
          "max_storage_bytes",
          "max_users",
          "max_guests",
          "history_days",
          "status",
          "status_changed_at",
          "status_choices",
          "purge_at",
          "has_seat",
          "auth_options",
          "branding_enabled",
          "support_enabled",
          "ai_connections_open",
          "plugins_open",
          "custom_roles_open",
          "platform_ai_open",
          "lifts_to",
          "allowed_actions"
        ],
        "title": "PlatformCommunityStorageRead",
        "description": "Operator view of a guild's storage cap (platform settings \u2192 Guilds tab).\n\nUnlike :class:`CommunityRead`, this carries no per-user membership fields\n(``role``/``position``): the platform operator lists every guild regardless\nof whether they belong to it, so only platform-wide attributes apply."
      },
      "PlatformCommunityStorageUpdate": {
        "properties": {
          "max_storage_bytes": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Storage Bytes"
          },
          "max_users": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Users"
          },
          "max_guests": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Guests"
          },
          "history_days": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 3650.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "History Days"
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommunityStatus"
              },
              {
                "type": "null"
              }
            ]
          },
          "auth_options": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/CommunityAuthOption"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Auth Options"
          },
          "branding_enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Branding Enabled"
          },
          "support_enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Support Enabled"
          },
          "ai_connections_open": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ai Connections Open"
          },
          "plugins_open": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Plugins Open"
          },
          "custom_roles_open": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Custom Roles Open"
          },
          "platform_ai_open": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Platform Ai Open"
          }
        },
        "type": "object",
        "title": "PlatformCommunityStorageUpdate",
        "description": "Set a guild's storage caps and/or lifecycle status from the Guilds tab.\n\nThe cap fields use omit-to-skip sentinel semantics (the endpoint inspects\n``model_fields_set``): omit a field to leave it untouched, send ``null`` to\nreset that cap to unlimited, or send a number to set it. ``status`` is\nomit-to-skip too (a lifecycle status is never null), validated against\n:class:`CommunityStatus`. A PATCH may carry any subset."
      },
      "PlatformProviderDefaultRead": {
        "properties": {
          "provider_id": {
            "type": "integer",
            "title": "Provider Id"
          },
          "claim": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Claim"
          },
          "claim_values": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Claim Values"
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "provider_id",
          "claim",
          "claim_values",
          "enabled"
        ],
        "title": "PlatformProviderDefaultRead",
        "description": "How one provider is arranged for a community that has not said."
      },
      "PlatformProviderDefaultUpdate": {
        "properties": {
          "claim": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Claim"
          },
          "claim_values": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "maxLength": 256
                },
                "type": "array",
                "maxItems": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Claim Values"
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enabled"
          }
        },
        "type": "object",
        "title": "PlatformProviderDefaultUpdate",
        "description": "Answer for a provider on behalf of the communities that have not.\n\nCarries the arrangement and nothing else. There is no ``auto_join`` here:\na default names a provider, never a community, so who joins a community\nstays that community's to say."
      },
      "PlatformRoleUpdate": {
        "properties": {
          "role": {
            "$ref": "#/components/schemas/UserRole"
          }
        },
        "type": "object",
        "required": [
          "role"
        ],
        "title": "PlatformRoleUpdate",
        "description": "Schema for updating a user's platform role."
      },
      "PluginAccessTokenResponse": {
        "properties": {
          "access_token": {
            "type": "string",
            "title": "Access Token"
          },
          "token_type": {
            "type": "string",
            "title": "Token Type",
            "default": "Bearer"
          },
          "expires_in": {
            "type": "integer",
            "title": "Expires In"
          },
          "scope": {
            "type": "string",
            "title": "Scope"
          },
          "id_token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id Token"
          },
          "refresh_token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Refresh Token"
          }
        },
        "type": "object",
        "required": [
          "access_token",
          "expires_in",
          "scope"
        ],
        "title": "PluginAccessTokenResponse",
        "description": "A successful token response (RFC 6749 \u00a75.1)."
      },
      "PluginActionResult": {
        "properties": {
          "values": {
            "additionalProperties": true,
            "type": "object",
            "title": "Values"
          }
        },
        "type": "object",
        "required": [
          "values"
        ],
        "title": "PluginActionResult",
        "description": "The values the plug-in shows on the item after its action, by key."
      },
      "PluginActionRun": {
        "properties": {
          "entity_type": {
            "$ref": "#/components/schemas/ItemKind"
          },
          "entity_id": {
            "type": "integer",
            "title": "Entity Id"
          },
          "params": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Params"
          },
          "element": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Element"
          }
        },
        "type": "object",
        "required": [
          "entity_type",
          "entity_id"
        ],
        "title": "PluginActionRun",
        "description": "The item to run an action on, and what the reader gave the action."
      },
      "PluginAvailability": {
        "type": "string",
        "enum": [
          "none",
          "beta",
          "operations"
        ],
        "title": "PluginAvailability",
        "description": "Which communities a plug-in reaches, as its manifest declares it (the\ncontract's ``availability``)."
      },
      "PluginBetaCommunityRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "title": "PluginBetaCommunityRead",
        "description": "A community on a beta plug-in's list."
      },
      "PluginConnectionChoose": {
        "properties": {
          "choice": {
            "type": "string",
            "maxLength": 32768,
            "title": "Choice"
          },
          "position": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Position"
          }
        },
        "type": "object",
        "required": [
          "choice",
          "position"
        ],
        "title": "PluginConnectionChoose",
        "description": "The account a person picked from a flow's accounts, by its position."
      },
      "PluginConnectionFinish": {
        "properties": {
          "code": {
            "type": "string",
            "maxLength": 4096,
            "title": "Code"
          },
          "code_verifier": {
            "type": "string",
            "maxLength": 128,
            "minLength": 43,
            "title": "Code Verifier"
          }
        },
        "type": "object",
        "required": [
          "code",
          "code_verifier"
        ],
        "title": "PluginConnectionFinish",
        "description": "A connection an app began, handed back to it: the handback it was\ngiven, and the PKCE verifier behind the challenge it began with."
      },
      "PluginConnectionFinished": {
        "properties": {
          "outcome": {
            "$ref": "#/components/schemas/PluginConnectionOutcome"
          },
          "choice": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Choice"
          },
          "labels": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Labels"
          },
          "connect_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Connect Url"
          }
        },
        "type": "object",
        "required": [
          "outcome",
          "choice",
          "labels",
          "connect_url"
        ],
        "title": "PluginConnectionFinished",
        "description": "How a connection's flow ended, or where it goes on: the accounts to\npick from (``choose``), or the vendor's install page (``install``)."
      },
      "PluginConnectionOutcome": {
        "type": "string",
        "enum": [
          "connected",
          "refused",
          "expired",
          "not_recorded",
          "awaiting_approval",
          "sign_in_required",
          "app_only",
          "choose",
          "install"
        ],
        "title": "PluginConnectionOutcome",
        "description": "How a flow ended, as the landing page and the app read it."
      },
      "PluginConsentRequestCreate": {
        "properties": {
          "member": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1,
            "title": "Member"
          },
          "purpose": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Purpose"
          },
          "label": {
            "type": "string",
            "maxLength": 200,
            "minLength": 1,
            "title": "Label"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 2147483647.0,
                "exclusiveMinimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "access": {
            "$ref": "#/components/schemas/ConsentAccess"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "member",
          "label",
          "access"
        ],
        "title": "PluginConsentRequestCreate",
        "description": "A plug-in asking one member to let it act as them, for one purpose."
      },
      "PluginConsentRequestRead": {
        "properties": {
          "member": {
            "type": "string",
            "title": "Member"
          },
          "purpose": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Purpose"
          },
          "label": {
            "type": "string",
            "title": "Label"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "requested_access": {
            "$ref": "#/components/schemas/ConsentAccess"
          },
          "status": {
            "$ref": "#/components/schemas/ConsentStatus"
          },
          "granted_access": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ConsentAccess"
              },
              {
                "type": "null"
              }
            ]
          },
          "requested_at": {
            "type": "string",
            "format": "date-time",
            "title": "Requested At"
          }
        },
        "type": "object",
        "required": [
          "member",
          "label",
          "requested_access",
          "status",
          "requested_at"
        ],
        "title": "PluginConsentRequestRead",
        "description": "A request to act as a member, as it stands."
      },
      "PluginDataParam": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "type": {
            "type": "string",
            "title": "Type"
          },
          "label": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Label",
            "default": {}
          },
          "required": {
            "type": "boolean",
            "title": "Required",
            "default": false
          },
          "options": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Options"
          },
          "options_from": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PluginParamOptionSource"
              },
              {
                "type": "null"
              }
            ]
          },
          "list": {
            "type": "boolean",
            "title": "List",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "key",
          "type"
        ],
        "title": "PluginDataParam",
        "description": "One parameter an endpoint accepts, from its ``params``."
      },
      "PluginDataResponse": {
        "properties": {
          "rows": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Rows",
            "default": []
          },
          "values": {
            "additionalProperties": true,
            "type": "object",
            "title": "Values",
            "default": {}
          },
          "fetched_at": {
            "type": "string",
            "format": "date-time",
            "title": "Fetched At"
          },
          "cached": {
            "type": "boolean",
            "title": "Cached",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "fetched_at"
        ],
        "title": "PluginDataResponse",
        "description": "One data source's answer, in the two shapes its endpoint declared."
      },
      "PluginDataReturn": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "type": {
            "type": "string",
            "title": "Type"
          },
          "label": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Label",
            "default": {}
          },
          "list": {
            "type": "boolean",
            "title": "List",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "key",
          "type"
        ],
        "title": "PluginDataReturn",
        "description": "One thing an endpoint hands back, from its ``returns``.\n\nDeclared rather than discovered, because a consumer binds one of these\nbefore the endpoint has ever run. The ones marked ``list`` are what become\nthe rows \u2014 so they are also the columns a statement over those rows may\nname."
      },
      "PluginEndpointRead": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "permission": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Permission"
          },
          "cache_ttl_seconds": {
            "type": "integer",
            "title": "Cache Ttl Seconds",
            "default": 0
          },
          "params": {
            "items": {
              "$ref": "#/components/schemas/PluginDataParam"
            },
            "type": "array",
            "title": "Params",
            "default": []
          },
          "returns": {
            "items": {
              "$ref": "#/components/schemas/PluginDataReturn"
            },
            "type": "array",
            "title": "Returns",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "id"
        ],
        "title": "PluginEndpointRead",
        "description": "A read endpoint a widget may bind to.\n\nReads only. A write and an emission are both real endpoints and neither\nfills a tile, so neither belongs in a widget picker."
      },
      "PluginInstallStatus": {
        "type": "string",
        "enum": [
          "active",
          "read_only",
          "on_hold",
          "deleted"
        ],
        "title": "PluginInstallStatus",
        "description": "An install's status, set by staff or, where billing sets plans, by\nbilling. Initiative keeps no plug-in data by it: the plug-in is told and\ndecides what each means to it."
      },
      "PluginInstallationRead": {
        "properties": {
          "installation": {
            "type": "string",
            "title": "Installation"
          },
          "active": {
            "type": "boolean",
            "title": "Active"
          }
        },
        "type": "object",
        "required": [
          "installation",
          "active"
        ],
        "title": "PluginInstallationRead",
        "description": "One install of the calling plug-in."
      },
      "PluginItemAccessRead": {
        "properties": {
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "fields": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Fields",
            "default": []
          },
          "parts": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Parts",
            "default": []
          },
          "actions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Actions",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "initiative_id",
          "fields",
          "parts",
          "actions"
        ],
        "title": "PluginItemAccessRead",
        "description": "What of a plug-in the viewer meets on the items of one initiative."
      },
      "PluginOAuthErrorResponse": {
        "properties": {
          "error": {
            "type": "string",
            "title": "Error"
          },
          "error_description": {
            "type": "string",
            "title": "Error Description"
          }
        },
        "type": "object",
        "required": [
          "error",
          "error_description"
        ],
        "title": "PluginOAuthErrorResponse",
        "description": "An error response (RFC 6749 \u00a75.2)."
      },
      "PluginParamOption": {
        "properties": {
          "value": {
            "type": "string",
            "title": "Value"
          },
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Label"
          }
        },
        "type": "object",
        "required": [
          "value"
        ],
        "title": "PluginParamOption",
        "description": "One value a parameter permits."
      },
      "PluginParamOptionSource": {
        "properties": {
          "endpoint": {
            "type": "string",
            "title": "Endpoint"
          },
          "key": {
            "type": "string",
            "title": "Key"
          },
          "label_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Label Key"
          },
          "needs": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Needs",
            "default": {}
          }
        },
        "type": "object",
        "required": [
          "endpoint",
          "key"
        ],
        "title": "PluginParamOptionSource",
        "description": "Where a parameter's permitted values come from, when only the plug-in knows.\n\nA repository, a label, a board: every one of them differs per install,\nchanges after it, and can be enumerated only by the plug-in holding that\ninstall's credential \u2014 so none can be written into a manifest, which is\npublished once and identical on every deployment. The manifest names a read\nof the plug-in's own instead, and this is that naming, carried through to\nwhoever draws the control."
      },
      "PluginParamOptionsResponse": {
        "properties": {
          "options": {
            "items": {
              "$ref": "#/components/schemas/PluginParamOption"
            },
            "type": "array",
            "title": "Options",
            "default": []
          },
          "unavailable": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Unavailable"
          }
        },
        "type": "object",
        "title": "PluginParamOptionsResponse",
        "description": "The menu for one parameter, or why there is not one.\n\n``unavailable`` is never an error. A source that will not resolve \u2014 the plug-in\nis down, a credential nobody has connected, a sibling not yet chosen \u2014 must\nleave the parameter **enterable**, because a control disabled on those\ngrounds has made a valid configuration unreachable. A consumer draws a menu\nwhen there is one and a text field when there is not."
      },
      "PluginPart": {
        "properties": {
          "type": {
            "type": "string",
            "const": "plugin",
            "title": "Type"
          },
          "props": {
            "$ref": "#/components/schemas/PluginPartProps"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "type",
          "props"
        ],
        "title": "PluginPart",
        "description": "One of an installed plug-in's parts, drawn as its manifest builds it.\nA part the install no longer declares draws nothing."
      },
      "PluginPartProps": {
        "properties": {
          "plugin": {
            "type": "integer",
            "exclusiveMinimum": 0.0,
            "title": "Plugin"
          },
          "part": {
            "type": "string",
            "title": "Part"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "plugin",
          "part"
        ],
        "title": "PluginPartProps"
      },
      "PluginPartState": {
        "type": "string",
        "enum": [
          "included",
          "pending",
          "empty",
          "not_taken",
          "failed",
          "too_large",
          "done",
          "kept_by_publisher"
        ],
        "title": "PluginPartState",
        "description": "Where one of a plug-in's parts stands: each file of its folder in the\narchive, and a container plug-in's own part of a backup or a restore on\nits job (``app.services.tenant.plugin_parts``)."
      },
      "PluginPermissionDefault": {
        "properties": {
          "install_id": {
            "type": "integer",
            "title": "Install Id"
          },
          "permission": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1,
            "title": "Permission"
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enabled"
          }
        },
        "type": "object",
        "required": [
          "install_id",
          "permission",
          "enabled"
        ],
        "title": "PluginPermissionDefault",
        "description": "What members hold of one plug-in's initiative permission in every\ninitiative; ``null`` hands it back to each initiative."
      },
      "PluginPermissionInitiatives": {
        "properties": {
          "install_id": {
            "type": "integer",
            "title": "Install Id"
          },
          "permission": {
            "type": "string",
            "title": "Permission"
          },
          "initiative_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Initiative Ids"
          }
        },
        "type": "object",
        "required": [
          "install_id",
          "permission",
          "initiative_ids"
        ],
        "title": "PluginPermissionInitiatives",
        "description": "One plug-in's initiative permission, and initiatives that answer it."
      },
      "PluginPermissionRead": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "level": {
            "type": "string",
            "enum": [
              "initiative",
              "community"
            ],
            "title": "Level"
          },
          "name": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "members": {
            "type": "boolean",
            "title": "Members",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "id",
          "level",
          "name",
          "members"
        ],
        "title": "PluginPermissionRead",
        "description": "One of a plug-in's permissions, as the community's role pages list it."
      },
      "PluginPermissionRef": {
        "properties": {
          "install_id": {
            "type": "integer",
            "title": "Install Id"
          },
          "permission": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1,
            "title": "Permission"
          }
        },
        "type": "object",
        "required": [
          "install_id",
          "permission"
        ],
        "title": "PluginPermissionRef",
        "description": "One installed plug-in's community permission."
      },
      "PluginPermissionRule": {
        "properties": {
          "install_id": {
            "type": "integer",
            "title": "Install Id"
          },
          "permission": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1,
            "title": "Permission"
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          }
        },
        "type": "object",
        "required": [
          "install_id",
          "permission",
          "enabled"
        ],
        "title": "PluginPermissionRule",
        "description": "An answer for one installed plug-in's initiative permission: a role's,\nor what members hold in every initiative."
      },
      "PluginPlatformConnectStart": {
        "properties": {
          "connect_url": {
            "type": "string",
            "title": "Connect Url"
          }
        },
        "type": "object",
        "required": [
          "connect_url"
        ],
        "title": "PluginPlatformConnectStart",
        "description": "Where to send the operator to connect it."
      },
      "PluginPlatformConnectionRead": {
        "properties": {
          "connection_id": {
            "type": "string",
            "title": "Connection Id"
          },
          "label": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Label",
            "default": {}
          },
          "connected": {
            "type": "boolean",
            "title": "Connected",
            "default": false
          },
          "account_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Account Label"
          },
          "connected_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Connected At"
          },
          "removed": {
            "type": "boolean",
            "title": "Removed",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "connection_id",
          "label",
          "connected",
          "account_label",
          "connected_at",
          "removed"
        ],
        "title": "PluginPlatformConnectionRead",
        "description": "A community connection the platform can connect once for every\ncommunity, and what it connected."
      },
      "PluginPublisherCreate": {
        "properties": {
          "prefix": {
            "type": "string",
            "maxLength": 120,
            "title": "Prefix"
          },
          "display_name": {
            "type": "string",
            "maxLength": 200,
            "title": "Display Name"
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "prefix",
          "display_name"
        ],
        "title": "PluginPublisherCreate",
        "description": "Add a publisher for a prefix, unverified."
      },
      "PluginPublisherRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "prefix": {
            "type": "string",
            "title": "Prefix"
          },
          "display_name": {
            "type": "string",
            "title": "Display Name"
          },
          "verified": {
            "type": "boolean",
            "title": "Verified"
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "prefix",
          "display_name",
          "verified",
          "enabled",
          "created_at"
        ],
        "title": "PluginPublisherRead",
        "description": "A publisher as the owner's settings see it."
      },
      "PluginPublisherUpdate": {
        "properties": {
          "display_name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Display Name"
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enabled"
          }
        },
        "type": "object",
        "title": "PluginPublisherUpdate",
        "description": "Rename a publisher, or switch it on or off."
      },
      "PluginServiceConnect": {
        "properties": {
          "keys": {
            "items": {
              "$ref": "#/components/schemas/PluginServicePublishedKey"
            },
            "type": "array",
            "maxItems": 20,
            "minItems": 1,
            "title": "Keys"
          }
        },
        "type": "object",
        "required": [
          "keys"
        ],
        "title": "PluginServiceConnect",
        "description": "Pin the key set the plug-in serves, as the operator confirmed it."
      },
      "PluginServicePublishedKey": {
        "properties": {
          "kid": {
            "type": "string",
            "title": "Kid"
          },
          "fingerprint": {
            "type": "string",
            "maxLength": 64,
            "title": "Fingerprint"
          }
        },
        "type": "object",
        "required": [
          "kid",
          "fingerprint"
        ],
        "title": "PluginServicePublishedKey",
        "description": "One key the plug-in serves under its base URL: what Connect shows, and what\nthe operator confirms."
      },
      "PluginServiceRegistrationCreate": {
        "properties": {
          "public_id": {
            "type": "string",
            "maxLength": 120,
            "title": "Public Id"
          },
          "base_url": {
            "type": "string",
            "maxLength": 1000,
            "title": "Base Url"
          },
          "page_origin": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ],
            "title": "Page Origin"
          },
          "allowed_origins": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Allowed Origins"
          },
          "jwks": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Jwks"
          },
          "jwks_uri": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ],
            "title": "Jwks Uri"
          },
          "mandatory": {
            "type": "boolean",
            "title": "Mandatory",
            "default": false
          },
          "vendor_values": {
            "anyOf": [
              {
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Vendor Values"
          }
        },
        "type": "object",
        "required": [
          "public_id",
          "base_url"
        ],
        "title": "PluginServiceRegistrationCreate",
        "description": "Set up a plug-in service's deployment facts before its listing arrives.\n\n``public_id`` names the plug-in. ``page_origin`` is optional, and unset is the\nordinary case: a plug-in reachable at one address needs only ``base_url``.\nGive one when the address a browser must use is not the address this\ndeployment calls.\n\nKeys are a pasted ``jwks``, a ``jwks_uri`` on ``base_url``'s own origin\nover https, or both. A registration with neither is not live."
      },
      "PluginServiceRegistrationListResponse": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PluginServiceRegistrationRead"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items"
        ],
        "title": "PluginServiceRegistrationListResponse",
        "description": "One page of the plug-in services this deployment has wired up."
      },
      "PluginServiceRegistrationRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "public_id": {
            "type": "string",
            "title": "Public Id"
          },
          "listing_uid": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Listing Uid"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Version"
          },
          "first_party": {
            "type": "boolean",
            "title": "First Party",
            "default": false
          },
          "kind": {
            "type": "string",
            "title": "Kind",
            "default": "container"
          },
          "publisher_id": {
            "type": "integer",
            "title": "Publisher Id"
          },
          "publisher_prefix": {
            "type": "string",
            "title": "Publisher Prefix"
          },
          "publisher_name": {
            "type": "string",
            "title": "Publisher Name"
          },
          "publisher_enabled": {
            "type": "boolean",
            "title": "Publisher Enabled"
          },
          "base_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Base Url"
          },
          "page_origin": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Page Origin"
          },
          "allowed_origins": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Allowed Origins",
            "default": []
          },
          "jwks": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Jwks"
          },
          "jwks_uri": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Jwks Uri"
          },
          "scope_ceiling": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Scope Ceiling",
            "default": []
          },
          "mandatory": {
            "type": "boolean",
            "title": "Mandatory",
            "default": false
          },
          "availability": {
            "$ref": "#/components/schemas/PluginAvailability",
            "default": "none"
          },
          "beta_communities": {
            "items": {
              "$ref": "#/components/schemas/PluginBetaCommunityRead"
            },
            "type": "array",
            "title": "Beta Communities",
            "default": []
          },
          "platform_connections": {
            "items": {
              "$ref": "#/components/schemas/PluginPlatformConnectionRead"
            },
            "type": "array",
            "title": "Platform Connections",
            "default": []
          },
          "suspended_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Suspended At"
          },
          "source": {
            "type": "string",
            "title": "Source",
            "default": "operator"
          },
          "image_digest": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Image Digest"
          },
          "compose_service": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Compose Service"
          },
          "compose_base_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Compose Base Url"
          },
          "vendor_fields": {
            "items": {
              "$ref": "#/components/schemas/PluginVendorFieldRead"
            },
            "type": "array",
            "title": "Vendor Fields",
            "default": []
          },
          "vendor_values": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Vendor Values",
            "default": {}
          },
          "vendor_set": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Vendor Set",
            "default": []
          },
          "vendor_hints": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Vendor Hints",
            "default": {}
          },
          "vendor_ready": {
            "type": "boolean",
            "title": "Vendor Ready",
            "default": true
          },
          "vendor_setup": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Vendor Setup"
          },
          "vendor_check": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "passed",
                  "not_run"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Vendor Check"
          },
          "connection_callback_url": {
            "type": "string",
            "title": "Connection Callback Url"
          },
          "connection_setup_url": {
            "type": "string",
            "title": "Connection Setup Url"
          },
          "webhook_url": {
            "type": "string",
            "title": "Webhook Url"
          },
          "live": {
            "type": "boolean",
            "title": "Live"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "public_id",
          "listing_uid",
          "name",
          "avatar_url",
          "version",
          "first_party",
          "kind",
          "publisher_id",
          "publisher_prefix",
          "publisher_name",
          "publisher_enabled",
          "base_url",
          "page_origin",
          "allowed_origins",
          "jwks",
          "jwks_uri",
          "scope_ceiling",
          "mandatory",
          "availability",
          "beta_communities",
          "platform_connections",
          "suspended_at",
          "source",
          "image_digest",
          "compose_service",
          "compose_base_url",
          "vendor_fields",
          "vendor_values",
          "vendor_set",
          "vendor_hints",
          "vendor_ready",
          "vendor_setup",
          "vendor_check",
          "connection_callback_url",
          "connection_setup_url",
          "webhook_url",
          "live",
          "created_at",
          "updated_at"
        ],
        "title": "PluginServiceRegistrationRead",
        "description": "A registration as the owner's settings see it."
      },
      "PluginServiceRegistrationUpdate": {
        "properties": {
          "base_url": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ],
            "title": "Base Url"
          },
          "page_origin": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ],
            "title": "Page Origin"
          },
          "allowed_origins": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Allowed Origins"
          },
          "jwks": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Jwks"
          },
          "jwks_uri": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ],
            "title": "Jwks Uri"
          },
          "mandatory": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mandatory"
          },
          "suspended": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Suspended"
          },
          "beta_community_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Beta Community Ids"
          },
          "vendor_values": {
            "anyOf": [
              {
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Vendor Values"
          }
        },
        "type": "object",
        "title": "PluginServiceRegistrationUpdate",
        "description": "Partial edit.\n\nAn empty ``page_origin`` clears it, putting both surfaces back on\n``base_url``. An empty ``jwks_uri`` clears it, and an empty ``jwks``\nobject clears the pasted set. In ``vendor_values`` a key sent empty or\nnull clears that value, and a key left out keeps it, so a secret is kept\nby not sending it."
      },
      "PluginServiceVendorSetup": {
        "properties": {
          "action": {
            "type": "string",
            "title": "Action"
          },
          "manifest": {
            "type": "string",
            "title": "Manifest"
          },
          "state": {
            "type": "string",
            "title": "State"
          }
        },
        "type": "object",
        "required": [
          "action",
          "manifest",
          "state"
        ],
        "title": "PluginServiceVendorSetup",
        "description": "What the operator's browser posts to the vendor: ``manifest`` as a form\nfield, to ``action`` with ``state`` in its query."
      },
      "PluginServiceVendorSetupComplete": {
        "properties": {
          "code": {
            "type": "string",
            "maxLength": 200,
            "minLength": 1,
            "title": "Code"
          },
          "state": {
            "type": "string",
            "maxLength": 4000,
            "minLength": 1,
            "title": "State"
          }
        },
        "type": "object",
        "required": [
          "code",
          "state"
        ],
        "title": "PluginServiceVendorSetupComplete",
        "description": "What the vendor sent the operator back with."
      },
      "PluginServiceVendorSetupStart": {
        "properties": {
          "organization": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Organization"
          }
        },
        "type": "object",
        "title": "PluginServiceVendorSetupStart",
        "description": "Start the vendor's own setup for the plug-in's client."
      },
      "PluginSetupOption": {
        "properties": {
          "value": {
            "type": "string",
            "title": "Value"
          },
          "label": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Label",
            "default": {}
          }
        },
        "type": "object",
        "required": [
          "value",
          "label"
        ],
        "title": "PluginSetupOption",
        "description": "One answer a setup's question offers."
      },
      "PluginSetupQuestion": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "label": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Label",
            "default": {}
          },
          "options": {
            "items": {
              "$ref": "#/components/schemas/PluginSetupOption"
            },
            "type": "array",
            "title": "Options",
            "default": []
          },
          "value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Value"
          }
        },
        "type": "object",
        "required": [
          "key",
          "label",
          "options",
          "value"
        ],
        "title": "PluginSetupQuestion",
        "description": "One choice a setup asks for, from the options it offers."
      },
      "PluginSetupStep": {
        "properties": {
          "title": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Title",
            "default": {}
          },
          "text": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Text"
          },
          "questions": {
            "items": {
              "$ref": "#/components/schemas/PluginSetupQuestion"
            },
            "type": "array",
            "title": "Questions",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "title",
          "text",
          "questions"
        ],
        "title": "PluginSetupStep",
        "description": "One step of a setup: a title, what it says, and what it asks."
      },
      "PluginSignInAuthorize": {
        "properties": {
          "client_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2048
              },
              {
                "type": "null"
              }
            ],
            "title": "Client Id"
          },
          "redirect_uri": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2048
              },
              {
                "type": "null"
              }
            ],
            "title": "Redirect Uri"
          },
          "response_type": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2048
              },
              {
                "type": "null"
              }
            ],
            "title": "Response Type"
          },
          "scope": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2048
              },
              {
                "type": "null"
              }
            ],
            "title": "Scope"
          },
          "state": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2048
              },
              {
                "type": "null"
              }
            ],
            "title": "State"
          },
          "nonce": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2048
              },
              {
                "type": "null"
              }
            ],
            "title": "Nonce"
          },
          "code_challenge": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2048
              },
              {
                "type": "null"
              }
            ],
            "title": "Code Challenge"
          },
          "code_challenge_method": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2048
              },
              {
                "type": "null"
              }
            ],
            "title": "Code Challenge Method"
          },
          "community_id": {
            "type": "integer",
            "exclusiveMinimum": 0.0,
            "title": "Community Id"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          }
        },
        "type": "object",
        "required": [
          "community_id"
        ],
        "title": "PluginSignInAuthorize",
        "description": "The request, and the place the person chose."
      },
      "PluginSignInClientRead": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "listing_public_id": {
            "type": "string",
            "title": "Listing Public Id"
          },
          "refusal_redirect": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Refusal Redirect"
          },
          "cancel_redirect": {
            "type": "string",
            "title": "Cancel Redirect"
          }
        },
        "type": "object",
        "required": [
          "name",
          "listing_public_id",
          "cancel_redirect"
        ],
        "title": "PluginSignInClientRead",
        "description": "The plug-in asking, once its client and return address check out."
      },
      "PluginSignInPlaceRead": {
        "properties": {
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "community_name": {
            "type": "string",
            "title": "Community Name"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "initiative_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Name"
          }
        },
        "type": "object",
        "required": [
          "community_id",
          "community_name"
        ],
        "title": "PluginSignInPlaceRead",
        "description": "Somewhere the person may open the plug-in."
      },
      "PluginSignInPlacesRead": {
        "properties": {
          "places": {
            "items": {
              "$ref": "#/components/schemas/PluginSignInPlaceRead"
            },
            "type": "array",
            "title": "Places"
          },
          "installed_community_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Installed Community Ids"
          }
        },
        "type": "object",
        "required": [
          "places",
          "installed_community_ids"
        ],
        "title": "PluginSignInPlacesRead"
      },
      "PluginSignInRedirect": {
        "properties": {
          "redirect_to": {
            "type": "string",
            "title": "Redirect To"
          }
        },
        "type": "object",
        "required": [
          "redirect_to"
        ],
        "title": "PluginSignInRedirect",
        "description": "Where to send the person: back to the plug-in, with a code."
      },
      "PluginState": {
        "type": "string",
        "enum": [
          "active",
          "read_only",
          "on_hold",
          "deleted",
          "suspended"
        ],
        "title": "PluginState",
        "description": "A plug-in's state in one community: suspended when the platform, the\ninstall or its reach suspends it, otherwise the install's status."
      },
      "PluginSummaryListResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PluginSummaryRead"
            },
            "type": "array",
            "title": "Items",
            "default": []
          }
        },
        "type": "object",
        "title": "PluginSummaryListResponse"
      },
      "PluginSummaryRead": {
        "properties": {
          "plugin_id": {
            "type": "integer",
            "title": "Plugin Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "returns": {
            "items": {
              "$ref": "#/components/schemas/PluginSummaryReturn"
            },
            "type": "array",
            "title": "Returns",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "plugin_id",
          "name"
        ],
        "title": "PluginSummaryRead",
        "description": "An installed plug-in that says where the community stands with it."
      },
      "PluginSummaryReturn": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "type": {
            "type": "string",
            "title": "Type"
          },
          "label": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Label"
          },
          "list": {
            "type": "boolean",
            "title": "List",
            "default": false
          },
          "of": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Of"
          }
        },
        "type": "object",
        "required": [
          "key",
          "type"
        ],
        "title": "PluginSummaryReturn",
        "description": "One figure a plug-in's community summary declares: its key, its type,\nthe plug-in's own label for it, and what it is counted against."
      },
      "PluginSurfaceAccessRead": {
        "properties": {
          "surface_id": {
            "type": "string",
            "title": "Surface Id"
          },
          "openable_community_wide": {
            "type": "boolean",
            "title": "Openable Community Wide",
            "default": false
          },
          "openable_initiatives": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Openable Initiatives",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "surface_id",
          "openable_community_wide",
          "openable_initiatives"
        ],
        "title": "PluginSurfaceAccessRead",
        "description": "Where the viewer may open one of a plug-in's surfaces.\n\nComputed on the server by the same decision the handoff makes, so the\nclient offers exactly the doors that open."
      },
      "PluginSurfaceSummary": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "name": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Name",
            "default": {}
          }
        },
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "title": "PluginSurfaceSummary",
        "description": "One of a plug-in's pages, by id and by its localized name."
      },
      "PluginTag": {
        "type": "string",
        "enum": [
          "tool",
          "community_tool",
          "page",
          "connection",
          "add_on"
        ],
        "title": "PluginTag",
        "description": "How a plug-in shows up for the people using it, in one word: what its\nlisting's tag says. Read off the definition, so no publisher states it."
      },
      "PluginToolActionRead": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "name": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Name"
          },
          "on": {
            "type": "string",
            "title": "On"
          },
          "params": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Params"
          },
          "confirm": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Confirm"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "on"
        ],
        "title": "PluginToolActionRead",
        "description": "One action of the tool, run on a row of ``on``."
      },
      "PluginToolActionRun": {
        "properties": {
          "fields": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "x-mentions": "markdown"
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "integer"
                },
                {
                  "type": "number"
                },
                {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "object",
            "title": "Fields"
          },
          "people": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "integer",
                  "x-identity": "person"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "object",
            "title": "People"
          }
        },
        "type": "object",
        "title": "PluginToolActionRun",
        "description": "The answers to an action's ``params``, as values of the fields they\nname."
      },
      "PluginToolCounterRead": {
        "properties": {
          "min": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Min"
          },
          "max": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max"
          },
          "step": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Step"
          },
          "initial": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initial"
          }
        },
        "type": "object",
        "title": "PluginToolCounterRead",
        "description": "A counter field's bounds, step and start: each a number, or the key of\na number field of the same row. Left out, a side is open, the step is 1\nand the start is 0."
      },
      "PluginToolFieldRead": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "name": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Name"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "default": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "boolean"
              },
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Default"
          },
          "required": {
            "type": "boolean",
            "title": "Required",
            "default": false
          },
          "options": {
            "items": {
              "$ref": "#/components/schemas/PluginToolOptionRead"
            },
            "type": "array",
            "title": "Options"
          },
          "currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              {
                "type": "null"
              }
            ]
          },
          "counter": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PluginToolCounterRead"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "key",
          "name",
          "kind"
        ],
        "title": "PluginToolFieldRead",
        "description": "One field a table of the tool declares, by its key in ``fields`` (or\nin ``people``, for a ``user_reference``)."
      },
      "PluginToolItemRead": {
        "properties": {
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "key": {
            "type": "string",
            "title": "Key"
          },
          "name": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Name"
          },
          "parent": {
            "type": "string",
            "title": "Parent"
          },
          "fields": {
            "items": {
              "$ref": "#/components/schemas/PluginToolFieldRead"
            },
            "type": "array",
            "title": "Fields"
          }
        },
        "type": "object",
        "required": [
          "kind",
          "key",
          "name",
          "parent",
          "fields"
        ],
        "title": "PluginToolItemRead",
        "description": "One item table of the tool: its rows sit under the rows of\n``parent``."
      },
      "PluginToolOptionRead": {
        "properties": {
          "value": {
            "type": "string",
            "title": "Value"
          },
          "label": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Label"
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          }
        },
        "type": "object",
        "required": [
          "value",
          "label"
        ],
        "title": "PluginToolOptionRead",
        "description": "One option of a select or multi-select field."
      },
      "PluginToolRead": {
        "properties": {
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "key": {
            "type": "string",
            "title": "Key"
          },
          "name": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Name"
          },
          "instance_name": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Instance Name"
          },
          "icon": {
            "type": "string",
            "title": "Icon"
          },
          "fields": {
            "items": {
              "$ref": "#/components/schemas/PluginToolFieldRead"
            },
            "type": "array",
            "title": "Fields"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PluginToolItemRead"
            },
            "type": "array",
            "title": "Items"
          },
          "actions": {
            "items": {
              "$ref": "#/components/schemas/PluginToolActionRead"
            },
            "type": "array",
            "title": "Actions"
          },
          "export_formats": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Export Formats"
          }
        },
        "type": "object",
        "required": [
          "kind",
          "key",
          "name",
          "instance_name",
          "icon",
          "fields",
          "items",
          "actions",
          "export_formats"
        ],
        "title": "PluginToolRead",
        "description": "A tool plug-in's tool as it declares it: its names, its own rows'\nfields, its items and its actions, and the formats its rows export in.\nIts layouts are the app's to draw."
      },
      "PluginToolRowCreate": {
        "properties": {
          "fields": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "x-mentions": "markdown"
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "integer"
                },
                {
                  "type": "number"
                },
                {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "object",
            "title": "Fields"
          },
          "people": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "integer",
                  "x-identity": "person"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "object",
            "title": "People"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "parent_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Parent Id"
          },
          "name": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "Name"
          },
          "position": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Position"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantSchema"
            },
            "type": "array",
            "title": "Grants"
          },
          "tag_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 100,
            "title": "Tag Ids"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "PluginToolRowCreate",
        "description": "A new row: of the tool, in the initiative ``initiative_id`` names, or of\nan item, under the row ``parent_id`` names. A field left out starts at its\ndefault, and a counter at its start."
      },
      "PluginToolRowList": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PluginToolRowRead"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items"
        ],
        "title": "PluginToolRowList"
      },
      "PluginToolRowRead": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_kind": {
            "$ref": "#/components/schemas/ActorKind"
          },
          "created_by_install": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Install"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "can": {
            "$ref": "#/components/schemas/ToolCan"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id",
            "x-identity": "community"
          },
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "parent_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Parent Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "position": {
            "type": "number",
            "title": "Position"
          },
          "fields": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "x-mentions": "markdown"
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "integer"
                },
                {
                  "type": "number"
                },
                {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "object",
            "title": "Fields"
          },
          "people": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "integer",
                  "x-identity": "person"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "object",
            "title": "People"
          },
          "comments_enabled": {
            "type": "boolean",
            "title": "Comments Enabled",
            "default": true
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantSchema"
            },
            "type": "array",
            "title": "Grants"
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagSummary"
            },
            "type": "array",
            "title": "Tags"
          },
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertySummary"
            },
            "type": "array",
            "title": "Properties"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "preview": {
            "anyOf": [
              {
                "additionalProperties": {
                  "items": {
                    "$ref": "#/components/schemas/PluginToolRowRead"
                  },
                  "type": "array"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Preview"
          }
        },
        "type": "object",
        "required": [
          "created_by",
          "created_by_kind",
          "created_by_install",
          "archived_at",
          "can",
          "kind",
          "id",
          "community_id",
          "initiative_id",
          "parent_id",
          "name",
          "position",
          "fields",
          "people",
          "comments_enabled",
          "grants",
          "tags",
          "properties",
          "created_at",
          "updated_at",
          "preview"
        ],
        "title": "PluginToolRowRead",
        "description": "One row of a tool plug-in's tool or of one of its items."
      },
      "PluginToolRowUpdate": {
        "properties": {
          "fields": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "x-mentions": "markdown"
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "integer"
                },
                {
                  "type": "number"
                },
                {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "object",
            "title": "Fields"
          },
          "people": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "integer",
                  "x-identity": "person"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "object",
            "title": "People"
          },
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "position": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Position"
          },
          "tag_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array",
                "maxItems": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Tag Ids"
          }
        },
        "type": "object",
        "title": "PluginToolRowUpdate",
        "description": "A change to a row. Only what is sent changes."
      },
      "PluginToolStep": {
        "properties": {
          "field": {
            "type": "string",
            "minLength": 1,
            "title": "Field"
          },
          "by": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "By"
          },
          "down": {
            "type": "boolean",
            "title": "Down",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "field"
        ],
        "title": "PluginToolStep",
        "description": "Move one counter field of a row: by ``by``, a signed amount, or, left\nout, by the field's own step, up, or down where ``down`` says so."
      },
      "PluginVendorFieldRead": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "type": {
            "type": "string",
            "title": "Type"
          },
          "required": {
            "type": "boolean",
            "title": "Required",
            "default": false
          },
          "label": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Label",
            "default": {}
          }
        },
        "type": "object",
        "required": [
          "key",
          "type",
          "required",
          "label"
        ],
        "title": "PluginVendorFieldRead",
        "description": "One value an operator supplies for the plug-in's vendor client, as the\nlisting's manifest declares it."
      },
      "PluginWidgetCatalogEntry": {
        "properties": {
          "plugin_id": {
            "type": "integer",
            "title": "Plugin Id"
          },
          "plugin_uid": {
            "type": "string",
            "maxLength": 14,
            "title": "Plugin Uid"
          },
          "public_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Public Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": true
          },
          "widgets": {
            "items": {
              "$ref": "#/components/schemas/PluginWidgetRead"
            },
            "type": "array",
            "title": "Widgets",
            "default": []
          },
          "endpoints": {
            "items": {
              "$ref": "#/components/schemas/PluginEndpointRead"
            },
            "type": "array",
            "title": "Endpoints",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "plugin_id",
          "plugin_uid",
          "name"
        ],
        "title": "PluginWidgetCatalogEntry",
        "description": "One installed plug-in's widgets and read endpoints."
      },
      "PluginWidgetCatalogResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/PluginWidgetCatalogEntry"
            },
            "type": "array",
            "title": "Items",
            "default": []
          }
        },
        "type": "object",
        "title": "PluginWidgetCatalogResponse"
      },
      "PluginWidgetRead": {
        "properties": {
          "type": {
            "type": "string",
            "title": "Type"
          },
          "id": {
            "type": "string",
            "title": "Id"
          },
          "meta": {
            "additionalProperties": true,
            "type": "object",
            "title": "Meta",
            "default": {}
          },
          "module_source": {
            "type": "string",
            "title": "Module Source"
          },
          "endpoints": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Endpoints",
            "default": []
          },
          "sample_data": {
            "additionalProperties": true,
            "type": "object",
            "title": "Sample Data",
            "default": {}
          }
        },
        "type": "object",
        "required": [
          "type",
          "id",
          "module_source"
        ],
        "title": "PluginWidgetRead",
        "description": "One widget an installed plug-in contributes."
      },
      "PollOptionRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "text": {
            "type": "string",
            "title": "Text"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          },
          "vote_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Vote Count"
          },
          "voted_by_me": {
            "type": "boolean",
            "title": "Voted By Me",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "id",
          "text",
          "position",
          "vote_count",
          "voted_by_me"
        ],
        "title": "PollOptionRead"
      },
      "PollOptionVoters": {
        "properties": {
          "option_id": {
            "type": "integer",
            "title": "Option Id"
          },
          "voters": {
            "items": {
              "$ref": "#/components/schemas/PollVoter"
            },
            "type": "array",
            "title": "Voters"
          }
        },
        "type": "object",
        "required": [
          "option_id",
          "voters"
        ],
        "title": "PollOptionVoters"
      },
      "PollOptionWrite": {
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 200,
            "minLength": 1,
            "title": "Text"
          }
        },
        "type": "object",
        "required": [
          "text"
        ],
        "title": "PollOptionWrite",
        "description": "One answer, as the author typed it."
      },
      "PollRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "question": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Question"
          },
          "allows_multiple": {
            "type": "boolean",
            "title": "Allows Multiple",
            "default": false
          },
          "is_anonymous": {
            "type": "boolean",
            "title": "Is Anonymous",
            "default": false
          },
          "hide_results": {
            "type": "boolean",
            "title": "Hide Results",
            "default": false
          },
          "closes_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Closes At"
          },
          "is_closed": {
            "type": "boolean",
            "title": "Is Closed",
            "default": false
          },
          "options": {
            "items": {
              "$ref": "#/components/schemas/PollOptionRead"
            },
            "type": "array",
            "title": "Options"
          },
          "has_voted": {
            "type": "boolean",
            "title": "Has Voted",
            "default": false
          },
          "results_visible": {
            "type": "boolean",
            "title": "Results Visible",
            "default": true
          },
          "total_voters": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total Voters"
          },
          "is_locked": {
            "type": "boolean",
            "title": "Is Locked",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "id",
          "question",
          "allows_multiple",
          "is_anonymous",
          "hide_results",
          "closes_at",
          "is_closed",
          "options",
          "has_voted",
          "results_visible",
          "total_voters",
          "is_locked"
        ],
        "title": "PollRead"
      },
      "PollVoteWrite": {
        "properties": {
          "option_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 10,
            "title": "Option Ids"
          }
        },
        "type": "object",
        "title": "PollVoteWrite",
        "description": "A ballot. One id on a single-choice poll, any number on a multiple one;\nan empty list is a retraction, which the DELETE route also expresses."
      },
      "PollVoter": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "username": {
            "type": "string",
            "title": "Username"
          },
          "discriminator": {
            "type": "integer",
            "title": "Discriminator"
          },
          "display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Display Name"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "profile_decorations": {
            "$ref": "#/components/schemas/ProfileDecorations-Output"
          }
        },
        "type": "object",
        "required": [
          "id",
          "username",
          "discriminator"
        ],
        "title": "PollVoter",
        "description": "One person on a poll's roster, named the way readers and reactors are."
      },
      "PollVoters": {
        "properties": {
          "options": {
            "items": {
              "$ref": "#/components/schemas/PollOptionVoters"
            },
            "type": "array",
            "title": "Options"
          },
          "not_voted": {
            "items": {
              "$ref": "#/components/schemas/PollVoter"
            },
            "type": "array",
            "title": "Not Voted"
          }
        },
        "type": "object",
        "required": [
          "options",
          "not_voted"
        ],
        "title": "PollVoters",
        "description": "Who chose what, and who has not answered.\n\n\"Not answered\" is the people the notice was **shared with**, the same\ndenominator the read roster uses \u2014 a board of a hundred where a notice went\nto five is not ninety-five people ignoring the question. Unlike that roster\nthe author is included: writing a notice is not reading it, but writing a\nquestion does not stop you answering it.\n\nServed only for a poll that is not anonymous, and only once the results are\nvisible to the caller."
      },
      "PollWrite": {
        "properties": {
          "question": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255
              },
              {
                "type": "null"
              }
            ],
            "title": "Question"
          },
          "options": {
            "items": {
              "$ref": "#/components/schemas/PollOptionWrite"
            },
            "type": "array",
            "maxItems": 10,
            "minItems": 2,
            "title": "Options"
          },
          "allows_multiple": {
            "type": "boolean",
            "title": "Allows Multiple",
            "default": false
          },
          "is_anonymous": {
            "type": "boolean",
            "title": "Is Anonymous",
            "default": false
          },
          "hide_results": {
            "type": "boolean",
            "title": "Hide Results",
            "default": false
          },
          "closes_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Closes At"
          }
        },
        "type": "object",
        "required": [
          "options"
        ],
        "title": "PollWrite",
        "description": "A whole poll, sent as one thing.\n\nOptions are a list rather than individually addressable rows: a poll is\nwritten and read as a unit, and \"the third choice\" only means anything in\nthe context of the other two. Sending it again replaces it \u2014 which the\nservice refuses once anybody has voted on a different set of options,\nbecause a ballot cast for \"Tuesday\" must not silently become a ballot for\nwhatever took third place."
      },
      "PostCreate": {
        "properties": {
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertyValueInput"
            },
            "type": "array",
            "title": "Properties"
          },
          "name": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "Name"
          },
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "body": {
            "additionalProperties": true,
            "type": "object",
            "title": "Body",
            "x-mentions": "lexical"
          },
          "tag_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tag Ids"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantSchema"
            },
            "type": "array",
            "title": "Grants"
          },
          "scheduled_for": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scheduled For"
          },
          "poll": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PollWrite"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "name",
          "initiative_id"
        ],
        "title": "PostCreate"
      },
      "PostDetailFieldId": {
        "type": "string",
        "enum": [
          "tags"
        ],
        "title": "PostDetailFieldId",
        "description": "What a notice's detail draws as a field. Its title, tags and properties\nare its tool's, in its header; what it says, asks and answers, and when it\ngoes up, are parts of their own."
      },
      "PostListResponse": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/PostRead"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items"
        ],
        "title": "PostListResponse"
      },
      "PostPinUpdate": {
        "properties": {
          "pinned": {
            "type": "boolean",
            "title": "Pinned",
            "default": true
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          }
        },
        "type": "object",
        "title": "PostPinUpdate",
        "description": "Pin or unpin one post. ``pinned`` false clears the expiry with it \u2014\nan expiry belongs to a pin, and keeping a stale one around would silently\napply to the next pin."
      },
      "PostReactionSettings": {
        "properties": {
          "reactions_enabled": {
            "type": "boolean",
            "title": "Reactions Enabled"
          }
        },
        "type": "object",
        "required": [
          "reactions_enabled"
        ],
        "title": "PostReactionSettings",
        "description": "The reactions switch on one notice \u2014 the body and the reply of\n``PUT /posts/{post_id}/reactions``.\n\nThe comment switch has a generic route because every tool is commentable;\nthis one does not, because only a post takes reactions of its own."
      },
      "PostRead": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_kind": {
            "$ref": "#/components/schemas/ActorKind"
          },
          "created_by_install": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Install"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "can": {
            "$ref": "#/components/schemas/ToolCan"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id",
            "x-identity": "community"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "comments_enabled": {
            "type": "boolean",
            "title": "Comments Enabled",
            "default": true
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagSummary"
            },
            "type": "array",
            "title": "Tags"
          },
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertySummary"
            },
            "type": "array",
            "title": "Properties"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantSchema"
            },
            "type": "array",
            "title": "Grants"
          },
          "name": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "Name"
          },
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "author": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommentAuthor"
              },
              {
                "type": "null"
              }
            ]
          },
          "excerpt": {
            "type": "string",
            "title": "Excerpt",
            "default": "",
            "x-mentions": "markdown"
          },
          "pinned_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pinned At"
          },
          "pinned_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pinned By"
          },
          "pin_expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pin Expires At"
          },
          "is_pinned": {
            "type": "boolean",
            "title": "Is Pinned",
            "default": false
          },
          "published_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Published At"
          },
          "scheduled_for": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scheduled For"
          },
          "is_published": {
            "type": "boolean",
            "title": "Is Published",
            "default": true
          },
          "is_read": {
            "type": "boolean",
            "title": "Is Read",
            "default": false
          },
          "read_count": {
            "type": "integer",
            "title": "Read Count",
            "default": 0
          },
          "reactions_enabled": {
            "type": "boolean",
            "title": "Reactions Enabled",
            "default": true
          },
          "comments_locked_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Comments Locked At"
          },
          "comment_count": {
            "type": "integer",
            "title": "Comment Count",
            "default": 0
          },
          "reactions": {
            "items": {
              "$ref": "#/components/schemas/ReactionGroup"
            },
            "type": "array",
            "title": "Reactions"
          },
          "body": {
            "additionalProperties": true,
            "type": "object",
            "title": "Body",
            "x-mentions": "lexical"
          },
          "poll": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PollRead"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "created_by",
          "created_by_kind",
          "created_by_install",
          "archived_at",
          "can",
          "id",
          "community_id",
          "created_at",
          "updated_at",
          "comments_enabled",
          "tags",
          "properties",
          "grants",
          "name",
          "initiative_id",
          "author",
          "excerpt",
          "pinned_at",
          "pinned_by",
          "pin_expires_at",
          "is_pinned",
          "published_at",
          "scheduled_for",
          "is_published",
          "is_read",
          "read_count",
          "reactions_enabled",
          "comments_locked_at",
          "comment_count",
          "reactions",
          "body",
          "poll"
        ],
        "title": "PostRead"
      },
      "PostReadMarks": {
        "properties": {
          "post_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 200,
            "minItems": 1,
            "title": "Post Ids"
          }
        },
        "type": "object",
        "required": [
          "post_ids"
        ],
        "title": "PostReadMarks",
        "description": "The notices a reader has just had on screen."
      },
      "PostReadReceipt": {
        "properties": {
          "marked": {
            "type": "integer",
            "title": "Marked",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "marked"
        ],
        "title": "PostReadReceipt",
        "description": "How many of them were not already read. The client does not need this to\nrender anything \u2014 it is what makes the call answerable and testable."
      },
      "PostReader": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "username": {
            "type": "string",
            "title": "Username"
          },
          "discriminator": {
            "type": "integer",
            "title": "Discriminator"
          },
          "display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Display Name"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "profile_decorations": {
            "$ref": "#/components/schemas/ProfileDecorations-Output"
          },
          "read_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Read At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "username",
          "discriminator"
        ],
        "title": "PostReader",
        "description": "One person on a notice's roster, named the way reactors are named."
      },
      "PostReaders": {
        "properties": {
          "read": {
            "items": {
              "$ref": "#/components/schemas/PostReader"
            },
            "type": "array",
            "title": "Read"
          },
          "unread": {
            "items": {
              "$ref": "#/components/schemas/PostReader"
            },
            "type": "array",
            "title": "Unread"
          }
        },
        "type": "object",
        "required": [
          "read",
          "unread"
        ],
        "title": "PostReaders",
        "description": "Who has read a notice and who it is still waiting on.\n\n\"Waiting\" is the people the notice was *shared with*, not everybody in the\ninitiative: a board of a hundred where a notice went to five is not\nninety-five people ignoring it. The author is in neither list \u2014 writing a\nnotice is not reading it."
      },
      "PostUpdate": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "body": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object",
                "x-mentions": "lexical"
              },
              {
                "type": "null"
              }
            ],
            "title": "Body"
          },
          "scheduled_for": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scheduled For"
          }
        },
        "type": "object",
        "title": "PostUpdate"
      },
      "Presence": {
        "type": "string",
        "enum": [
          "online",
          "idle",
          "busy",
          "offline"
        ],
        "title": "Presence",
        "description": "How a person appears to everyone else.\n\nBoth halves of one idea, which is why it is one enum: what a person picks\nfor themselves, and what a reader of their name is shown. The picked value\nis a standing preference on the account; the shown value is that preference\nnarrowed by what the process can see \u2014 whether they have Initiative open at\nall, and whether anyone has touched it lately \u2014 which is decided in one\nplace (``app.services.platform.presence``).\n\n``idle`` is the one a person may either pick or be given: left on\n``online``, an account that goes quiet is shown it anyway, and picking it\noutright is how someone says they would rather look that way regardless.\n\nNot to be confused with ``UserStatus`` (the account's standing, which is not\nthe account holder's to write) or ``custom_status`` (the line they wrote)."
      },
      "PresetPluginFilter": {
        "properties": {
          "field": {
            "type": "string",
            "title": "Field"
          },
          "op": {
            "$ref": "#/components/schemas/FilterOp",
            "default": "eq"
          },
          "value": {
            "title": "Value"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "field"
        ],
        "title": "PresetPluginFilter",
        "description": "A filter on a plug-in's field, ``plugin:<install id>:<key>``."
      },
      "PresetPropertyFilter": {
        "properties": {
          "property_id": {
            "type": "integer",
            "title": "Property Id"
          },
          "op": {
            "$ref": "#/components/schemas/FilterOp",
            "default": "eq"
          },
          "value": {
            "title": "Value"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "property_id"
        ],
        "title": "PresetPropertyFilter"
      },
      "PresetSort": {
        "properties": {
          "field": {
            "type": "string",
            "enum": [
              "title",
              "due_date",
              "start_date",
              "date_group",
              "priority",
              "status_position",
              "tag_name"
            ],
            "title": "Field"
          },
          "dir": {
            "$ref": "#/components/schemas/SortDir",
            "default": "asc"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "field"
        ],
        "title": "PresetSort"
      },
      "ProfileDecorations-Input": {
        "properties": {
          "banner": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Banner"
          },
          "frame": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Frame"
          },
          "frame_tint": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 2,
            "title": "Frame Tint"
          },
          "trophies": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 6,
            "title": "Trophies"
          },
          "grad_year": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Grad Year"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "ProfileDecorations",
        "description": "How a profile is dressed: a banner, a frame, trophies under it.\n\nEvery value is an **id naming a catalog entry**, never an image. The client\nresolves an id to artwork it already ships, so a decorated profile takes up\nnone of a guild's upload allowance. An id this deployment's catalog doesn't\nknow simply renders nothing, which is what lets a profile keep wearing\nsomething the store stopped offering.\n\n``extra=\"forbid\"``: the set of things a profile can wear is this list, and\na client sending a key that isn't here is told so rather than having it\nquietly stored and never rendered."
      },
      "ProfileDecorations-Output": {
        "properties": {
          "banner": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Banner"
          },
          "frame": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Frame"
          },
          "frame_tint": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 2,
            "title": "Frame Tint"
          },
          "trophies": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 6,
            "title": "Trophies"
          },
          "grad_year": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Grad Year"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "banner",
          "frame",
          "frame_tint",
          "trophies",
          "grad_year"
        ],
        "title": "ProfileDecorations",
        "description": "How a profile is dressed: a banner, a frame, trophies under it.\n\nEvery value is an **id naming a catalog entry**, never an image. The client\nresolves an id to artwork it already ships, so a decorated profile takes up\nnone of a guild's upload allowance. An id this deployment's catalog doesn't\nknow simply renders nothing, which is what lets a profile keep wearing\nsomething the store stopped offering.\n\n``extra=\"forbid\"``: the set of things a profile can wear is this list, and\na client sending a key that isn't here is told so rather than having it\nquietly stored and never rendered."
      },
      "ProjectCan": {
        "properties": {
          "edit": {
            "type": "boolean",
            "title": "Edit",
            "default": false
          },
          "contribute": {
            "type": "boolean",
            "title": "Contribute",
            "default": false
          },
          "delete": {
            "type": "boolean",
            "title": "Delete",
            "default": false
          },
          "share": {
            "type": "boolean",
            "title": "Share",
            "default": false
          },
          "export": {
            "type": "boolean",
            "title": "Export",
            "default": false
          },
          "unarchive": {
            "type": "boolean",
            "title": "Unarchive",
            "default": false
          },
          "configure": {
            "type": "boolean",
            "title": "Configure",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "edit",
          "contribute",
          "delete",
          "share",
          "export",
          "unarchive",
          "configure"
        ],
        "title": "ProjectCan"
      },
      "ProjectCreate": {
        "properties": {
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertyValueInput"
            },
            "type": "array",
            "title": "Properties"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 8
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "start_date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Start Date"
          },
          "end_date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "End Date"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "is_template": {
            "type": "boolean",
            "title": "Is Template",
            "default": false
          },
          "template_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Template Id"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantSchema"
            },
            "type": "array",
            "title": "Grants"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "ProjectCreate"
      },
      "ProjectListResponse": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/ProjectRead"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items"
        ],
        "title": "ProjectListResponse"
      },
      "ProjectRead": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_kind": {
            "$ref": "#/components/schemas/ActorKind"
          },
          "created_by_install": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Install"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "can": {
            "$ref": "#/components/schemas/ProjectCan"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id",
            "x-identity": "community"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "comments_enabled": {
            "type": "boolean",
            "title": "Comments Enabled",
            "default": true
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagSummary"
            },
            "type": "array",
            "title": "Tags"
          },
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertySummary"
            },
            "type": "array",
            "title": "Properties"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantSchema"
            },
            "type": "array",
            "title": "Grants"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 8
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "start_date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Start Date"
          },
          "end_date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "End Date"
          },
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "owner_id": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Owner Id"
          },
          "is_template": {
            "type": "boolean",
            "title": "Is Template"
          },
          "pinned_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pinned At"
          },
          "owner": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UserPublic"
              },
              {
                "type": "null"
              }
            ]
          },
          "owner_plugin": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OwnerPluginSummary"
              },
              {
                "type": "null"
              }
            ]
          },
          "initiative": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InitiativeSummary"
              },
              {
                "type": "null"
              }
            ]
          },
          "task_summary": {
            "$ref": "#/components/schemas/ProjectTaskSummary"
          },
          "task_statuses": {
            "items": {
              "$ref": "#/components/schemas/TaskStatusRead"
            },
            "type": "array",
            "title": "Task Statuses"
          },
          "task_types": {
            "items": {
              "$ref": "#/components/schemas/TaskTypeRead"
            },
            "type": "array",
            "title": "Task Types"
          }
        },
        "type": "object",
        "required": [
          "created_by",
          "created_by_kind",
          "created_by_install",
          "archived_at",
          "can",
          "id",
          "community_id",
          "created_at",
          "updated_at",
          "comments_enabled",
          "tags",
          "properties",
          "grants",
          "name",
          "description",
          "icon",
          "start_date",
          "end_date",
          "initiative_id",
          "owner_id",
          "is_template",
          "pinned_at",
          "owner",
          "owner_plugin",
          "initiative",
          "task_summary",
          "task_statuses",
          "task_types"
        ],
        "title": "ProjectRead"
      },
      "ProjectReorderRequest": {
        "properties": {
          "project_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Project Ids"
          }
        },
        "type": "object",
        "title": "ProjectReorderRequest"
      },
      "ProjectTaskSummary": {
        "properties": {
          "total": {
            "type": "integer",
            "title": "Total",
            "default": 0
          },
          "completed": {
            "type": "integer",
            "title": "Completed",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "total",
          "completed"
        ],
        "title": "ProjectTaskSummary"
      },
      "ProjectUpdate": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 8
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "is_template": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Template"
          },
          "pinned": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pinned"
          },
          "start_date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Start Date"
          },
          "end_date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "End Date"
          }
        },
        "type": "object",
        "title": "ProjectUpdate"
      },
      "PropertiesPart": {
        "properties": {
          "type": {
            "type": "string",
            "const": "properties",
            "title": "Type"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "type"
        ],
        "title": "PropertiesPart",
        "description": "Every property the item carries, in its own order."
      },
      "PropertyDefinitionBase": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name"
          },
          "type": {
            "$ref": "#/components/schemas/MetadataType"
          },
          "position": {
            "type": "number",
            "title": "Position",
            "default": 0.0
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          },
          "options": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/PropertyOption"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Options"
          },
          "currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              {
                "type": "null"
              }
            ]
          },
          "counter": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CounterSettings-Input"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "name",
          "type"
        ],
        "title": "PropertyDefinitionBase"
      },
      "PropertyDefinitionBulkDelete": {
        "properties": {
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 100,
            "minItems": 1,
            "title": "Ids"
          }
        },
        "type": "object",
        "required": [
          "initiative_id",
          "ids"
        ],
        "title": "PropertyDefinitionBulkDelete",
        "description": "Definitions of one initiative to delete together, or none of them."
      },
      "PropertyDefinitionCreate": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name"
          },
          "type": {
            "$ref": "#/components/schemas/MetadataType"
          },
          "position": {
            "type": "number",
            "title": "Position",
            "default": 0.0
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          },
          "options": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/PropertyOption"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Options"
          },
          "currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              {
                "type": "null"
              }
            ]
          },
          "counter": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CounterSettings-Input"
              },
              {
                "type": "null"
              }
            ]
          },
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "project_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Id"
          },
          "collection_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Collection Id"
          }
        },
        "type": "object",
        "required": [
          "name",
          "type",
          "initiative_id"
        ],
        "title": "PropertyDefinitionCreate"
      },
      "PropertyDefinitionGroup": {
        "properties": {
          "owner": {
            "$ref": "#/components/schemas/MetadataOwnerKind"
          },
          "owner_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Owner Id"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "can_edit": {
            "type": "boolean",
            "title": "Can Edit"
          },
          "definitions": {
            "items": {
              "$ref": "#/components/schemas/PropertyDefinitionRead"
            },
            "type": "array",
            "title": "Definitions"
          }
        },
        "type": "object",
        "required": [
          "owner",
          "owner_id",
          "name",
          "can_edit",
          "definitions"
        ],
        "title": "PropertyDefinitionGroup",
        "description": "One owner's definitions, as the initiative's settings list them."
      },
      "PropertyDefinitionGroups": {
        "properties": {
          "groups": {
            "items": {
              "$ref": "#/components/schemas/PropertyDefinitionGroup"
            },
            "type": "array",
            "title": "Groups"
          }
        },
        "type": "object",
        "required": [
          "groups"
        ],
        "title": "PropertyDefinitionGroups",
        "description": "An initiative's metadata, then the properties of each project and each\ncollection in it the reader may edit, each under its owner."
      },
      "PropertyDefinitionPromote": {
        "properties": {
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 100,
            "minItems": 1,
            "title": "Ids"
          },
          "name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "initiative_id",
          "ids",
          "name"
        ],
        "title": "PropertyDefinitionPromote",
        "description": "Properties of one type, from the initiative's projects and\ncollections, merged into one of its metadata, named ``name``."
      },
      "PropertyDefinitionRead": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name"
          },
          "type": {
            "$ref": "#/components/schemas/MetadataType"
          },
          "position": {
            "type": "number",
            "title": "Position",
            "default": 0.0
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          },
          "options": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/PropertyOption"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Options"
          },
          "currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              {
                "type": "null"
              }
            ]
          },
          "counter": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CounterSettings-Output"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "project_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Id"
          },
          "collection_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Collection Id"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "name",
          "type",
          "position",
          "color",
          "options",
          "currency",
          "counter",
          "id",
          "initiative_id",
          "project_id",
          "collection_id",
          "created_at",
          "updated_at"
        ],
        "title": "PropertyDefinitionRead"
      },
      "PropertyDefinitionUpdate": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "position": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Position"
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          },
          "options": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/PropertyOption"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Options"
          },
          "currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              {
                "type": "null"
              }
            ]
          },
          "counter": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CounterSettings-Input"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "title": "PropertyDefinitionUpdate",
        "description": "Mutable fields on a property definition.\n\n``type`` is deliberately excluded \u2014 type changes require a dedicated\nflow because existing values would become invalid. A ``type`` sent\nin the payload is ignored."
      },
      "PropertyDefinitionUpdateResponse": {
        "properties": {
          "definition": {
            "$ref": "#/components/schemas/PropertyDefinitionRead"
          },
          "orphaned_value_count": {
            "type": "integer",
            "title": "Orphaned Value Count",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "definition",
          "orphaned_value_count"
        ],
        "title": "PropertyDefinitionUpdateResponse",
        "description": "Envelope for PATCH /property-definitions/{id}.\n\nAlways returns ``orphaned_value_count`` so the SPA can surface a\nwarning when option removal leaves dangling values. For non-option\nupdates this is always 0."
      },
      "PropertyDeletePreview": {
        "properties": {
          "saved_views": {
            "type": "integer",
            "title": "Saved Views"
          }
        },
        "type": "object",
        "required": [
          "saved_views"
        ],
        "title": "PropertyDeletePreview",
        "description": "What deleting some definitions would change beyond their values."
      },
      "PropertyOption": {
        "properties": {
          "value": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_\\-]*$",
            "title": "Value"
          },
          "label": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Label"
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          }
        },
        "type": "object",
        "required": [
          "value",
          "label"
        ],
        "title": "PropertyOption",
        "description": "One option entry for select / multi_select property definitions."
      },
      "PropertyOptionsChange": {
        "properties": {
          "property_id": {
            "type": "integer",
            "title": "Property Id"
          },
          "add": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 100,
            "title": "Add"
          },
          "remove": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 100,
            "title": "Remove"
          }
        },
        "type": "object",
        "required": [
          "property_id"
        ],
        "title": "PropertyOptionsChange",
        "description": "Options put on and taken off one multi-select value, against the value\nas it stands when the change is written rather than a list that replaces\nit, so two people changing different options of it both stand."
      },
      "PropertyStep": {
        "properties": {
          "property_id": {
            "type": "integer",
            "title": "Property Id"
          },
          "up": {
            "type": "boolean",
            "title": "Up"
          }
        },
        "type": "object",
        "required": [
          "property_id",
          "up"
        ],
        "title": "PropertyStep",
        "description": "One step of a counter, up or down, from the value it holds when the\nstep is written, so two people stepping it at once both count."
      },
      "PropertySummary": {
        "properties": {
          "property_id": {
            "type": "integer",
            "title": "Property Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "type": {
            "$ref": "#/components/schemas/MetadataType"
          },
          "project_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Id"
          },
          "collection_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Collection Id"
          },
          "install_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Install Id"
          },
          "key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Key"
          },
          "options": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/PropertyOption"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Options"
          },
          "currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              {
                "type": "null"
              }
            ]
          },
          "counter": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CounterSettings-Output"
              },
              {
                "type": "null"
              }
            ]
          },
          "value": {
            "title": "Value",
            "description": "Shaped by the definition's type. For user_reference, a person: id, username, discriminator, display_name and avatar_url, or an PluginPerson when the reader is an installed plug-in. For file, a file: id, name, file_type and smart_link_url, or its id alone where the reader cannot open it. For signature, the signer as user (a person, shaped as user_reference's), the name they typed and when they signed: user, name and signed_at. A plug-in's value is as the plug-in wrote it: a list field's an array of its elements, newest first, each with its ref, and a value with a state the state beside it."
          }
        },
        "type": "object",
        "required": [
          "property_id",
          "name",
          "type",
          "project_id",
          "collection_id",
          "install_id",
          "key",
          "options",
          "currency",
          "counter",
          "value"
        ],
        "title": "PropertySummary",
        "description": "Lightweight property value for embedding in entity reads.\n\n``value`` is rehydrated from the correct typed column by the service\nlayer. For ``user_reference`` properties the service attaches a\nminimal person dict (``id``, the handle, ``display_name``, ``avatar_url``)."
      },
      "PropertyValueInput": {
        "properties": {
          "property_id": {
            "type": "integer",
            "title": "Property Id"
          },
          "value": {
            "title": "Value"
          }
        },
        "type": "object",
        "required": [
          "property_id"
        ],
        "title": "PropertyValueInput",
        "description": "A single (property_id, value) pair submitted by the client.\n\nThe value is polymorphic because the Pydantic layer can't know the\ndefinition's type. Typed validation runs server-side in\n``app.services.properties._validate_value_for_type``."
      },
      "PropertyValuesBulkSetRequest": {
        "properties": {
          "values": {
            "items": {
              "$ref": "#/components/schemas/PropertyValueInput"
            },
            "type": "array",
            "title": "Values"
          },
          "merge": {
            "type": "boolean",
            "title": "Merge",
            "default": false
          },
          "removed": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 100,
            "title": "Removed"
          },
          "options": {
            "items": {
              "$ref": "#/components/schemas/PropertyOptionsChange"
            },
            "type": "array",
            "maxItems": 100,
            "title": "Options"
          },
          "steps": {
            "items": {
              "$ref": "#/components/schemas/PropertyStep"
            },
            "type": "array",
            "maxItems": 100,
            "title": "Steps"
          },
          "entity_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 500,
            "minItems": 1,
            "title": "Entity Ids"
          }
        },
        "type": "object",
        "required": [
          "entity_ids"
        ],
        "title": "PropertyValuesBulkSetRequest",
        "description": "Payload for ``PUT /properties/{target}/bulk``: what\n``PUT /properties/{target}/{entity_id}`` takes, written to every one of\nmany things of one kind, or to none of them."
      },
      "PropertyValuesSetRequest": {
        "properties": {
          "values": {
            "items": {
              "$ref": "#/components/schemas/PropertyValueInput"
            },
            "type": "array",
            "title": "Values"
          },
          "merge": {
            "type": "boolean",
            "title": "Merge",
            "default": false
          },
          "removed": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 100,
            "title": "Removed"
          },
          "options": {
            "items": {
              "$ref": "#/components/schemas/PropertyOptionsChange"
            },
            "type": "array",
            "maxItems": 100,
            "title": "Options"
          },
          "steps": {
            "items": {
              "$ref": "#/components/schemas/PropertyStep"
            },
            "type": "array",
            "maxItems": 100,
            "title": "Steps"
          }
        },
        "type": "object",
        "title": "PropertyValuesSetRequest",
        "description": "Payload for ``PUT /properties/{target}/{entity_id}``: replace-all, or\nwith ``merge`` only the properties it names.\n\nReplacing, an empty list clears every property value on the entity."
      },
      "ProviderPlacementResponse": {
        "properties": {
          "placement_everywhere": {
            "type": "boolean",
            "title": "Placement Everywhere"
          },
          "providers": {
            "items": {
              "$ref": "#/components/schemas/PlacementProviderRead"
            },
            "type": "array",
            "title": "Providers"
          },
          "rules": {
            "items": {
              "$ref": "#/components/schemas/ProviderPlacementRuleRead"
            },
            "type": "array",
            "title": "Rules"
          }
        },
        "type": "object",
        "required": [
          "placement_everywhere",
          "providers",
          "rules"
        ],
        "title": "ProviderPlacementResponse",
        "description": "Everything the placement page shows."
      },
      "ProviderPlacementRuleCreate": {
        "properties": {
          "provider_id": {
            "type": "integer",
            "title": "Provider Id"
          },
          "claim_value": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500
              },
              {
                "type": "null"
              }
            ],
            "title": "Claim Value"
          },
          "scope_claim": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Scope Claim"
          },
          "scope_value": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 256
              },
              {
                "type": "null"
              }
            ],
            "title": "Scope Value"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "community_role": {
            "type": "string",
            "title": "Community Role",
            "default": "member"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "initiative_role_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Role Id"
          }
        },
        "type": "object",
        "required": [
          "provider_id",
          "community_id"
        ],
        "title": "ProviderPlacementRuleCreate",
        "description": "Place the people a provider asserts a group or a directory for.\n\nNaming an initiative places them there as well as in the community."
      },
      "ProviderPlacementRuleRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "provider_id": {
            "type": "integer",
            "title": "Provider Id"
          },
          "provider_display_name": {
            "type": "string",
            "title": "Provider Display Name"
          },
          "provider_icon": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider Icon"
          },
          "claim_value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Claim Value"
          },
          "scope_claim": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scope Claim"
          },
          "scope_value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scope Value"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "community_name": {
            "type": "string",
            "title": "Community Name"
          },
          "community_role": {
            "type": "string",
            "title": "Community Role"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "initiative_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Name"
          },
          "initiative_role_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Role Id"
          },
          "initiative_role_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Role Name"
          },
          "applies": {
            "type": "boolean",
            "title": "Applies"
          }
        },
        "type": "object",
        "required": [
          "id",
          "provider_id",
          "provider_display_name",
          "provider_icon",
          "claim_value",
          "scope_claim",
          "scope_value",
          "community_id",
          "community_name",
          "community_role",
          "initiative_id",
          "initiative_name",
          "initiative_role_id",
          "initiative_role_name",
          "applies"
        ],
        "title": "ProviderPlacementRuleRead",
        "description": "One rule the platform wrote for a provider: which arrivals it matches,\nand where they land."
      },
      "ProviderPlacementRuleUpdate": {
        "properties": {
          "claim_value": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500
              },
              {
                "type": "null"
              }
            ],
            "title": "Claim Value"
          },
          "community_role": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Community Role"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "initiative_role_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Role Id"
          },
          "scope_claim": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Scope Claim"
          },
          "scope_value": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 256
              },
              {
                "type": "null"
              }
            ],
            "title": "Scope Value"
          }
        },
        "type": "object",
        "title": "ProviderPlacementRuleUpdate",
        "description": "Change what a platform rule matches or where it lands, a directory as\nwell as a group. Its community is not editable either."
      },
      "PushSettingsResponse": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": false
          },
          "project_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Id"
          },
          "application_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Application Id"
          },
          "api_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Api Key"
          },
          "sender_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sender Id"
          },
          "has_service_account": {
            "type": "boolean",
            "title": "Has Service Account",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "enabled",
          "project_id",
          "application_id",
          "api_key",
          "sender_id",
          "has_service_account"
        ],
        "title": "PushSettingsResponse",
        "description": "What the settings page shows for push notifications (FCM)."
      },
      "PushSettingsUpdate": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": false
          },
          "project_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Id"
          },
          "application_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Application Id"
          },
          "api_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Api Key"
          },
          "sender_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sender Id"
          },
          "service_account_json": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Service Account Json"
          }
        },
        "type": "object",
        "title": "PushSettingsUpdate"
      },
      "PushTokenRegisterRequest": {
        "properties": {
          "push_token": {
            "type": "string",
            "maxLength": 512,
            "minLength": 1,
            "title": "Push Token"
          },
          "platform": {
            "type": "string",
            "pattern": "^(android|ios)$",
            "title": "Platform"
          }
        },
        "type": "object",
        "required": [
          "push_token",
          "platform"
        ],
        "title": "PushTokenRegisterRequest",
        "description": "Request body for registering a push notification token."
      },
      "PushTokenResponse": {
        "properties": {
          "status": {
            "type": "string",
            "title": "Status"
          }
        },
        "type": "object",
        "required": [
          "status"
        ],
        "title": "PushTokenResponse",
        "description": "Generic response for push token operations."
      },
      "PushTokenUnregisterRequest": {
        "properties": {
          "push_token": {
            "type": "string",
            "maxLength": 512,
            "minLength": 1,
            "title": "Push Token"
          }
        },
        "type": "object",
        "required": [
          "push_token"
        ],
        "title": "PushTokenUnregisterRequest",
        "description": "Request body for unregistering a push notification token."
      },
      "QueryBuildRequest": {
        "properties": {
          "dataset": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Dataset"
          },
          "sheet": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/QuerySheetSpec"
              },
              {
                "type": "null"
              }
            ]
          },
          "plugin": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/QueryPluginSpec"
              },
              {
                "type": "null"
              }
            ]
          },
          "columns": {
            "items": {
              "$ref": "#/components/schemas/QueryColumnSpec"
            },
            "type": "array",
            "maxItems": 20,
            "minItems": 1,
            "title": "Columns"
          },
          "where": {
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/QueryFilterGroupSpec"
                },
                {
                  "$ref": "#/components/schemas/QueryConditionSpec"
                }
              ]
            },
            "type": "array",
            "maxItems": 20,
            "title": "Where"
          },
          "group_by": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 20,
            "title": "Group By"
          },
          "having": {
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/QueryFilterGroupSpec"
                },
                {
                  "$ref": "#/components/schemas/QueryConditionSpec"
                }
              ]
            },
            "type": "array",
            "maxItems": 20,
            "title": "Having"
          },
          "order_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/QuerySortSpec"
              },
              {
                "type": "null"
              }
            ]
          },
          "limit": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 10000.0,
                "exclusiveMinimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Limit"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          }
        },
        "type": "object",
        "required": [
          "columns"
        ],
        "title": "QueryBuildRequest",
        "description": "What somebody clicked, before it is a statement.\n\nThe builder describes; the server writes the SQL. A statement built by\nclicking is therefore always one this surface will run, because it is built\nin the parse tree rather than assembled as text. It reads one dataset, one\nrange of a spreadsheet, or one of a plug-in's read endpoints."
      },
      "QueryBuildResponse": {
        "properties": {
          "sql": {
            "type": "string",
            "title": "Sql"
          },
          "columns": {
            "items": {
              "$ref": "#/components/schemas/QueryColumnDescription"
            },
            "type": "array",
            "title": "Columns"
          },
          "names": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Names",
            "default": []
          },
          "relations": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Relations"
          },
          "sheets": {
            "items": {
              "$ref": "#/components/schemas/QuerySheetDescription"
            },
            "type": "array",
            "title": "Sheets",
            "default": []
          },
          "plugins": {
            "items": {
              "$ref": "#/components/schemas/QueryPluginDescription"
            },
            "type": "array",
            "title": "Plugins",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "sql",
          "columns",
          "relations"
        ],
        "title": "QueryBuildResponse",
        "description": "The statement, and what it would return."
      },
      "QueryColumnDescription": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "type": {
            "$ref": "#/components/schemas/FieldType"
          },
          "grain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Grain"
          },
          "date_only": {
            "type": "boolean",
            "title": "Date Only",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "name",
          "type"
        ],
        "title": "QueryColumnDescription",
        "description": "One output column, as the database describes it before running."
      },
      "QueryColumnSpec": {
        "properties": {
          "field": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Field"
          },
          "aggregate": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20
              },
              {
                "type": "null"
              }
            ],
            "title": "Aggregate"
          },
          "bucket": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20
              },
              {
                "type": "null"
              }
            ],
            "title": "Bucket"
          },
          "alias": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Alias"
          },
          "running": {
            "type": "boolean",
            "title": "Running",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "field"
        ],
        "title": "QueryColumnSpec",
        "description": "One thing a built query returns."
      },
      "QueryConditionSpec": {
        "properties": {
          "field": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Field"
          },
          "op": {
            "$ref": "#/components/schemas/FilterOp",
            "default": "eq"
          },
          "value": {
            "title": "Value"
          },
          "negate": {
            "type": "boolean",
            "title": "Negate",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "field"
        ],
        "title": "QueryConditionSpec",
        "description": "One comparison, in the vocabulary the filter DSL already uses."
      },
      "QueryFilterGroupSpec": {
        "properties": {
          "logic": {
            "type": "string",
            "enum": [
              "and",
              "or"
            ],
            "title": "Logic",
            "default": "and"
          },
          "conditions": {
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/QueryFilterGroupSpec"
                },
                {
                  "$ref": "#/components/schemas/QueryConditionSpec"
                }
              ]
            },
            "type": "array",
            "maxItems": 20,
            "title": "Conditions"
          }
        },
        "type": "object",
        "required": [
          "conditions"
        ],
        "title": "QueryFilterGroupSpec",
        "description": "Comparisons held together by one word.\n\n``conditions`` is required rather than defaulted, so a comparison cannot\nread as an empty group: the two shapes are told apart by which key they\ncarry."
      },
      "QueryPluginDescription": {
        "properties": {
          "alias": {
            "type": "string",
            "title": "Alias"
          },
          "fields": {
            "items": {
              "$ref": "#/components/schemas/FieldDescription"
            },
            "type": "array",
            "title": "Fields"
          }
        },
        "type": "object",
        "required": [
          "alias",
          "fields"
        ],
        "title": "QueryPluginDescription",
        "description": "A plug-in's endpoint a statement reads with ``plugin()``, as the\ninstall's pinned definition declares it."
      },
      "QueryPluginSpec": {
        "properties": {
          "plugin": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Plugin"
          },
          "endpoint": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Endpoint"
          },
          "params": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                },
                {
                  "type": "boolean"
                },
                {
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "integer"
                      },
                      {
                        "type": "boolean"
                      }
                    ]
                  },
                  "type": "array"
                }
              ]
            },
            "type": "object",
            "maxProperties": 12,
            "title": "Params"
          }
        },
        "type": "object",
        "required": [
          "plugin",
          "endpoint"
        ],
        "title": "QueryPluginSpec",
        "description": "A plug-in's read endpoint a built query reads."
      },
      "QueryRequest": {
        "properties": {
          "sql": {
            "type": "string",
            "maxLength": 20000,
            "minLength": 1,
            "title": "Sql"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "subject": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Subject"
          }
        },
        "type": "object",
        "required": [
          "sql"
        ],
        "title": "QueryRequest",
        "description": "One statement to read."
      },
      "QueryResponse": {
        "properties": {
          "columns": {
            "items": {
              "$ref": "#/components/schemas/QueryColumnDescription"
            },
            "type": "array",
            "title": "Columns"
          },
          "rows": {
            "items": {
              "items": {},
              "type": "array"
            },
            "type": "array",
            "title": "Rows"
          },
          "truncated": {
            "type": "boolean",
            "title": "Truncated"
          },
          "relations": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Relations"
          }
        },
        "type": "object",
        "required": [
          "columns",
          "rows",
          "truncated",
          "relations"
        ],
        "title": "QueryResponse",
        "description": "What the statement returned."
      },
      "QueryShapeResponse": {
        "properties": {
          "columns": {
            "items": {
              "$ref": "#/components/schemas/QueryColumnDescription"
            },
            "type": "array",
            "title": "Columns"
          },
          "relations": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Relations"
          },
          "sheets": {
            "items": {
              "$ref": "#/components/schemas/QuerySheetDescription"
            },
            "type": "array",
            "title": "Sheets",
            "default": []
          },
          "plugins": {
            "items": {
              "$ref": "#/components/schemas/QueryPluginDescription"
            },
            "type": "array",
            "title": "Plugins",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "columns",
          "relations"
        ],
        "title": "QueryShapeResponse",
        "description": "What a statement would return, without returning it."
      },
      "QuerySheetDescription": {
        "properties": {
          "alias": {
            "type": "string",
            "title": "Alias"
          },
          "sheets": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Sheets"
          },
          "fields": {
            "items": {
              "$ref": "#/components/schemas/FieldDescription"
            },
            "type": "array",
            "title": "Fields"
          }
        },
        "type": "object",
        "required": [
          "alias",
          "sheets",
          "fields"
        ],
        "title": "QuerySheetDescription",
        "description": "A range a statement reads with ``sheet()``, as the file holds it now."
      },
      "QuerySheetSpec": {
        "properties": {
          "file": {
            "type": "integer",
            "exclusiveMinimum": 0.0,
            "title": "File"
          },
          "range": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Range"
          }
        },
        "type": "object",
        "required": [
          "file"
        ],
        "title": "QuerySheetSpec",
        "description": "A range of a spreadsheet a built query reads."
      },
      "QuerySortSpec": {
        "properties": {
          "field": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Field"
          },
          "descending": {
            "type": "boolean",
            "title": "Descending",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "field"
        ],
        "title": "QuerySortSpec"
      },
      "QueryVocabulary": {
        "properties": {
          "datasets": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Datasets"
          },
          "functions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Functions"
          },
          "tokens": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Tokens",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "datasets",
          "functions"
        ],
        "title": "QueryVocabulary",
        "description": "The words a statement may contain, beside the fields of a dataset.\n\nA statement is checked against an allow-list, so what may be written is a\nclosed set and a client that has to help somebody write one needs to know\nit. Served rather than restated on the client, so the surface cannot offer\na name the validator would refuse \u2014 nor stop offering one it accepts."
      },
      "QuietHours": {
        "properties": {
          "start": {
            "type": "string",
            "title": "Start"
          },
          "end": {
            "type": "string",
            "title": "End"
          }
        },
        "type": "object",
        "required": [
          "start",
          "end"
        ],
        "title": "QuietHours",
        "description": "A nightly window, in the account's own timezone. Wraps midnight."
      },
      "RSVPStatus": {
        "type": "string",
        "enum": [
          "pending",
          "accepted",
          "declined",
          "tentative"
        ],
        "title": "RSVPStatus"
      },
      "ReactionGroup": {
        "properties": {
          "emoji": {
            "type": "string",
            "title": "Emoji"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          },
          "reacted": {
            "type": "boolean",
            "title": "Reacted",
            "default": false
          },
          "users": {
            "items": {
              "$ref": "#/components/schemas/ReactionUser"
            },
            "type": "array",
            "title": "Users"
          }
        },
        "type": "object",
        "required": [
          "emoji",
          "count",
          "reacted",
          "users"
        ],
        "title": "ReactionGroup",
        "description": "One emoji on one target, and who chose it."
      },
      "ReactionSummary": {
        "properties": {
          "target_type": {
            "$ref": "#/components/schemas/ReactionTarget"
          },
          "target_id": {
            "type": "integer",
            "title": "Target Id"
          },
          "groups": {
            "items": {
              "$ref": "#/components/schemas/ReactionGroup"
            },
            "type": "array",
            "title": "Groups"
          }
        },
        "type": "object",
        "required": [
          "target_type",
          "target_id",
          "groups"
        ],
        "title": "ReactionSummary",
        "description": "Every reaction on one target, newest emoji last."
      },
      "ReactionTarget": {
        "type": "string",
        "enum": [
          "comment",
          "post"
        ],
        "title": "ReactionTarget",
        "description": "A kind of thing reactions hang off. The value is stored verbatim in\n``reactions.target_type`` and appears in the API path."
      },
      "ReactionToggle": {
        "properties": {
          "emoji": {
            "type": "string",
            "title": "Emoji"
          }
        },
        "type": "object",
        "required": [
          "emoji"
        ],
        "title": "ReactionToggle",
        "description": "The body of the toggle route: which emoji to add or take back."
      },
      "ReactionUser": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id",
            "x-identity": "person"
          },
          "username": {
            "type": "string",
            "title": "Username"
          },
          "discriminator": {
            "type": "integer",
            "title": "Discriminator"
          },
          "display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Display Name"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          }
        },
        "type": "object",
        "required": [
          "id",
          "username",
          "discriminator"
        ],
        "title": "ReactionUser",
        "description": "Who reacted, named the way comment authors are named.",
        "x-person": true
      },
      "RecentActivityEntry": {
        "properties": {
          "comment_id": {
            "type": "integer",
            "title": "Comment Id"
          },
          "content": {
            "type": "string",
            "title": "Content"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "author": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommentAuthor"
              },
              {
                "type": "null"
              }
            ]
          },
          "project_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Id"
          },
          "project_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Name"
          },
          "entity_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Entity Type"
          },
          "entity_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Entity Id"
          },
          "entity_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Entity Name"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "reactions": {
            "items": {
              "$ref": "#/components/schemas/ReactionGroup"
            },
            "type": "array",
            "title": "Reactions"
          }
        },
        "type": "object",
        "required": [
          "comment_id",
          "content",
          "created_at",
          "author",
          "project_id",
          "project_name",
          "entity_type",
          "entity_id",
          "entity_name",
          "initiative_id",
          "reactions"
        ],
        "title": "RecentActivityEntry"
      },
      "RecoveryCodes": {
        "properties": {
          "codes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Codes"
          }
        },
        "type": "object",
        "required": [
          "codes"
        ],
        "title": "RecoveryCodes",
        "description": "A set of codes, handed over once."
      },
      "RecoveryCodesRegenerate": {
        "properties": {
          "current_password": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Password"
          }
        },
        "type": "object",
        "title": "RecoveryCodesRegenerate"
      },
      "RecurrencePreview": {
        "properties": {
          "rule": {
            "type": "string",
            "title": "Rule"
          },
          "shift": {
            "type": "integer",
            "title": "Shift"
          },
          "occurrences": {
            "items": {
              "type": "string",
              "format": "date-time"
            },
            "type": "array",
            "title": "Occurrences"
          }
        },
        "type": "object",
        "required": [
          "rule",
          "shift",
          "occurrences"
        ],
        "title": "RecurrencePreview"
      },
      "RecurrencePreviewRequest": {
        "properties": {
          "rule": {
            "type": "string",
            "maxLength": 4000,
            "title": "Rule"
          },
          "start": {
            "type": "string",
            "format": "date-time",
            "title": "Start"
          },
          "tz": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Tz"
          },
          "kind": {
            "type": "string",
            "enum": [
              "task",
              "event"
            ],
            "title": "Kind"
          },
          "shift": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 1440.0,
                "minimum": -1440.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Shift"
          },
          "count": {
            "type": "integer",
            "maximum": 20.0,
            "minimum": 1.0,
            "title": "Count",
            "default": 5
          }
        },
        "type": "object",
        "required": [
          "rule",
          "start",
          "kind"
        ],
        "title": "RecurrencePreviewRequest"
      },
      "RecurrenceStrategy": {
        "type": "string",
        "enum": [
          "fixed",
          "rolling"
        ],
        "title": "RecurrenceStrategy",
        "description": "How a repeating task's next date is counted."
      },
      "RedactedAlert": {
        "properties": {
          "title": {
            "type": "string",
            "title": "Title"
          },
          "body": {
            "type": "string",
            "title": "Body"
          }
        },
        "type": "object",
        "required": [
          "title",
          "body"
        ],
        "title": "RedactedAlert",
        "description": "The kind-only wording a phone's push carries where content is\nredacted."
      },
      "ReferenceEmbed": {
        "properties": {
          "ref": {
            "type": "string",
            "title": "Ref"
          },
          "entity_type": {
            "type": "string",
            "title": "Entity Type"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "body": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Body"
          }
        },
        "type": "object",
        "required": [
          "ref",
          "entity_type",
          "title",
          "description",
          "body"
        ],
        "title": "ReferenceEmbed",
        "description": "A reference shown in full \u2014 ``![[ ]]`` rather than ``#``.\n\nThe same reference and the same gate as a link; what it adds is what the\nthing says about itself: its description, for the kinds that carry one,\nor its whole body, for the kinds that are prose."
      },
      "ReferenceEmbedList": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ReferenceEmbed"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "ReferenceEmbedList",
        "description": "The embeds that could be read; anything gone or out of reach is absent."
      },
      "ReferenceRead": {
        "properties": {
          "refs": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 500,
            "title": "Refs",
            "description": "References to read. `task:12` names a thing, `task:12:status` a fact about it. One that names nothing is ignored. Chips: calendar_event:when, contact:email, contact:phone, project:progress, task:assignee, task:due, task:priority, task:status, task:checklist"
          }
        },
        "type": "object",
        "title": "ReferenceRead",
        "description": "The references one page asks about, read together.\n\nA body rather than a query string: what a page points at is its own\nbusiness, and a URL is rewritten and recorded by whatever it passes\nthrough."
      },
      "RefreshRequest": {
        "properties": {
          "refresh_token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Refresh Token"
          },
          "idle_seconds": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 1000000000.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Idle Seconds"
          }
        },
        "type": "object",
        "title": "RefreshRequest",
        "description": "How a caller with no cookie presents its refresh token.\n\nThe browser sends nothing here \u2014 its refresh token is a cookie it cannot\nread. A native client keeps its own in secure storage, so it has to hand it\nover explicitly."
      },
      "RegistryRefreshRead": {
        "properties": {
          "root_version": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Root Version"
          },
          "upserted": {
            "type": "integer",
            "title": "Upserted",
            "default": 0
          },
          "withdrawn": {
            "type": "integer",
            "title": "Withdrawn",
            "default": 0
          },
          "unchanged": {
            "type": "boolean",
            "title": "Unchanged",
            "default": false
          },
          "skipped": {
            "items": {
              "$ref": "#/components/schemas/RegistrySkippedListing"
            },
            "type": "array",
            "title": "Skipped",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "root_version",
          "upserted",
          "withdrawn",
          "unchanged",
          "skipped"
        ],
        "title": "RegistryRefreshRead",
        "description": "The outcome of one refresh or bundle upload."
      },
      "RegistrySettings": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          }
        },
        "type": "object",
        "required": [
          "enabled"
        ],
        "title": "RegistrySettings",
        "description": "The platform switch for the marketplace registry."
      },
      "RegistrySkippedListing": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "code": {
            "type": "string",
            "title": "Code"
          },
          "listing_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Listing Name"
          },
          "publisher_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Publisher Name"
          }
        },
        "type": "object",
        "required": [
          "name",
          "code",
          "listing_name",
          "publisher_name"
        ],
        "title": "RegistrySkippedListing",
        "description": "A listing (or a publisher) the repository carried that did not land."
      },
      "RegistryStatusRead": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": false
          },
          "configured": {
            "type": "boolean",
            "title": "Configured",
            "default": false
          },
          "custom_root": {
            "type": "boolean",
            "title": "Custom Root",
            "default": false
          },
          "registry_url": {
            "type": "string",
            "title": "Registry Url",
            "default": ""
          },
          "root_version": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Root Version"
          },
          "expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "last_source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Source"
          },
          "last_attempt_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Attempt At"
          },
          "last_success_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Success At"
          },
          "last_error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Error"
          },
          "listing_count": {
            "type": "integer",
            "title": "Listing Count",
            "default": 0
          },
          "skipped": {
            "items": {
              "$ref": "#/components/schemas/RegistrySkippedListing"
            },
            "type": "array",
            "title": "Skipped",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "enabled",
          "configured",
          "custom_root",
          "registry_url",
          "root_version",
          "expires_at",
          "last_source",
          "last_attempt_at",
          "last_success_at",
          "last_error",
          "listing_count",
          "skipped"
        ],
        "title": "RegistryStatusRead",
        "description": "Where this deployment stands with its registry."
      },
      "RelatedEnd": {
        "properties": {
          "type": {
            "type": "string",
            "title": "Type"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          },
          "tool": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool"
          },
          "tool_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool Id"
          },
          "tool_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool Title"
          },
          "image_urls": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Image Urls"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          },
          "file_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Type"
          },
          "mime_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mime Type"
          },
          "original_filename": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Original Filename"
          },
          "smart_link_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Smart Link Url"
          },
          "handle": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Handle"
          },
          "is_open": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Open"
          },
          "starts_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Starts At"
          }
        },
        "type": "object",
        "required": [
          "type",
          "id",
          "title",
          "initiative_id",
          "updated_at",
          "tool",
          "tool_id",
          "tool_title",
          "image_urls",
          "icon",
          "color",
          "file_type",
          "mime_type",
          "original_filename",
          "smart_link_url",
          "handle",
          "is_open",
          "starts_at"
        ],
        "title": "RelatedEnd",
        "description": "The far end of an edge, as the caller's side sees it.\n\nEnough to draw the thing and link to it, because a list of edges is a list of\nmixed kinds and a reader should not have to fetch each one to find out what it\nis called, what it looks like or where it lives."
      },
      "RelationDescription": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "dataset": {
            "type": "string",
            "title": "Dataset"
          }
        },
        "type": "object",
        "required": [
          "name",
          "dataset"
        ],
        "title": "RelationDescription",
        "description": "Another dataset this one can be read alongside.\n\nWhat a client needs to offer a related field is the name to prefix it with\nand the dataset to read that field's own description from \u2014 the hops in\nbetween are the server's business, and a client that knew them could write\na join the server did not declare."
      },
      "RelationshipCreate": {
        "properties": {
          "source": {
            "$ref": "#/components/schemas/EndpointRef"
          },
          "relationship_type": {
            "$ref": "#/components/schemas/RelationshipType"
          },
          "target": {
            "$ref": "#/components/schemas/EndpointRef"
          }
        },
        "type": "object",
        "required": [
          "source",
          "relationship_type",
          "target"
        ],
        "title": "RelationshipCreate",
        "description": "Make one edge. Provenance is not here \u2014 it is the code path's to state,\nnever a request's, because it is the weight any later scoring reads."
      },
      "RelationshipRead": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_kind": {
            "$ref": "#/components/schemas/ActorKind"
          },
          "created_by_install": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Install"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "relationship_type": {
            "$ref": "#/components/schemas/RelationshipType"
          },
          "direction": {
            "type": "string",
            "title": "Direction"
          },
          "other": {
            "$ref": "#/components/schemas/RelatedEnd"
          },
          "provenance": {
            "type": "string",
            "title": "Provenance"
          },
          "confidence": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Confidence"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "created_by",
          "created_by_kind",
          "created_by_install",
          "id",
          "relationship_type",
          "direction",
          "other",
          "provenance",
          "confidence",
          "created_at"
        ],
        "title": "RelationshipRead",
        "description": "One edge, rendered from the asking entity's side.\n\n``direction`` is which way it runs relative to the entity asked about, so a\ncaller never has to know that a symmetric edge is stored in node-id order."
      },
      "RelationshipType": {
        "type": "string",
        "enum": [
          "attached",
          "depends_on",
          "part_of",
          "tagged_with",
          "references",
          "related_to"
        ],
        "title": "RelationshipType",
        "description": "The primitives. Small, stable, and each one carries a rule or a weight.\n\nA member earns its place by something depending on telling it apart from\nits neighbours \u2014 a read, a rule, an adjacency weight \u2014 not by a model being\nable to learn it. Finer words that obey an existing primitive's rule are\n:data:`SUBTYPES`, not members here: splitting a primitive later is\nimpossible, because the fact that would distinguish the halves was never\nrecorded, while merging two is one UPDATE."
      },
      "ReminderSet": {
        "properties": {
          "remind_at": {
            "type": "string",
            "format": "date-time",
            "title": "Remind At"
          }
        },
        "type": "object",
        "required": [
          "remind_at"
        ],
        "title": "ReminderSet",
        "description": "When to remind the reader of a task."
      },
      "RemovalReason": {
        "type": "string",
        "enum": [
          "spam",
          "harassment",
          "hate",
          "violence",
          "sexual_content",
          "self_harm",
          "illegal",
          "misinformation",
          "other",
          "off_topic",
          "community_rule"
        ],
        "title": "RemovalReason",
        "description": "Why a moderator took something down. Every reason a report can give,\nand two that only a community's own rules give."
      },
      "RemovedBy": {
        "type": "string",
        "enum": [
          "moderator",
          "author"
        ],
        "title": "RemovedBy",
        "description": "Who took a comment out of the conversation."
      },
      "ReportHold": {
        "properties": {
          "reason": {
            "$ref": "#/components/schemas/HoldReason"
          },
          "legal_basis": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LegalBasis"
              },
              {
                "type": "null"
              }
            ]
          },
          "note": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          }
        },
        "type": "object",
        "required": [
          "reason"
        ],
        "title": "ReportHold",
        "description": "Why a report's target is being held for the platform."
      },
      "ReportOutcome": {
        "type": "string",
        "enum": [
          "dismissed",
          "content_removed",
          "member_warned",
          "escalated",
          "held"
        ],
        "title": "ReportOutcome",
        "description": "How a report was settled. Every member closes it."
      },
      "ReportReason": {
        "type": "string",
        "enum": [
          "spam",
          "harassment",
          "hate",
          "violence",
          "sexual_content",
          "self_harm",
          "illegal",
          "misinformation",
          "other"
        ],
        "title": "ReportReason",
        "description": "Why somebody is reporting. Closed, so it can be counted and filtered."
      },
      "ReportSettle": {
        "properties": {
          "outcome": {
            "$ref": "#/components/schemas/ReportOutcome"
          },
          "note": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4000
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          },
          "hold": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReportHold"
              },
              {
                "type": "null"
              }
            ]
          },
          "removal_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RemovalReason"
              },
              {
                "type": "null"
              }
            ]
          },
          "message": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          }
        },
        "type": "object",
        "required": [
          "outcome"
        ],
        "title": "ReportSettle",
        "description": "Settling a report. Every outcome closes it."
      },
      "ReportTargetLink": {
        "properties": {
          "entity_type": {
            "$ref": "#/components/schemas/SearchEntityType"
          },
          "entity_id": {
            "type": "integer",
            "title": "Entity Id"
          },
          "tool": {
            "$ref": "#/components/schemas/Tool"
          },
          "tool_id": {
            "type": "integer",
            "title": "Tool Id"
          }
        },
        "type": "object",
        "required": [
          "entity_type",
          "entity_id",
          "tool",
          "tool_id"
        ],
        "title": "ReportTargetLink",
        "description": "Where a reported thing is read.\n\nA comment has no page of its own \u2014 it is read on whatever it was said on \u2014\nso this names that thing rather than the comment. Everything else names\nitself. The trio is the one a search hit carries, and means the same here:\nwhat to open, and the tool it is addressed inside, since a task needs its\nproject's id to be addressed at all."
      },
      "ReportVenue": {
        "type": "string",
        "enum": [
          "platform",
          "initiative"
        ],
        "title": "ReportVenue",
        "description": "Who handles a report."
      },
      "ResolvedAISettingsResponse": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": false
          },
          "provider": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AIProvider"
              },
              {
                "type": "null"
              }
            ]
          },
          "has_api_key": {
            "type": "boolean",
            "title": "Has Api Key",
            "default": false
          },
          "base_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Base Url"
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model"
          },
          "source": {
            "type": "string",
            "title": "Source",
            "default": "disabled"
          }
        },
        "type": "object",
        "required": [
          "enabled",
          "provider",
          "has_api_key",
          "base_url",
          "model",
          "source"
        ],
        "title": "ResolvedAISettingsResponse",
        "description": "Resolved settings for the frontend \u2014 never exposes the API key."
      },
      "ResourceAccessLevel": {
        "type": "string",
        "enum": [
          "owner",
          "write",
          "read"
        ],
        "title": "ResourceAccessLevel"
      },
      "ResourceGrantBulkItem": {
        "properties": {
          "resource_type": {
            "type": "string",
            "title": "Resource Type"
          },
          "resource_id": {
            "type": "integer",
            "title": "Resource Id"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantSchema"
            },
            "type": "array",
            "title": "Grants"
          }
        },
        "type": "object",
        "required": [
          "resource_type",
          "resource_id",
          "grants"
        ],
        "title": "ResourceGrantBulkItem",
        "description": "One tool's full target sharing state in a bulk request \u2014 the same ``grants``\nbody the per-resource ``PUT /{id}/grants`` takes, tagged with which tool it\napplies to: a built-in tool's kind, or a kind of a tool plug-in the\ncommunity has installed (``app.schemas.kinds``)."
      },
      "ResourceGrantBulkItemResult": {
        "properties": {
          "resource_type": {
            "type": "string",
            "title": "Resource Type"
          },
          "resource_id": {
            "type": "integer",
            "title": "Resource Id"
          },
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "forbidden",
              "not_found"
            ],
            "title": "Status"
          },
          "detail": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Detail"
          }
        },
        "type": "object",
        "required": [
          "resource_type",
          "resource_id",
          "status"
        ],
        "title": "ResourceGrantBulkItemResult",
        "description": "Per-item outcome \u2014 bulk is best-effort: a resource the caller can't manage\n(``forbidden``) or that doesn't exist (``not_found``) is skipped without\nblocking the rest."
      },
      "ResourceGrantBulkRequest": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantBulkItem"
            },
            "type": "array",
            "maxItems": 200,
            "minItems": 1,
            "title": "Items"
          },
          "note": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "ResourceGrantBulkRequest",
        "description": "Replace sharing on many resources (possibly of different types) in one call.\nCapped at ``MAX_BULK_GRANT_ITEMS`` items (422 otherwise)."
      },
      "ResourceGrantBulkResponse": {
        "properties": {
          "results": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantBulkItemResult"
            },
            "type": "array",
            "title": "Results"
          }
        },
        "type": "object",
        "required": [
          "results"
        ],
        "title": "ResourceGrantBulkResponse"
      },
      "ResourceGrantSchema": {
        "properties": {
          "level": {
            "$ref": "#/components/schemas/ResourceAccessLevel"
          },
          "user_id": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Id"
          },
          "role_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Role Id"
          },
          "all_initiative_members": {
            "type": "boolean",
            "title": "All Initiative Members",
            "default": false
          },
          "plugin_install_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Plugin Install Id"
          }
        },
        "type": "object",
        "required": [
          "level"
        ],
        "title": "ResourceGrantSchema",
        "description": "One ``resource_grants`` row \u2014 exactly the columns that define a grant: a\n``level`` for a user (``user_id``), an initiative role (``role_id``), all\ninitiative members (``all_initiative_members``), or an installed plug-in\n(``plugin_install_id``). Exactly one grantee is set.\n\nThe identical shape both reports a resource's grants (``grants`` is a list of\nthese) and replaces them (the ``PUT /{id}/grants`` body) \u2014 no field is\nread-only or write-only. The server always preserves the resource's owner\ngrant. Role display names are resolved client-side from the initiative's roles\nby ``role_id``.\n\nA **plug-in install** grantee is reported here and not taken from here: kept by\nthe server whatever this list says. What a plug-in may reach is the seat's to\ndecide, not a resource owner's sharing panel."
      },
      "RestoreResponse": {
        "properties": {
          "restored": {
            "type": "boolean",
            "title": "Restored"
          }
        },
        "type": "object",
        "required": [
          "restored"
        ],
        "title": "RestoreResponse",
        "description": "200 payload for a successful restore. The needs-reassignment case is a\n409 with :class:`RestoreNeedsReassignmentResponse` instead."
      },
      "RevisionBody": {
        "properties": {
          "content": {
            "additionalProperties": true,
            "type": "object",
            "title": "Content"
          }
        },
        "type": "object",
        "required": [
          "content"
        ],
        "title": "RevisionBody",
        "description": "An item's body as it was at one of its revisions, in the shape the\nitem's own read gives it."
      },
      "RevisionNameUpdate": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 120,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          }
        },
        "type": "object",
        "title": "RevisionNameUpdate",
        "description": "Name a version, or clear its name with ``null``."
      },
      "RevisionPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/RevisionRead"
            },
            "type": "array",
            "title": "Items"
          },
          "next_before": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Before"
          }
        },
        "type": "object",
        "required": [
          "items",
          "next_before"
        ],
        "title": "RevisionPage",
        "description": "A page of an item's history, newest first. Ask for the next with\n``before`` set to ``next_before``, which is ``None`` at the end."
      },
      "RevisionRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "occurred_at": {
            "type": "string",
            "format": "date-time",
            "title": "Occurred At"
          },
          "editors": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Editors"
          },
          "install_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Install Id"
          },
          "source": {
            "type": "string",
            "title": "Source"
          },
          "source_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Id"
          },
          "action": {
            "type": "string",
            "title": "Action"
          },
          "changes": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Changes"
          },
          "source_row": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Row"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "id",
          "occurred_at",
          "editors",
          "install_id",
          "source",
          "source_id",
          "action",
          "changes",
          "source_row",
          "name"
        ],
        "title": "RevisionRead",
        "description": "One change to an item: who made it, when, and what it held before and\nafter.\n\n``changes`` is ``{column: [old, new]}`` for an update, and nothing\notherwise. For a row filed on the item (``source`` names its table: an\nassignee, a link, a property value, a version), ``source_row`` is that row\nas it stood, after an insert or an update and before a delete. Only\ncolumns the table still has are listed."
      },
      "SearchEntityType": {
        "type": "string",
        "enum": [
          "calendar",
          "calendar_event",
          "collection",
          "comment",
          "contact",
          "dashboard",
          "file",
          "form",
          "form_response",
          "post",
          "project",
          "tag",
          "task",
          "wiki",
          "wiki_page"
        ],
        "title": "SearchEntityType"
      },
      "SearchHit": {
        "properties": {
          "entity_type": {
            "type": "string",
            "title": "Entity Type"
          },
          "entity_id": {
            "type": "integer",
            "title": "Entity Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "snippet": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Snippet"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "tool": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool"
          },
          "tool_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool Id"
          }
        },
        "type": "object",
        "required": [
          "entity_type",
          "entity_id",
          "title"
        ],
        "title": "SearchHit",
        "description": "One thing found.\n\n``entity_type``/``entity_id`` name what was found. ``tool``/``tool_id`` name\nthe thing it lives in \u2014 a task's project, a calendar event's calendar \u2014 which\nis what a client needs to build a route to it, and is the entity itself for a\ntool's own row."
      },
      "SearchResults": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/SearchHit"
            },
            "type": "array",
            "title": "Items"
          },
          "fuzzy": {
            "type": "boolean",
            "title": "Fuzzy",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items",
          "fuzzy"
        ],
        "title": "SearchResults"
      },
      "SearchSuggestion": {
        "properties": {
          "entity_type": {
            "type": "string",
            "title": "Entity Type"
          },
          "entity_id": {
            "type": "integer",
            "title": "Entity Id"
          },
          "title": {
            "type": "string",
            "title": "Title",
            "x-mentions": "markdown"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "tool": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool"
          },
          "tool_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool Id"
          },
          "can_write": {
            "type": "boolean",
            "title": "Can Write",
            "default": false
          },
          "tool_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool Title"
          },
          "initiative_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Name"
          }
        },
        "type": "object",
        "required": [
          "entity_type",
          "entity_id",
          "title"
        ],
        "title": "SearchSuggestion",
        "description": "A jump-to target for a picker: enough to render and route."
      },
      "SecondFactorAnswer": {
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Code"
          },
          "recovery_code": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Recovery Code"
          },
          "passkey": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Passkey"
          }
        },
        "type": "object",
        "title": "SecondFactorAnswer",
        "description": "The account's own second factor, presented with a self-issued grant.\n\nAsked for when the account holds one, or the deployment requires one of\nits rung. Any of the three answers is accepted: a code from the\nauthenticator, one of the recovery codes, or an assertion from one of the\naccount's passkeys \u2014 begun at\n``POST /access-grants/break-glass/passkey`` so the challenge it answers\nbelongs to this request."
      },
      "SecondFactorChallengeAnswer": {
        "properties": {
          "challenge": {
            "type": "string",
            "maxLength": 512,
            "minLength": 1,
            "title": "Challenge"
          },
          "code": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Code"
          },
          "recovery_code": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Recovery Code"
          }
        },
        "type": "object",
        "required": [
          "challenge"
        ],
        "title": "SecondFactorChallengeAnswer",
        "description": "The second leg of a sign-in: the challenge, and the thing it asked for."
      },
      "SecondFactorConfirm": {
        "properties": {
          "code": {
            "type": "string",
            "maxLength": 16,
            "minLength": 1,
            "title": "Code"
          }
        },
        "type": "object",
        "required": [
          "code"
        ],
        "title": "SecondFactorConfirm"
      },
      "SecondFactorDisable": {
        "properties": {
          "current_password": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Password"
          },
          "code": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Code"
          },
          "recovery_code": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Recovery Code"
          }
        },
        "type": "object",
        "title": "SecondFactorDisable",
        "description": "Removing the factor asks for the password and for the factor itself \u2014\neither a live code or one of the recovery codes."
      },
      "SecondFactorEnrolStart": {
        "properties": {
          "current_password": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Password"
          }
        },
        "type": "object",
        "title": "SecondFactorEnrolStart",
        "description": "Beginning an enrolment. The password is re-checked here, as it is for a\npassword change; an account with no usable password sends nothing."
      },
      "SecondFactorEnrolment": {
        "properties": {
          "secret": {
            "type": "string",
            "title": "Secret"
          },
          "otpauth_uri": {
            "type": "string",
            "title": "Otpauth Uri"
          }
        },
        "type": "object",
        "required": [
          "secret",
          "otpauth_uri"
        ],
        "title": "SecondFactorEnrolment",
        "description": "The seed, once. There is no path that reads it back."
      },
      "SecondFactorRequirement": {
        "type": "string",
        "enum": [
          "nobody",
          "platform_roles",
          "everyone"
        ],
        "title": "SecondFactorRequirement",
        "description": "Who this deployment asks to hold a second factor.\n\nIts own vocabulary rather than a value on :class:`LoginMethod`: that enum\nsays which ways in *exist*, and this says what is *asked* of an account\nonce it has one. A deployment permits passkeys and the authenticator app\nwhether or not it requires either."
      },
      "SecondFactorStatus": {
        "properties": {
          "enrolled": {
            "type": "boolean",
            "title": "Enrolled",
            "default": false
          },
          "confirmed_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Confirmed At"
          },
          "last_used_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Used At"
          },
          "recovery_codes_remaining": {
            "type": "integer",
            "title": "Recovery Codes Remaining",
            "default": 0
          },
          "password_required": {
            "type": "boolean",
            "title": "Password Required",
            "default": true
          },
          "offered": {
            "type": "boolean",
            "title": "Offered",
            "default": true
          },
          "passwordless": {
            "type": "boolean",
            "title": "Passwordless",
            "default": false
          }
        },
        "type": "object",
        "title": "SecondFactorStatus",
        "description": "What the account holds, for the settings surface."
      },
      "SecondFactorStepUpAnswer": {
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Code"
          },
          "recovery_code": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Recovery Code"
          }
        },
        "type": "object",
        "title": "SecondFactorStepUpAnswer",
        "description": "The factor, presented against a session that is already signed in.\n\nNo challenge: the session the request is authenticated by is what names\nthe account, so there is nothing for the client to carry between two legs\nof a sign-in that is not happening."
      },
      "SectionPart-Input": {
        "properties": {
          "type": {
            "type": "string",
            "const": "section",
            "title": "Type"
          },
          "props": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SectionProps"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/DetailStackPart-Input"
                },
                {
                  "$ref": "#/components/schemas/SectionPart-Input"
                },
                {
                  "$ref": "#/components/schemas/DetailFieldPart"
                },
                {
                  "$ref": "#/components/schemas/PropertiesPart"
                },
                {
                  "$ref": "#/components/schemas/PluginPart"
                },
                {
                  "$ref": "#/components/schemas/OwnPart"
                },
                {
                  "$ref": "#/components/schemas/FormPart"
                }
              ],
              "discriminator": {
                "propertyName": "type",
                "mapping": {
                  "actions": "#/components/schemas/OwnPart",
                  "body": "#/components/schemas/OwnPart",
                  "byline": "#/components/schemas/OwnPart",
                  "case": "#/components/schemas/OwnPart",
                  "comments": "#/components/schemas/OwnPart",
                  "dates": "#/components/schemas/OwnPart",
                  "field": "#/components/schemas/DetailFieldPart",
                  "form": "#/components/schemas/FormPart",
                  "notice": "#/components/schemas/OwnPart",
                  "plugin": "#/components/schemas/PluginPart",
                  "poll": "#/components/schemas/OwnPart",
                  "properties": "#/components/schemas/PropertiesPart",
                  "reactions": "#/components/schemas/OwnPart",
                  "relations": "#/components/schemas/OwnPart",
                  "rsvp": "#/components/schemas/OwnPart",
                  "schedule": "#/components/schemas/OwnPart",
                  "section": "#/components/schemas/SectionPart-Input",
                  "stack": "#/components/schemas/DetailStackPart-Input",
                  "status": "#/components/schemas/OwnPart"
                }
              }
            },
            "type": "array",
            "title": "Children"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "type"
        ],
        "title": "SectionPart",
        "description": "A bordered group of a detail layout's parts."
      },
      "SectionPart-Output": {
        "properties": {
          "type": {
            "type": "string",
            "const": "section",
            "title": "Type"
          },
          "props": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SectionProps"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/DetailStackPart-Output"
                },
                {
                  "$ref": "#/components/schemas/SectionPart-Output"
                },
                {
                  "$ref": "#/components/schemas/DetailFieldPart"
                },
                {
                  "$ref": "#/components/schemas/PropertiesPart"
                },
                {
                  "$ref": "#/components/schemas/PluginPart"
                },
                {
                  "$ref": "#/components/schemas/OwnPart"
                },
                {
                  "$ref": "#/components/schemas/FormPart"
                }
              ],
              "discriminator": {
                "propertyName": "type",
                "mapping": {
                  "actions": "#/components/schemas/OwnPart",
                  "body": "#/components/schemas/OwnPart",
                  "byline": "#/components/schemas/OwnPart",
                  "case": "#/components/schemas/OwnPart",
                  "comments": "#/components/schemas/OwnPart",
                  "dates": "#/components/schemas/OwnPart",
                  "field": "#/components/schemas/DetailFieldPart",
                  "form": "#/components/schemas/FormPart",
                  "notice": "#/components/schemas/OwnPart",
                  "plugin": "#/components/schemas/PluginPart",
                  "poll": "#/components/schemas/OwnPart",
                  "properties": "#/components/schemas/PropertiesPart",
                  "reactions": "#/components/schemas/OwnPart",
                  "relations": "#/components/schemas/OwnPart",
                  "rsvp": "#/components/schemas/OwnPart",
                  "schedule": "#/components/schemas/OwnPart",
                  "section": "#/components/schemas/SectionPart-Output",
                  "stack": "#/components/schemas/DetailStackPart-Output",
                  "status": "#/components/schemas/OwnPart"
                }
              }
            },
            "type": "array",
            "title": "Children"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "type"
        ],
        "title": "SectionPart",
        "description": "A bordered group of a detail layout's parts."
      },
      "SectionProps": {
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "collapsed": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Collapsed"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "SectionProps"
      },
      "SendCreate": {
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/ContentKind"
          },
          "entity_id": {
            "type": "integer",
            "title": "Entity Id"
          },
          "user_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 100,
            "minItems": 1,
            "title": "User Ids"
          },
          "note": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          },
          "level": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ResourceAccessLevel"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "kind",
          "entity_id",
          "user_ids"
        ],
        "title": "SendCreate",
        "description": "Point people at one thing, with a note if there is one.\n\n``level`` lets those who can't open it in, at that rung, where the sender\nmay share it; left out, they are told it is there and may ask for it."
      },
      "SendResult": {
        "properties": {
          "sent": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Sent"
          },
          "let_in": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Let In"
          },
          "may_ask": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "May Ask"
          }
        },
        "type": "object",
        "required": [
          "sent",
          "let_in",
          "may_ask"
        ],
        "title": "SendResult",
        "description": "Who heard, and how: sent what they can open, let in to it first, or\ntold it is there to ask for."
      },
      "SetBy": {
        "type": "string",
        "enum": [
          "community",
          "deployment"
        ],
        "title": "SetBy",
        "description": "Who wrote a community's rule row or custom role. A value set above is\nowned above: a ``deployment`` row wins over the community's own."
      },
      "SettingsLevel": {
        "type": "string",
        "enum": [
          "admin",
          "superadmin"
        ],
        "title": "SettingsLevel",
        "description": "Which rung of a guild's *configuration* a settings grant confers.\n\nThe guild's own ladder, borrowed: ``admin`` reaches what a guild admin\nadministers, ``superadmin`` reaches what the seat holds \u2014 its sign-in and\nits billing. There is no default; a request names one.\n\nStored in the same ``access_level`` column as :class:`AccessLevel`, which\nthe purpose tells apart. A CHECK holds each vocabulary to its own purpose,\nso a settings grant can never read as ``read_write`` content, nor a content\ngrant as ``superadmin``."
      },
      "ShareRequestAnswer": {
        "properties": {
          "ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 500,
            "minItems": 1,
            "title": "Ids"
          },
          "approve": {
            "type": "boolean",
            "title": "Approve"
          },
          "level": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ResourceAccessLevel"
              },
              {
                "type": "null"
              }
            ]
          },
          "scope": {
            "type": "string",
            "enum": [
              "user",
              "initiative"
            ],
            "title": "Scope",
            "default": "user"
          },
          "tell": {
            "type": "boolean",
            "title": "Tell",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "ids",
          "approve"
        ],
        "title": "ShareRequestAnswer",
        "description": "A yes or a no to some of the requests the reader may answer."
      },
      "ShareRequestBatch": {
        "properties": {
          "batch_id": {
            "type": "string",
            "format": "uuid",
            "title": "Batch Id"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          }
        },
        "type": "object",
        "required": [
          "batch_id",
          "count"
        ],
        "title": "ShareRequestBatch",
        "description": "The requests one ask made."
      },
      "ShareRequestCreate": {
        "properties": {
          "resource_type": {
            "$ref": "#/components/schemas/Tool"
          },
          "resource_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resource Id"
          },
          "collection_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Collection Id"
          },
          "wiki_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Wiki Id"
          },
          "level": {
            "$ref": "#/components/schemas/ResourceAccessLevel",
            "default": "read"
          },
          "message": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          }
        },
        "type": "object",
        "required": [
          "resource_type"
        ],
        "title": "ShareRequestCreate",
        "description": "Ask for one thing, or for the files of a collection or a wiki the\nreader can't open."
      },
      "ShareRequestRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "batch_id": {
            "type": "string",
            "format": "uuid",
            "title": "Batch Id"
          },
          "resource_type": {
            "$ref": "#/components/schemas/Tool"
          },
          "resource_id": {
            "type": "integer",
            "title": "Resource Id"
          },
          "resource_name": {
            "type": "string",
            "title": "Resource Name"
          },
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "user": {
            "$ref": "#/components/schemas/UserSummary"
          },
          "guest_until": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Guest Until"
          },
          "level": {
            "$ref": "#/components/schemas/ResourceAccessLevel"
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "batch_id",
          "resource_type",
          "resource_id",
          "resource_name",
          "initiative_id",
          "user",
          "level",
          "created_at"
        ],
        "title": "ShareRequestRead",
        "description": "One request waiting on the reader's answer."
      },
      "ShareStanding": {
        "properties": {
          "resource_type": {
            "$ref": "#/components/schemas/Tool"
          },
          "resource_id": {
            "type": "integer",
            "title": "Resource Id"
          },
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "level": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ResourceAccessLevel"
              },
              {
                "type": "null"
              }
            ]
          },
          "pending": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ResourceAccessLevel"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "resource_type",
          "resource_id",
          "initiative_id"
        ],
        "title": "ShareStanding",
        "description": "Where the reader stands on one thing they can open, or know is there:\non the tool whose sharing decides it, which is what to ask for."
      },
      "SharedResourceRead": {
        "properties": {
          "resource_type": {
            "type": "string",
            "title": "Resource Type"
          },
          "resource_id": {
            "type": "integer",
            "title": "Resource Id"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "all_initiative_members": {
            "type": "boolean",
            "title": "All Initiative Members"
          },
          "user_grant_count": {
            "type": "integer",
            "title": "User Grant Count"
          },
          "role_grant_count": {
            "type": "integer",
            "title": "Role Grant Count"
          }
        },
        "type": "object",
        "required": [
          "resource_type",
          "resource_id",
          "all_initiative_members",
          "user_grant_count",
          "role_grant_count"
        ],
        "title": "SharedResourceRead",
        "description": "One resource in the initiative, and how widely it is reached."
      },
      "SignedInSessionInfo": {
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id"
          },
          "message_device_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message Device Id"
          },
          "device": {
            "type": "boolean",
            "title": "Device"
          },
          "widgets": {
            "type": "boolean",
            "title": "Widgets"
          },
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Label"
          },
          "kind": {
            "$ref": "#/components/schemas/ClientKind"
          },
          "ip": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ip"
          },
          "started_at": {
            "type": "string",
            "format": "date-time",
            "title": "Started At"
          },
          "last_used_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Used At"
          },
          "is_current": {
            "type": "boolean",
            "title": "Is Current"
          }
        },
        "type": "object",
        "required": [
          "id",
          "message_device_id",
          "device",
          "widgets",
          "label",
          "kind",
          "ip",
          "started_at",
          "last_used_at",
          "is_current"
        ],
        "title": "SignedInSessionInfo",
        "description": "One place the account is signed in \u2014 a browser, the phone app or the\ndesktop app \u2014 or one of its message devices that is not signed in, as its\nown \"where you're signed in\" list shows it. ``started_at`` is the sign-in,\nnot the last renewal, so a browser left open for a month reads as a month\nold.\n\n``id`` is the session, ``None`` for a message device with no live sign-in;\n``message_device_id`` is the key store, where there is one. ``device`` marks\na session the phone or desktop app opened, and ``widgets`` one whose\nhome-screen widgets read with a key of their own. ``label`` is the name a device\nsigned in with, or else derived from the user agent (``core.user_agents``). ``is_current`` marks the\nsession doing the asking, which the list shows rather than offers to end."
      },
      "SmartChipAspect": {
        "type": "string",
        "enum": [
          "status",
          "assignee",
          "due",
          "priority",
          "when",
          "progress",
          "checklist",
          "phone",
          "email"
        ],
        "title": "SmartChipAspect",
        "description": "The fact a chip is about."
      },
      "SmartChipState": {
        "properties": {
          "ref": {
            "type": "string",
            "title": "Ref"
          },
          "entity_type": {
            "type": "string",
            "title": "Entity Type"
          },
          "aspect": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SmartChipAspect"
              },
              {
                "type": "null"
              }
            ]
          },
          "text": {
            "type": "string",
            "title": "Text"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "tone": {
            "$ref": "#/components/schemas/SmartChipTone"
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          },
          "date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Date"
          },
          "number": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Number"
          },
          "writable": {
            "type": "boolean",
            "title": "Writable",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "ref",
          "entity_type",
          "aspect",
          "text",
          "title",
          "tone",
          "color",
          "date",
          "number",
          "writable"
        ],
        "title": "SmartChipState",
        "description": "One chip's current reading.\n\n``text`` is always set, so a client that understands nothing else can still\nrender the chip. ``date`` and ``number`` are sent alongside it where the\nvalue is one of those, because a date and a number belong in the reader's\nown locale and only the client knows what that is."
      },
      "SmartChipStateList": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SmartChipState"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "SmartChipStateList",
        "description": "The chips that could be read.\n\nA ref that names nothing, or something this caller cannot see, is simply\nabsent: the two are the same answer, and the chip falls back to the label\nthe file already stored."
      },
      "SmartChipTone": {
        "type": "string",
        "enum": [
          "neutral",
          "muted",
          "good",
          "warn",
          "danger"
        ],
        "title": "SmartChipTone",
        "description": "How a chip is coloured when nothing more specific applies.\n\nThe server decides this rather than the client, because what counts as\nfinished, late or urgent is a product rule and not a rendering detail. A\nchip with its own colour \u2014 a task status carries one \u2014 sends that instead."
      },
      "SortDir": {
        "type": "string",
        "enum": [
          "asc",
          "desc"
        ],
        "title": "SortDir"
      },
      "SpreadsheetImportRead": {
        "properties": {
          "sheets": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Sheets"
          }
        },
        "type": "object",
        "title": "SpreadsheetImportRead",
        "description": "The sheets a file held, ready to be added to a workbook.\n\nNothing is written by the read that produces this: the editor adds these\nto its live document itself, in one transaction, so an import is one thing\nto undo."
      },
      "StackPart-Input": {
        "properties": {
          "type": {
            "type": "string",
            "const": "stack",
            "title": "Type"
          },
          "props": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StackProps"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/CardPart-Input"
                },
                {
                  "$ref": "#/components/schemas/StackPart-Input"
                },
                {
                  "$ref": "#/components/schemas/FieldPart"
                },
                {
                  "$ref": "#/components/schemas/PropertiesPart"
                },
                {
                  "$ref": "#/components/schemas/PluginPart"
                },
                {
                  "$ref": "#/components/schemas/ItemsPart"
                }
              ],
              "discriminator": {
                "propertyName": "type",
                "mapping": {
                  "card": "#/components/schemas/CardPart-Input",
                  "field": "#/components/schemas/FieldPart",
                  "items": "#/components/schemas/ItemsPart",
                  "plugin": "#/components/schemas/PluginPart",
                  "properties": "#/components/schemas/PropertiesPart",
                  "stack": "#/components/schemas/StackPart-Input"
                }
              }
            },
            "type": "array",
            "title": "Children"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "type"
        ],
        "title": "StackPart"
      },
      "StackPart-Output": {
        "properties": {
          "type": {
            "type": "string",
            "const": "stack",
            "title": "Type"
          },
          "props": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StackProps"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/CardPart-Output"
                },
                {
                  "$ref": "#/components/schemas/StackPart-Output"
                },
                {
                  "$ref": "#/components/schemas/FieldPart"
                },
                {
                  "$ref": "#/components/schemas/PropertiesPart"
                },
                {
                  "$ref": "#/components/schemas/PluginPart"
                },
                {
                  "$ref": "#/components/schemas/ItemsPart"
                }
              ],
              "discriminator": {
                "propertyName": "type",
                "mapping": {
                  "card": "#/components/schemas/CardPart-Output",
                  "field": "#/components/schemas/FieldPart",
                  "items": "#/components/schemas/ItemsPart",
                  "plugin": "#/components/schemas/PluginPart",
                  "properties": "#/components/schemas/PropertiesPart",
                  "stack": "#/components/schemas/StackPart-Output"
                }
              }
            },
            "type": "array",
            "title": "Children"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "type"
        ],
        "title": "StackPart"
      },
      "StackProps": {
        "properties": {
          "direction": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "column",
                  "row"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Direction"
          },
          "gap": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "xs",
                  "sm"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Gap"
          },
          "wrap": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Wrap"
          },
          "align": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "start",
                  "center"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Align"
          },
          "tone": {
            "anyOf": [
              {
                "type": "string",
                "const": "muted"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tone"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "StackProps"
      },
      "StorageBackendKind": {
        "type": "string",
        "enum": [
          "local",
          "s3"
        ],
        "title": "StorageBackendKind",
        "description": "Where uploads are kept: ``STORAGE_BACKEND``."
      },
      "StorageBackfillStatusResponse": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "idle",
              "running",
              "complete",
              "failed"
            ],
            "title": "Status",
            "default": "idle"
          },
          "copied": {
            "type": "integer",
            "title": "Copied",
            "default": 0
          },
          "skipped": {
            "type": "integer",
            "title": "Skipped",
            "default": 0
          },
          "failed": {
            "type": "integer",
            "title": "Failed",
            "default": 0
          },
          "hash_mismatches": {
            "type": "integer",
            "title": "Hash Mismatches",
            "default": 0
          },
          "failed_keys": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Failed Keys"
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "finished_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Finished At"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          }
        },
        "type": "object",
        "required": [
          "status",
          "copied",
          "skipped",
          "failed",
          "hash_mismatches",
          "failed_keys",
          "started_at",
          "finished_at",
          "error"
        ],
        "title": "StorageBackfillStatusResponse"
      },
      "StorageSettingsResponse": {
        "properties": {
          "backend": {
            "$ref": "#/components/schemas/StorageBackendKind",
            "default": "local"
          },
          "s3_bucket": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "S3 Bucket"
          },
          "s3_region": {
            "type": "string",
            "title": "S3 Region",
            "default": "us-east-1"
          },
          "s3_endpoint_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "S3 Endpoint Url"
          },
          "s3_access_key_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "S3 Access Key Id"
          },
          "has_secret_access_key": {
            "type": "boolean",
            "title": "Has Secret Access Key",
            "default": false
          },
          "secret_access_key_hint": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Secret Access Key Hint"
          },
          "s3_use_path_style": {
            "type": "boolean",
            "title": "S3 Use Path Style",
            "default": false
          },
          "s3_local_fallback": {
            "type": "boolean",
            "title": "S3 Local Fallback",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "backend",
          "s3_bucket",
          "s3_region",
          "s3_endpoint_url",
          "s3_access_key_id",
          "has_secret_access_key",
          "secret_access_key_hint",
          "s3_use_path_style",
          "s3_local_fallback"
        ],
        "title": "StorageSettingsResponse"
      },
      "StorageSettingsUpdate": {
        "properties": {
          "backend": {
            "$ref": "#/components/schemas/StorageBackendKind",
            "default": "local"
          },
          "s3_bucket": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "S3 Bucket"
          },
          "s3_region": {
            "type": "string",
            "title": "S3 Region",
            "default": "us-east-1"
          },
          "s3_endpoint_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "S3 Endpoint Url"
          },
          "s3_access_key_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "S3 Access Key Id"
          },
          "s3_secret_access_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "S3 Secret Access Key"
          },
          "s3_use_path_style": {
            "type": "boolean",
            "title": "S3 Use Path Style",
            "default": false
          },
          "s3_local_fallback": {
            "type": "boolean",
            "title": "S3 Local Fallback",
            "default": false
          }
        },
        "type": "object",
        "title": "StorageSettingsUpdate"
      },
      "StorageTestResponse": {
        "properties": {
          "success": {
            "type": "boolean",
            "title": "Success"
          },
          "message": {
            "type": "string",
            "title": "Message"
          }
        },
        "type": "object",
        "required": [
          "success",
          "message"
        ],
        "title": "StorageTestResponse"
      },
      "StreamAvailabilityRead": {
        "properties": {
          "mode": {
            "$ref": "#/components/schemas/TicketMode"
          },
          "contact": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Contact"
          },
          "types": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Types"
          },
          "evidence": {
            "$ref": "#/components/schemas/EvidencePolicyRead"
          }
        },
        "type": "object",
        "required": [
          "mode",
          "contact",
          "types",
          "evidence"
        ],
        "title": "StreamAvailabilityRead",
        "description": "What one stream offers the reader, from where they are."
      },
      "SubjectReadRequest": {
        "properties": {
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "subject_type": {
            "type": "string",
            "maxLength": 32,
            "title": "Subject Type"
          },
          "subject_id": {
            "type": "integer",
            "title": "Subject Id"
          }
        },
        "type": "object",
        "required": [
          "community_id",
          "subject_type",
          "subject_id"
        ],
        "title": "SubjectReadRequest",
        "description": "The item its reader just opened."
      },
      "SubjectReadResponse": {
        "properties": {
          "comment_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Comment Ids"
          },
          "since": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Since"
          }
        },
        "type": "object",
        "required": [
          "comment_ids",
          "since"
        ],
        "title": "SubjectReadResponse",
        "description": "What was unread on the item, for its page to show for this visit."
      },
      "SummaryAnswer": {
        "properties": {
          "question": {
            "type": "string",
            "title": "Question"
          },
          "answered": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Answered"
          },
          "options": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/SummaryOption"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Options"
          }
        },
        "type": "object",
        "required": [
          "question"
        ],
        "title": "SummaryAnswer",
        "description": "One question of a form or a poll, and how it was answered: a choice's\noptions with how many picked each, or how many answered anything else."
      },
      "SummaryCard": {
        "properties": {
          "title": {
            "type": "string",
            "title": "Title"
          },
          "chips": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Chips"
          },
          "date": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Date"
          },
          "date_only": {
            "type": "boolean",
            "title": "Date Only",
            "default": false
          },
          "late": {
            "type": "boolean",
            "title": "Late",
            "default": false
          },
          "open": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SummaryThing"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "title"
        ],
        "title": "SummaryCard"
      },
      "SummaryCheck": {
        "properties": {
          "text": {
            "type": "string",
            "title": "Text"
          },
          "done": {
            "type": "boolean",
            "title": "Done"
          }
        },
        "type": "object",
        "required": [
          "text",
          "done"
        ],
        "title": "SummaryCheck"
      },
      "SummaryColumn": {
        "properties": {
          "label": {
            "type": "string",
            "title": "Label"
          },
          "cards": {
            "items": {
              "$ref": "#/components/schemas/SummaryCard"
            },
            "type": "array",
            "title": "Cards"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "label",
          "cards",
          "total"
        ],
        "title": "SummaryColumn",
        "description": "A board's column: its cards, and how many it holds when it draws\nfewer."
      },
      "SummaryField": {
        "properties": {
          "key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Key"
          },
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Label"
          },
          "type": {
            "type": "string",
            "enum": [
              "text",
              "number",
              "date",
              "day",
              "boolean",
              "names"
            ],
            "title": "Type"
          },
          "value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Value"
          },
          "late": {
            "type": "boolean",
            "title": "Late",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "type"
        ],
        "title": "SummaryField",
        "description": "One fact about the thing. A field of the tool's own carries ``key``,\nwhich the widget names in its own words; a property or a plug-in's field\ncarries its own name as ``label``."
      },
      "SummaryList": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SummaryCard"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total"
        ],
        "title": "SummaryList",
        "description": "Things one under another, and how many there are in all, the ones the\nreader cannot open counted too."
      },
      "SummaryOption": {
        "properties": {
          "label": {
            "type": "string",
            "title": "Label"
          },
          "count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Count"
          }
        },
        "type": "object",
        "required": [
          "label"
        ],
        "title": "SummaryOption"
      },
      "SummaryProgress": {
        "properties": {
          "done": {
            "type": "integer",
            "title": "Done"
          },
          "total": {
            "type": "integer",
            "title": "Total"
          }
        },
        "type": "object",
        "required": [
          "done",
          "total"
        ],
        "title": "SummaryProgress"
      },
      "SummaryRead": {
        "properties": {
          "thing": {
            "$ref": "#/components/schemas/SummaryThing"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "section_missing": {
            "type": "boolean",
            "title": "Section Missing",
            "default": false
          },
          "sections": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sections"
          },
          "fields": {
            "items": {
              "$ref": "#/components/schemas/SummaryField"
            },
            "type": "array",
            "title": "Fields"
          },
          "picture": {
            "type": "boolean",
            "title": "Picture",
            "default": false
          },
          "progress": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SummaryProgress"
              },
              {
                "type": "null"
              }
            ]
          },
          "text": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SummaryText"
              },
              {
                "type": "null"
              }
            ]
          },
          "checklist": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/SummaryCheck"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Checklist"
          },
          "board": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/SummaryColumn"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Board"
          },
          "entries": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SummaryList"
              },
              {
                "type": "null"
              }
            ]
          },
          "tables": {
            "items": {
              "$ref": "#/components/schemas/SummaryTable"
            },
            "type": "array",
            "title": "Tables"
          },
          "answers": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/SummaryAnswer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Answers"
          }
        },
        "type": "object",
        "required": [
          "thing",
          "name"
        ],
        "title": "SummaryRead"
      },
      "SummaryTable": {
        "properties": {
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "columns": {
            "items": {
              "$ref": "#/components/schemas/SummaryTableColumn"
            },
            "type": "array",
            "title": "Columns"
          },
          "rows": {
            "items": {
              "items": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "type": "array"
            },
            "type": "array",
            "title": "Rows"
          },
          "truncated": {
            "type": "boolean",
            "title": "Truncated",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "columns",
          "rows"
        ],
        "title": "SummaryTable"
      },
      "SummaryTableColumn": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "type": {
            "type": "string",
            "enum": [
              "text",
              "number",
              "date",
              "day",
              "boolean",
              "names"
            ],
            "title": "Type"
          }
        },
        "type": "object",
        "required": [
          "name",
          "type"
        ],
        "title": "SummaryTableColumn"
      },
      "SummaryText": {
        "properties": {
          "markdown": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Markdown"
          },
          "doc": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Doc"
          },
          "truncated": {
            "type": "boolean",
            "title": "Truncated",
            "default": false
          }
        },
        "type": "object",
        "title": "SummaryText",
        "description": "A description, as Markdown, or a page, as the editor's state. Mentions\nare names and references their words by now; ``truncated`` when the page\nwent on past what a summary carries."
      },
      "SummaryThing": {
        "properties": {
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "anchor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Anchor"
          }
        },
        "type": "object",
        "required": [
          "community_id",
          "kind",
          "id"
        ],
        "title": "SummaryThing",
        "description": "What opening the summary, or one of its cards, shows: an item, and on\na page, the heading to open it at."
      },
      "TagBulkEditRequest": {
        "properties": {
          "target_type": {
            "type": "string",
            "title": "Target Type"
          },
          "target_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 500,
            "minItems": 1,
            "title": "Target Ids"
          },
          "add_tag_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 100,
            "title": "Add Tag Ids"
          },
          "remove_tag_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 100,
            "title": "Remove Tag Ids"
          }
        },
        "type": "object",
        "required": [
          "target_type",
          "target_ids"
        ],
        "title": "TagBulkEditRequest",
        "description": "Add and/or remove tags across many entities of one type, atomically.\n``target_type`` is a taggable kind the community has: a tool, a built-in\ntool's taggable item (``app.core.tools.TAG_TARGETS``), or a kind of an\ninstalled tool plug-in."
      },
      "TagBulkEditResponse": {
        "properties": {
          "updated_count": {
            "type": "integer",
            "title": "Updated Count"
          }
        },
        "type": "object",
        "required": [
          "updated_count"
        ],
        "title": "TagBulkEditResponse"
      },
      "TagCreate": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name"
          },
          "color": {
            "type": "string",
            "title": "Color",
            "default": "#6366F1"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "TagCreate"
      },
      "TagEntityCountsResponse": {
        "properties": {
          "counts": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Counts"
          }
        },
        "type": "object",
        "required": [
          "counts"
        ],
        "title": "TagEntityCountsResponse",
        "description": "Response for GET /tags/{id}/counts \u2014 how many things of each taggable\nkind carry the tag, keyed by kind. A kind with none is absent."
      },
      "TagRead": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name"
          },
          "color": {
            "type": "string",
            "title": "Color",
            "default": "#6366F1"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id",
            "x-identity": "community"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "name",
          "color",
          "id",
          "community_id",
          "created_at",
          "updated_at"
        ],
        "title": "TagRead"
      },
      "TagSetRequest": {
        "properties": {
          "tag_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 100,
            "title": "Tag Ids"
          }
        },
        "type": "object",
        "title": "TagSetRequest",
        "description": "Request body for setting tags on an entity."
      },
      "TagSummary": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "color": {
            "type": "string",
            "title": "Color"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "color"
        ],
        "title": "TagSummary",
        "description": "Lightweight tag representation for embedding in other schemas."
      },
      "TagUpdate": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          }
        },
        "type": "object",
        "title": "TagUpdate"
      },
      "TaggedEntitiesResponse": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/TaggedEntity"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items"
        ],
        "title": "TaggedEntitiesResponse",
        "description": "Response for GET /tags/{id}/entities \u2014 one page of the things of one\ntaggable kind carrying a tag."
      },
      "TaggedEntity": {
        "properties": {
          "entity_type": {
            "type": "string",
            "title": "Entity Type"
          },
          "entity_id": {
            "type": "integer",
            "title": "Entity Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "snippet": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Snippet"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "tool": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool"
          },
          "tool_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool Id"
          },
          "tool_title": {
            "type": "string",
            "title": "Tool Title",
            "default": ""
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "entity_type",
          "entity_id",
          "title",
          "snippet",
          "initiative_id",
          "tool",
          "tool_id",
          "tool_title",
          "updated_at"
        ],
        "title": "TaggedEntity",
        "description": "One thing carrying a tag: a search hit's address, plus the name of the\ntool it lives in and when it last changed, which a table of them shows."
      },
      "TaskAssigneeSummary": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id",
            "x-identity": "person"
          },
          "username": {
            "type": "string",
            "title": "Username"
          },
          "discriminator": {
            "type": "integer",
            "title": "Discriminator"
          },
          "display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Display Name"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "status": {
            "$ref": "#/components/schemas/UserStatus",
            "default": "active"
          }
        },
        "type": "object",
        "required": [
          "id",
          "username",
          "discriminator",
          "display_name",
          "avatar_url",
          "status"
        ],
        "title": "TaskAssigneeSummary",
        "description": "Minimal assignee data for task lists.\n\nA person appears here, so it follows the same two rules every other\nguild-scoped shape does: the handle is always present and is what renders\nwhen there is no name to show, and ``display_name`` is the name the person\nset in this guild.",
        "x-person": true
      },
      "TaskCaseRead": {
        "properties": {
          "stream": {
            "$ref": "#/components/schemas/IntakeStream"
          },
          "opened_at": {
            "type": "string",
            "format": "date-time",
            "title": "Opened At"
          },
          "filer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UserPublic"
              },
              {
                "type": "null"
              }
            ]
          },
          "filer_subject": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Filer Subject"
          },
          "topic": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Topic"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "awaiting_filer_status_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Awaiting Filer Status Id"
          },
          "active_status_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Active Status Id"
          },
          "messages": {
            "items": {
              "$ref": "#/components/schemas/CaseMessageRead"
            },
            "type": "array",
            "title": "Messages"
          },
          "evidence": {
            "items": {
              "$ref": "#/components/schemas/CaseEvidenceRead"
            },
            "type": "array",
            "title": "Evidence"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/AccessGrantRead"
            },
            "type": "array",
            "title": "Grants"
          },
          "votes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Votes"
          },
          "ideas_board_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ideas Board Id"
          },
          "joined_idea": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CaseIdeaRead"
              },
              {
                "type": "null"
              }
            ]
          },
          "subject_community_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subject Community Id"
          },
          "resource_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resource Type"
          },
          "resource_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resource Id"
          }
        },
        "type": "object",
        "required": [
          "stream",
          "opened_at",
          "conversation"
        ],
        "title": "TaskCaseRead",
        "description": "How an operations case was filed, for the people working it."
      },
      "TaskColumnFieldId": {
        "type": "string",
        "enum": [
          "title",
          "type",
          "assignees",
          "startDate",
          "dueDate",
          "priority",
          "comments",
          "tags"
        ],
        "title": "TaskColumnFieldId"
      },
      "TaskCreate": {
        "properties": {
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertyValueInput"
            },
            "type": "array",
            "title": "Properties"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "priority": {
            "$ref": "#/components/schemas/TaskPriority",
            "default": "medium"
          },
          "start_date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Start Date"
          },
          "due_date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Due Date"
          },
          "recurrence": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4000,
                "description": "RFC 5545 recurrence lines: one RRULE, and optional EXDATE and RDATE lines in UTC. The rule's days are as picked in the request's tz, or UTC days without one. POST /recurrence/preview lists its next starts."
              },
              {
                "type": "null"
              }
            ],
            "title": "Recurrence"
          },
          "recurrence_strategy": {
            "$ref": "#/components/schemas/RecurrenceStrategy",
            "default": "fixed"
          },
          "recurrence_limit": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 24.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Recurrence Limit"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "project_id": {
            "type": "integer",
            "title": "Project Id"
          },
          "tz": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Tz"
          },
          "assignee_ids": {
            "items": {
              "type": "integer",
              "x-identity": "person"
            },
            "type": "array",
            "title": "Assignee Ids"
          },
          "task_status_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Task Status Id"
          },
          "task_type_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Task Type Id"
          },
          "tag_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 100,
            "title": "Tag Ids"
          },
          "checklist": {
            "items": {
              "$ref": "#/components/schemas/ChecklistItemInput"
            },
            "type": "array",
            "title": "Checklist"
          },
          "parent_task_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Parent Task Id"
          }
        },
        "type": "object",
        "required": [
          "title",
          "project_id"
        ],
        "title": "TaskCreate"
      },
      "TaskDetailFieldId": {
        "type": "string",
        "enum": [
          "title",
          "type",
          "description",
          "assignees",
          "recurrence",
          "checklist",
          "priority",
          "tags"
        ],
        "title": "TaskDetailFieldId"
      },
      "TaskEdgeRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "source_id": {
            "type": "integer",
            "title": "Source Id"
          },
          "target_id": {
            "type": "integer",
            "title": "Target Id"
          },
          "relationship_type": {
            "$ref": "#/components/schemas/RelationshipType"
          }
        },
        "type": "object",
        "required": [
          "id",
          "source_id",
          "target_id",
          "relationship_type"
        ],
        "title": "TaskEdgeRead",
        "description": "One edge from or to a task of a project, as it is stored: the source\ndepends on, is part of, or is related to the target."
      },
      "TaskEdgesRead": {
        "properties": {
          "edges": {
            "items": {
              "$ref": "#/components/schemas/TaskEdgeRead"
            },
            "type": "array",
            "title": "Edges"
          },
          "others": {
            "items": {
              "$ref": "#/components/schemas/LinkedTaskRead"
            },
            "type": "array",
            "title": "Others"
          }
        },
        "type": "object",
        "required": [
          "edges",
          "others"
        ],
        "title": "TaskEdgesRead",
        "description": "A project's task edges, and the other projects' tasks they reach."
      },
      "TaskFieldId": {
        "type": "string",
        "enum": [
          "title",
          "type",
          "description",
          "assignees",
          "startDate",
          "dueDate",
          "recurrence",
          "checklist",
          "priority",
          "comments",
          "blockers",
          "tags"
        ],
        "title": "TaskFieldId",
        "description": "A task's built-in fields, by the ids the renderer keys them by. An enum\nrather than a ``Literal`` so the generated client names the set."
      },
      "TaskFilterSpec": {
        "properties": {
          "status_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 50,
            "title": "Status Ids"
          },
          "status_categories": {
            "items": {
              "$ref": "#/components/schemas/TaskStatusCategory"
            },
            "type": "array",
            "title": "Status Categories"
          },
          "type_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 50,
            "title": "Type Ids"
          },
          "priorities": {
            "items": {
              "$ref": "#/components/schemas/TaskPriority"
            },
            "type": "array",
            "title": "Priorities"
          },
          "community_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 50,
            "title": "Community Ids"
          },
          "assignees": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 25,
            "title": "Assignees"
          },
          "tag_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 25,
            "title": "Tag Ids"
          },
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PresetPropertyFilter"
            },
            "type": "array",
            "maxItems": 5,
            "title": "Properties"
          },
          "plugins": {
            "items": {
              "$ref": "#/components/schemas/PresetPluginFilter"
            },
            "type": "array",
            "maxItems": 5,
            "title": "Plugins"
          },
          "due": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "overdue",
                  "today",
                  "7_days",
                  "30_days"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Due"
          },
          "include_archived": {
            "type": "boolean",
            "title": "Include Archived",
            "default": false
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "TaskFilterSpec",
        "description": "The task filters a preset holds, the shape every task list filters by.\nUnknown keys are refused."
      },
      "TaskListRead": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_kind": {
            "$ref": "#/components/schemas/ActorKind"
          },
          "created_by_install": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Install"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "priority": {
            "$ref": "#/components/schemas/TaskPriority",
            "default": "medium"
          },
          "start_date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Start Date"
          },
          "due_date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Due Date"
          },
          "recurrence": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Recurrence"
          },
          "recurrence_strategy": {
            "$ref": "#/components/schemas/RecurrenceStrategy",
            "default": "fixed"
          },
          "recurrence_limit": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 24.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Recurrence Limit"
          },
          "description_excerpt": {
            "anyOf": [
              {
                "type": "string",
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Excerpt"
          },
          "has_description": {
            "type": "boolean",
            "title": "Has Description",
            "default": false
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "project_id": {
            "type": "integer",
            "title": "Project Id"
          },
          "task_status_id": {
            "type": "integer",
            "title": "Task Status Id"
          },
          "task_status": {
            "$ref": "#/components/schemas/TaskStatusRead"
          },
          "task_type_id": {
            "type": "integer",
            "title": "Task Type Id"
          },
          "task_type": {
            "$ref": "#/components/schemas/TaskTypeRead"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed At"
          },
          "position": {
            "type": "number",
            "title": "Position"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "assignees": {
            "items": {
              "$ref": "#/components/schemas/TaskAssigneeSummary"
            },
            "type": "array",
            "title": "Assignees",
            "default": []
          },
          "recurrence_occurrence_count": {
            "type": "integer",
            "title": "Recurrence Occurrence Count",
            "default": 0
          },
          "recurrence_shift": {
            "type": "integer",
            "title": "Recurrence Shift",
            "default": 0
          },
          "recurrence_anchor": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Recurrence Anchor"
          },
          "recurrence_anchor_count": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Recurrence Anchor Count",
            "default": 0
          },
          "recurrence_until": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Recurrence Until"
          },
          "comment_count": {
            "type": "integer",
            "title": "Comment Count",
            "default": 0
          },
          "blocked_by_open_count": {
            "type": "integer",
            "title": "Blocked By Open Count",
            "default": 0
          },
          "community_id": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "community"
              },
              {
                "type": "null"
              }
            ],
            "title": "Community Id"
          },
          "community_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Community Name"
          },
          "project_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Name"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "initiative_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Name"
          },
          "initiative_color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Color"
          },
          "checklist_progress": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ChecklistProgress"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaskParentSummary"
              },
              {
                "type": "null"
              }
            ]
          },
          "subtask_progress": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ChecklistProgress"
              },
              {
                "type": "null"
              }
            ]
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagSummary"
            },
            "type": "array",
            "title": "Tags",
            "default": []
          },
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertySummary"
            },
            "type": "array",
            "title": "Properties",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "created_by",
          "created_by_kind",
          "created_by_install",
          "title",
          "priority",
          "start_date",
          "due_date",
          "recurrence",
          "recurrence_strategy",
          "recurrence_limit",
          "description_excerpt",
          "has_description",
          "id",
          "project_id",
          "task_status_id",
          "task_status",
          "task_type_id",
          "task_type",
          "created_at",
          "updated_at",
          "completed_at",
          "position",
          "archived_at",
          "assignees",
          "recurrence_occurrence_count",
          "recurrence_shift",
          "recurrence_anchor",
          "recurrence_anchor_count",
          "recurrence_until",
          "comment_count",
          "blocked_by_open_count",
          "community_id",
          "community_name",
          "project_name",
          "initiative_id",
          "initiative_name",
          "initiative_color",
          "checklist_progress",
          "parent",
          "subtask_progress",
          "tags",
          "properties"
        ],
        "title": "TaskListRead",
        "description": "Lightweight schema for task list endpoints - excludes heavy nested data"
      },
      "TaskListResponse": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/TaskListRead"
            },
            "type": "array",
            "title": "Items"
          },
          "sorting": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sorting"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items",
          "sorting"
        ],
        "title": "TaskListResponse"
      },
      "TaskMoveRequest": {
        "properties": {
          "target_project_id": {
            "type": "integer",
            "exclusiveMinimum": 0.0,
            "title": "Target Project Id"
          },
          "changes": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaskUpdate"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "target_project_id"
        ],
        "title": "TaskMoveRequest"
      },
      "TaskParentSummary": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "title": {
            "type": "string",
            "title": "Title"
          }
        },
        "type": "object",
        "required": [
          "id",
          "title"
        ],
        "title": "TaskParentSummary",
        "description": "The task a task is part of: the target of its ``part_of`` edge."
      },
      "TaskPriority": {
        "type": "string",
        "enum": [
          "low",
          "medium",
          "high",
          "urgent"
        ],
        "title": "TaskPriority"
      },
      "TaskProjectSummary": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "initiative": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InitiativeSummary"
              },
              {
                "type": "null"
              }
            ]
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "is_template": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Template"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "icon",
          "initiative_id",
          "initiative",
          "archived_at",
          "is_template"
        ],
        "title": "TaskProjectSummary"
      },
      "TaskRead": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_kind": {
            "$ref": "#/components/schemas/ActorKind"
          },
          "created_by_install": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Install"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "priority": {
            "$ref": "#/components/schemas/TaskPriority",
            "default": "medium"
          },
          "start_date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Start Date"
          },
          "due_date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Due Date"
          },
          "recurrence": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Recurrence"
          },
          "recurrence_strategy": {
            "$ref": "#/components/schemas/RecurrenceStrategy",
            "default": "fixed"
          },
          "recurrence_limit": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 24.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Recurrence Limit"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "project_id": {
            "type": "integer",
            "title": "Project Id"
          },
          "task_status_id": {
            "type": "integer",
            "title": "Task Status Id"
          },
          "task_status": {
            "$ref": "#/components/schemas/TaskStatusRead"
          },
          "task_type_id": {
            "type": "integer",
            "title": "Task Type Id"
          },
          "task_type": {
            "$ref": "#/components/schemas/TaskTypeRead"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed At"
          },
          "position": {
            "type": "number",
            "title": "Position"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "creator": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UserPublic"
              },
              {
                "type": "null"
              }
            ]
          },
          "assignees": {
            "items": {
              "$ref": "#/components/schemas/UserPublic"
            },
            "type": "array",
            "title": "Assignees",
            "default": []
          },
          "recurrence_occurrence_count": {
            "type": "integer",
            "title": "Recurrence Occurrence Count",
            "default": 0
          },
          "recurrence_shift": {
            "type": "integer",
            "title": "Recurrence Shift",
            "default": 0
          },
          "recurrence_anchor": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Recurrence Anchor"
          },
          "recurrence_anchor_count": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Recurrence Anchor Count",
            "default": 0
          },
          "recurrence_until": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Recurrence Until"
          },
          "series_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Series Id"
          },
          "series_size": {
            "type": "integer",
            "title": "Series Size",
            "default": 1
          },
          "comment_count": {
            "type": "integer",
            "title": "Comment Count",
            "default": 0
          },
          "blocked_by_open_count": {
            "type": "integer",
            "title": "Blocked By Open Count",
            "default": 0
          },
          "project": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaskProjectSummary"
              },
              {
                "type": "null"
              }
            ]
          },
          "checklist": {
            "items": {
              "$ref": "#/components/schemas/ChecklistItem"
            },
            "type": "array",
            "title": "Checklist",
            "default": []
          },
          "checklist_progress": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ChecklistProgress"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaskParentSummary"
              },
              {
                "type": "null"
              }
            ]
          },
          "subtask_progress": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ChecklistProgress"
              },
              {
                "type": "null"
              }
            ]
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagSummary"
            },
            "type": "array",
            "title": "Tags",
            "default": []
          },
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertySummary"
            },
            "type": "array",
            "title": "Properties",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "created_by",
          "created_by_kind",
          "created_by_install",
          "title",
          "priority",
          "start_date",
          "due_date",
          "recurrence",
          "recurrence_strategy",
          "recurrence_limit",
          "description",
          "id",
          "project_id",
          "task_status_id",
          "task_status",
          "task_type_id",
          "task_type",
          "created_at",
          "updated_at",
          "completed_at",
          "position",
          "archived_at",
          "creator",
          "assignees",
          "recurrence_occurrence_count",
          "recurrence_shift",
          "recurrence_anchor",
          "recurrence_anchor_count",
          "recurrence_until",
          "series_id",
          "series_size",
          "comment_count",
          "blocked_by_open_count",
          "project",
          "checklist",
          "checklist_progress",
          "parent",
          "subtask_progress",
          "tags",
          "properties"
        ],
        "title": "TaskRead"
      },
      "TaskReorderItem": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "task_status_id": {
            "type": "integer",
            "title": "Task Status Id"
          },
          "position": {
            "type": "number",
            "maximum": 1e+18,
            "minimum": -1e+18,
            "title": "Position"
          }
        },
        "type": "object",
        "required": [
          "id",
          "task_status_id",
          "position"
        ],
        "title": "TaskReorderItem"
      },
      "TaskReorderRequest": {
        "properties": {
          "project_id": {
            "type": "integer",
            "title": "Project Id"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/TaskReorderItem"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "project_id",
          "items"
        ],
        "title": "TaskReorderRequest"
      },
      "TaskStatusCategory": {
        "type": "string",
        "enum": [
          "backlog",
          "todo",
          "in_progress",
          "done"
        ],
        "title": "TaskStatusCategory"
      },
      "TaskStatusCreate": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name"
          },
          "category": {
            "$ref": "#/components/schemas/TaskStatusCategory"
          },
          "position": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Position"
          },
          "is_default": {
            "type": "boolean",
            "title": "Is Default",
            "default": false
          },
          "color": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 9,
                "minLength": 3
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          }
        },
        "type": "object",
        "required": [
          "name",
          "category"
        ],
        "title": "TaskStatusCreate"
      },
      "TaskStatusDeleteRequest": {
        "properties": {
          "fallback_status_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fallback Status Id"
          }
        },
        "type": "object",
        "title": "TaskStatusDeleteRequest"
      },
      "TaskStatusRead": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name"
          },
          "category": {
            "$ref": "#/components/schemas/TaskStatusCategory"
          },
          "position": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Position"
          },
          "is_default": {
            "type": "boolean",
            "title": "Is Default",
            "default": false
          },
          "color": {
            "type": "string",
            "maxLength": 9,
            "minLength": 3,
            "title": "Color"
          },
          "icon": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1,
            "title": "Icon"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "project_id": {
            "type": "integer",
            "title": "Project Id"
          }
        },
        "type": "object",
        "required": [
          "name",
          "category",
          "position",
          "is_default",
          "color",
          "icon",
          "id",
          "project_id"
        ],
        "title": "TaskStatusRead"
      },
      "TaskStatusReorderItem": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          }
        },
        "type": "object",
        "required": [
          "id",
          "position"
        ],
        "title": "TaskStatusReorderItem"
      },
      "TaskStatusReorderRequest": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/TaskStatusReorderItem"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "TaskStatusReorderRequest"
      },
      "TaskStatusUpdate": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "category": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaskStatusCategory"
              },
              {
                "type": "null"
              }
            ]
          },
          "position": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Position"
          },
          "is_default": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Default"
          },
          "color": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 9,
                "minLength": 3
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          }
        },
        "type": "object",
        "title": "TaskStatusUpdate"
      },
      "TaskTypeCopyRequest": {
        "properties": {
          "source_project_id": {
            "type": "integer",
            "exclusiveMinimum": 0.0,
            "title": "Source Project Id"
          },
          "type_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array",
                "maxItems": 50
              },
              {
                "type": "null"
              }
            ],
            "title": "Type Ids"
          }
        },
        "type": "object",
        "required": [
          "source_project_id"
        ],
        "title": "TaskTypeCopyRequest",
        "description": "Copy types from another project: each with its look, its page and its\nstarting values. One whose name the project already has is left out."
      },
      "TaskTypeCreate": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name"
          },
          "position": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Position"
          },
          "is_default": {
            "type": "boolean",
            "title": "Is Default",
            "default": false
          },
          "color": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 9,
                "minLength": 3
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "start_from_type_id": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Start From Type Id"
          },
          "gallery_key": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(milestone|event|appointment|chore|errand|bill|shift|purchase|question|idea|request|bug|feature|art|playtest|assignment|reading)$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Gallery Key"
          },
          "layout_preset": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(plain|fix|discussion|dates|repeat|checklist)$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Layout Preset"
          },
          "starting_values": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaskTypeStartingValues"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "TaskTypeCreate"
      },
      "TaskTypeCreated": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "project_id": {
            "type": "integer",
            "title": "Project Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          },
          "is_default": {
            "type": "boolean",
            "title": "Is Default"
          },
          "color": {
            "type": "string",
            "title": "Color"
          },
          "icon": {
            "type": "string",
            "title": "Icon"
          },
          "layout_preset": {
            "type": "string",
            "title": "Layout Preset"
          },
          "starting_values": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaskTypeStartingValues"
              },
              {
                "type": "null"
              }
            ]
          },
          "field_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Field Ids"
          }
        },
        "type": "object",
        "required": [
          "id",
          "project_id",
          "name",
          "position",
          "is_default",
          "color",
          "icon",
          "layout_preset",
          "starting_values",
          "field_ids"
        ],
        "title": "TaskTypeCreated",
        "description": "A type just added, and the fields it brought from the gallery (the\ninitiative's properties it created or reused), for its page to place."
      },
      "TaskTypeDeleteRequest": {
        "properties": {
          "fallback_type_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fallback Type Id"
          }
        },
        "type": "object",
        "title": "TaskTypeDeleteRequest"
      },
      "TaskTypeGalleryEntry": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "hint": {
            "type": "string",
            "title": "Hint"
          },
          "icon": {
            "type": "string",
            "title": "Icon"
          },
          "color": {
            "type": "string",
            "title": "Color"
          },
          "layout_preset": {
            "type": "string",
            "title": "Layout Preset"
          },
          "fields": {
            "items": {
              "$ref": "#/components/schemas/TaskTypeGalleryField"
            },
            "type": "array",
            "title": "Fields"
          },
          "starting_values": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaskTypeStartingValues"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "key",
          "name",
          "hint",
          "icon",
          "color",
          "layout_preset",
          "fields"
        ],
        "title": "TaskTypeGalleryEntry",
        "description": "One ready-made type, in the reader's language."
      },
      "TaskTypeGalleryField": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "type": {
            "type": "string",
            "title": "Type"
          }
        },
        "type": "object",
        "required": [
          "name",
          "type"
        ],
        "title": "TaskTypeGalleryField"
      },
      "TaskTypeGalleryGroup": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "entries": {
            "items": {
              "$ref": "#/components/schemas/TaskTypeGalleryEntry"
            },
            "type": "array",
            "title": "Entries"
          }
        },
        "type": "object",
        "required": [
          "key",
          "name",
          "entries"
        ],
        "title": "TaskTypeGalleryGroup"
      },
      "TaskTypeRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "project_id": {
            "type": "integer",
            "title": "Project Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          },
          "is_default": {
            "type": "boolean",
            "title": "Is Default"
          },
          "color": {
            "type": "string",
            "title": "Color"
          },
          "icon": {
            "type": "string",
            "title": "Icon"
          },
          "layout_preset": {
            "type": "string",
            "title": "Layout Preset"
          },
          "starting_values": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaskTypeStartingValues"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "id",
          "project_id",
          "name",
          "position",
          "is_default",
          "color",
          "icon",
          "layout_preset",
          "starting_values"
        ],
        "title": "TaskTypeRead",
        "description": "One kind of task in a project, and the shape its page is drawn as until\nthe page is changed."
      },
      "TaskTypeReorderItem": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "position": {
            "type": "integer",
            "title": "Position"
          }
        },
        "type": "object",
        "required": [
          "id",
          "position"
        ],
        "title": "TaskTypeReorderItem"
      },
      "TaskTypeReorderRequest": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/TaskTypeReorderItem"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "TaskTypeReorderRequest"
      },
      "TaskTypeStartingValues": {
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string",
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "checklist": {
            "items": {
              "type": "string",
              "maxLength": 2000,
              "minLength": 1,
              "x-mentions": "markdown"
            },
            "type": "array",
            "maxItems": 50,
            "title": "Checklist"
          },
          "priority": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaskPriority"
              },
              {
                "type": "null"
              }
            ]
          },
          "recurrence": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4000,
                "description": "RFC 5545 recurrence lines: one RRULE, and optional EXDATE and RDATE lines in UTC. The rule's days are as picked in the request's tz, or UTC days without one. POST /recurrence/preview lists its next starts."
              },
              {
                "type": "null"
              }
            ],
            "title": "Recurrence"
          },
          "recurrence_strategy": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecurrenceStrategy"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "title": "TaskTypeStartingValues",
        "description": "What a new task of a type starts with, field by field, where whoever\nmakes it leaves that field empty. A repeat starts only on a task with a\ndate to count from."
      },
      "TaskTypeUpdate": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "position": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Position"
          },
          "is_default": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Default"
          },
          "color": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 9,
                "minLength": 3
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          },
          "icon": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Icon"
          },
          "layout_preset": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^(plain|fix|discussion|dates|repeat|checklist)$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Layout Preset"
          },
          "starting_values": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaskTypeStartingValues"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "title": "TaskTypeUpdate"
      },
      "TaskUpdate": {
        "properties": {
          "properties": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/PropertyValueInput"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Properties"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "description_base": {
            "anyOf": [
              {
                "type": "string",
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Base"
          },
          "task_status_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Task Status Id"
          },
          "task_type_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Task Type Id"
          },
          "status_category": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaskStatusCategory"
              },
              {
                "type": "null"
              }
            ]
          },
          "priority": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TaskPriority"
              },
              {
                "type": "null"
              }
            ]
          },
          "assignee_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer",
                  "x-identity": "person"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assignee Ids"
          },
          "add_assignee_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer",
                  "x-identity": "person"
                },
                "type": "array",
                "maxItems": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Add Assignee Ids"
          },
          "remove_assignee_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer",
                  "x-identity": "person"
                },
                "type": "array",
                "maxItems": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Remove Assignee Ids"
          },
          "start_date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Start Date"
          },
          "due_date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Due Date"
          },
          "recurrence": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4000,
                "description": "RFC 5545 recurrence lines: one RRULE, and optional EXDATE and RDATE lines in UTC. The rule's days are as picked in the request's tz, or UTC days without one. POST /recurrence/preview lists its next starts."
              },
              {
                "type": "null"
              }
            ],
            "title": "Recurrence"
          },
          "tz": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Tz"
          },
          "recurrence_strategy": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecurrenceStrategy"
              },
              {
                "type": "null"
              }
            ]
          },
          "recurrence_limit": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 24.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Recurrence Limit"
          },
          "merge_properties": {
            "type": "boolean",
            "title": "Merge Properties",
            "default": false
          },
          "tag_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array",
                "maxItems": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Tag Ids"
          },
          "checklist": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ChecklistItemInput"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Checklist"
          },
          "parent_task_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Parent Task Id"
          },
          "scope": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "this",
                  "following",
                  "all"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Scope"
          }
        },
        "type": "object",
        "title": "TaskUpdate"
      },
      "Theme": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "colors": {
            "$ref": "#/components/schemas/ThemeColors"
          },
          "fonts": {
            "$ref": "#/components/schemas/ThemeFonts"
          }
        },
        "type": "object",
        "required": [
          "name",
          "colors",
          "fonts"
        ],
        "title": "Theme",
        "description": "A document's or a spreadsheet's colors and fonts, under its name: the\nbrand's roles, each with its value. A file keeps a copy of its own, of a\nbuilt-in theme or of one somebody made; a person keeps the ones they made\non their account."
      },
      "ThemeColors": {
        "properties": {
          "primary": {
            "type": "string",
            "title": "Primary"
          },
          "secondary": {
            "type": "string",
            "title": "Secondary"
          },
          "accent": {
            "type": "string",
            "title": "Accent"
          }
        },
        "type": "object",
        "required": [
          "primary",
          "secondary",
          "accent"
        ],
        "title": "ThemeColors"
      },
      "ThemeFonts": {
        "properties": {
          "heading": {
            "type": "string",
            "title": "Heading"
          },
          "body": {
            "type": "string",
            "title": "Body"
          }
        },
        "type": "object",
        "required": [
          "heading",
          "body"
        ],
        "title": "ThemeFonts",
        "description": "Each by its name: a font the app offers, not an uploaded one."
      },
      "ThemeWrite": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 64,
            "title": "Name"
          },
          "colors": {
            "$ref": "#/components/schemas/ThemeColors"
          },
          "fonts": {
            "$ref": "#/components/schemas/ThemeFonts"
          }
        },
        "type": "object",
        "required": [
          "name",
          "colors",
          "fonts"
        ],
        "title": "ThemeWrite",
        "description": "A theme as somebody sends it, its name held to the rules for a name a\nperson types. What is read back is a ``Theme``, so a theme saved before a\nrule changed stays readable."
      },
      "TicketAccepted": {
        "properties": {
          "accepted": {
            "type": "boolean",
            "title": "Accepted",
            "default": true
          },
          "venue": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReportVenue"
              },
              {
                "type": "null"
              }
            ]
          },
          "platform_contact": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Platform Contact"
          }
        },
        "type": "object",
        "required": [
          "accepted",
          "venue",
          "platform_contact"
        ],
        "title": "TicketAccepted",
        "description": "What the filer is told: that it arrived.\n\nNot who will read it, and for a report not whether one already existed \u2014\na report is not a conversation with the person who sent it, so ``venue``\nis all it says, and only for a report."
      },
      "TicketAvailability": {
        "properties": {
          "security": {
            "$ref": "#/components/schemas/StreamAvailabilityRead"
          },
          "moderation": {
            "$ref": "#/components/schemas/StreamAvailabilityRead"
          },
          "support": {
            "$ref": "#/components/schemas/StreamAvailabilityRead"
          },
          "feedback": {
            "$ref": "#/components/schemas/StreamAvailabilityRead"
          }
        },
        "type": "object",
        "required": [
          "security",
          "moderation",
          "support",
          "feedback"
        ],
        "title": "TicketAvailability",
        "description": "What every stream offers the reader. One entry per stream."
      },
      "TicketMessageRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "mine": {
            "type": "boolean",
            "title": "Mine"
          },
          "content": {
            "type": "string",
            "title": "Content"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "attachments": {
            "items": {
              "$ref": "#/components/schemas/EvidenceRead"
            },
            "type": "array",
            "title": "Attachments"
          }
        },
        "type": "object",
        "required": [
          "id",
          "mine",
          "content",
          "created_at"
        ],
        "title": "TicketMessageRead",
        "description": "One part of the conversation about a case, as its filer reads it.\n\nThe people handling the case are not named here: ``mine`` says whether the\nreader wrote it, and everything else is the team's."
      },
      "TicketMode": {
        "type": "string",
        "enum": [
          "form",
          "email",
          "cloud",
          "none"
        ],
        "title": "TicketMode",
        "description": "What a filing surface offers for a stream."
      },
      "TimelineBucket": {
        "properties": {
          "period": {
            "type": "string",
            "title": "Period"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          },
          "anchor": {
            "type": "string",
            "format": "date-time",
            "title": "Anchor"
          },
          "anchor_oldest": {
            "type": "string",
            "format": "date-time",
            "title": "Anchor Oldest"
          }
        },
        "type": "object",
        "required": [
          "period",
          "count",
          "anchor",
          "anchor_oldest"
        ],
        "title": "TimelineBucket",
        "description": "One period on the rail."
      },
      "TimelineResponse": {
        "properties": {
          "buckets": {
            "items": {
              "$ref": "#/components/schemas/TimelineBucket"
            },
            "type": "array",
            "title": "Buckets"
          }
        },
        "type": "object",
        "required": [
          "buckets"
        ],
        "title": "TimelineResponse"
      },
      "Token": {
        "properties": {
          "access_token": {
            "type": "string",
            "title": "Access Token"
          },
          "token_type": {
            "type": "string",
            "title": "Token Type",
            "default": "bearer"
          },
          "refresh_token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Refresh Token"
          }
        },
        "type": "object",
        "required": [
          "access_token"
        ],
        "title": "Token"
      },
      "Tool": {
        "type": "string",
        "enum": [
          "project",
          "file",
          "calendar",
          "dashboard",
          "post",
          "wiki",
          "contact",
          "form"
        ],
        "title": "Tool"
      },
      "ToolCan": {
        "properties": {
          "edit": {
            "type": "boolean",
            "title": "Edit",
            "default": false
          },
          "contribute": {
            "type": "boolean",
            "title": "Contribute",
            "default": false
          },
          "delete": {
            "type": "boolean",
            "title": "Delete",
            "default": false
          },
          "share": {
            "type": "boolean",
            "title": "Share",
            "default": false
          },
          "export": {
            "type": "boolean",
            "title": "Export",
            "default": false
          },
          "unarchive": {
            "type": "boolean",
            "title": "Unarchive",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "edit",
          "contribute",
          "delete",
          "share",
          "export",
          "unarchive"
        ],
        "title": "ToolCan",
        "description": "What the caller may do to one of a tool's rows\n(``permissions.client_access``)."
      },
      "ToolCommentSettings": {
        "properties": {
          "comments_enabled": {
            "type": "boolean",
            "title": "Comments Enabled"
          }
        },
        "type": "object",
        "required": [
          "comments_enabled"
        ],
        "title": "ToolCommentSettings",
        "description": "The comment switch on one tool entity \u2014 the body and the reply of the\ngeneric ``PUT /tools/{tool}/{tool_id}/comments`` route."
      },
      "ToolCountsByInitiativeResponse": {
        "properties": {
          "counts": {
            "additionalProperties": {
              "additionalProperties": {
                "type": "integer"
              },
              "type": "object"
            },
            "type": "object",
            "title": "Counts"
          }
        },
        "type": "object",
        "required": [
          "counts"
        ],
        "title": "ToolCountsByInitiativeResponse",
        "description": "Each tool's visible-row counts, by initiative (kind -> initiative_id ->\ncount): every built-in tool and each installed tool plug-in \u2014 what the\nsidebar and the initiative directory badge."
      },
      "ToolCountsResponse": {
        "properties": {
          "views": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Views"
          },
          "tag_counts": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "integer"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tag Counts"
          },
          "untagged_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Untagged Count"
          }
        },
        "type": "object",
        "required": [
          "views",
          "tag_counts",
          "untagged_count"
        ],
        "title": "ToolCountsResponse",
        "description": "One tool's page: how many rows sit in each of its views, and the tag\ntree beside the view being shown."
      },
      "ToolDuplicateRequest": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "target_initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Target Initiative Id"
          }
        },
        "type": "object",
        "title": "ToolDuplicateRequest",
        "description": "What a duplicate of any tool may be told. Left out, the copy goes beside\nits source as \"<name> (Copy)\"; in another initiative it keeps the name."
      },
      "ToolLayoutDefaultWrite": {
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "table",
              "board",
              "gantt",
              "calendar",
              "masonry",
              "grid",
              "rows",
              "timeline"
            ],
            "title": "Kind"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "kind"
        ],
        "title": "ToolLayoutDefaultWrite",
        "description": "The list a target opens on."
      },
      "ToolLayoutSetRead": {
        "properties": {
          "layouts": {
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/ListLayoutRead"
                },
                {
                  "$ref": "#/components/schemas/DetailLayoutRead"
                },
                {
                  "$ref": "#/components/schemas/ToolPluginDetailLayoutRead"
                }
              ]
            },
            "type": "array",
            "title": "Layouts"
          },
          "can_configure": {
            "type": "boolean",
            "title": "Can Configure"
          }
        },
        "type": "object",
        "required": [
          "layouts",
          "can_configure"
        ],
        "title": "ToolLayoutSetRead",
        "description": "A target's layouts, one of each kind its tool draws: its lists, then its\nitems, in the order the tool names them."
      },
      "ToolPluginDetailLayoutRead": {
        "properties": {
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "definition": {
            "$ref": "#/components/schemas/DetailLayoutDefinition-Output"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "kind",
          "definition",
          "updated_at"
        ],
        "title": "ToolPluginDetailLayoutRead",
        "description": "How a tool plug-in's table shows one of its rows, named by the table's\nkind: as its plug-in ships it until it is changed."
      },
      "ToolPluginLayoutWrite": {
        "properties": {
          "kind": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "table",
                  "board",
                  "gantt",
                  "calendar",
                  "masonry",
                  "grid",
                  "rows",
                  "timeline"
                ]
              },
              {
                "type": "string"
              }
            ],
            "title": "Kind"
          },
          "definition": {
            "additionalProperties": true,
            "type": "object",
            "title": "Definition"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "kind",
          "definition"
        ],
        "title": "ToolPluginLayoutWrite",
        "description": "One of a tool plug-in's table's layouts as it is changed: a list by its\nkind, or its rows' page by the table's. It names the table's own fields,\nso the table's declaration checks it, where the target is known."
      },
      "ToolReorderRequest": {
        "properties": {
          "ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 500,
            "title": "Ids"
          }
        },
        "type": "object",
        "title": "ToolReorderRequest",
        "description": "The reader's own order for the start of a tool's list: these rows first,\nin this order, and the rest after them where they stood."
      },
      "TrashItem": {
        "properties": {
          "entity_type": {
            "type": "string",
            "title": "Entity Type"
          },
          "entity_id": {
            "type": "integer",
            "title": "Entity Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "deleted_at": {
            "type": "string",
            "format": "date-time",
            "title": "Deleted At"
          },
          "deleted_by_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Deleted By Id"
          },
          "deleted_by_kind": {
            "$ref": "#/components/schemas/ActorKind"
          },
          "deleted_by_display": {
            "type": "string",
            "title": "Deleted By Display"
          },
          "purge_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Purge At"
          }
        },
        "type": "object",
        "required": [
          "entity_type",
          "entity_id",
          "community_id",
          "name",
          "deleted_at",
          "deleted_by_id",
          "deleted_by_kind",
          "deleted_by_display",
          "purge_at"
        ],
        "title": "TrashItem"
      },
      "TrashListResponse": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/TrashItem"
            },
            "type": "array",
            "title": "Items"
          },
          "retention_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Retention Days"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items",
          "retention_days"
        ],
        "title": "TrashListResponse"
      },
      "UnreadPlacesResponse": {
        "properties": {
          "places": {
            "items": {
              "$ref": "#/components/schemas/NotificationPlace"
            },
            "type": "array",
            "title": "Places"
          }
        },
        "type": "object",
        "required": [
          "places"
        ],
        "title": "UnreadPlacesResponse",
        "description": "Where the dots go. No counts anywhere \u2014 the popover shows the list."
      },
      "UploadTokenResponse": {
        "properties": {
          "upload_token": {
            "type": "string",
            "title": "Upload Token"
          },
          "token_type": {
            "type": "string",
            "title": "Token Type",
            "default": "upload_token"
          },
          "expires_in": {
            "type": "integer",
            "title": "Expires In"
          }
        },
        "type": "object",
        "required": [
          "upload_token",
          "token_type",
          "expires_in"
        ],
        "title": "UploadTokenResponse",
        "description": "Short-lived, uploads-scoped credential for native media loads.\n\nNative (Capacitor) <img>/<iframe> tags can't send the Authorization header\nor the HttpOnly session cookie, so they carry auth as a ``?token=`` query\nparam. This token is accepted only by the /uploads + file-download\nroutes and expires quickly; the 7-day session JWT never goes in a URL.\n``expires_in`` is the lifetime in seconds so the SPA can refresh before it\nlapses."
      },
      "UserAction": {
        "type": "string",
        "enum": [
          "rename",
          "remove_avatar",
          "clear_display_names",
          "clear_custom_status",
          "clear_decorations",
          "suspend",
          "unsuspend",
          "change_role",
          "revoke_api_keys",
          "clear_second_factor",
          "sign_out_everywhere",
          "reset_password",
          "resend_verification",
          "lift_sign_in_lock",
          "clear_age_block",
          "reactivate",
          "restore",
          "delete"
        ],
        "title": "UserAction",
        "description": "What the reader may do to one account on the staff roster. Worked out\nby the server per row, from the reader's capabilities, their rung, and\nthe account's state, so a control the reader would be refused is never\ndrawn."
      },
      "UserCommunityMember": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id",
            "x-identity": "person"
          },
          "username": {
            "type": "string",
            "title": "Username"
          },
          "discriminator": {
            "type": "integer",
            "title": "Discriminator"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "status": {
            "$ref": "#/components/schemas/UserStatus"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "initiative_roles": {
            "items": {
              "$ref": "#/components/schemas/UserInitiativeRole"
            },
            "type": "array",
            "title": "Initiative Roles"
          },
          "community_role": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Community Role"
          },
          "oidc_managed": {
            "type": "boolean",
            "title": "Oidc Managed",
            "default": false
          },
          "display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Display Name"
          },
          "api_keys_allowed": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Api Keys Allowed"
          },
          "guest_until": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Guest Until"
          },
          "timed_out_until": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Timed Out Until"
          }
        },
        "type": "object",
        "required": [
          "id",
          "username",
          "discriminator",
          "avatar_url",
          "status",
          "created_at",
          "initiative_roles",
          "community_role",
          "oidc_managed",
          "display_name",
          "api_keys_allowed",
          "guest_until",
          "timed_out_until"
        ],
        "title": "UserCommunityMember",
        "description": "A member, for the guild's own member-management surface.\n\n:class:`UserCommunityRead` plus the membership facts a guild admin manages \u2014\nguild role, whether the membership is OIDC-managed \u2014 and the name they go\nby here. Two members are told apart by their handle, which is unique."
      },
      "UserCommunityMemberListResponse": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/UserCommunityMember"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items"
        ],
        "title": "UserCommunityMemberListResponse",
        "description": "One page of the guild's roster."
      },
      "UserCreate": {
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          },
          "username": {
            "type": "string",
            "maxLength": 64,
            "title": "Username"
          },
          "password": {
            "type": "string",
            "maxLength": 256,
            "title": "Password"
          },
          "timezone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Timezone"
          },
          "captcha_token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Captcha Token"
          },
          "community": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/NewCommunity"
              },
              {
                "type": "null"
              }
            ]
          },
          "username_offer": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1024
              },
              {
                "type": "null"
              }
            ],
            "title": "Username Offer"
          },
          "birthdate": {
            "anyOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "null"
              }
            ],
            "title": "Birthdate"
          },
          "accepted_documents": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 32,
            "title": "Accepted Documents"
          }
        },
        "type": "object",
        "required": [
          "email",
          "username",
          "password"
        ],
        "title": "UserCreate"
      },
      "UserEmailChange": {
        "properties": {
          "current_password": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Password"
          }
        },
        "type": "object",
        "title": "UserEmailChange",
        "description": "Removing an address or making one primary asks for the password, where\nthere is one."
      },
      "UserEmailCreate": {
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          },
          "current_password": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Password"
          }
        },
        "type": "object",
        "required": [
          "email"
        ],
        "title": "UserEmailCreate",
        "description": "Adding an address asks for the password, where there is one."
      },
      "UserEmailListResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/UserEmailRead"
            },
            "type": "array",
            "title": "Items"
          },
          "password_required": {
            "type": "boolean",
            "title": "Password Required"
          }
        },
        "type": "object",
        "required": [
          "items",
          "password_required"
        ],
        "title": "UserEmailListResponse"
      },
      "UserEmailRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          },
          "verified": {
            "type": "boolean",
            "title": "Verified"
          },
          "is_primary": {
            "type": "boolean",
            "title": "Is Primary"
          },
          "source": {
            "type": "string",
            "title": "Source"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "last_login_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Login At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "email",
          "verified",
          "is_primary",
          "source",
          "created_at"
        ],
        "title": "UserEmailRead",
        "description": "One address on the account reading it.\n\nServed only to its owner, so the address is in full \u2014 every other shape\nthat carries one either masks it or does not have it at all."
      },
      "UserIdentity": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id",
            "x-identity": "person"
          },
          "username": {
            "type": "string",
            "title": "Username"
          },
          "discriminator": {
            "type": "integer",
            "title": "Discriminator"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "status": {
            "$ref": "#/components/schemas/UserStatus",
            "default": "active"
          }
        },
        "type": "object",
        "required": [
          "id",
          "username",
          "discriminator",
          "avatar_url",
          "status"
        ],
        "title": "UserIdentity",
        "description": "A person, minus their name.\n\nThe handle (``username`` + ``discriminator``) is always here and is what\nrenders when there is no name to show. ``status`` comes along so the\nfrontend can mark an account that is no longer in use without replacing the\nidentifier that keeps an old thread legible.\n\nEvery shape below is this plus something, and the name is never part of the\n\"this\": a shape that draws a person in a guild declares ``display_name``\nitself."
      },
      "UserInitiativeRole": {
        "properties": {
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "initiative_name": {
            "type": "string",
            "title": "Initiative Name"
          },
          "role": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Role"
          }
        },
        "type": "object",
        "required": [
          "initiative_id",
          "initiative_name"
        ],
        "title": "UserInitiativeRole"
      },
      "UserProfile": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "username": {
            "type": "string",
            "title": "Username"
          },
          "discriminator": {
            "type": "integer",
            "title": "Discriminator"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "status": {
            "$ref": "#/components/schemas/UserStatus",
            "default": "active"
          },
          "custom_status": {
            "$ref": "#/components/schemas/CustomStatus-Output"
          },
          "profile_decorations": {
            "$ref": "#/components/schemas/ProfileDecorations-Output"
          },
          "presence": {
            "$ref": "#/components/schemas/Presence",
            "default": "offline"
          },
          "joined_at": {
            "type": "string",
            "format": "date-time",
            "title": "Joined At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "username",
          "discriminator",
          "avatar_url",
          "status",
          "custom_status",
          "profile_decorations",
          "presence",
          "joined_at"
        ],
        "title": "UserProfile",
        "description": "A person, as anyone can see them.\n\nA profile is public. It carries the handle \u2014 which is the name in this\nproduct, unique and never withheld \u2014 the face, the line they wrote, the\nlook they picked, how they appear right now, and when they joined. The name\na member goes by is a guild's business, and this shape has no guild in it.\n\nNothing here is private to a guild, so nothing here is reached through\none. What it does not carry is the whole point of it being its own shape:\nno address, no roles, no memberships, no preferences."
      },
      "UserPublic": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id",
            "x-identity": "person"
          },
          "username": {
            "type": "string",
            "title": "Username"
          },
          "discriminator": {
            "type": "integer",
            "title": "Discriminator"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "status": {
            "$ref": "#/components/schemas/UserStatus",
            "default": "active"
          },
          "display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Display Name"
          }
        },
        "type": "object",
        "required": [
          "id",
          "username",
          "discriminator",
          "avatar_url",
          "status",
          "display_name"
        ],
        "title": "UserPublic",
        "description": "A person, as everyone else sees them \u2014 the handle, and the name they\nset in the guild being read.",
        "x-person": true
      },
      "UserRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "role": {
            "$ref": "#/components/schemas/UserRole",
            "default": "member"
          },
          "username": {
            "type": "string",
            "title": "Username"
          },
          "discriminator": {
            "type": "integer",
            "title": "Discriminator"
          },
          "username_chosen": {
            "type": "boolean",
            "title": "Username Chosen",
            "default": false
          },
          "age_confirmed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Age Confirmed At"
          },
          "age_below_minimum_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Age Below Minimum At"
          },
          "legal_acceptance_required": {
            "type": "boolean",
            "title": "Legal Acceptance Required",
            "default": false
          },
          "birthdate_on_file": {
            "type": "boolean",
            "title": "Birthdate On File",
            "default": false
          },
          "birthdate_required": {
            "type": "boolean",
            "title": "Birthdate Required",
            "default": false
          },
          "cookie_consent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CookieConsentRead"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "$ref": "#/components/schemas/UserStatus"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          },
          "email_verified": {
            "type": "boolean",
            "title": "Email Verified",
            "default": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "custom_status": {
            "$ref": "#/components/schemas/CustomStatus-Output"
          },
          "presence": {
            "$ref": "#/components/schemas/Presence",
            "default": "online"
          },
          "profile_decorations": {
            "$ref": "#/components/schemas/ProfileDecorations-Output"
          },
          "week_starts_on": {
            "type": "integer",
            "title": "Week Starts On",
            "default": 0
          },
          "time_format": {
            "type": "string",
            "title": "Time Format",
            "default": "system"
          },
          "recent_tabs_limit": {
            "type": "integer",
            "title": "Recent Tabs Limit",
            "default": 20
          },
          "count_toward_engagement_ranking": {
            "type": "boolean",
            "title": "Count Toward Engagement Ranking",
            "default": true
          },
          "timezone": {
            "type": "string",
            "title": "Timezone",
            "default": "UTC"
          },
          "event_reminder_minutes_before": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Event Reminder Minutes Before",
            "default": 15
          },
          "last_overdue_notification_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Overdue Notification At"
          },
          "color_theme": {
            "type": "string",
            "title": "Color Theme",
            "default": "kobold"
          },
          "custom_themes": {
            "items": {
              "$ref": "#/components/schemas/Theme"
            },
            "type": "array",
            "title": "Custom Themes"
          },
          "task_completion_visual_feedback": {
            "type": "string",
            "title": "Task Completion Visual Feedback",
            "default": "none"
          },
          "task_completion_audio_feedback": {
            "type": "boolean",
            "title": "Task Completion Audio Feedback",
            "default": true
          },
          "task_completion_haptic_feedback": {
            "type": "boolean",
            "title": "Task Completion Haptic Feedback",
            "default": true
          },
          "smart_task_titles": {
            "type": "boolean",
            "title": "Smart Task Titles",
            "default": true
          },
          "open_in_viewing": {
            "type": "boolean",
            "title": "Open In Viewing",
            "default": false
          },
          "locale": {
            "type": "string",
            "title": "Locale",
            "default": "en"
          },
          "has_federated_identity": {
            "type": "boolean",
            "title": "Has Federated Identity",
            "default": false
          },
          "has_password": {
            "type": "boolean",
            "title": "Has Password",
            "default": false
          },
          "password_required": {
            "type": "boolean",
            "title": "Password Required",
            "default": false
          },
          "demo_expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Demo Expires At"
          },
          "demo_community_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Demo Community Id"
          },
          "can_create_communities": {
            "type": "boolean",
            "title": "Can Create Communities",
            "default": false
          },
          "can_open_billing": {
            "type": "boolean",
            "title": "Can Open Billing",
            "default": false
          },
          "initiative_roles": {
            "items": {
              "$ref": "#/components/schemas/UserInitiativeRole"
            },
            "type": "array",
            "title": "Initiative Roles"
          },
          "capabilities": {
            "items": {
              "$ref": "#/components/schemas/Capability"
            },
            "type": "array",
            "title": "Capabilities",
            "description": "Platform capabilities granted by this user's standing role \u2014 none\nwhile the account is suspended.\n\nThe frontend gates UI on these values (single source of truth);\nsee ``app.core.capabilities``. Sorted by value.",
            "readOnly": true
          }
        },
        "type": "object",
        "required": [
          "id",
          "role",
          "username",
          "discriminator",
          "username_chosen",
          "age_confirmed_at",
          "age_below_minimum_at",
          "legal_acceptance_required",
          "birthdate_on_file",
          "birthdate_required",
          "cookie_consent",
          "status",
          "email",
          "email_verified",
          "created_at",
          "updated_at",
          "avatar_url",
          "custom_status",
          "presence",
          "profile_decorations",
          "week_starts_on",
          "time_format",
          "recent_tabs_limit",
          "count_toward_engagement_ranking",
          "timezone",
          "event_reminder_minutes_before",
          "last_overdue_notification_at",
          "color_theme",
          "custom_themes",
          "task_completion_visual_feedback",
          "task_completion_audio_feedback",
          "task_completion_haptic_feedback",
          "smart_task_titles",
          "open_in_viewing",
          "locale",
          "has_federated_identity",
          "has_password",
          "password_required",
          "demo_expires_at",
          "demo_community_id",
          "can_create_communities",
          "can_open_billing",
          "initiative_roles",
          "capabilities"
        ],
        "title": "UserRead"
      },
      "UserRole": {
        "type": "string",
        "enum": [
          "member",
          "moderator",
          "support",
          "operator",
          "owner"
        ],
        "title": "UserRole",
        "description": "Platform-level (app-wide) user role.\n\nOrdered from least to most privileged. Authorization checks should\ngenerally go through the capability model (``app.core.capabilities``)\nrather than comparing roles directly, so that the privilege ladder can\nevolve without touching every call site."
      },
      "UserSelfUpdate": {
        "properties": {
          "password": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 256
              },
              {
                "type": "null"
              }
            ],
            "title": "Password"
          },
          "current_password": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 256
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Password"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "custom_status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CustomStatus-Input"
              },
              {
                "type": "null"
              }
            ]
          },
          "presence": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Presence"
              },
              {
                "type": "null"
              }
            ]
          },
          "profile_decorations": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProfileDecorations-Input"
              },
              {
                "type": "null"
              }
            ]
          },
          "week_starts_on": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Week Starts On"
          },
          "time_format": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Time Format"
          },
          "recent_tabs_limit": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 100.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Recent Tabs Limit"
          },
          "count_toward_engagement_ranking": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Count Toward Engagement Ranking"
          },
          "timezone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Timezone"
          },
          "event_reminder_minutes_before": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Event Reminder Minutes Before"
          },
          "color_theme": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Color Theme"
          },
          "custom_themes": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ThemeWrite"
                },
                "type": "array",
                "maxItems": 50
              },
              {
                "type": "null"
              }
            ],
            "title": "Custom Themes"
          },
          "task_completion_visual_feedback": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Task Completion Visual Feedback"
          },
          "task_completion_audio_feedback": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Task Completion Audio Feedback"
          },
          "task_completion_haptic_feedback": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Task Completion Haptic Feedback"
          },
          "smart_task_titles": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Smart Task Titles"
          },
          "open_in_viewing": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Open In Viewing"
          },
          "locale": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[a-z]{2}(-[A-Z]{2})?$"
              },
              {
                "type": "null"
              }
            ],
            "title": "Locale"
          }
        },
        "type": "object",
        "title": "UserSelfUpdate"
      },
      "UserStatsResponse": {
        "properties": {
          "streak": {
            "type": "integer",
            "title": "Streak",
            "description": "Current streak of consecutive work days (Mon-Fri) with task activity"
          },
          "on_time_rate": {
            "type": "number",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "On Time Rate",
            "description": "Percentage of completed tasks finished before due date"
          },
          "avg_completion_days": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avg Completion Days",
            "description": "Average days from start_date to completion (only tasks with start_date)"
          },
          "tasks_completed_total": {
            "type": "integer",
            "title": "Tasks Completed Total",
            "description": "Total number of completed tasks"
          },
          "tasks_completed_this_week": {
            "type": "integer",
            "title": "Tasks Completed This Week",
            "description": "Number of tasks completed this week"
          },
          "backlog_trend": {
            "type": "string",
            "enum": [
              "Growing",
              "Shrinking"
            ],
            "title": "Backlog Trend",
            "description": "Trend based on tasks assigned vs completed this week"
          },
          "velocity_data": {
            "items": {
              "$ref": "#/components/schemas/VelocityWeekData"
            },
            "type": "array",
            "title": "Velocity Data",
            "description": "Weekly velocity data for last 12 weeks"
          },
          "heatmap_data": {
            "items": {
              "$ref": "#/components/schemas/HeatmapDayData"
            },
            "type": "array",
            "title": "Heatmap Data",
            "description": "Daily activity data for last 365 days"
          },
          "community_breakdown": {
            "items": {
              "$ref": "#/components/schemas/CommunityTaskBreakdown"
            },
            "type": "array",
            "title": "Community Breakdown",
            "description": "Task completion breakdown by guild"
          }
        },
        "type": "object",
        "required": [
          "streak",
          "on_time_rate",
          "avg_completion_days",
          "tasks_completed_total",
          "tasks_completed_this_week",
          "backlog_trend",
          "velocity_data",
          "heatmap_data",
          "community_breakdown"
        ],
        "title": "UserStatsResponse",
        "description": "Comprehensive user statistics response."
      },
      "UserStatus": {
        "type": "string",
        "enum": [
          "active",
          "suspended",
          "deactivated",
          "anonymized",
          "deleted"
        ],
        "title": "UserStatus"
      },
      "UserSummary": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id",
            "x-identity": "person"
          },
          "username": {
            "type": "string",
            "title": "Username"
          },
          "discriminator": {
            "type": "integer",
            "title": "Discriminator"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Avatar Url"
          },
          "status": {
            "$ref": "#/components/schemas/UserStatus",
            "default": "active"
          },
          "display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Display Name"
          },
          "profile_decorations": {
            "$ref": "#/components/schemas/ProfileDecorations-Output"
          },
          "custom_status": {
            "$ref": "#/components/schemas/CustomStatus-Output"
          },
          "community_role": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Community Role"
          }
        },
        "type": "object",
        "required": [
          "id",
          "username",
          "discriminator",
          "avatar_url",
          "status",
          "display_name",
          "profile_decorations",
          "custom_status",
          "community_role"
        ],
        "title": "UserSummary",
        "description": "Slim user projection for typeahead and picker surfaces.\n\nWhat it keeps is what it takes to *draw* a person and say where they stand\nin the guild being read: the handle, the avatar, what they have put around\nit, and their guild role. A decoration is an id naming a catalog entry and\na role is one word, so all of it is short, and none of it costs a query\nbeyond the one already being run.\n\nWhat it drops is the account's own business and anything that would cost\nanother round trip: no address, no platform tier, no ``initiative_roles``\n(an N+1 enrichment on the full roster), no timestamps. The payload is\nbounded by pagination on the endpoints that serve it.\n\n``profile_decorations`` and ``custom_status`` are quoted and the model\nrebuilt below, because the shapes they name are declared further down this\nfile.",
        "x-person": true
      },
      "UserSummaryListResponse": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/UserSummary"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items"
        ],
        "title": "UserSummaryListResponse",
        "description": "Paginated envelope for the slim user search/typeahead endpoints."
      },
      "UserViewPreferenceWrite": {
        "properties": {
          "value": {
            "title": "Value"
          }
        },
        "type": "object",
        "required": [
          "value"
        ],
        "title": "UserViewPreferenceWrite",
        "description": "Body for ``PUT /user-view-preferences/{scope_key}``."
      },
      "UserViewPreferencesMap": {
        "properties": {
          "items": {
            "additionalProperties": true,
            "type": "object",
            "title": "Items"
          }
        },
        "type": "object",
        "title": "UserViewPreferencesMap",
        "description": "Response for ``GET /user-view-preferences`` \u2014 keyed by scope."
      },
      "UsernameAvailabilityResponse": {
        "properties": {
          "available": {
            "type": "boolean",
            "title": "Available"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "discriminator": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Discriminator"
          },
          "offer": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Offer"
          }
        },
        "type": "object",
        "required": [
          "available"
        ],
        "title": "UsernameAvailabilityResponse",
        "description": "Whether a name part can still be handed out.\n\nAlmost always ``true``: the number behind a name is what resolves\ncontention, so this answers about the two cases that survive \u2014 a reserved\nor malformed name, and one whose ten thousand numbers are all taken.\n``reason`` carries the flat code for those."
      },
      "UsernameClaim": {
        "properties": {
          "username": {
            "type": "string",
            "maxLength": 64,
            "title": "Username"
          },
          "offer": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1024
              },
              {
                "type": "null"
              }
            ],
            "title": "Offer"
          }
        },
        "type": "object",
        "required": [
          "username"
        ],
        "title": "UsernameClaim",
        "description": "The name part an account picks for itself.\n\nAvailable once, to an account whose handle was assigned rather than chosen\n(``username_chosen`` false) \u2014 every account created without a form gets one\nthat way. The number behind the name is drawn server-side."
      },
      "UsernameSuggestionsResponse": {
        "properties": {
          "suggestions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Suggestions"
          }
        },
        "type": "object",
        "required": [
          "suggestions"
        ],
        "title": "UsernameSuggestionsResponse",
        "description": "Name parts that can still be handed out, best first."
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          },
          "input": {
            "title": "Input"
          },
          "ctx": {
            "type": "object",
            "title": "Context"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "VelocityWeekData": {
        "properties": {
          "week_start": {
            "type": "string",
            "format": "date",
            "title": "Week Start",
            "description": "Start date of the week"
          },
          "assigned": {
            "type": "integer",
            "title": "Assigned",
            "description": "Number of tasks assigned to user this week"
          },
          "completed": {
            "type": "integer",
            "title": "Completed",
            "description": "Number of tasks completed this week"
          }
        },
        "type": "object",
        "required": [
          "week_start",
          "assigned",
          "completed"
        ],
        "title": "VelocityWeekData",
        "description": "Weekly velocity data showing tasks assigned vs completed."
      },
      "Verb": {
        "type": "string",
        "enum": [
          "created",
          "completed",
          "commented",
          "edited",
          "moved",
          "scheduled",
          "published"
        ],
        "title": "Verb",
        "description": "What happened to an item, as an entry says it."
      },
      "VerificationConfirmRequest": {
        "properties": {
          "token": {
            "type": "string",
            "minLength": 10,
            "title": "Token"
          }
        },
        "type": "object",
        "required": [
          "token"
        ],
        "title": "VerificationConfirmRequest"
      },
      "VerificationSendResponse": {
        "properties": {
          "status": {
            "type": "string",
            "title": "Status"
          }
        },
        "type": "object",
        "required": [
          "status"
        ],
        "title": "VerificationSendResponse"
      },
      "ViewSource": {
        "type": "string",
        "enum": [
          "direct",
          "search",
          "feed"
        ],
        "title": "ViewSource",
        "description": "Where an open came from."
      },
      "WebhookSubscriptionCreate": {
        "properties": {
          "target_url": {
            "type": "string",
            "maxLength": 2083,
            "minLength": 1,
            "format": "uri",
            "title": "Target Url"
          },
          "event_types": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "minItems": 1,
            "title": "Event Types"
          },
          "fields": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array",
                "minItems": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Fields"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          }
        },
        "type": "object",
        "required": [
          "target_url",
          "event_types"
        ],
        "title": "WebhookSubscriptionCreate",
        "description": "Body for ``POST /api/v1/c/{community_id}/webhooks/subscriptions``.\n\nThe guild comes from the path. ``initiative_id`` narrows the subscription\nto one initiative; omitted, it covers the whole community."
      },
      "WebhookSubscriptionCreated": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "community_ref": {
            "type": "string",
            "title": "Community Ref"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "created_by_ref": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Ref"
          },
          "target_url": {
            "type": "string",
            "title": "Target Url"
          },
          "event_types": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Event Types"
          },
          "fields": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fields"
          },
          "active": {
            "type": "boolean",
            "title": "Active"
          },
          "dead_letter_count": {
            "type": "integer",
            "title": "Dead Letter Count"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "hmac_secret": {
            "type": "string",
            "title": "Hmac Secret"
          }
        },
        "type": "object",
        "required": [
          "id",
          "community_ref",
          "initiative_id",
          "created_by_ref",
          "target_url",
          "event_types",
          "fields",
          "active",
          "dead_letter_count",
          "created_at",
          "updated_at",
          "hmac_secret"
        ],
        "title": "WebhookSubscriptionCreated",
        "description": "One-time create response \u2014 includes the freshly-minted HMAC secret\nso the receiver can record it. Never re-emitted on subsequent reads."
      },
      "WebhookSubscriptionRead": {
        "properties": {
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "community_ref": {
            "type": "string",
            "title": "Community Ref"
          },
          "initiative_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Initiative Id"
          },
          "created_by_ref": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Ref"
          },
          "target_url": {
            "type": "string",
            "title": "Target Url"
          },
          "event_types": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Event Types"
          },
          "fields": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fields"
          },
          "active": {
            "type": "boolean",
            "title": "Active"
          },
          "dead_letter_count": {
            "type": "integer",
            "title": "Dead Letter Count"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "community_ref",
          "initiative_id",
          "created_by_ref",
          "target_url",
          "event_types",
          "fields",
          "active",
          "dead_letter_count",
          "created_at",
          "updated_at"
        ],
        "title": "WebhookSubscriptionRead",
        "description": "Public view. Notably ``hmac_secret`` is NOT in here \u2014 once minted\non create it never leaves the DB again. Receivers either store the\nsecret from the create response or rotate the subscription.\n\nThe guild and the creator are named by reference, because this view is read\nby whoever registered the subscription \u2014 which may be a plug-in. ``id`` and\n``initiative_id`` are per-guild-schema and say nothing without the guild."
      },
      "WebhookSubscriptionUpdate": {
        "properties": {
          "target_url": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2083,
                "minLength": 1,
                "format": "uri"
              },
              {
                "type": "null"
              }
            ],
            "title": "Target Url"
          },
          "event_types": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array",
                "minItems": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Event Types"
          },
          "fields": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array",
                "minItems": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Fields"
          },
          "active": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Active"
          }
        },
        "type": "object",
        "title": "WebhookSubscriptionUpdate"
      },
      "WidgetCatalog": {
        "properties": {
          "widgets": {
            "items": {
              "$ref": "#/components/schemas/WidgetCatalogEntry"
            },
            "type": "array",
            "title": "Widgets"
          },
          "presets": {
            "items": {
              "$ref": "#/components/schemas/WidgetPresetEntry"
            },
            "type": "array",
            "title": "Presets"
          }
        },
        "type": "object",
        "required": [
          "widgets",
          "presets"
        ],
        "title": "WidgetCatalog"
      },
      "WidgetCatalogEntry": {
        "properties": {
          "type": {
            "$ref": "#/components/schemas/WidgetType"
          },
          "min_w": {
            "type": "integer",
            "title": "Min W"
          },
          "min_h": {
            "type": "integer",
            "title": "Min H"
          },
          "default_w": {
            "type": "integer",
            "title": "Default W"
          },
          "default_h": {
            "type": "integer",
            "title": "Default H"
          },
          "shape": {
            "items": {
              "$ref": "#/components/schemas/WidgetSlot"
            },
            "type": "array",
            "title": "Shape"
          },
          "options": {
            "items": {
              "$ref": "#/components/schemas/WidgetOption"
            },
            "type": "array",
            "title": "Options"
          },
          "sources": {
            "items": {
              "$ref": "#/components/schemas/BindingSource"
            },
            "type": "array",
            "title": "Sources"
          },
          "kinds": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Kinds"
          }
        },
        "type": "object",
        "required": [
          "type",
          "min_w",
          "min_h",
          "default_w",
          "default_h",
          "shape",
          "options",
          "sources",
          "kinds"
        ],
        "title": "WidgetCatalogEntry"
      },
      "WidgetOption": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "values": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Values"
          },
          "default": {
            "type": "string",
            "title": "Default"
          },
          "kind": {
            "type": "string",
            "enum": [
              "choice",
              "number",
              "date"
            ],
            "title": "Kind",
            "default": "choice"
          }
        },
        "type": "object",
        "required": [
          "key",
          "values",
          "default",
          "kind"
        ],
        "title": "WidgetOption"
      },
      "WidgetPresetEntry": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "primitive": {
            "$ref": "#/components/schemas/WidgetType"
          },
          "options": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Options"
          }
        },
        "type": "object",
        "required": [
          "name",
          "primitive",
          "options"
        ],
        "title": "WidgetPresetEntry",
        "description": "A named widget built from a primitive plus fixed options \u2014 the palette's\nready-made entries (\"Bar chart\"), and later the shape a listing uses to\ncontribute its own."
      },
      "WidgetSlot": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "types": {
            "items": {
              "$ref": "#/components/schemas/FieldType"
            },
            "type": "array",
            "title": "Types"
          },
          "required": {
            "type": "boolean",
            "title": "Required",
            "default": true
          },
          "repeatable": {
            "type": "boolean",
            "title": "Repeatable",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "name",
          "types",
          "required",
          "repeatable"
        ],
        "title": "WidgetSlot",
        "description": "One column a widget needs, and what may fill it."
      },
      "WidgetType": {
        "type": "string",
        "enum": [
          "board",
          "chart",
          "funnel",
          "gantt",
          "heatmap",
          "progress",
          "stat",
          "summary",
          "table"
        ],
        "title": "WidgetType",
        "description": "Widget primitives this build has renderers for."
      },
      "WikiCreate": {
        "properties": {
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertyValueInput"
            },
            "type": "array",
            "title": "Properties"
          },
          "name": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000,
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "tag_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tag Ids"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantSchema"
            },
            "type": "array",
            "title": "Grants"
          }
        },
        "type": "object",
        "required": [
          "name",
          "initiative_id"
        ],
        "title": "WikiCreate"
      },
      "WikiListResponse": {
        "properties": {
          "total_count": {
            "type": "integer",
            "title": "Total Count"
          },
          "page": {
            "type": "integer",
            "title": "Page"
          },
          "page_size": {
            "type": "integer",
            "title": "Page Size"
          },
          "has_next": {
            "type": "boolean",
            "title": "Has Next"
          },
          "has_prev": {
            "type": "boolean",
            "title": "Has Prev"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/WikiSummary"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "total_count",
          "page",
          "page_size",
          "has_next",
          "has_prev",
          "items"
        ],
        "title": "WikiListResponse"
      },
      "WikiPageCreate": {
        "properties": {
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertyValueInput"
            },
            "type": "array",
            "title": "Properties"
          },
          "title": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "parent_page_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Parent Page Id"
          },
          "is_draft": {
            "type": "boolean",
            "title": "Is Draft",
            "default": true
          },
          "content": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object",
                "x-mentions": "lexical"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content"
          },
          "tag_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tag Ids"
          }
        },
        "type": "object",
        "title": "WikiPageCreate"
      },
      "WikiPageHeading": {
        "properties": {
          "text": {
            "type": "string",
            "title": "Text"
          },
          "level": {
            "type": "integer",
            "title": "Level"
          },
          "anchor": {
            "type": "string",
            "title": "Anchor"
          }
        },
        "type": "object",
        "required": [
          "text",
          "level",
          "anchor"
        ],
        "title": "WikiPageHeading",
        "description": "One heading written on a page.\n\nCarried with the page rather than read from an editor: the navigation draws\nthe headings of every page in a wiki, and only one of them is ever open."
      },
      "WikiPageKind": {
        "type": "string",
        "enum": [
          "page",
          "file"
        ],
        "title": "WikiPageKind",
        "description": "What a row in a wiki's navigation actually is.\n\nA wiki holds pages of its own and files somebody put in it. The second\nkind is a file still \u2014 it is not copied in, it keeps its own address,\nits own sharing and its own history \u2014 so the navigation has to say which it\nis looking at rather than pretend they are the same row."
      },
      "WikiPageMove": {
        "properties": {
          "parent_page_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Parent Page Id"
          },
          "position": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Position",
            "default": 0
          }
        },
        "type": "object",
        "title": "WikiPageMove",
        "description": "Where a page should sit after a drag \u2014 two facts, sent together.\n\nWhat it is filed under and where it sits among what else is filed there.\nOne request, because a drag is one gesture and half of it landing is a\ntree nobody arranged."
      },
      "WikiPageOrder": {
        "type": "string",
        "enum": [
          "manual",
          "title",
          "recently_updated"
        ],
        "title": "WikiPageOrder",
        "description": "How a wiki's page tree is sorted.\n\n``manual`` is the spine \u2014 where somebody dragged each page. ``title`` sorts\nsiblings alphabetically instead, which is what a reference wants: nobody\narranges a glossary by hand, and a new entry should land where it belongs\nrather than at the end."
      },
      "WikiPageRead": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_kind": {
            "$ref": "#/components/schemas/ActorKind"
          },
          "created_by_install": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Install"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "wiki_id": {
            "type": "integer",
            "title": "Wiki Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id",
            "x-identity": "community"
          },
          "kind": {
            "$ref": "#/components/schemas/WikiPageKind",
            "default": "page"
          },
          "parent_page_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Parent Page Id"
          },
          "position": {
            "type": "integer",
            "title": "Position",
            "default": 0
          },
          "is_draft": {
            "type": "boolean",
            "title": "Is Draft",
            "default": false
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "headings": {
            "items": {
              "$ref": "#/components/schemas/WikiPageHeading"
            },
            "type": "array",
            "title": "Headings"
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagSummary"
            },
            "type": "array",
            "title": "Tags"
          },
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertySummary"
            },
            "type": "array",
            "title": "Properties"
          },
          "file_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Type"
          },
          "file_content_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Content Type"
          },
          "original_filename": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Original Filename"
          },
          "smart_link_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Smart Link Url"
          },
          "content": {
            "additionalProperties": true,
            "type": "object",
            "title": "Content",
            "x-mentions": "lexical"
          },
          "content_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content Version"
          },
          "comments_locked_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Comments Locked At"
          }
        },
        "type": "object",
        "required": [
          "created_by",
          "created_by_kind",
          "created_by_install",
          "id",
          "wiki_id",
          "community_id",
          "kind",
          "parent_page_id",
          "position",
          "is_draft",
          "title",
          "slug",
          "created_at",
          "updated_at",
          "headings",
          "tags",
          "properties",
          "file_type",
          "file_content_type",
          "original_filename",
          "smart_link_url",
          "content",
          "content_version",
          "comments_locked_at"
        ],
        "title": "WikiPageRead",
        "description": "One page, opened."
      },
      "WikiPageSummary": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_kind": {
            "$ref": "#/components/schemas/ActorKind"
          },
          "created_by_install": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Install"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "wiki_id": {
            "type": "integer",
            "title": "Wiki Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id",
            "x-identity": "community"
          },
          "kind": {
            "$ref": "#/components/schemas/WikiPageKind",
            "default": "page"
          },
          "parent_page_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Parent Page Id"
          },
          "position": {
            "type": "integer",
            "title": "Position",
            "default": 0
          },
          "is_draft": {
            "type": "boolean",
            "title": "Is Draft",
            "default": false
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "headings": {
            "items": {
              "$ref": "#/components/schemas/WikiPageHeading"
            },
            "type": "array",
            "title": "Headings"
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagSummary"
            },
            "type": "array",
            "title": "Tags"
          },
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertySummary"
            },
            "type": "array",
            "title": "Properties"
          },
          "file_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Type"
          },
          "file_content_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Content Type"
          },
          "original_filename": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Original Filename"
          },
          "smart_link_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Smart Link Url"
          }
        },
        "type": "object",
        "required": [
          "created_by",
          "created_by_kind",
          "created_by_install",
          "id",
          "wiki_id",
          "community_id",
          "kind",
          "parent_page_id",
          "position",
          "is_draft",
          "title",
          "slug",
          "created_at",
          "updated_at",
          "headings",
          "tags",
          "properties",
          "file_type",
          "file_content_type",
          "original_filename",
          "smart_link_url"
        ],
        "title": "WikiPageSummary",
        "description": "One page as the navigation draws it \u2014 no body.\n\nThe navigation renders every page of a wiki at once, so this carries what a\nrow needs and nothing that would make the payload grow with what people\nhave written."
      },
      "WikiPageTree": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/WikiPageSummary"
            },
            "type": "array",
            "title": "Items"
          }
        },
        "type": "object",
        "required": [
          "items"
        ],
        "title": "WikiPageTree",
        "description": "Every page of a wiki, in reading order \u2014 each page, then what is filed\nunder it.\n\nFlat on the wire and a tree by ``parent_page_id``: the navigation draws all\nof it at once, and the order it arrives in is the order it reads in."
      },
      "WikiPageUpdate": {
        "properties": {
          "properties": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/PropertyValueInput"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Properties"
          },
          "title": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          },
          "is_draft": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Draft"
          },
          "content": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object",
                "x-mentions": "lexical"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content"
          },
          "content_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content Version"
          },
          "replaces_suggestions": {
            "type": "boolean",
            "title": "Replaces Suggestions",
            "default": false
          },
          "tag_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tag Ids"
          }
        },
        "type": "object",
        "title": "WikiPageUpdate",
        "description": "A change to one page.\n\nEvery field is optional and only what is sent is written, so renaming a\npage is the same request shape as editing its body."
      },
      "WikiRead": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_kind": {
            "$ref": "#/components/schemas/ActorKind"
          },
          "created_by_install": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Install"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "can": {
            "$ref": "#/components/schemas/ToolCan"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id",
            "x-identity": "community"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "comments_enabled": {
            "type": "boolean",
            "title": "Comments Enabled",
            "default": true
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagSummary"
            },
            "type": "array",
            "title": "Tags"
          },
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertySummary"
            },
            "type": "array",
            "title": "Properties"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantSchema"
            },
            "type": "array",
            "title": "Grants"
          },
          "name": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000,
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "home_page_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Home Page Id"
          },
          "page_order": {
            "$ref": "#/components/schemas/WikiPageOrder",
            "default": "manual"
          },
          "contents_depth": {
            "type": "integer",
            "title": "Contents Depth",
            "default": 3
          },
          "show_connections": {
            "type": "boolean",
            "title": "Show Connections",
            "default": true
          },
          "show_updated_at": {
            "type": "boolean",
            "title": "Show Updated At",
            "default": true
          },
          "reading_width": {
            "$ref": "#/components/schemas/WikiReadingWidth",
            "default": "wide"
          },
          "accent_color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Accent Color"
          },
          "template_page_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Template Page Id"
          },
          "comment_count": {
            "type": "integer",
            "title": "Comment Count",
            "default": 0
          },
          "hidden_files": {
            "$ref": "#/components/schemas/HiddenFiles"
          }
        },
        "type": "object",
        "required": [
          "created_by",
          "created_by_kind",
          "created_by_install",
          "archived_at",
          "can",
          "id",
          "community_id",
          "created_at",
          "updated_at",
          "comments_enabled",
          "tags",
          "properties",
          "grants",
          "name",
          "description",
          "initiative_id",
          "home_page_id",
          "page_order",
          "contents_depth",
          "show_connections",
          "show_updated_at",
          "reading_width",
          "accent_color",
          "template_page_id",
          "comment_count",
          "hidden_files"
        ],
        "title": "WikiRead",
        "description": "A wiki on its own page: its summary, and the files filed in it the\nreader knows are there and can't open. The pages are fetched as a tree of\ntheir own, because a wiki is navigated rather than read end to end."
      },
      "WikiReadingWidth": {
        "type": "string",
        "enum": [
          "wide",
          "comfortable"
        ],
        "title": "WikiReadingWidth",
        "description": "How wide a page's body runs.\n\n``wide`` fills the screen, which is what a runbook full of tables and\nscreenshots wants. ``comfortable`` holds prose to a measure you can read\nwithout losing your place, which is what a handbook wants."
      },
      "WikiSummary": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "integer",
                "x-identity": "person"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_kind": {
            "$ref": "#/components/schemas/ActorKind"
          },
          "created_by_install": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Install"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          },
          "can": {
            "$ref": "#/components/schemas/ToolCan"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "community_id": {
            "type": "integer",
            "title": "Community Id",
            "x-identity": "community"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "title": "Updated At"
          },
          "comments_enabled": {
            "type": "boolean",
            "title": "Comments Enabled",
            "default": true
          },
          "tags": {
            "items": {
              "$ref": "#/components/schemas/TagSummary"
            },
            "type": "array",
            "title": "Tags"
          },
          "properties": {
            "items": {
              "$ref": "#/components/schemas/PropertySummary"
            },
            "type": "array",
            "title": "Properties"
          },
          "grants": {
            "items": {
              "$ref": "#/components/schemas/ResourceGrantSchema"
            },
            "type": "array",
            "title": "Grants"
          },
          "name": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000,
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "initiative_id": {
            "type": "integer",
            "title": "Initiative Id"
          },
          "home_page_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Home Page Id"
          },
          "page_order": {
            "$ref": "#/components/schemas/WikiPageOrder",
            "default": "manual"
          },
          "contents_depth": {
            "type": "integer",
            "title": "Contents Depth",
            "default": 3
          },
          "show_connections": {
            "type": "boolean",
            "title": "Show Connections",
            "default": true
          },
          "show_updated_at": {
            "type": "boolean",
            "title": "Show Updated At",
            "default": true
          },
          "reading_width": {
            "$ref": "#/components/schemas/WikiReadingWidth",
            "default": "wide"
          },
          "accent_color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Accent Color"
          },
          "template_page_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Template Page Id"
          },
          "comment_count": {
            "type": "integer",
            "title": "Comment Count",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "created_by",
          "created_by_kind",
          "created_by_install",
          "archived_at",
          "can",
          "id",
          "community_id",
          "created_at",
          "updated_at",
          "comments_enabled",
          "tags",
          "properties",
          "grants",
          "name",
          "description",
          "initiative_id",
          "home_page_id",
          "page_order",
          "contents_depth",
          "show_connections",
          "show_updated_at",
          "reading_width",
          "accent_color",
          "template_page_id",
          "comment_count"
        ],
        "title": "WikiSummary"
      },
      "WikiUpdate": {
        "properties": {
          "page_order": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WikiPageOrder"
              },
              {
                "type": "null"
              }
            ]
          },
          "contents_depth": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 4.0,
                "minimum": 2.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Contents Depth"
          },
          "show_connections": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Show Connections"
          },
          "show_updated_at": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Show Updated At"
          },
          "reading_width": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WikiReadingWidth"
              },
              {
                "type": "null"
              }
            ]
          },
          "accent_color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Accent Color"
          },
          "template_page_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Template Page Id"
          },
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000,
                "x-mentions": "markdown"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "home_page_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Home Page Id"
          }
        },
        "type": "object",
        "title": "WikiUpdate"
      },
      "FilterCondition": {
        "description": "A single field comparison.\n\nSet ``negate=True`` to invert the result::\n\n    # name != 'bob'\n    FilterCondition(field=\"name\", value=\"bob\", negate=True)\n\n    # priority NOT IN ('low', 'medium')\n    FilterCondition(field=\"priority\", op=FilterOp.in_, value=[\"low\", \"medium\"], negate=True)",
        "properties": {
          "field": {
            "title": "Field",
            "type": "string"
          },
          "op": {
            "$ref": "#/components/schemas/FilterOp",
            "default": "eq"
          },
          "value": {
            "default": null,
            "title": "Value"
          },
          "negate": {
            "default": false,
            "title": "Negate",
            "type": "boolean"
          }
        },
        "required": [
          "field"
        ],
        "title": "FilterCondition",
        "type": "object"
      },
      "FilterGroup": {
        "description": "Group of conditions combined with AND or OR logic.\n\nSet ``negate=True`` to invert the entire group::\n\n    # NOT (status = 'archived' OR status = 'deleted')\n    FilterGroup(\n        logic=\"or\",\n        negate=True,\n        conditions=[\n            FilterCondition(field=\"status\", value=\"archived\"),\n            FilterCondition(field=\"status\", value=\"deleted\"),\n        ],\n    )\n\nGroups can be nested::\n\n    # is_active = true AND (role = 'operator' OR role = 'owner')\n    FilterGroup(\n        logic=\"and\",\n        conditions=[\n            FilterCondition(field=\"is_active\", value=True),\n            FilterGroup(\n                logic=\"or\",\n                conditions=[\n                    FilterCondition(field=\"role\", value=\"operator\"),\n                    FilterCondition(field=\"role\", value=\"owner\"),\n                ],\n            ),\n        ],\n    )",
        "properties": {
          "logic": {
            "default": "and",
            "enum": [
              "and",
              "or"
            ],
            "title": "Logic",
            "type": "string"
          },
          "negate": {
            "default": false,
            "title": "Negate",
            "type": "boolean"
          },
          "conditions": {
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/FilterCondition"
                },
                {
                  "$ref": "#/components/schemas/FilterGroup"
                }
              ]
            },
            "title": "Conditions",
            "type": "array"
          }
        },
        "required": [
          "conditions"
        ],
        "title": "FilterGroup",
        "type": "object"
      },
      "SortField": {
        "properties": {
          "field": {
            "title": "Field",
            "type": "string"
          },
          "dir": {
            "$ref": "#/components/schemas/SortDir",
            "default": "asc"
          }
        },
        "required": [
          "field"
        ],
        "title": "SortField",
        "type": "object"
      },
      "SmartChipKind": {
        "enum": [
          "calendar_event:when",
          "contact:email",
          "contact:phone",
          "project:progress",
          "task:assignee",
          "task:due",
          "task:priority",
          "task:status",
          "task:checklist"
        ],
        "title": "SmartChipKind",
        "type": "string"
      },
      "AppealTicketCreate": {
        "description": "Asking for a suspended account's suspension to be lifted. Filed by the\naccount itself, from its time-out screen.",
        "properties": {
          "stream": {
            "const": "moderation",
            "title": "Stream",
            "type": "string"
          },
          "type": {
            "const": "appeal",
            "title": "Type",
            "type": "string"
          },
          "body": {
            "maxLength": 5000,
            "minLength": 1,
            "title": "Body",
            "type": "string"
          }
        },
        "required": [
          "stream",
          "type",
          "body"
        ],
        "title": "AppealTicketCreate",
        "type": "object"
      },
      "DeviceContext": {
        "description": "The device and page a request was sent from, as the sender saw it\nbefore sending and chose to send it. Nothing that names a person or a\nthing: the route is its template, with every id left out.",
        "properties": {
          "app_version": {
            "anyOf": [
              {
                "maxLength": 32,
                "pattern": "^[\\w./$:@+\\- ]*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "App Version"
          },
          "platform": {
            "anyOf": [
              {
                "maxLength": 16,
                "pattern": "^[\\w./$:@+\\- ]*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Platform"
          },
          "locale": {
            "anyOf": [
              {
                "maxLength": 35,
                "pattern": "^[\\w./$:@+\\- ]*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Locale"
          },
          "theme": {
            "anyOf": [
              {
                "maxLength": 16,
                "pattern": "^[\\w./$:@+\\- ]*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Theme"
          },
          "route": {
            "anyOf": [
              {
                "maxLength": 200,
                "pattern": "^[\\w./$:@+\\- ]*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Route"
          },
          "viewport": {
            "anyOf": [
              {
                "maxLength": 16,
                "pattern": "^[\\w./$:@+\\- ]*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Viewport"
          }
        },
        "title": "DeviceContext",
        "type": "object"
      },
      "FeedbackTicketCreate": {
        "description": "Telling the team what somebody thinks: an idea, something that got in\ntheir way, or what they love.",
        "properties": {
          "stream": {
            "const": "feedback",
            "title": "Stream",
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/FeedbackTopic"
          },
          "body": {
            "maxLength": 5000,
            "minLength": 1,
            "title": "Body",
            "type": "string"
          },
          "contactable": {
            "default": false,
            "title": "Contactable",
            "type": "boolean"
          },
          "context": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DeviceContext"
              },
              {
                "type": "null"
              }
            ],
            "default": null
          },
          "idea_task_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Idea Task Id"
          }
        },
        "required": [
          "stream",
          "type",
          "body"
        ],
        "title": "FeedbackTicketCreate",
        "type": "object"
      },
      "FeedbackTopic": {
        "description": "What kind of feedback somebody is sending.",
        "enum": [
          "idea",
          "problem",
          "praise"
        ],
        "title": "FeedbackTopic",
        "type": "string"
      },
      "ModerationTicketCreate": {
        "description": "Reporting something. The same shape from every surface.",
        "properties": {
          "target_type": {
            "title": "Target Type",
            "type": "string"
          },
          "target_id": {
            "title": "Target Id",
            "type": "integer"
          },
          "reason": {
            "$ref": "#/components/schemas/ReportReason"
          },
          "detail": {
            "anyOf": [
              {
                "maxLength": 4000,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Detail"
          },
          "legal_basis": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LegalBasis"
              },
              {
                "type": "null"
              }
            ],
            "default": null
          },
          "community_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Community Id"
          },
          "stream": {
            "const": "moderation",
            "title": "Stream",
            "type": "string"
          }
        },
        "required": [
          "target_type",
          "target_id",
          "reason",
          "stream"
        ],
        "title": "ModerationTicketCreate",
        "type": "object"
      },
      "SecurityTicketCreate": {
        "description": "Telling whoever runs this server about a security problem.",
        "properties": {
          "stream": {
            "const": "security",
            "title": "Stream",
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/SecurityTopic"
          },
          "subject": {
            "maxLength": 200,
            "minLength": 1,
            "title": "Subject",
            "type": "string"
          },
          "body": {
            "maxLength": 5000,
            "minLength": 1,
            "title": "Body",
            "type": "string"
          }
        },
        "required": [
          "stream",
          "type",
          "subject",
          "body"
        ],
        "title": "SecurityTicketCreate",
        "type": "object"
      },
      "SecurityTopic": {
        "description": "What a security report is about, as its filer says.",
        "enum": [
          "vulnerability",
          "account_compromise",
          "other"
        ],
        "title": "SecurityTopic",
        "type": "string"
      },
      "SupportTicketCreate": {
        "description": "Asking for help: about a community they are in, or about themselves.",
        "properties": {
          "stream": {
            "const": "support",
            "title": "Stream",
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/SupportTopic",
            "default": "community"
          },
          "community_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Community Id"
          },
          "subject": {
            "maxLength": 200,
            "minLength": 1,
            "title": "Subject",
            "type": "string"
          },
          "body": {
            "maxLength": 5000,
            "minLength": 1,
            "title": "Body",
            "type": "string"
          },
          "context": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DeviceContext"
              },
              {
                "type": "null"
              }
            ],
            "default": null
          }
        },
        "required": [
          "stream",
          "subject",
          "body"
        ],
        "title": "SupportTicketCreate",
        "type": "object"
      },
      "SupportTopic": {
        "description": "What somebody asking for help is asking about.",
        "enum": [
          "account",
          "community",
          "billing",
          "data_request",
          "other"
        ],
        "title": "SupportTopic",
        "type": "string"
      }
    },
    "securitySchemes": {
      "OAuth2PasswordBearer": {
        "type": "oauth2",
        "flows": {
          "password": {
            "scopes": {},
            "tokenUrl": "/api/v1/auth/token"
          }
        }
      },
      "ApiKeyAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Paste a personal API key issued from Settings \u2192 API Keys."
      }
    }
  }
}