{
  "openapi": "3.1.0",
  "info": {
    "title": "Initiative plug-in API",
    "version": "11.4.3"
  },
  "servers": [
    {
      "url": "/api/v1/c/0"
    }
  ],
  "paths": {
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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"
          ]
        },
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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"
          ]
        },
        "parameters": [
          {
            "name": "subscription_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Subscription Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      },
      "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": [
          {
            "PluginToken": []
          }
        ],
        "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"
          ]
        },
        "parameters": [
          {
            "name": "subscription_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Subscription Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/projects/": {
      "get": {
        "tags": [
          "projects"
        ],
        "summary": "List Projects",
        "operationId": "list_projects",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "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"
            }
          }
        ]
      },
      "post": {
        "tags": [
          "projects"
        ],
        "summary": "Create Project",
        "operationId": "create_project",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "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"
            }
          }
        ]
      },
      "post": {
        "tags": [
          "files"
        ],
        "summary": "Create File",
        "operationId": "create_file",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "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"
            }
          }
        ]
      },
      "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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "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"
            }
          }
        ]
      },
      "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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/wikis/": {
      "get": {
        "tags": [
          "wikis"
        ],
        "summary": "List Wikis",
        "description": "List wikis visible to the current user (guild admins see all).",
        "operationId": "list_wikis",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "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"
            }
          }
        ]
      },
      "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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "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"
            }
          }
        ]
      },
      "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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "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"
            }
          }
        ]
      },
      "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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "collection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Collection Id"
            }
          },
          {
            "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"
            }
          }
        ]
      },
      "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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "collection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Collection Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      },
      "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": [
          {
            "PluginToken": []
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "files:write",
        "parameters": [
          {
            "name": "collection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Collection Id"
            }
          },
          {
            "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"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "collection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Collection 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": "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"
            }
          }
        ]
      }
    },
    "/projects/{project_id}": {
      "get": {
        "tags": [
          "projects"
        ],
        "summary": "Read Project",
        "operationId": "read_project",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Project Id"
            }
          },
          {
            "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"
            }
          }
        ]
      },
      "patch": {
        "tags": [
          "projects"
        ],
        "summary": "Update Project",
        "operationId": "update_project",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Project Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/projects/{project_id}/task-statuses/": {
      "get": {
        "tags": [
          "task-statuses",
          "task-statuses"
        ],
        "summary": "List Task Statuses",
        "operationId": "list_task_statuses",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Project Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "initiative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/projects/{project_id}/task-types/": {
      "get": {
        "tags": [
          "task-types",
          "task-types"
        ],
        "summary": "List Task Types",
        "operationId": "list_task_types",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Project Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Project Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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"
          }
        },
        "parameters": [
          {
            "name": "dataset",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Dataset"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/tasks/": {
      "get": {
        "tags": [
          "tasks"
        ],
        "summary": "List Tasks",
        "operationId": "list_tasks",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "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"
            }
          }
        ]
      },
      "post": {
        "tags": [
          "tasks"
        ],
        "summary": "Create Task",
        "operationId": "create_task",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "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"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "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"
            }
          }
        ]
      }
    },
    "/tasks/{task_id}": {
      "get": {
        "tags": [
          "tasks"
        ],
        "summary": "Read Task",
        "operationId": "read_task",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Task Id"
            }
          },
          {
            "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"
            }
          }
        ]
      },
      "patch": {
        "tags": [
          "tasks"
        ],
        "summary": "Update Task",
        "operationId": "update_task",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "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"
            }
          }
        ]
      }
    },
    "/tasks/{task_id}/move": {
      "post": {
        "tags": [
          "tasks"
        ],
        "summary": "Move Task",
        "operationId": "move_task",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "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"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "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"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "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"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "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": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "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": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/comments/": {
      "post": {
        "tags": [
          "comments"
        ],
        "summary": "Create Comment",
        "operationId": "create_comment",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      },
      "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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "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"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "comment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Comment Id"
            }
          },
          {
            "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"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "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"
            }
          }
        ]
      }
    },
    "/initiatives/{initiative_id}": {
      "get": {
        "tags": [
          "initiatives"
        ],
        "summary": "Get Initiative",
        "operationId": "get_initiative",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "initiative_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Initiative Id"
            }
          },
          {
            "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"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "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"
            }
          }
        ]
      }
    },
    "/files/{file_id}": {
      "get": {
        "tags": [
          "files"
        ],
        "summary": "Read File",
        "operationId": "read_file",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "File Id"
            }
          },
          {
            "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"
            }
          }
        ]
      },
      "patch": {
        "tags": [
          "files"
        ],
        "summary": "Update File",
        "operationId": "update_file",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "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"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "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"
            }
          }
        ]
      },
      "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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/collections/{collection_id}": {
      "get": {
        "tags": [
          "files"
        ],
        "summary": "Read Collection",
        "operationId": "read_collection",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "collection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Collection Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      },
      "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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "collection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Collection Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      },
      "delete": {
        "tags": [
          "files"
        ],
        "summary": "Delete Collection",
        "description": "Send a collection to the trash. Its files stay where they are.",
        "operationId": "delete_collection",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "files:write",
        "parameters": [
          {
            "name": "collection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Collection Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "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": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      },
      "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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "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": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "collection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Collection Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/calendars/{calendar_id}": {
      "get": {
        "tags": [
          "calendars"
        ],
        "summary": "Read Calendar",
        "operationId": "read_calendar",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "calendar_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Calendar Id"
            }
          },
          {
            "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"
            }
          }
        ]
      },
      "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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "calendar_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Calendar Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "post_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Post Id"
            }
          },
          {
            "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"
            }
          }
        ]
      },
      "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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "post_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Post Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "post_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Post Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/wikis/{wiki_id}": {
      "get": {
        "tags": [
          "wikis"
        ],
        "summary": "Read Wiki",
        "operationId": "read_wiki",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "wiki_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Wiki Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      },
      "patch": {
        "tags": [
          "wikis"
        ],
        "summary": "Update Wiki",
        "operationId": "update_wiki",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "wiki_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Wiki Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "wiki_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Wiki Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      },
      "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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "wiki_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Wiki Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "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"
            }
          }
        ]
      },
      "patch": {
        "tags": [
          "wikis"
        ],
        "summary": "Update Wiki Page",
        "operationId": "update_wiki_page",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "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"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "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"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "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"
            }
          }
        ]
      }
    },
    "/contacts/{contact_id}": {
      "get": {
        "tags": [
          "contacts"
        ],
        "summary": "Read Contact",
        "operationId": "read_contact",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "contact_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Contact Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      },
      "patch": {
        "tags": [
          "contacts"
        ],
        "summary": "Update Contact",
        "description": "Change a contact. A list sent replaces the one there.",
        "operationId": "update_contact",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "contact_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Contact Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/forms/{form_id}": {
      "get": {
        "tags": [
          "forms"
        ],
        "summary": "Read Form",
        "operationId": "read_form",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "form_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Form Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      },
      "patch": {
        "tags": [
          "forms"
        ],
        "summary": "Update Form",
        "description": "Change a form's name, introduction or how it takes its answers.",
        "operationId": "update_form",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "form_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Form Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "form_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Form Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "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": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "form_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Form Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      },
      "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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "form_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Form Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      },
      "delete": {
        "tags": [
          "forms"
        ],
        "summary": "Discard Form Draft",
        "description": "Throw the draft away; the current version is untouched.",
        "operationId": "discard_form_draft",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "x-plugin-scope": "forms:write",
        "parameters": [
          {
            "name": "form_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Form Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "form_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Form Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "form_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Form Id"
            }
          },
          {
            "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"
            }
          }
        ]
      },
      "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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "form_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Form Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "form_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Form Id"
            }
          },
          {
            "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"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "response_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Response Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      },
      "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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "response_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Response Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "response_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Response Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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"
        },
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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"
        },
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "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"
            }
          }
        ]
      },
      "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": [
          {
            "PluginToken": []
          }
        ],
        "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"
        },
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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"
        },
        "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": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      },
      "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": [
          {
            "PluginToken": []
          }
        ],
        "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"
        },
        "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": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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"
        },
        "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": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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"
        },
        "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": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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"
        },
        "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": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/calendar-events/{event_id}": {
      "get": {
        "tags": [
          "calendar-events"
        ],
        "summary": "Read Calendar Event",
        "operationId": "read_calendar_event",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Event Id"
            }
          },
          {
            "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"
            }
          }
        ]
      },
      "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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Event Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "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"
            }
          }
        ]
      },
      "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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Event Id"
            }
          },
          {
            "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"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Event Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Event Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Event Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Event Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Event Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "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",
        "parameters": [
          {
            "name": "event_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Event Id"
            }
          },
          {
            "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"
            }
          }
        ]
      }
    },
    "/tags/": {
      "get": {
        "tags": [
          "tags"
        ],
        "summary": "List Tags",
        "description": "List all tags in the current guild.",
        "operationId": "list_tags",
        "security": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      },
      "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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Project Id"
            }
          },
          {
            "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"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "File Id"
            }
          },
          {
            "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"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "calendar_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Calendar Id"
            }
          },
          {
            "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"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "post_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Post Id"
            }
          },
          {
            "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"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "wiki_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Wiki Id"
            }
          },
          {
            "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"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "contact_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Contact Id"
            }
          },
          {
            "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"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "form_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Form Id"
            }
          },
          {
            "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"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Project Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "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"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "calendar_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Calendar Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "post_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Post Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "wiki_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Wiki Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "contact_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Contact Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "form_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Form Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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"
          ]
        },
        "parameters": [
          {
            "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"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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"
          ]
        },
        "parameters": [
          {
            "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"
            }
          }
        ]
      },
      "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": [
          {
            "PluginToken": []
          }
        ],
        "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"
          ]
        },
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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"
          ]
        },
        "parameters": [
          {
            "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"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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"
          ]
        },
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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"
          ]
        },
        "parameters": [
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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"
          ]
        },
        "parameters": [
          {
            "name": "definition_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Definition Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      },
      "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": [
          {
            "PluginToken": []
          }
        ],
        "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"
          ]
        },
        "parameters": [
          {
            "name": "definition_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Definition Id"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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"
          }
        },
        "parameters": [
          {
            "name": "target",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Target"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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"
          }
        },
        "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": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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"
          }
        },
        "parameters": [
          {
            "name": "entity_type",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Entity Type"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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"
          }
        },
        "parameters": [
          {
            "name": "entity_type",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Entity Type"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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"
          }
        },
        "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": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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"
          }
        },
        "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": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "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": "string",
                    "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"
            }
          }
        ]
      }
    },
    "/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": [
          {
            "PluginToken": []
          }
        ],
        "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",
        "parameters": [
          {
            "name": "person",
            "in": "path",
            "required": true,
            "schema": {
              "title": "Person",
              "type": "string",
              "x-identity": "person"
            }
          },
          {
            "name": "digest",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Digest"
            }
          },
          {
            "name": "session_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Session Token"
            }
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "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."
      },
      "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."
      },
      "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."
      },
      "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"
      },
      "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",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "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"
      },
      "CalendarEventAttendeeRead": {
        "properties": {
          "user_id": {
            "title": "User Id",
            "type": "string",
            "x-identity": "person"
          },
          "user": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PluginPerson"
              },
              {
                "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",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "location": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500,
                "x-mentions": "markdown",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "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": "string",
                  "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"
      },
      "CalendarEventRead": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "string",
                "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",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "location": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500,
                "x-mentions": "markdown",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "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": {
            "title": "Community Id",
            "type": "string",
            "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": "string",
                "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",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "location": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500,
                "x-mentions": "markdown",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "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": {
            "title": "Community Id",
            "type": "string",
            "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/PluginPerson"
            },
            "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",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "description_base": {
            "anyOf": [
              {
                "type": "string",
                "x-mentions": "markdown",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "type": "null"
              }
            ],
            "title": "Description Base"
          },
          "location": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500,
                "x-mentions": "markdown",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "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"
      },
      "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": "string",
                "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": {
            "title": "Community Id",
            "type": "string",
            "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",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "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": "string",
                "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": {
            "title": "Community Id",
            "type": "string",
            "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",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "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",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "color": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 32,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          }
        },
        "type": "object",
        "title": "CalendarUpdate"
      },
      "ChecklistItem": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "text": {
            "type": "string",
            "title": "Text",
            "x-mentions": "markdown",
            "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
          },
          "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",
            "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
          },
          "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"
      },
      "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,
            "description": "A stored file comes as an empty string, without its path. A URL from elsewhere comes as it is."
          },
          "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,
            "description": "A stored file comes as an empty string, without its path. A URL from elsewhere comes as it is."
          },
          "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",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "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": "string",
                "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": {
            "title": "Community Id",
            "type": "string",
            "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,
            "description": "A stored file comes as an empty string, without its path. A URL from elsewhere comes as it is."
          },
          "is_template": {
            "type": "boolean",
            "title": "Is Template",
            "default": false
          },
          "initiative": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InitiativeSummary"
              },
              {
                "type": "null"
              }
            ]
          },
          "owner": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PluginPerson"
              },
              {
                "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,
            "description": "A stored file comes as an empty string, without its path. A URL from elsewhere comes as it is."
          },
          "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,
            "description": "A stored file comes as an empty string, without its path. A URL from elsewhere comes as it is."
          },
          "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": "string",
                "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": {
            "title": "Community Id",
            "type": "string",
            "x-identity": "community"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "x-mentions": "markdown",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "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",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "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."
      },
      "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."
      },
      "CommentCreate": {
        "properties": {
          "content": {
            "type": "string",
            "title": "Content",
            "x-mentions": "markdown",
            "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
          },
          "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": "string",
                "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",
            "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
          },
          "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/PluginPerson"
              },
              {
                "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."
      },
      "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"
      },
      "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"
      },
      "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": "string",
                "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": {
            "title": "Community Id",
            "type": "string",
            "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": "string",
                "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": {
            "title": "Community Id",
            "type": "string",
            "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."
      },
      "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."
      },
      "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."
      },
      "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."
      },
      "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."
      },
      "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."
      },
      "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."
      },
      "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",
                "description": "A Lexical editor state. A person is mentioned by a node whose `mentionUserId` is your reference for them, with `mentionName` and `text` empty: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: an image's `src` and a link's `url` are empty."
              },
              {
                "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"
      },
      "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": "string",
                "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": {
            "title": "Community Id",
            "type": "string",
            "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,
            "description": "A stored file comes as an empty string, without its path. A URL from elsewhere comes as it is."
          },
          "is_template": {
            "type": "boolean",
            "title": "Is Template",
            "default": false
          },
          "initiative": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InitiativeSummary"
              },
              {
                "type": "null"
              }
            ]
          },
          "owner": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PluginPerson"
              },
              {
                "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,
            "description": "A stored file comes as an empty string, without its path. A URL from elsewhere comes as it is."
          },
          "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,
            "description": "A stored file comes as an empty string, without its path. A URL from elsewhere comes as it is."
          },
          "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",
            "description": "A Lexical editor state. A person is mentioned by a node whose `mentionUserId` is your reference for them, with `mentionName` and `text` empty: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: an image's `src` and a link's `url` are empty."
          },
          "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": "string",
                "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": {
            "title": "Community Id",
            "type": "string",
            "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,
            "description": "A stored file comes as an empty string, without its path. A URL from elsewhere comes as it is."
          },
          "is_template": {
            "type": "boolean",
            "title": "Is Template",
            "default": false
          },
          "initiative": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InitiativeSummary"
              },
              {
                "type": "null"
              }
            ]
          },
          "owner": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PluginPerson"
              },
              {
                "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,
            "description": "A stored file comes as an empty string, without its path. A URL from elsewhere comes as it is."
          },
          "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,
            "description": "A stored file comes as an empty string, without its path. A URL from elsewhere comes as it is."
          },
          "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",
                "description": "A Lexical editor state. A person is mentioned by a node whose `mentionUserId` is your reference for them, with `mentionName` and `text` empty: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: an image's `src` and a link's `url` are empty."
              },
              {
                "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": "string",
                "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."
      },
      "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"
      },
      "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."
      },
      "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",
            "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
          },
          "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"
      },
      "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": "string",
                "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": {
            "title": "Community Id",
            "type": "string",
            "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",
            "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
          },
          "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": {
            "title": "Respondent Id",
            "type": "string",
            "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",
            "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
          },
          "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",
            "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
          },
          "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": "string",
                "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": {
            "title": "Community Id",
            "type": "string",
            "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",
            "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
          },
          "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",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "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": "string",
                "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": "string",
                "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"
      },
      "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"
      },
      "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."
      },
      "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`)."
      },
      "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."
      },
      "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."
      },
      "InitiativeRead": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "x-mentions": "markdown",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "color": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Color"
          },
          "id": {
            "type": "integer",
            "title": "Id"
          },
          "community_id": {
            "anyOf": [
              {
                "type": "string",
                "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``."
      },
      "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``."
      },
      "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."
      },
      "OccurrenceRequest": {
        "properties": {
          "start": {
            "type": "string",
            "format": "date-time",
            "title": "Start"
          }
        },
        "type": "object",
        "required": [
          "start"
        ],
        "title": "OccurrenceRequest"
      },
      "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."
      },
      "PluginPerson": {
        "description": "A person, as an installed plug-in receives them wherever one appears.\n\n``id`` is the install's own reference for them. Their handle (``username``\nand ``discriminator``), the name they set in the community\n(``display_name``) and the picture they uploaded (``avatar_url``) come only\nto an install holding ``members:read``. A field without a value is left\nout, so without that scope a person is their ``id`` alone.",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string",
            "x-identity": "person"
          },
          "username": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Username"
          },
          "discriminator": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Discriminator"
          },
          "display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Display Name"
          },
          "avatar_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Where the plug-in reads the picture this member uploaded: `/api/v1/c/0/members/{id}/avatar/{sha256}`, a path on Initiative served under `members:read`. Absent when they have not uploaded one.",
            "title": "Avatar Url"
          }
        },
        "required": [
          "id"
        ],
        "title": "PluginPerson",
        "type": "object"
      },
      "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",
                  "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "integer"
                },
                {
                  "type": "number"
                },
                {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "object",
            "title": "Fields"
          },
          "people": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "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",
                  "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "integer"
                },
                {
                  "type": "number"
                },
                {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "object",
            "title": "Fields"
          },
          "people": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "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": "string",
                "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": {
            "title": "Community Id",
            "type": "string",
            "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",
                  "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "integer"
                },
                {
                  "type": "number"
                },
                {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "object",
            "title": "Fields"
          },
          "people": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "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",
                  "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "integer"
                },
                {
                  "type": "number"
                },
                {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "object",
            "title": "Fields"
          },
          "people": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "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."
      },
      "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"
      },
      "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"
      },
      "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",
            "description": "A Lexical editor state. A person is mentioned by a node whose `mentionUserId` is your reference for them, with `mentionName` and `text` empty: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: an image's `src` and a link's `url` are empty."
          },
          "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"
      },
      "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."
      },
      "PostRead": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "string",
                "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": {
            "title": "Community Id",
            "type": "string",
            "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/PluginPerson"
              },
              {
                "type": "null"
              }
            ]
          },
          "excerpt": {
            "type": "string",
            "title": "Excerpt",
            "default": "",
            "x-mentions": "markdown",
            "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
          },
          "pinned_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pinned At"
          },
          "pinned_by": {
            "anyOf": [
              {
                "type": "string",
                "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",
            "description": "A Lexical editor state. A person is mentioned by a node whose `mentionUserId` is your reference for them, with `mentionName` and `text` empty: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: an image's `src` and a link's `url` are empty."
          },
          "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"
      },
      "PostUpdate": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "body": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object",
                "x-mentions": "lexical",
                "description": "A Lexical editor state. A person is mentioned by a node whose `mentionUserId` is your reference for them, with `mentionName` and `text` empty: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: an image's `src` and a link's `url` are empty."
              },
              {
                "type": "null"
              }
            ],
            "title": "Body"
          },
          "scheduled_for": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scheduled For"
          }
        },
        "type": "object",
        "title": "PostUpdate"
      },
      "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",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "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": "string",
                "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": {
            "title": "Community Id",
            "type": "string",
            "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",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "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": "string",
                "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/PluginPerson"
              },
              {
                "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"
      },
      "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",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "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"
      },
      "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."
      },
      "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."
      },
      "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/PluginPerson"
            },
            "type": "array",
            "title": "Users"
          }
        },
        "type": "object",
        "required": [
          "emoji",
          "count",
          "reacted",
          "users"
        ],
        "title": "ReactionGroup",
        "description": "One emoji on one target, and who chose it."
      },
      "RecurrenceStrategy": {
        "type": "string",
        "enum": [
          "fixed",
          "rolling"
        ],
        "title": "RecurrenceStrategy",
        "description": "How a repeating task's next date is counted."
      },
      "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."
      },
      "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."
      },
      "ResourceAccessLevel": {
        "type": "string",
        "enum": [
          "owner",
          "write",
          "read"
        ],
        "title": "ResourceAccessLevel"
      },
      "ResourceGrantSchema": {
        "properties": {
          "level": {
            "$ref": "#/components/schemas/ResourceAccessLevel"
          },
          "user_id": {
            "anyOf": [
              {
                "type": "string",
                "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."
      },
      "SearchSuggestion": {
        "properties": {
          "entity_type": {
            "type": "string",
            "title": "Entity Type"
          },
          "entity_id": {
            "type": "integer",
            "title": "Entity Id"
          },
          "title": {
            "type": "string",
            "title": "Title",
            "x-mentions": "markdown",
            "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
          },
          "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."
      },
      "SortDir": {
        "type": "string",
        "enum": [
          "asc",
          "desc"
        ],
        "title": "SortDir"
      },
      "SortField": {
        "properties": {
          "field": {
            "title": "Field",
            "type": "string"
          },
          "dir": {
            "$ref": "#/components/schemas/SortDir",
            "default": "asc"
          }
        },
        "required": [
          "field"
        ],
        "title": "SortField",
        "type": "object"
      },
      "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"
      },
      "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": {
            "title": "Community Id",
            "type": "string",
            "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"
      },
      "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."
      },
      "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",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "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": "string",
              "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"
      },
      "TaskListRead": {
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "string",
                "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",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "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/PluginPerson"
            },
            "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": "string",
                "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": "string",
                "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",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "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/PluginPerson"
              },
              {
                "type": "null"
              }
            ]
          },
          "assignees": {
            "items": {
              "$ref": "#/components/schemas/PluginPerson"
            },
            "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"
      },
      "TaskStatusCategory": {
        "type": "string",
        "enum": [
          "backlog",
          "todo",
          "in_progress",
          "done"
        ],
        "title": "TaskStatusCategory"
      },
      "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"
      },
      "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."
      },
      "TaskTypeStartingValues": {
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string",
                "x-mentions": "markdown",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "checklist": {
            "items": {
              "type": "string",
              "maxLength": 2000,
              "minLength": 1,
              "x-mentions": "markdown",
              "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
            },
            "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."
      },
      "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",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "description_base": {
            "anyOf": [
              {
                "type": "string",
                "x-mentions": "markdown",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "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": "string",
                  "x-identity": "person"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assignee Ids"
          },
          "add_assignee_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "x-identity": "person"
                },
                "type": "array",
                "maxItems": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Add Assignee Ids"
          },
          "remove_assignee_ids": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "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."
      },
      "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"
      },
      "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``)."
      },
      "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."
      },
      "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/PluginPerson"
            },
            "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."
      },
      "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"
      },
      "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"
      },
      "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",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "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",
                "description": "A Lexical editor state. A person is mentioned by a node whose `mentionUserId` is your reference for them, with `mentionName` and `text` empty: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: an image's `src` and a link's `url` are empty."
              },
              {
                "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": "string",
                "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": {
            "title": "Community Id",
            "type": "string",
            "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",
            "description": "A Lexical editor state. A person is mentioned by a node whose `mentionUserId` is your reference for them, with `mentionName` and `text` empty: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: an image's `src` and a link's `url` are empty."
          },
          "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": "string",
                "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": {
            "title": "Community Id",
            "type": "string",
            "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",
                "description": "A Lexical editor state. A person is mentioned by a node whose `mentionUserId` is your reference for them, with `mentionName` and `text` empty: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: an image's `src` and a link's `url` are empty."
              },
              {
                "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": "string",
                "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": {
            "title": "Community Id",
            "type": "string",
            "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",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "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": "string",
                "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": {
            "title": "Community Id",
            "type": "string",
            "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",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "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",
                "description": "A person is mentioned as `@[](<reference>)`, by your reference for them, with no name: read who they are from the members search (`members:read`). Write a mention the same way. A stored file comes without its path: `![alt]()`, `[name]()`."
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "home_page_id": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Home Page Id"
          }
        },
        "type": "object",
        "title": "WikiUpdate"
      }
    },
    "securitySchemes": {
      "PluginToken": {
        "type": "http",
        "scheme": "bearer",
        "description": "The installation's access token."
      }
    }
  }
}