Dough Git

clove/allInOne

web/openapi.json

back to web

{
  "openapi": "3.1.0",
  "info": {
    "title": "System API",
    "version": "3.0.0"
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "A 24-hour local session token issued by /api/plural/auth/login."
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "detail": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {}
              }
            ]
          }
        },
        "required": [
          "detail"
        ]
      },
      "User": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "username": {
            "type": "string"
          },
          "display_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "is_admin": {
            "type": "boolean"
          },
          "is_owner": {
            "type": "boolean"
          },
          "avatar_url": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "username",
          "is_admin",
          "is_owner"
        ]
      },
      "System": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "uuid": {
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "tag": {
            "type": [
              "string",
              "null"
            ]
          },
          "pronouns": {
            "type": [
              "string",
              "null"
            ]
          },
          "avatar_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "banner": {
            "type": [
              "string",
              "null"
            ]
          },
          "color": {
            "type": [
              "string",
              "null"
            ]
          },
          "timezone": {
            "type": [
              "string",
              "null"
            ]
          },
          "created": {
            "type": "string"
          },
          "privacy": {
            "type": "object",
            "additionalProperties": {}
          },
          "mental_state": {
            "$ref": "#/components/schemas/MentalState"
          }
        },
        "required": [
          "id",
          "uuid",
          "name",
          "description",
          "tag",
          "pronouns",
          "avatar_url",
          "banner",
          "color",
          "timezone",
          "created",
          "privacy"
        ],
        "additionalProperties": {}
      },
      "MentalState": {
        "type": "object",
        "properties": {
          "level": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "level",
          "updated_at"
        ]
      },
      "SystemUpdate": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 100
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 1000
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 79
          },
          "pronouns": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 100
          },
          "avatar_url": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 2048,
            "format": "uri"
          },
          "banner": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 2048,
            "format": "uri"
          },
          "color": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9a-fA-F]{6}$"
          },
          "timezone": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 64
          },
          "privacy": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "enum": [
                "public",
                "private"
              ]
            }
          }
        }
      },
      "Message": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string"
          }
        },
        "additionalProperties": {}
      },
      "Member": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "abcdef"
          },
          "uuid": {
            "type": "string"
          },
          "system": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "display_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "color": {
            "type": [
              "string",
              "null"
            ]
          },
          "birthday": {
            "type": [
              "string",
              "null"
            ],
            "description": "YYYY-MM-DD. Year 0004 means the year is hidden"
          },
          "pronouns": {
            "type": [
              "string",
              "null"
            ]
          },
          "avatar_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "webhook_avatar_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "banner": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "created": {
            "type": "string"
          },
          "proxy_tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProxyTag"
            }
          },
          "keep_proxy": {
            "type": "boolean"
          },
          "autoproxy_enabled": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "message_count": {
            "type": "number"
          },
          "last_message_timestamp": {
            "type": [
              "string",
              "null"
            ]
          },
          "privacy": {
            "type": "object",
            "additionalProperties": {}
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "$ref": "#/components/schemas/MemberStatus"
          },
          "pride": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "id",
          "uuid",
          "system",
          "name",
          "display_name",
          "color",
          "birthday",
          "pronouns",
          "avatar_url",
          "webhook_avatar_url",
          "banner",
          "description",
          "created",
          "proxy_tags",
          "keep_proxy",
          "autoproxy_enabled",
          "message_count",
          "last_message_timestamp",
          "privacy"
        ],
        "additionalProperties": {}
      },
      "ProxyTag": {
        "type": "object",
        "properties": {
          "prefix": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 100
          },
          "suffix": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 100
          }
        },
        "required": [
          "prefix",
          "suffix"
        ]
      },
      "MemberStatus": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "text": {
            "type": "string"
          },
          "emoji": {
            "type": [
              "string",
              "null"
            ]
          },
          "updated_at": {
            "type": "string"
          }
        },
        "required": [
          "text",
          "emoji",
          "updated_at"
        ]
      },
      "MemberCreate": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "display_name": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 100
          },
          "color": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9a-fA-F]{6}$"
          },
          "birthday": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "pronouns": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 100
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 1000
          },
          "proxy_tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProxyTag"
            },
            "maxItems": 100
          },
          "keep_proxy": {
            "type": "boolean"
          },
          "autoproxy_enabled": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "privacy": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "enum": [
                "public",
                "private"
              ]
            }
          }
        },
        "required": [
          "name"
        ]
      },
      "MemberUpdate": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "display_name": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 100
          },
          "color": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[0-9a-fA-F]{6}$"
          },
          "birthday": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "pronouns": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 100
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 1000
          },
          "proxy_tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProxyTag"
            },
            "maxItems": 100
          },
          "keep_proxy": {
            "type": "boolean"
          },
          "autoproxy_enabled": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "privacy": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "enum": [
                "public",
                "private"
              ]
            }
          }
        }
      },
      "Relationship": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "members": {
            "type": "array",
            "prefixItems": [
              {
                "type": "string"
              },
              {
                "type": "string"
              }
            ]
          },
          "type": {
            "type": "string"
          },
          "since": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "members",
          "type",
          "since"
        ]
      },
      "Fronters": {
        "type": "object",
        "properties": {
          "id": {
            "type": [
              "string",
              "null"
            ]
          },
          "timestamp": {
            "type": [
              "string",
              "null"
            ]
          },
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Member"
            }
          }
        },
        "required": [
          "id",
          "timestamp",
          "members"
        ]
      },
      "Switch": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "timestamp": {
            "type": "string"
          },
          "members": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "id",
          "timestamp",
          "members"
        ]
      },
      "UserCreate": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "minLength": 1
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 254,
            "format": "email"
          },
          "display_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "is_admin": {
            "type": "boolean",
            "default": false
          },
          "password": {
            "type": "string",
            "minLength": 8,
            "maxLength": 1024
          }
        },
        "required": [
          "username"
        ]
      },
      "UserUpdate": {
        "type": "object",
        "properties": {
          "display_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "avatar_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 254,
            "format": "email"
          },
          "is_admin": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "password": {
            "type": "string",
            "minLength": 8,
            "maxLength": 1024
          }
        }
      },
      "FrontingTimeMetrics": {
        "type": "object",
        "properties": {
          "total_time": {
            "type": "number"
          },
          "members": {
            "type": "object",
            "additionalProperties": {}
          },
          "timeframes": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "additionalProperties": {
                "type": "number"
              }
            }
          }
        },
        "required": [
          "total_time",
          "members",
          "timeframes"
        ],
        "additionalProperties": {}
      },
      "SwitchFrequencyMetrics": {
        "type": "object",
        "properties": {
          "total_switches": {
            "type": "number"
          },
          "avg_switches_per_day": {
            "type": "number"
          },
          "timeframes": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            }
          }
        },
        "required": [
          "total_switches",
          "avg_switches_per_day",
          "timeframes"
        ]
      }
    },
    "parameters": {}
  },
  "paths": {
    "/api/plural/auth/logout": {
      "post": {
        "tags": [
          "Auth"
        ],
        "summary": "End the local session",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "end_session_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "ok",
                    "end_session_url"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/user_info": {
      "get": {
        "tags": [
          "Auth"
        ],
        "summary": "The signed-in account",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "jpcl",
                "json",
                "yml"
              ],
              "default": "jpcl",
              "description": "Response format. Defaults to JPCL."
            },
            "required": false,
            "description": "Response format. Defaults to JPCL.",
            "name": "format",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              },
              "application/yaml": {
                "schema": {
                  "type": "string",
                  "description": "The response as YAML"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string",
                  "description": "The response as JPCL text"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/auth/is_admin": {
      "get": {
        "tags": [
          "Auth"
        ],
        "summary": "Whether the signed-in account has is_admin",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "jpcl",
                "json",
                "yml"
              ],
              "default": "jpcl",
              "description": "Response format. Defaults to JPCL."
            },
            "required": false,
            "description": "Response format. Defaults to JPCL.",
            "name": "format",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "boolean"
                  }
                }
              },
              "application/yaml": {
                "schema": {
                  "type": "string",
                  "description": "The response as YAML"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string",
                  "description": "The response as JPCL text"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/auth/is_owner": {
      "get": {
        "tags": [
          "Auth"
        ],
        "summary": "Whether the signed-in account has is_owner",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "jpcl",
                "json",
                "yml"
              ],
              "default": "jpcl",
              "description": "Response format. Defaults to JPCL."
            },
            "required": false,
            "description": "Response format. Defaults to JPCL.",
            "name": "format",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "boolean"
                  }
                }
              },
              "application/yaml": {
                "schema": {
                  "type": "string",
                  "description": "The response as YAML"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string",
                  "description": "The response as JPCL text"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/system": {
      "get": {
        "tags": [
          "System"
        ],
        "summary": "The system, with its current mental state",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "jpcl",
                "json",
                "yml"
              ],
              "default": "jpcl",
              "description": "Response format. Defaults to JPCL."
            },
            "required": false,
            "description": "Response format. Defaults to JPCL.",
            "name": "format",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/System"
                }
              },
              "application/yaml": {
                "schema": {
                  "type": "string",
                  "description": "The response as YAML"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string",
                  "description": "The response as JPCL text"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "System"
        ],
        "summary": "Edit the system (owner)",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/jpcl": {
              "schema": {
                "$ref": "#/components/schemas/SystemUpdate"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SystemUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/System"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/mental-state": {
      "get": {
        "tags": [
          "System"
        ],
        "summary": "Current mental state",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "jpcl",
                "json",
                "yml"
              ],
              "default": "jpcl",
              "description": "Response format. Defaults to JPCL."
            },
            "required": false,
            "description": "Response format. Defaults to JPCL.",
            "name": "format",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MentalState"
                }
              },
              "application/yaml": {
                "schema": {
                  "type": "string",
                  "description": "The response as YAML"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string",
                  "description": "The response as JPCL text"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "System"
        ],
        "summary": "Set the mental state (admin)",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/jpcl": {
              "schema": {
                "type": "object",
                "properties": {
                  "level": {
                    "type": "string",
                    "minLength": 1
                  },
                  "notes": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "level"
                ]
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "level": {
                    "type": "string",
                    "minLength": 1
                  },
                  "notes": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "level"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Message"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/members": {
      "get": {
        "tags": [
          "Members"
        ],
        "summary": "Every member, with tags, status and pride",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "jpcl",
                "json",
                "yml"
              ],
              "default": "jpcl",
              "description": "Response format. Defaults to JPCL."
            },
            "required": false,
            "description": "Response format. Defaults to JPCL.",
            "name": "format",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Member"
                  }
                }
              },
              "application/yaml": {
                "schema": {
                  "type": "string",
                  "description": "The response as YAML"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string",
                  "description": "JPCL text with a top-level members array"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Members"
        ],
        "summary": "Create a member (owner)",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/jpcl": {
              "schema": {
                "$ref": "#/components/schemas/MemberCreate"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MemberCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The new member",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Member"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/member/{member_identifier}": {
      "get": {
        "tags": [
          "Members"
        ],
        "summary": "One member by id or name",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "Member id, or member name (case-insensitive)",
              "example": "abcdef"
            },
            "required": true,
            "description": "Member id, or member name (case-insensitive)",
            "name": "member_identifier",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "jpcl",
                "json",
                "yml"
              ],
              "default": "jpcl",
              "description": "Response format. Defaults to JPCL."
            },
            "required": false,
            "description": "Response format. Defaults to JPCL.",
            "name": "format",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Member"
                }
              },
              "application/yaml": {
                "schema": {
                  "type": "string",
                  "description": "The response as YAML"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string",
                  "description": "The response as JPCL text"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/members/{member_identifier}": {
      "patch": {
        "tags": [
          "Members"
        ],
        "summary": "Edit a member (owner). Send only the fields to change; null clears one",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "Member id, or member name (case-insensitive)",
              "example": "abcdef"
            },
            "required": true,
            "description": "Member id, or member name (case-insensitive)",
            "name": "member_identifier",
            "in": "path"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/jpcl": {
              "schema": {
                "$ref": "#/components/schemas/MemberUpdate"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MemberUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated member",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Member"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Members"
        ],
        "summary": "Delete a member (owner). Their past switches are kept",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "Member id, or member name (case-insensitive)",
              "example": "abcdef"
            },
            "required": true,
            "description": "Member id, or member name (case-insensitive)",
            "name": "member_identifier",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Message"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/members/{member_identifier}/avatar": {
      "post": {
        "tags": [
          "Members"
        ],
        "summary": "Upload a member's avatar (owner). Replaces the old one, including the proxy avatar",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "Member id, or member name (case-insensitive)",
              "example": "abcdef"
            },
            "required": true,
            "description": "Member id, or member name (case-insensitive)",
            "name": "member_identifier",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The updated member",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Member"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/members/{member_identifier}/banner": {
      "post": {
        "tags": [
          "Members"
        ],
        "summary": "Upload a member's banner (owner). Replaces the old one",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "Member id, or member name (case-insensitive)",
              "example": "abcdef"
            },
            "required": true,
            "description": "Member id, or member name (case-insensitive)",
            "name": "member_identifier",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The updated member",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Member"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/member-tags": {
      "get": {
        "tags": [
          "Tags"
        ],
        "summary": "Every member's tags (owner)",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "jpcl",
                "json",
                "yml"
              ],
              "default": "jpcl",
              "description": "Response format. Defaults to JPCL."
            },
            "required": false,
            "description": "Response format. Defaults to JPCL.",
            "name": "format",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    },
                    "member_tags": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "required": [
                    "status",
                    "member_tags"
                  ]
                }
              },
              "application/yaml": {
                "schema": {
                  "type": "string",
                  "description": "The response as YAML"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string",
                  "description": "The response as JPCL text"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/member-tags/{member_identifier}": {
      "post": {
        "tags": [
          "Tags"
        ],
        "summary": "Replace a member's tags (owner)",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "Member id, or member name (case-insensitive)",
              "example": "abcdef"
            },
            "required": true,
            "description": "Member id, or member name (case-insensitive)",
            "name": "member_identifier",
            "in": "path"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/jpcl": {
              "schema": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "tags": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "tags"
                    ]
                  }
                ]
              }
            },
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "tags": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "tags"
                    ]
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Message"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/member-tags/{member_identifier}/add": {
      "post": {
        "tags": [
          "Tags"
        ],
        "summary": "Add one tag to a member (owner)",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "Member id, or member name (case-insensitive)",
              "example": "abcdef"
            },
            "required": true,
            "description": "Member id, or member name (case-insensitive)",
            "name": "member_identifier",
            "in": "path"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/jpcl": {
              "schema": {
                "type": "object",
                "properties": {
                  "tag": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "tag"
                ]
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "tag": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "tag"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Message"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/member-tags/{member_identifier}/{tag}": {
      "delete": {
        "tags": [
          "Tags"
        ],
        "summary": "Remove one tag from a member (owner)",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "Member id, or member name (case-insensitive)",
              "example": "abcdef"
            },
            "required": true,
            "description": "Member id, or member name (case-insensitive)",
            "name": "member_identifier",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "tag",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Message"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/member-pride": {
      "get": {
        "tags": [
          "Pride"
        ],
        "summary": "Every member's pride identities (owner)",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "jpcl",
                "json",
                "yml"
              ],
              "default": "jpcl",
              "description": "Response format. Defaults to JPCL."
            },
            "required": false,
            "description": "Response format. Defaults to JPCL.",
            "name": "format",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    },
                    "member_pride": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "required": [
                    "status",
                    "member_pride"
                  ]
                }
              },
              "application/yaml": {
                "schema": {
                  "type": "string",
                  "description": "The response as YAML"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string",
                  "description": "The response as JPCL text"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/member-pride/{member_identifier}/add": {
      "post": {
        "tags": [
          "Pride"
        ],
        "summary": "Add a pride identity to a member (owner)",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "Member id, or member name (case-insensitive)",
              "example": "abcdef"
            },
            "required": true,
            "description": "Member id, or member name (case-insensitive)",
            "name": "member_identifier",
            "in": "path"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/jpcl": {
              "schema": {
                "type": "object",
                "properties": {
                  "identity": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "identity"
                ]
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "identity": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "identity"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Message"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/member-pride/{member_identifier}/{identity}": {
      "delete": {
        "tags": [
          "Pride"
        ],
        "summary": "Remove a pride identity from a member (owner)",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "Member id, or member name (case-insensitive)",
              "example": "abcdef"
            },
            "required": true,
            "description": "Member id, or member name (case-insensitive)",
            "name": "member_identifier",
            "in": "path"
          },
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "identity",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Message"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/members/{member_identifier}/status": {
      "get": {
        "tags": [
          "Status"
        ],
        "summary": "A member's status note",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "Member id, or member name (case-insensitive)",
              "example": "abcdef"
            },
            "required": true,
            "description": "Member id, or member name (case-insensitive)",
            "name": "member_identifier",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "jpcl",
                "json",
                "yml"
              ],
              "default": "jpcl",
              "description": "Response format. Defaults to JPCL."
            },
            "required": false,
            "description": "Response format. Defaults to JPCL.",
            "name": "format",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "member_identifier": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "status": {
                      "$ref": "#/components/schemas/MemberStatus"
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              },
              "application/yaml": {
                "schema": {
                  "type": "string",
                  "description": "The response as YAML"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string",
                  "description": "The response as JPCL text"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Status"
        ],
        "summary": "Set a member's status note (admin)",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "Member id, or member name (case-insensitive)",
              "example": "abcdef"
            },
            "required": true,
            "description": "Member id, or member name (case-insensitive)",
            "name": "member_identifier",
            "in": "path"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/jpcl": {
              "schema": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "emoji": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "text"
                ]
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "emoji": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "text"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "member_identifier": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "status": {
                      "$ref": "#/components/schemas/MemberStatus"
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Status"
        ],
        "summary": "Clear a member's status note (admin)",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "Member id, or member name (case-insensitive)",
              "example": "abcdef"
            },
            "required": true,
            "description": "Member id, or member name (case-insensitive)",
            "name": "member_identifier",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "member_identifier": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "status": {
                      "$ref": "#/components/schemas/MemberStatus"
                    }
                  },
                  "required": [
                    "success"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/relationships": {
      "get": {
        "tags": [
          "Relationships"
        ],
        "summary": "The whole relationship map",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "jpcl",
                "json",
                "yml"
              ],
              "default": "jpcl",
              "description": "Response format. Defaults to JPCL."
            },
            "required": false,
            "description": "Response format. Defaults to JPCL.",
            "name": "format",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    },
                    "relationships": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Relationship"
                      }
                    }
                  },
                  "required": [
                    "status",
                    "relationships"
                  ]
                }
              },
              "application/yaml": {
                "schema": {
                  "type": "string",
                  "description": "The response as YAML"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string",
                  "description": "The response as JPCL text"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Relationships"
        ],
        "summary": "Link two members (owner)",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/jpcl": {
              "schema": {
                "type": "object",
                "properties": {
                  "memberA": {
                    "type": "string",
                    "minLength": 1
                  },
                  "memberB": {
                    "type": "string",
                    "minLength": 1
                  },
                  "type": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Defaults to 'partner'. 'crush' is one-way, A to B"
                  },
                  "since": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "memberA",
                  "memberB"
                ]
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "memberA": {
                    "type": "string",
                    "minLength": 1
                  },
                  "memberB": {
                    "type": "string",
                    "minLength": 1
                  },
                  "type": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Defaults to 'partner'. 'crush' is one-way, A to B"
                  },
                  "since": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "memberA",
                  "memberB"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    },
                    "relationship": {
                      "$ref": "#/components/schemas/Relationship"
                    }
                  },
                  "required": [
                    "status",
                    "relationship"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/relationships/{id}": {
      "delete": {
        "tags": [
          "Relationships"
        ],
        "summary": "Remove a link (owner)",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Message"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/fronters": {
      "get": {
        "tags": [
          "Fronting"
        ],
        "summary": "Who is fronting now",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "jpcl",
                "json",
                "yml"
              ],
              "default": "jpcl",
              "description": "Response format. Defaults to JPCL."
            },
            "required": false,
            "description": "Response format. Defaults to JPCL.",
            "name": "format",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Fronters"
                }
              },
              "application/yaml": {
                "schema": {
                  "type": "string",
                  "description": "The response as YAML"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string",
                  "description": "The response as JPCL text"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/switches": {
      "get": {
        "tags": [
          "Fronting"
        ],
        "summary": "Switch history, newest first",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "jpcl",
                "json",
                "yml"
              ],
              "default": "jpcl",
              "description": "Response format. Defaults to JPCL."
            },
            "required": false,
            "description": "Response format. Defaults to JPCL.",
            "name": "format",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 100
            },
            "required": false,
            "name": "limit",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "Only switches before this ISO timestamp, for paging"
            },
            "required": false,
            "description": "Only switches before this ISO timestamp, for paging",
            "name": "before",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Switch"
                  }
                }
              },
              "application/yaml": {
                "schema": {
                  "type": "string",
                  "description": "The response as YAML"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string",
                  "description": "JPCL text with a top-level switches array"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/switches/{id}": {
      "delete": {
        "tags": [
          "Fronting"
        ],
        "summary": "Delete a mistaken switch (admin)",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Message"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/switch": {
      "post": {
        "tags": [
          "Fronting"
        ],
        "summary": "Set the front. An empty list means switch-out. proxyBot's token works here too",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/jpcl": {
              "schema": {
                "type": "object",
                "properties": {
                  "members": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  }
                }
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "members": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Message"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/switch_front": {
      "post": {
        "tags": [
          "Fronting"
        ],
        "summary": "Switch to a single member",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/jpcl": {
              "schema": {
                "type": "object",
                "properties": {
                  "member_id": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "member_id"
                ]
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "member_id": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "member_id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Message"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/multi_switch": {
      "post": {
        "tags": [
          "Fronting"
        ],
        "summary": "Switch to several members, echoing their names back",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/jpcl": {
              "schema": {
                "type": "object",
                "properties": {
                  "member_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  }
                }
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "member_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "default": []
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Message"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/users": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Every site account (admin)",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "jpcl",
                "json",
                "yml"
              ],
              "default": "jpcl",
              "description": "Response format. Defaults to JPCL."
            },
            "required": false,
            "description": "Response format. Defaults to JPCL.",
            "name": "format",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/User"
                  }
                }
              },
              "application/yaml": {
                "schema": {
                  "type": "string",
                  "description": "The response as YAML"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string",
                  "description": "JPCL text with a top-level users array"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Create a local account (admin)",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/jpcl": {
              "schema": {
                "$ref": "#/components/schemas/UserCreate"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserCreate",
                "properties": {
                  "password": {
                    "type": "string",
                    "minLength": 8,
                    "maxLength": 1024
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/users/{user_id}": {
      "put": {
        "tags": [
          "Users"
        ],
        "summary": "Edit an account. Your own, or anyone's as an admin",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "user_id",
            "in": "path"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/jpcl": {
              "schema": {
                "$ref": "#/components/schemas/UserUpdate"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserUpdate",
                "properties": {
                  "password": {
                    "type": "string",
                    "minLength": 8,
                    "maxLength": 1024
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Users"
        ],
        "summary": "Delete an account (admin)",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "required": true,
            "name": "user_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Message"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/metrics/fronting-time": {
      "get": {
        "tags": [
          "Metrics"
        ],
        "summary": "Time each member spent fronting",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 365,
              "default": 30
            },
            "required": false,
            "name": "days",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "jpcl",
                "json",
                "yml"
              ],
              "default": "jpcl",
              "description": "Response format. Defaults to JPCL."
            },
            "required": false,
            "description": "Response format. Defaults to JPCL.",
            "name": "format",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FrontingTimeMetrics"
                }
              },
              "application/yaml": {
                "schema": {
                  "type": "string",
                  "description": "The response as YAML"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string",
                  "description": "The response as JPCL text"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/metrics/switch-frequency": {
      "get": {
        "tags": [
          "Metrics"
        ],
        "summary": "How often the system switched",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 365,
              "default": 30
            },
            "required": false,
            "name": "days",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "jpcl",
                "json",
                "yml"
              ],
              "default": "jpcl",
              "description": "Response format. Defaults to JPCL."
            },
            "required": false,
            "description": "Response format. Defaults to JPCL.",
            "name": "format",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SwitchFrequencyMetrics"
                }
              },
              "application/yaml": {
                "schema": {
                  "type": "string",
                  "description": "The response as YAML"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string",
                  "description": "The response as JPCL text"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/admin/refresh": {
      "post": {
        "tags": [
          "Admin"
        ],
        "summary": "Reload every open page (admin)",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Message"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Not signed in, or the token is invalid",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Signed in, but missing the required role",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The body or query failed validation",
            "content": {
              "application/jpcl": {
                "schema": {
                  "type": "string",
                  "description": "A JPCL document"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/media/{key}": {
      "get": {
        "tags": [
          "Media"
        ],
        "summary": "A stored avatar or banner",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9_-]+$",
              "example": "member-abcdef-avatar_url"
            },
            "required": true,
            "name": "key",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The image",
            "content": {
              "image/*": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        }
      }
    },
    "/api/plural/auth/login": {
      "post": {
        "summary": "Sign in locally",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "username",
                  "password"
                ],
                "properties": {
                  "username": {
                    "type": "string"
                  },
                  "password": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Session token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "access_token",
                    "token_type"
                  ],
                  "properties": {
                    "access_token": {
                      "type": "string"
                    },
                    "token_type": {
                      "const": "bearer"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Invalid credentials"
          }
        },
        "tags": [
          "Auth"
        ]
      }
    }
  },
  "webhooks": {}
}