{
  "components": {
    "schemas": {
      "Error": {
        "additionalProperties": false,
        "properties": {
          "current_version": {
            "type": "integer"
          },
          "detail": {
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "expected_version": {
            "type": "integer"
          },
          "failed_index": {
            "type": "integer"
          },
          "response": {},
          "status": {
            "type": "integer"
          }
        },
        "required": [
          "error"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "description": "An admin token. The scope each operation requires is listed in its security entry.",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "The engine's only write surface. Generated from the router, so it cannot describe a route that does not exist or omit one that does.",
    "title": "Signari Admin API",
    "version": "1"
  },
  "openapi": "3.1.0",
  "paths": {
    "/admin/approvals/{approvalID}/approve": {
      "post": {
        "operationId": "post_approvals_approvalID_approve",
        "parameters": [
          {
            "in": "path",
            "name": "approvalID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "approval_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "result": {
                      "additionalProperties": true,
                      "type": "object"
                    },
                    "result_status": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "approval_id",
                    "status",
                    "result_status",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "An operation was refused; `failed_index` names which, and nothing was written."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Approve a change somebody else asked for: it is made now, as the approver."
      }
    },
    "/admin/approvals/{approvalID}/reject": {
      "post": {
        "operationId": "post_approvals_approvalID_reject",
        "parameters": [
          {
            "in": "path",
            "name": "approvalID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "approval_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "approval_id",
                    "status",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "An operation was refused; `failed_index` names which, and nothing was written."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Turn down, or withdraw, a change waiting for a second person."
      }
    },
    "/admin/audit-events": {
      "get": {
        "operationId": "get_audit_events",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "chain_note": {
                      "type": "string"
                    },
                    "chain_verified": {
                      "type": "boolean"
                    },
                    "events": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "actor_id": {
                            "type": "string"
                          },
                          "admin_token_id": {
                            "type": "string"
                          },
                          "client_id": {
                            "type": "string"
                          },
                          "correlation_id": {
                            "type": "string"
                          },
                          "detail": {
                            "additionalProperties": true,
                            "type": "object"
                          },
                          "event_type": {
                            "type": "string"
                          },
                          "id": {
                            "type": "string"
                          },
                          "occurred_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "org_id": {
                            "format": "uuid",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "retention_class": {
                            "type": "string"
                          },
                          "subject_id": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "org_id",
                          "occurred_at",
                          "event_type"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "next_cursor": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "events",
                    "chain_verified"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks audit:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "audit:read"
            ]
          }
        ],
        "summary": "Read the audit trail. Does not verify the hash chain."
      }
    },
    "/admin/batch": {
      "post": {
        "operationId": "post_batch",
        "parameters": [
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "operations": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "body": {},
                        "method": {
                          "type": "string"
                        },
                        "path": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "results": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "body": {},
                          "status": {
                            "type": "integer"
                          }
                        },
                        "required": [
                          "status"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "config_version",
                    "results"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "An operation was refused; `failed_index` names which, and nothing was written."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Up to 100 writes in one transaction, all or none, one version bump."
      }
    },
    "/admin/clients": {
      "get": {
        "operationId": "get_clients",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "clients": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "client_id": {
                            "type": "string"
                          },
                          "client_type": {
                            "type": "string"
                          },
                          "created_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "display_name": {
                            "type": "string"
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "org_id": {
                            "format": "uuid",
                            "type": "string"
                          }
                        },
                        "required": [
                          "client_id",
                          "org_id",
                          "display_name",
                          "client_type",
                          "enabled",
                          "created_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "next_cursor": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "clients",
                    "next_cursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks clients:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "clients:read"
            ]
          }
        ],
        "summary": "List clients."
      },
      "post": {
        "operationId": "post_clients",
        "parameters": [
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "client_id": {
                    "type": "string"
                  },
                  "display_name": {
                    "type": "string"
                  },
                  "org_id": {
                    "type": "string"
                  },
                  "public": {
                    "type": "boolean"
                  },
                  "redirect_uris": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "require_pkce": {
                    "type": "boolean"
                  },
                  "secret": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "client_id": {
                      "type": "string"
                    },
                    "client_secret": {
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "notice": {
                      "type": "string"
                    },
                    "require_pkce": {
                      "type": "boolean"
                    },
                    "type": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "client_id",
                    "type",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks clients:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "clients:write"
            ]
          }
        ],
        "summary": "Register a client."
      }
    },
    "/admin/clients/{clientID}": {
      "delete": {
        "operationId": "delete_clients_clientID",
        "parameters": [
          {
            "in": "path",
            "name": "clientID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "client_id": {
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "refresh_families_revoked": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "client_id",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks clients:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "clients:write"
            ]
          }
        ],
        "summary": "Remove a client and everything issued under it.",
        "x-privileged-scope": "privileged-users:write"
      },
      "get": {
        "operationId": "get_clients_clientID",
        "parameters": [
          {
            "in": "path",
            "name": "clientID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "access_token_format": {
                      "type": "string"
                    },
                    "access_token_signed_alg": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "access_token_ttl_s": {
                      "type": "integer"
                    },
                    "admin_api": {
                      "type": "boolean"
                    },
                    "allow_hybrid": {
                      "type": "boolean"
                    },
                    "authorization_detail_types": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "authorization_encrypted_response_alg": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "authorization_encrypted_response_enc": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "authorization_signed_response_alg": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "backchannel_client_notification_endpoint": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "backchannel_logout_session_required": {
                      "type": "boolean"
                    },
                    "backchannel_logout_uri": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "backchannel_token_delivery_mode": {
                      "type": "string"
                    },
                    "claims_redirect_uris": {
                      "items": {
                        "type": "string"
                      },
                      "type": [
                        "array",
                        "null"
                      ]
                    },
                    "client_id": {
                      "type": "string"
                    },
                    "client_metadata_prefix": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "client_type": {
                      "type": "string"
                    },
                    "consent_lifetime_s": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "created_at": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "display_name": {
                      "type": "string"
                    },
                    "dpop_bound_access_tokens": {
                      "type": "boolean"
                    },
                    "dynamically_registered": {
                      "type": "boolean"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "exchange_audiences": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "exchange_requires_audience_match": {
                      "type": "boolean"
                    },
                    "federation_anchor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "federation_expires_at": {
                      "format": "date-time",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "first_party": {
                      "type": "boolean"
                    },
                    "frontchannel_logout_session_required": {
                      "type": "boolean"
                    },
                    "frontchannel_logout_uri": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "grant_types": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "hybrid_review_by": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "id_token_encrypted_response_alg": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "id_token_encrypted_response_enc": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "id_token_signed_alg": {
                      "type": "string"
                    },
                    "initiate_login_uri": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "introspection_encrypted_response_alg": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "introspection_encrypted_response_enc": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "introspection_signed_response_alg": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "issuer_alias": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "jwks": {
                      "additionalProperties": true,
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "jwt_bearer_providers": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "localized_names": {
                      "additionalProperties": {
                        "type": "string"
                      },
                      "type": "object"
                    },
                    "login_ui_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "logo_uri": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "may_exchange": {
                      "type": "boolean"
                    },
                    "minimum_acr": {
                      "type": "string"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "portal_hidden": {
                      "type": "boolean"
                    },
                    "redirect_uris": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "refresh_reuse_grace_s": {
                      "type": "integer"
                    },
                    "refresh_token_ttl_s": {
                      "type": "integer"
                    },
                    "registered_at": {
                      "format": "date-time",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "require_pkce": {
                      "type": "boolean"
                    },
                    "require_pushed_authorization": {
                      "type": "boolean"
                    },
                    "require_signed_request_object": {
                      "type": "boolean"
                    },
                    "require_state": {
                      "type": "boolean"
                    },
                    "response_types": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "roles_claim": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "scopes": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "sector": {
                      "type": "string"
                    },
                    "security_profile": {
                      "type": "string"
                    },
                    "subject_type": {
                      "type": "string"
                    },
                    "tls_bound_tokens": {
                      "type": "boolean"
                    },
                    "tls_san_dns": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "tls_san_email": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "tls_san_ip": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "tls_san_uri": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "tls_subject_dn": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "tls_thumbprint": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "token_endpoint_auth_method": {
                      "type": "string"
                    },
                    "userinfo_encrypted_response_alg": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "userinfo_encrypted_response_enc": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "userinfo_signed_response_alg": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "client_id",
                    "org_id",
                    "display_name",
                    "client_type",
                    "enabled",
                    "redirect_uris",
                    "grant_types",
                    "scopes",
                    "created_at"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks clients:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "clients:read"
            ]
          }
        ],
        "summary": "One client."
      },
      "patch": {
        "operationId": "patch_clients_clientID",
        "parameters": [
          {
            "in": "path",
            "name": "clientID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "access_token_format": {
                    "type": "string"
                  },
                  "access_token_signed_response_alg": {
                    "type": "string"
                  },
                  "access_token_ttl_s": {
                    "type": "integer"
                  },
                  "admin_api": {
                    "type": "boolean"
                  },
                  "allow_hybrid": {
                    "type": "boolean"
                  },
                  "authorization_detail_types": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "authorization_encrypted_response_alg": {
                    "type": "string"
                  },
                  "authorization_encrypted_response_enc": {
                    "type": "string"
                  },
                  "authorization_signed_response_alg": {
                    "type": "string"
                  },
                  "backchannel_client_notification_endpoint": {
                    "type": "string"
                  },
                  "backchannel_logout_session_required": {
                    "type": "boolean"
                  },
                  "backchannel_logout_uri": {
                    "type": "string"
                  },
                  "backchannel_token_delivery_mode": {
                    "type": "string"
                  },
                  "claims_redirect_uris": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "consent_lifetime_s": {
                    "type": "integer"
                  },
                  "display_name": {
                    "type": "string"
                  },
                  "dpop_bound_access_tokens": {
                    "type": "boolean"
                  },
                  "enabled": {
                    "type": "boolean"
                  },
                  "exchange_audiences": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "exchange_requires_audience_match": {
                    "type": "boolean"
                  },
                  "first_party": {
                    "type": "boolean"
                  },
                  "frontchannel_logout_session_required": {
                    "type": "boolean"
                  },
                  "frontchannel_logout_uri": {
                    "type": "string"
                  },
                  "grant_types": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "hybrid_review_by": {
                    "type": "string"
                  },
                  "id_token_encrypted_response_alg": {
                    "type": "string"
                  },
                  "id_token_encrypted_response_enc": {
                    "type": "string"
                  },
                  "id_token_signed_response_alg": {
                    "type": "string"
                  },
                  "initiate_login_uri": {
                    "type": "string"
                  },
                  "introspection_encrypted_response_alg": {
                    "type": "string"
                  },
                  "introspection_encrypted_response_enc": {
                    "type": "string"
                  },
                  "introspection_signed_response_alg": {
                    "type": "string"
                  },
                  "issuer_alias": {
                    "type": "string"
                  },
                  "jwks": {},
                  "jwt_bearer_providers": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "keep_auth_method": {
                    "type": "boolean"
                  },
                  "localized_names": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "login_ui_url": {
                    "type": "string"
                  },
                  "logo_uri": {
                    "type": "string"
                  },
                  "may_exchange": {
                    "type": "boolean"
                  },
                  "minimum_acr": {
                    "type": "string"
                  },
                  "portal_hidden": {
                    "type": "boolean"
                  },
                  "post_logout_redirect_uris": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "redirect_uris": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "refresh_reuse_grace_s": {
                    "type": "integer"
                  },
                  "refresh_token_ttl_s": {
                    "type": "integer"
                  },
                  "require_pkce": {
                    "type": "boolean"
                  },
                  "require_pushed_authorization_requests": {
                    "type": "boolean"
                  },
                  "require_signed_request_object": {
                    "type": "boolean"
                  },
                  "require_state": {
                    "type": "boolean"
                  },
                  "roles_claim": {
                    "type": "string"
                  },
                  "scopes": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "sector": {
                    "type": "string"
                  },
                  "security_profile": {
                    "type": "string"
                  },
                  "subject_type": {
                    "type": "string"
                  },
                  "tls_bound_tokens": {
                    "type": "boolean"
                  },
                  "tls_certificate": {
                    "type": "string"
                  },
                  "tls_san_dns": {
                    "type": "string"
                  },
                  "tls_san_email": {
                    "type": "string"
                  },
                  "tls_san_ip": {
                    "type": "string"
                  },
                  "tls_san_uri": {
                    "type": "string"
                  },
                  "tls_subject_dn": {
                    "type": "string"
                  },
                  "userinfo_encrypted_response_alg": {
                    "type": "string"
                  },
                  "userinfo_encrypted_response_enc": {
                    "type": "string"
                  },
                  "userinfo_signed_response_alg": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "access_token_format": {
                      "type": "string"
                    },
                    "access_token_signed_response_alg": {
                      "type": "string"
                    },
                    "access_token_ttl_s": {
                      "type": "integer"
                    },
                    "authorization_encrypted_response_alg": {
                      "type": "string"
                    },
                    "authorization_encrypted_response_enc": {
                      "type": "string"
                    },
                    "authorization_signed_response_alg": {
                      "type": "string"
                    },
                    "client_id": {
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "consent_lifetime_s": {
                      "type": "integer"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "exchange_audiences": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "first_party": {
                      "type": "boolean"
                    },
                    "frontchannel_logout_session_required": {
                      "type": "boolean"
                    },
                    "frontchannel_logout_uri": {
                      "type": "string"
                    },
                    "id_token_encrypted_response_alg": {
                      "type": "string"
                    },
                    "id_token_encrypted_response_enc": {
                      "type": "string"
                    },
                    "id_token_signed_response_alg": {
                      "type": "string"
                    },
                    "introspection_encrypted_response_alg": {
                      "type": "string"
                    },
                    "introspection_encrypted_response_enc": {
                      "type": "string"
                    },
                    "introspection_signed_response_alg": {
                      "type": "string"
                    },
                    "issuer_alias": {
                      "type": "string"
                    },
                    "login_ui_url": {
                      "type": "string"
                    },
                    "may_exchange": {
                      "type": "boolean"
                    },
                    "minimum_acr": {
                      "type": "string"
                    },
                    "post_logout_redirect_uris": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "refresh_token_ttl_s": {
                      "type": "integer"
                    },
                    "require_pkce": {
                      "type": "boolean"
                    },
                    "require_pushed_authorization_requests": {
                      "type": "boolean"
                    },
                    "require_signed_request_object": {
                      "type": "boolean"
                    },
                    "require_state": {
                      "type": "boolean"
                    },
                    "roles_claim": {
                      "type": "string"
                    },
                    "sector": {
                      "type": "string"
                    },
                    "security_profile": {
                      "type": "string"
                    },
                    "subject_type": {
                      "type": "string"
                    },
                    "userinfo_encrypted_response_alg": {
                      "type": "string"
                    },
                    "userinfo_encrypted_response_enc": {
                      "type": "string"
                    },
                    "userinfo_signed_response_alg": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "client_id",
                    "enabled",
                    "require_pkce",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks clients:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "clients:write"
            ]
          }
        ],
        "summary": "Enable or disable a client, or opt it out of PKCE.",
        "x-privileged-scope": "privileged-users:write"
      }
    },
    "/admin/clients/{clientID}/group-release": {
      "delete": {
        "operationId": "delete_clients_clientID_group_release",
        "parameters": [
          {
            "in": "path",
            "name": "clientID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "removed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks clients:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "clients:write"
            ]
          }
        ],
        "summary": "Tell the application of no group.",
        "x-privileged-scope": "privileged-users:write"
      },
      "get": {
        "operationId": "get_clients_clientID_group_release",
        "parameters": [
          {
            "in": "path",
            "name": "clientID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "client_id": {
                      "type": "string"
                    },
                    "only_groups": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "released": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "client_id",
                    "released",
                    "only_groups"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks clients:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "clients:read"
            ]
          }
        ],
        "summary": "Which groups the application is told of in the groups claim."
      },
      "put": {
        "operationId": "put_clients_clientID_group_release",
        "parameters": [
          {
            "in": "path",
            "name": "clientID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "only_groups": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "client_id": {
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "only_groups": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "released": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "client_id",
                    "released",
                    "only_groups",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks clients:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "clients:write"
            ]
          }
        ],
        "summary": "Tell the application of these groups, or every group when none is named.",
        "x-privileged-scope": "privileged-users:write"
      }
    },
    "/admin/clients/{clientID}/id-jag-audiences": {
      "delete": {
        "operationId": "delete_clients_clientID_id_jag_audiences",
        "parameters": [
          {
            "in": "path",
            "name": "clientID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "audience": {
                      "type": "string"
                    },
                    "client_id": {
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "removed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "client_id",
                    "audience",
                    "removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks clients:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "clients:write"
            ]
          }
        ],
        "summary": "Stop issuing grants for an authorization server.",
        "x-privileged-scope": "privileged-users:write"
      },
      "get": {
        "operationId": "get_clients_clientID_id_jag_audiences",
        "parameters": [
          {
            "in": "path",
            "name": "clientID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "audiences": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "alg": {
                            "type": "string"
                          },
                          "audience": {
                            "type": "string"
                          },
                          "remote_client_id": {
                            "type": "string"
                          },
                          "resources": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "scopes": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          }
                        },
                        "required": [
                          "audience",
                          "remote_client_id",
                          "resources",
                          "scopes",
                          "alg"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "client_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "client_id",
                    "audiences"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks clients:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "clients:read"
            ]
          }
        ],
        "summary": "The authorization servers a client may have a grant for."
      },
      "put": {
        "operationId": "put_clients_clientID_id_jag_audiences",
        "parameters": [
          {
            "in": "path",
            "name": "clientID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "alg": {
                    "type": "string"
                  },
                  "audience": {
                    "type": "string"
                  },
                  "remote_client_id": {
                    "type": "string"
                  },
                  "resources": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "scopes": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "audience": {
                      "type": "string"
                    },
                    "client_id": {
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "client_id",
                    "audience",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks clients:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "clients:write"
            ]
          }
        ],
        "summary": "Let a client have a grant for an authorization server.",
        "x-privileged-scope": "privileged-users:write"
      }
    },
    "/admin/clients/{clientID}/rotate-secret": {
      "post": {
        "operationId": "post_clients_clientID_rotate_secret",
        "parameters": [
          {
            "in": "path",
            "name": "clientID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "client_id": {
                      "type": "string"
                    },
                    "client_secret": {
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "notice": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "client_id",
                    "client_secret",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks clients:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "clients:write"
            ]
          }
        ],
        "summary": "Issue a new client secret, shown once.",
        "x-privileged-scope": "privileged-users:write"
      }
    },
    "/admin/clients/{clientID}/ssf-stream": {
      "patch": {
        "operationId": "patch_clients_clientID_ssf_stream",
        "parameters": [
          {
            "in": "path",
            "name": "clientID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "reason": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "client_id": {
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "string"
                    },
                    "was": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "client_id",
                    "status",
                    "was",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks clients:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "clients:write"
            ]
          }
        ],
        "summary": "Pause, disable or re-enable a client's stream, telling its receiver.",
        "x-privileged-scope": "privileged-users:write"
      }
    },
    "/admin/config-version": {
      "get": {
        "operationId": "get_config_version",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The current configuration version, for conditional writes."
      }
    },
    "/admin/groups": {
      "get": {
        "operationId": "get_groups",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "groups": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "created_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "display_name": {
                            "type": "string"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "may_impersonate": {
                            "type": "boolean"
                          },
                          "member_of": {
                            "items": {
                              "format": "uuid",
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "name": {
                            "type": "string"
                          },
                          "org_id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "posix_gid": {
                            "type": "integer"
                          }
                        },
                        "required": [
                          "id",
                          "org_id",
                          "name",
                          "display_name",
                          "description",
                          "may_impersonate",
                          "created_at",
                          "member_of"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "next_cursor": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "groups"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks groups:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "groups:read"
            ]
          }
        ],
        "summary": "List groups."
      },
      "post": {
        "operationId": "post_groups",
        "parameters": [
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "description": {
                    "type": "string"
                  },
                  "display_name": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "org_id": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks groups:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "groups:write"
            ]
          }
        ],
        "summary": "Create a group."
      }
    },
    "/admin/groups/{groupID}": {
      "delete": {
        "operationId": "delete_groups_groupID",
        "parameters": [
          {
            "in": "path",
            "name": "groupID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "members_removed": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "id",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks groups:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "groups:write"
            ]
          }
        ],
        "summary": "Delete a group and its memberships.",
        "x-privileged-scope": "privileged-users:write"
      },
      "get": {
        "operationId": "get_groups_groupID",
        "parameters": [
          {
            "in": "path",
            "name": "groupID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "created_at": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "display_name": {
                      "type": "string"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "may_impersonate": {
                      "type": "boolean"
                    },
                    "member_of": {
                      "items": {
                        "format": "uuid",
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "name": {
                      "type": "string"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "posix_gid": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "id",
                    "org_id",
                    "name",
                    "display_name",
                    "description",
                    "may_impersonate",
                    "created_at",
                    "member_of"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks groups:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "groups:read"
            ]
          }
        ],
        "summary": "One group."
      },
      "patch": {
        "operationId": "patch_groups_groupID",
        "parameters": [
          {
            "in": "path",
            "name": "groupID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "description": {
                    "type": "string"
                  },
                  "display_name": {
                    "type": "string"
                  },
                  "posix_gid": {
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks groups:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "groups:write"
            ]
          }
        ],
        "summary": "Rename a group or change its description.",
        "x-privileged-scope": "privileged-users:write"
      }
    },
    "/admin/groups/{groupID}/member-groups": {
      "get": {
        "operationId": "get_groups_groupID_member_groups",
        "parameters": [
          {
            "in": "path",
            "name": "groupID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "member_groups": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "added_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "added_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "member_groups"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks groups:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "groups:read"
            ]
          }
        ],
        "summary": "List the groups directly inside a group."
      }
    },
    "/admin/groups/{groupID}/member-groups/{memberGroupID}": {
      "delete": {
        "operationId": "delete_groups_groupID_member_groups_memberGroupID",
        "parameters": [
          {
            "in": "path",
            "name": "groupID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "memberGroupID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "changed": {
                      "type": "boolean"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "group_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "member": {
                      "type": "boolean"
                    },
                    "member_group_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "group_id",
                    "member_group_id",
                    "member",
                    "changed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks groups:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "groups:write"
            ]
          }
        ],
        "summary": "Take a group out of this one.",
        "x-privileged-scope": "privileged-users:write"
      },
      "put": {
        "operationId": "put_groups_groupID_member_groups_memberGroupID",
        "parameters": [
          {
            "in": "path",
            "name": "groupID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "memberGroupID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "changed": {
                      "type": "boolean"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "group_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "member": {
                      "type": "boolean"
                    },
                    "member_group_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "group_id",
                    "member_group_id",
                    "member",
                    "changed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks groups:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "groups:write"
            ]
          }
        ],
        "summary": "Put a group inside this one, so its members are in this one too.",
        "x-privileged-scope": "privileged-users:write"
      }
    },
    "/admin/groups/{groupID}/members": {
      "get": {
        "operationId": "get_groups_groupID_members",
        "parameters": [
          {
            "in": "path",
            "name": "groupID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "members": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "created_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "email": {
                            "type": "string"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "org_id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "status": {
                            "type": "string"
                          },
                          "username": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "org_id",
                          "email",
                          "username",
                          "status",
                          "created_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "next_cursor": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "members"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks groups:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "groups:read"
            ]
          }
        ],
        "summary": "List a group's members."
      }
    },
    "/admin/groups/{groupID}/members/{userID}": {
      "delete": {
        "operationId": "delete_groups_groupID_members_userID",
        "parameters": [
          {
            "in": "path",
            "name": "groupID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "userID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "changed": {
                      "type": "boolean"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "group_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "member": {
                      "type": "boolean"
                    },
                    "user_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "group_id",
                    "user_id",
                    "member",
                    "changed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks groups:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "groups:write"
            ]
          }
        ],
        "summary": "Remove a member.",
        "x-privileged-scope": "privileged-users:write"
      },
      "put": {
        "operationId": "put_groups_groupID_members_userID",
        "parameters": [
          {
            "in": "path",
            "name": "groupID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "userID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "changed": {
                      "type": "boolean"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "group_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "member": {
                      "type": "boolean"
                    },
                    "user_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "group_id",
                    "user_id",
                    "member",
                    "changed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks groups:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "groups:write"
            ]
          }
        ],
        "summary": "Add a member.",
        "x-privileged-scope": "privileged-users:write"
      }
    },
    "/admin/groups/{groupID}/radius": {
      "delete": {
        "operationId": "delete_groups_groupID_radius",
        "parameters": [
          {
            "in": "path",
            "name": "groupID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "group_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "removed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "group_id",
                    "removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks groups:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "groups:write"
            ]
          }
        ],
        "summary": "Take a group's VLAN and Filter-Id away.",
        "x-privileged-scope": "privileged-users:write"
      },
      "put": {
        "operationId": "put_groups_groupID_radius",
        "parameters": [
          {
            "in": "path",
            "name": "groupID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "class": {
                    "type": "string"
                  },
                  "filter_id": {
                    "type": "string"
                  },
                  "priority": {
                    "type": "integer"
                  },
                  "session_timeout": {
                    "type": "integer"
                  },
                  "vendor_attributes": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "type": {
                          "type": "integer"
                        },
                        "value": {
                          "type": "string"
                        },
                        "vendor": {
                          "type": "integer"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "vlan_id": {
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "group_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "group_id",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks groups:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "groups:write"
            ]
          }
        ],
        "summary": "Place a group's members on a VLAN, a Filter-Id or both.",
        "x-privileged-scope": "privileged-users:write"
      }
    },
    "/admin/instances": {
      "get": {
        "operationId": "get_instances",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "instances": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "created_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "display_name": {
                            "type": "string"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "issuer": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "issuer",
                          "display_name",
                          "created_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "instances"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The issuers this deployment has; deployment-wide tokens only."
      }
    },
    "/admin/instances/{instanceID}/brand": {
      "delete": {
        "operationId": "delete_instances_instanceID_brand",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "removed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Return the instance's pages to the built-in appearance."
      },
      "get": {
        "operationId": "get_instances_instanceID_brand",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "branded": {
                      "type": "boolean"
                    },
                    "colour_background": {
                      "type": "string"
                    },
                    "colour_on_primary": {
                      "type": "string"
                    },
                    "colour_primary": {
                      "type": "string"
                    },
                    "colour_text": {
                      "type": "string"
                    },
                    "instance_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "logo_url": {
                      "type": "string"
                    },
                    "product_name": {
                      "type": "string"
                    },
                    "support_url": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "instance_id",
                    "branded",
                    "product_name",
                    "logo_url",
                    "support_url",
                    "colour_primary",
                    "colour_on_primary",
                    "colour_background",
                    "colour_text"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The instance's name, logo, support link and colours."
      },
      "put": {
        "operationId": "put_instances_instanceID_brand",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "colour_background": {
                    "type": "string"
                  },
                  "colour_on_primary": {
                    "type": "string"
                  },
                  "colour_primary": {
                    "type": "string"
                  },
                  "colour_text": {
                    "type": "string"
                  },
                  "logo_url": {
                    "type": "string"
                  },
                  "product_name": {
                    "type": "string"
                  },
                  "support_url": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "branded": {
                      "type": "boolean"
                    },
                    "colour_background": {
                      "type": "string"
                    },
                    "colour_on_primary": {
                      "type": "string"
                    },
                    "colour_primary": {
                      "type": "string"
                    },
                    "colour_text": {
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "instance_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "logo_url": {
                      "type": "string"
                    },
                    "product_name": {
                      "type": "string"
                    },
                    "support_url": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "instance_id",
                    "branded",
                    "product_name",
                    "logo_url",
                    "support_url",
                    "colour_primary",
                    "colour_on_primary",
                    "colour_background",
                    "colour_text",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Brand the instance's pages, checked for contrast."
      }
    },
    "/admin/instances/{instanceID}/client-metadata-rules": {
      "delete": {
        "operationId": "delete_instances_instanceID_client_metadata_rules",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "clients_removed": {
                      "type": "integer"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "instance_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "removed": {
                      "type": "boolean"
                    },
                    "url_prefix": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "instance_id",
                    "url_prefix",
                    "removed",
                    "clients_removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Stop, and delete the clients the rule admitted."
      },
      "get": {
        "operationId": "get_instances_instanceID_client_metadata_rules",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "instance_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "rules": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "org_id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "scopes": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "url_prefix": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "url_prefix",
                          "org_id",
                          "scopes"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "instance_id",
                    "rules"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "Whose client_id URLs the instance will fetch."
      },
      "put": {
        "operationId": "put_instances_instanceID_client_metadata_rules",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "org_id": {
                    "type": "string"
                  },
                  "scopes": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "url_prefix": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "instance_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "url_prefix": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "instance_id",
                    "url_prefix",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Allow client_id URLs under a prefix."
      }
    },
    "/admin/instances/{instanceID}/credential-encryption-key": {
      "post": {
        "operationId": "post_instances_instanceID_credential_encryption_key",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "instance_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "kid": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "instance_id",
                    "kid",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Make a new key for wallets to encrypt to."
      }
    },
    "/admin/instances/{instanceID}/federation": {
      "get": {
        "operationId": "get_instances_instanceID_federation",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "authority_hints": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "contacts": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "entity_id": {
                      "type": "string"
                    },
                    "homepage_uri": {
                      "type": "string"
                    },
                    "instance_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "lifetime_s": {
                      "type": "integer"
                    },
                    "organization_name": {
                      "type": "string"
                    },
                    "trust_anchor_hints": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "instance_id",
                    "entity_id",
                    "enabled",
                    "authority_hints",
                    "trust_anchor_hints",
                    "organization_name",
                    "homepage_uri",
                    "contacts",
                    "lifetime_s"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "Whether the instance is a federation entity, and whatit publishes."
      },
      "put": {
        "operationId": "put_instances_instanceID_federation",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "authority_hints": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "contacts": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "homepage_uri": {
                    "type": "string"
                  },
                  "lifetime_s": {
                    "type": "integer"
                  },
                  "organization_name": {
                    "type": "string"
                  },
                  "trust_anchor_hints": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "entity_id": {
                      "type": "string"
                    },
                    "generated_key": {
                      "type": "string"
                    },
                    "instance_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "restart_required": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "instance_id",
                    "entity_id",
                    "generated_key",
                    "restart_required",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Make the instance a federation entity, or change what it publishes."
      }
    },
    "/admin/instances/{instanceID}/federation/anchors": {
      "delete": {
        "operationId": "delete_instances_instanceID_federation_anchors",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "clients_removed": {
                      "type": "integer"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "entity_id": {
                      "type": "string"
                    },
                    "instance_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "removed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "instance_id",
                    "entity_id",
                    "removed",
                    "clients_removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Stop accepting a Trust Anchor, deleting the clients it admitted."
      },
      "get": {
        "operationId": "get_instances_instanceID_federation_anchors",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "anchors": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "entity_id": {
                            "type": "string"
                          },
                          "jwks": {
                            "additionalProperties": true,
                            "type": "object"
                          },
                          "org_id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "trust_marks": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          }
                        },
                        "required": [
                          "entity_id",
                          "org_id",
                          "jwks",
                          "trust_marks"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "instance_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "instance_id",
                    "anchors"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The Trust Anchors whose relying parties are admitted."
      },
      "put": {
        "operationId": "put_instances_instanceID_federation_anchors",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "entity_id": {
                    "type": "string"
                  },
                  "jwks": {},
                  "org_id": {
                    "type": "string"
                  },
                  "trust_marks": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "entity_id": {
                      "type": "string"
                    },
                    "instance_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "instance_id",
                    "entity_id",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Accept a Trust Anchor's word for relying parties."
      }
    },
    "/admin/instances/{instanceID}/federation/subordinates": {
      "delete": {
        "operationId": "delete_instances_instanceID_federation_subordinates",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "entity_id": {
                      "type": "string"
                    },
                    "instance_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "removed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "instance_id",
                    "entity_id",
                    "removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Stop speaking for an entity."
      },
      "get": {
        "operationId": "get_instances_instanceID_federation_subordinates",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "instance_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "subordinates": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "entity_id": {
                            "type": "string"
                          },
                          "intermediate": {
                            "type": "boolean"
                          },
                          "jwks": {
                            "additionalProperties": true,
                            "type": "object"
                          },
                          "max_path_length": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "metadata_policy": {
                            "additionalProperties": true,
                            "type": "object"
                          }
                        },
                        "required": [
                          "entity_id",
                          "jwks",
                          "max_path_length",
                          "intermediate"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "instance_id",
                    "subordinates"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The entities the instance speaks for in its federation."
      },
      "put": {
        "operationId": "put_instances_instanceID_federation_subordinates",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "entity_id": {
                    "type": "string"
                  },
                  "intermediate": {
                    "type": "boolean"
                  },
                  "jwks": {},
                  "max_path_length": {
                    "type": "integer"
                  },
                  "metadata_policy": {}
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "entity_id": {
                      "type": "string"
                    },
                    "instance_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "instance_id",
                    "entity_id",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Speak for an entity, with the keys it gave you."
      }
    },
    "/admin/instances/{instanceID}/held-trust-marks": {
      "delete": {
        "operationId": "delete_instances_instanceID_held_trust_marks",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "issuer": {
                      "type": "string"
                    },
                    "removed": {
                      "type": "boolean"
                    },
                    "type": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "issuer",
                    "removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Stop publishing a Trust Mark the instance holds."
      },
      "put": {
        "operationId": "put_instances_instanceID_held_trust_marks",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "trust_mark": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "issuer": {
                      "type": "string"
                    },
                    "published": {
                      "type": "boolean"
                    },
                    "type": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "issuer",
                    "published",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Publish a Trust Mark another issuer granted the instance."
      }
    },
    "/admin/instances/{instanceID}/issuer-aliases": {
      "get": {
        "operationId": "get_instances_instanceID_issuer_aliases",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "instance_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "issuer_aliases": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "issuer": {
                            "type": "string"
                          },
                          "pinned_clients": {
                            "type": "integer"
                          },
                          "retire_after": {
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "issuer",
                          "retire_after",
                          "pinned_clients"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "instance_id",
                    "issuer_aliases"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "Legacy issuers the instance also claims, and who is pinned to each."
      },
      "patch": {
        "operationId": "patch_instances_instanceID_issuer_aliases",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "alias": {
                    "type": "string"
                  },
                  "retire_after": {
                    "additionalProperties": false,
                    "properties": {},
                    "type": "object"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "alias": {
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "alias",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Retire an alias, now unless told when."
      },
      "post": {
        "operationId": "post_instances_instanceID_issuer_aliases",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "alias": {
                    "type": "string"
                  },
                  "retire_after": {
                    "additionalProperties": false,
                    "properties": {},
                    "type": "object"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "alias": {
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "alias",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Claim a legacy issuer while relying parties move across."
      }
    },
    "/admin/instances/{instanceID}/keys": {
      "get": {
        "operationId": "get_instances_instanceID_keys",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "instance_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "keys": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "algorithm": {
                            "type": "string"
                          },
                          "demoted_at": {
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "held_in": {
                            "type": "string"
                          },
                          "kid": {
                            "type": "string"
                          },
                          "published_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "retirable_in_s": {
                            "type": "integer"
                          },
                          "state": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "kid",
                          "algorithm",
                          "state",
                          "published_at",
                          "demoted_at",
                          "held_in"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "instance_id",
                    "keys"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The instance's signing keys by id, algorithm and state; never a private half."
      }
    },
    "/admin/instances/{instanceID}/keys/retire": {
      "post": {
        "operationId": "post_instances_instanceID_keys_retire",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "instance_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "retired": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "instance_id",
                    "retired",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Retire the passive keys whose dwell is over."
      }
    },
    "/admin/instances/{instanceID}/keys/rotate": {
      "post": {
        "operationId": "post_instances_instanceID_keys_rotate",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "algorithm": {
                    "type": "string"
                  },
                  "promote_now": {
                    "type": "boolean"
                  },
                  "rsa_bits": {
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "instance_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "steps": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "algorithm": {
                            "type": "string"
                          },
                          "demoted": {
                            "type": "string"
                          },
                          "forced": {
                            "type": "boolean"
                          },
                          "promoted": {
                            "type": "string"
                          },
                          "published": {
                            "type": "string"
                          },
                          "wait_s": {
                            "type": "integer"
                          }
                        },
                        "required": [
                          "algorithm"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "instance_id",
                    "steps",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Take the next safe step of rotation for each algorithm in use."
      }
    },
    "/admin/instances/{instanceID}/trust-mark-delegations": {
      "post": {
        "operationId": "post_instances_instanceID_trust_mark_delegations",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "delegate": {
                    "type": "string"
                  },
                  "lifetime_s": {
                    "type": "integer"
                  },
                  "ref": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "delegate": {
                      "type": "string"
                    },
                    "delegation": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "delegate",
                    "delegation",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Authorise another entity to issue a type of Trust Mark the instance owns."
      }
    },
    "/admin/instances/{instanceID}/trust-marks": {
      "get": {
        "operationId": "get_instances_instanceID_trust_marks",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "entity_id": {
                      "type": "string"
                    },
                    "held": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "added_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "expires_at": {
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "issuer": {
                            "type": "string"
                          },
                          "published": {
                            "type": "boolean"
                          },
                          "type": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "issuer",
                          "published",
                          "added_at",
                          "expires_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "instance_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "issued": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "expires_at": {
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "issued_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "reason": {
                            "type": "string"
                          },
                          "revoked_at": {
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "status": {
                            "type": "string"
                          },
                          "subject": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "subject",
                          "status",
                          "issued_at",
                          "expires_at",
                          "revoked_at",
                          "reason"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "instance_id",
                    "entity_id",
                    "issued",
                    "held"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The Trust Marks the instance issued and the ones it holds."
      },
      "post": {
        "operationId": "post_instances_instanceID_trust_marks",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "delegation": {
                    "type": "string"
                  },
                  "lifetime_s": {
                    "type": "integer"
                  },
                  "logo_uri": {
                    "type": "string"
                  },
                  "ref": {
                    "type": "string"
                  },
                  "subject": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "expires_at": {
                      "format": "date-time",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "subject": {
                      "type": "string"
                    },
                    "trust_mark": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "subject",
                    "trust_mark",
                    "expires_at",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Issue a Trust Mark, signed with the federation key."
      }
    },
    "/admin/instances/{instanceID}/trust-marks/revoke": {
      "post": {
        "operationId": "post_instances_instanceID_trust_marks_revoke",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "reason": {
                    "type": "string"
                  },
                  "subject": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "revoked": {
                      "type": "boolean"
                    },
                    "subject": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "subject",
                    "revoked",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Revoke a Trust Mark the instance issued."
      }
    },
    "/admin/instances/{instanceID}/webauthn": {
      "get": {
        "operationId": "get_instances_instanceID_webauthn",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "instance_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "related_origins": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "rp_display_name": {
                      "type": "string"
                    },
                    "rp_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "instance_id",
                    "rp_id",
                    "rp_display_name",
                    "related_origins"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The Relying Party ID the instance's passkeys are bound to, and its related origins."
      },
      "put": {
        "operationId": "put_instances_instanceID_webauthn",
        "parameters": [
          {
            "in": "path",
            "name": "instanceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "related_origins": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "replace_rp_id": {
                    "type": "boolean"
                  },
                  "rp_display_name": {
                    "type": "string"
                  },
                  "rp_id": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "instance_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "related_origins": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "replaced_rp_id": {
                      "type": "string"
                    },
                    "rp_display_name": {
                      "type": "string"
                    },
                    "rp_id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "instance_id",
                    "rp_id",
                    "rp_display_name",
                    "related_origins",
                    "replaced_rp_id",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Set the RP ID, its name and related origins; changing a set RP ID must be confirmed."
      }
    },
    "/admin/invitations": {
      "get": {
        "operationId": "get_invitations",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "invitations": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "created_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "email": {
                            "type": "string"
                          },
                          "expires_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "groups": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "org_id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "state": {
                            "type": "string"
                          },
                          "used_by": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "org_id",
                          "groups",
                          "state",
                          "created_at",
                          "expires_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "next_cursor": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "invitations"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks users:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "users:read"
            ]
          }
        ],
        "summary": "Invitations, with whether each is open, used, revoked or expired."
      },
      "post": {
        "operationId": "post_invitations",
        "parameters": [
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "email": {
                    "type": "string"
                  },
                  "expires_in_seconds": {
                    "type": "integer"
                  },
                  "groups": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "org_id": {
                    "type": "string"
                  },
                  "send": {
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "expires_at": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "link": {
                      "type": "string"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "sent": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "org_id",
                    "expires_at",
                    "sent"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks users:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "users:write"
            ]
          }
        ],
        "summary": "Invite somebody to create an account: the link once, or mailed to the bound address with send."
      }
    },
    "/admin/invitations/{invitationID}": {
      "delete": {
        "operationId": "delete_invitations_invitationID",
        "parameters": [
          {
            "in": "path",
            "name": "invitationID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks users:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "users:write"
            ]
          }
        ],
        "summary": "Revoke an open invitation."
      }
    },
    "/admin/me": {
      "get": {
        "operationId": "get_me",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "client_id": {
                      "type": "string"
                    },
                    "delegated": {
                      "additionalProperties": true,
                      "type": "object"
                    },
                    "expires_at": {
                      "format": "date-time",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "kind": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "scopes": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "user": {
                      "additionalProperties": false,
                      "properties": {
                        "display_name": {
                          "type": "string"
                        },
                        "email": {
                          "type": "string"
                        },
                        "id": {
                          "format": "uuid",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "email",
                        "display_name"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "kind",
                    "name",
                    "org_id",
                    "scopes",
                    "expires_at"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "An operation was refused; `failed_index` names which, and nothing was written."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Who the caller is, as this request was authenticated: kind, organisation, scopes and any delegation."
      }
    },
    "/admin/organizations": {
      "get": {
        "operationId": "get_organizations",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "organizations": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "created_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "display_name": {
                            "type": "string"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "instance_id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "slug": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "instance_id",
                          "slug",
                          "display_name",
                          "status",
                          "created_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "organizations"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The organisations this token may see, with their status."
      },
      "post": {
        "operationId": "post_organizations",
        "parameters": [
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "display_name": {
                    "type": "string"
                  },
                  "instance_id": {
                    "type": "string"
                  },
                  "slug": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "display_name": {
                      "type": "string"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "instance_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "slug": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "slug",
                    "instance_id",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Provision a tenant. Requires an unscoped token."
      }
    },
    "/admin/organizations/{orgID}": {
      "get": {
        "operationId": "get_organizations_orgID",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "created_at": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "display_name": {
                      "type": "string"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "instance_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "slug": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "instance_id",
                    "slug",
                    "display_name",
                    "status",
                    "created_at"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "One organisation and its status."
      },
      "patch": {
        "operationId": "patch_organizations_orgID",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "status": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "was": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "status",
                    "was",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Suspend or reactivate a tenant. Requires an unscoped token."
      }
    },
    "/admin/organizations/{orgID}/access-policy": {
      "get": {
        "operationId": "get_organizations_orgID_access_policy",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "applied_at": {
                      "format": "date-time",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "document": {
                      "type": "string"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "org_id",
                    "document",
                    "applied_at"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The access policy in force, as applied; none allows everything."
      },
      "put": {
        "operationId": "put_organizations_orgID_access_policy",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "document": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "summary": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "org_id",
                    "summary",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Put a policy document in force once it loads and its tests pass."
      }
    },
    "/admin/organizations/{orgID}/approvals": {
      "get": {
        "operationId": "get_organizations_orgID_approvals",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "approvals": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "decided_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "decided_by": {
                            "type": "string"
                          },
                          "expires_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "kind": {
                            "type": "string"
                          },
                          "method": {
                            "type": "string"
                          },
                          "path": {
                            "type": "string"
                          },
                          "requested_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "requested_by": {
                            "type": "string"
                          },
                          "requested_by_me": {
                            "type": "boolean"
                          },
                          "result_status": {
                            "type": "integer"
                          },
                          "status": {
                            "type": "string"
                          },
                          "summary": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "kind",
                          "method",
                          "path",
                          "summary",
                          "requested_by",
                          "requested_at",
                          "expires_at",
                          "status",
                          "requested_by_me"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "org_id",
                    "approvals"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "Changes waiting for a second person, and how recent ones were decided."
      }
    },
    "/admin/organizations/{orgID}/attesters": {
      "get": {
        "operationId": "get_organizations_orgID_attesters",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "attesters": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "created_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "keys": {
                            "type": "integer"
                          },
                          "name": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "keys",
                          "description",
                          "created_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "org_id",
                    "attesters"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The attesters whose client attestations the organisation accepts."
      }
    },
    "/admin/organizations/{orgID}/attesters/{name}": {
      "delete": {
        "operationId": "delete_organizations_orgID_attesters_name",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "removed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Stop trusting an attester."
      },
      "put": {
        "operationId": "put_organizations_orgID_attesters_name",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "description": {
                    "type": "string"
                  },
                  "jwks": {}
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "keys": {
                      "type": "integer"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "name",
                    "keys",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Trust an attester's public keys, or replace them."
      }
    },
    "/admin/organizations/{orgID}/attributes": {
      "get": {
        "operationId": "get_organizations_orgID_attributes",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "attributes": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "display_name": {
                            "type": "string"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "personal": {
                            "type": "boolean"
                          },
                          "required": {
                            "type": "boolean"
                          },
                          "user_readable": {
                            "type": "boolean"
                          },
                          "user_writable": {
                            "type": "boolean"
                          },
                          "value_type": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "value_type"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "attributes"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The organisation's user attribute declarations."
      },
      "put": {
        "operationId": "put_organizations_orgID_attributes",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "display_name": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "personal": {
                    "type": "boolean"
                  },
                  "required": {
                    "type": "boolean"
                  },
                  "user_readable": {
                    "type": "boolean"
                  },
                  "user_writable": {
                    "type": "boolean"
                  },
                  "value_type": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "personal": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Declare or update a user attribute."
      }
    },
    "/admin/organizations/{orgID}/authorization-detail-types": {
      "delete": {
        "operationId": "delete_organizations_orgID_authorization_detail_types",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "removed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Forget a type, named by ?type=, and every client's leave to ask for it."
      },
      "get": {
        "operationId": "get_organizations_orgID_authorization_detail_types",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "authorization_detail_types": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "clients": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "description": {
                            "type": "string"
                          },
                          "fields": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "required": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "type": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "fields",
                          "required",
                          "description",
                          "clients"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "org_id",
                    "authorization_detail_types"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The authorization details types the organisation accepts, and which clients may ask for each."
      },
      "put": {
        "operationId": "put_organizations_orgID_authorization_detail_types",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "description": {
                    "type": "string"
                  },
                  "fields": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "required": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "type": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "type": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Register a type, or replace its fields."
      }
    },
    "/admin/organizations/{orgID}/authorization-model": {
      "get": {
        "operationId": "get_organizations_orgID_authorization_model",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "source": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "org_id",
                    "source"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The organisation's authorization model as written; none permits nothing."
      },
      "put": {
        "operationId": "put_organizations_orgID_authorization_model",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "source": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "actions": {
                      "type": "integer"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "tests_passed": {
                      "type": "integer"
                    },
                    "types": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "org_id",
                    "types",
                    "actions",
                    "tests_passed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Store a model once its own tests pass."
      }
    },
    "/admin/organizations/{orgID}/authorization/explain": {
      "get": {
        "operationId": "get_organizations_orgID_authorization_explain",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "allowed": {
                      "type": "boolean"
                    },
                    "defined": {
                      "type": "boolean"
                    },
                    "groups": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "path": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "refused": {
                      "type": "string"
                    },
                    "relation": {
                      "type": "string"
                    },
                    "relations": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "requires": {
                      "type": "string"
                    },
                    "via": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "org_id",
                    "allowed",
                    "defined",
                    "relation",
                    "via",
                    "relations",
                    "groups",
                    "requires",
                    "path",
                    "refused"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "How a question would come out on relations, and whose grant answers it."
      }
    },
    "/admin/organizations/{orgID}/brand": {
      "delete": {
        "operationId": "delete_organizations_orgID_brand",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "removed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Return the organisation to its instance's appearance."
      },
      "get": {
        "operationId": "get_organizations_orgID_brand",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "branded": {
                      "type": "boolean"
                    },
                    "colour_background": {
                      "type": "string"
                    },
                    "colour_on_primary": {
                      "type": "string"
                    },
                    "colour_primary": {
                      "type": "string"
                    },
                    "colour_text": {
                      "type": "string"
                    },
                    "logo_url": {
                      "type": "string"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "product_name": {
                      "type": "string"
                    },
                    "support_url": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "org_id",
                    "branded",
                    "product_name",
                    "logo_url",
                    "support_url",
                    "colour_primary",
                    "colour_on_primary",
                    "colour_background",
                    "colour_text"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The organisation's own name, logo, support link and colours."
      },
      "put": {
        "operationId": "put_organizations_orgID_brand",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "colour_background": {
                    "type": "string"
                  },
                  "colour_on_primary": {
                    "type": "string"
                  },
                  "colour_primary": {
                    "type": "string"
                  },
                  "colour_text": {
                    "type": "string"
                  },
                  "logo_url": {
                    "type": "string"
                  },
                  "product_name": {
                    "type": "string"
                  },
                  "support_url": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "branded": {
                      "type": "boolean"
                    },
                    "colour_background": {
                      "type": "string"
                    },
                    "colour_on_primary": {
                      "type": "string"
                    },
                    "colour_primary": {
                      "type": "string"
                    },
                    "colour_text": {
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "logo_url": {
                      "type": "string"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "product_name": {
                      "type": "string"
                    },
                    "support_url": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "org_id",
                    "branded",
                    "product_name",
                    "logo_url",
                    "support_url",
                    "colour_primary",
                    "colour_on_primary",
                    "colour_background",
                    "colour_text",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Brand the organisation's pages and mail over its instance's, checked for contrast."
      }
    },
    "/admin/organizations/{orgID}/budgets": {
      "get": {
        "operationId": "get_organizations_orgID_budgets",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "sign_ins_default": {
                      "type": "boolean"
                    },
                    "sign_ins_per_minute": {
                      "type": "integer"
                    },
                    "tokens_default": {
                      "type": "boolean"
                    },
                    "tokens_per_minute": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "org_id",
                    "tokens_per_minute",
                    "sign_ins_per_minute",
                    "tokens_default",
                    "sign_ins_default"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The tokens and sign-ins the organisation may take a minute."
      },
      "put": {
        "operationId": "put_organizations_orgID_budgets",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "sign_ins_per_minute": {
                    "type": "integer"
                  },
                  "tokens_per_minute": {
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "sign_ins_default": {
                      "type": "boolean"
                    },
                    "sign_ins_per_minute": {
                      "type": "integer"
                    },
                    "tokens_default": {
                      "type": "boolean"
                    },
                    "tokens_per_minute": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "org_id",
                    "tokens_per_minute",
                    "sign_ins_per_minute",
                    "tokens_default",
                    "sign_ins_default",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Set the organisation's budgets; deployment-wide tokens only."
      }
    },
    "/admin/organizations/{orgID}/claim-mappers": {
      "get": {
        "operationId": "get_organizations_orgID_claim_mappers",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "mappers": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "all_clients": {
                            "type": "boolean"
                          },
                          "attribute": {
                            "type": "string"
                          },
                          "claim_name": {
                            "type": "string"
                          },
                          "client_id": {
                            "type": "string"
                          },
                          "destination": {
                            "type": "string"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "personal": {
                            "type": "boolean"
                          },
                          "required_scope": {
                            "type": "string"
                          },
                          "source": {
                            "type": "string"
                          },
                          "source_value": {
                            "type": "string"
                          },
                          "transform": {
                            "type": "string"
                          },
                          "transform_arg": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "attribute",
                          "claim_name",
                          "destination",
                          "all_clients"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "mappers"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "Every attribute this organisation releases as a claim."
      },
      "post": {
        "operationId": "post_organizations_orgID_claim_mappers",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "all_clients": {
                    "type": "boolean"
                  },
                  "attribute": {
                    "type": "string"
                  },
                  "claim_name": {
                    "type": "string"
                  },
                  "client_id": {
                    "type": "string"
                  },
                  "destination": {
                    "type": "string"
                  },
                  "required_scope": {
                    "type": "string"
                  },
                  "source": {
                    "type": "string"
                  },
                  "source_value": {
                    "type": "string"
                  },
                  "transform": {
                    "type": "string"
                  },
                  "transform_arg": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "claim_name": {
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "destination": {
                      "type": "string"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "claim_name",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Release an attribute as a claim."
      }
    },
    "/admin/organizations/{orgID}/claim-mappers/{mapperID}": {
      "delete": {
        "operationId": "delete_organizations_orgID_claim_mappers_mapperID",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "mapperID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Stop releasing an attribute as a claim."
      }
    },
    "/admin/organizations/{orgID}/config": {
      "post": {
        "operationId": "post_organizations_orgID_config",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "document": {
                    "type": "string"
                  },
                  "dry_run": {
                    "type": "boolean"
                  },
                  "prune": {
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "changes": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "action": {
                            "type": "string"
                          },
                          "destructive": {
                            "type": "boolean"
                          },
                          "detail": {
                            "type": "string"
                          },
                          "kind": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "action",
                          "kind",
                          "name",
                          "detail",
                          "destructive"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "create": {
                      "type": "integer"
                    },
                    "delete": {
                      "type": "integer"
                    },
                    "dry_run": {
                      "type": "boolean"
                    },
                    "minted": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "kind": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "secret": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "kind",
                          "name",
                          "secret"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "update": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "dry_run",
                    "changes",
                    "create",
                    "update",
                    "delete",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Plan a configuration file, or apply it in one transaction."
      }
    },
    "/admin/organizations/{orgID}/credential-configurations": {
      "get": {
        "operationId": "get_organizations_orgID_credential_configurations",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "configurations": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "always": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "deferred": {
                            "type": "boolean"
                          },
                          "display_name": {
                            "type": "string"
                          },
                          "format": {
                            "type": "string"
                          },
                          "id": {
                            "type": "string"
                          },
                          "lifetime_s": {
                            "type": "integer"
                          },
                          "require_key_attestation": {
                            "type": "boolean"
                          },
                          "revocable": {
                            "type": "boolean"
                          },
                          "selective": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "vct": {
                            "type": "string"
                          },
                          "wallet_initiated": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "format",
                          "vct",
                          "always",
                          "selective",
                          "lifetime_s",
                          "display_name",
                          "require_key_attestation",
                          "deferred",
                          "wallet_initiated",
                          "revocable"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "org_id",
                    "configurations"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The credentials the organisation issues."
      }
    },
    "/admin/organizations/{orgID}/credential-configurations/{configID}": {
      "put": {
        "operationId": "put_organizations_orgID_credential_configurations_configID",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "configID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "always": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "deferred": {
                    "type": "boolean"
                  },
                  "display_name": {
                    "type": "string"
                  },
                  "format": {
                    "type": "string"
                  },
                  "lifetime_s": {
                    "type": "integer"
                  },
                  "require_key_attestation": {
                    "type": "boolean"
                  },
                  "revocable": {
                    "type": "boolean"
                  },
                  "selective": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "vct": {
                    "type": "string"
                  },
                  "wallet_initiated": {
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "id": {
                      "type": "string"
                    },
                    "require_key_attestation": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "require_key_attestation",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Define a credential, or redefine it."
      }
    },
    "/admin/organizations/{orgID}/credential-proof-roots": {
      "get": {
        "operationId": "get_organizations_orgID_credential_proof_roots",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "roots": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "not_after": {
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "subject": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "subject",
                          "not_after"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "org_id",
                    "roots"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The roots an x5c key proof may verify to."
      }
    },
    "/admin/organizations/{orgID}/credential-proof-roots/{name}": {
      "delete": {
        "operationId": "delete_organizations_orgID_credential_proof_roots_name",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "name": {
                      "type": "string"
                    },
                    "removed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "name",
                    "removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Stop trusting a CA for x5c key proofs."
      },
      "put": {
        "operationId": "put_organizations_orgID_credential_proof_roots_name",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "certificate": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "name": {
                      "type": "string"
                    },
                    "not_after": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "subject": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "name",
                    "subject",
                    "not_after",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Trust a CA for x5c key proofs."
      }
    },
    "/admin/organizations/{orgID}/credential-requests": {
      "get": {
        "operationId": "get_organizations_orgID_credential_requests",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "requests": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "configuration": {
                            "type": "string"
                          },
                          "created_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "email": {
                            "type": "string"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "user_id": {
                            "format": "uuid",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "user_id",
                          "email",
                          "configuration",
                          "created_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "org_id",
                    "requests"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "What wallets have asked for and is waiting on a decision."
      }
    },
    "/admin/organizations/{orgID}/credential-requests/{requestID}": {
      "put": {
        "operationId": "put_organizations_orgID_credential_requests_requestID",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "requestID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "decision": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "decision": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "decision",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Approve or deny a waiting request."
      }
    },
    "/admin/organizations/{orgID}/credential-revocations": {
      "post": {
        "operationId": "post_organizations_orgID_credential_revocations",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "credential_id": {
                    "type": "string"
                  },
                  "user_id": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "revoked": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "org_id",
                    "revoked",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Take back a credential, or all a person holds."
      }
    },
    "/admin/organizations/{orgID}/directories": {
      "get": {
        "operationId": "get_organizations_orgID_directories",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "sources": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "attribute_map": {
                            "additionalProperties": {
                              "type": "string"
                            },
                            "type": "object"
                          },
                          "dry_run": {
                            "type": "boolean"
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "fetch_groups": {
                            "type": "boolean"
                          },
                          "group_map": {
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "group": {
                                  "type": "string"
                                },
                                "remote_group": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "remote_group",
                                "group"
                              ],
                              "type": "object"
                            },
                            "type": "array"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "kind": {
                            "type": "string"
                          },
                          "last_created": {
                            "type": "integer"
                          },
                          "last_deactivated": {
                            "type": "integer"
                          },
                          "last_error": {
                            "type": "string"
                          },
                          "last_sync_at": {
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "last_updated": {
                            "type": "integer"
                          },
                          "max_deactivate_percent": {
                            "type": "integer"
                          },
                          "name": {
                            "type": "string"
                          },
                          "next_sync_at": {
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "on_missing": {
                            "type": "string"
                          },
                          "slug": {
                            "type": "string"
                          },
                          "sync_interval_seconds": {
                            "type": "integer"
                          }
                        },
                        "required": [
                          "id",
                          "slug",
                          "name",
                          "kind",
                          "on_missing",
                          "enabled",
                          "dry_run",
                          "fetch_groups",
                          "max_deactivate_percent",
                          "last_sync_at",
                          "last_created",
                          "last_updated",
                          "last_deactivated",
                          "last_error",
                          "group_map",
                          "attribute_map",
                          "sync_interval_seconds",
                          "next_sync_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "org_id",
                    "sources"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The directories the organisation's accounts follow, and what each last sync did."
      },
      "post": {
        "operationId": "post_organizations_orgID_directories",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "credentials": {},
                  "domain": {
                    "type": "string"
                  },
                  "fetch_groups": {
                    "type": "boolean"
                  },
                  "filter": {
                    "type": "string"
                  },
                  "group_attribute": {
                    "type": "string"
                  },
                  "impersonate": {
                    "type": "string"
                  },
                  "kind": {
                    "type": "string"
                  },
                  "ldap_base_dn": {
                    "type": "string"
                  },
                  "ldap_bind_dn": {
                    "type": "string"
                  },
                  "ldap_ca_pem": {
                    "type": "string"
                  },
                  "ldap_flavour": {
                    "type": "string"
                  },
                  "ldap_password": {
                    "type": "string"
                  },
                  "ldap_start_tls": {
                    "type": "boolean"
                  },
                  "ldap_url": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "slug": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "dry_run": {
                      "type": "boolean"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "kind": {
                      "type": "string"
                    },
                    "slug": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "slug",
                    "kind",
                    "dry_run",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Register a Google, Entra or LDAP source; it starts in dry run."
      }
    },
    "/admin/organizations/{orgID}/directories/{slug}": {
      "patch": {
        "operationId": "patch_organizations_orgID_directories_slug",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "attribute_map": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  },
                  "dry_run": {
                    "type": "boolean"
                  },
                  "enabled": {
                    "type": "boolean"
                  },
                  "fetch_groups": {
                    "type": "boolean"
                  },
                  "group_attribute": {
                    "type": "string"
                  },
                  "max_deactivate_percent": {
                    "type": "integer"
                  },
                  "on_missing": {
                    "type": "string"
                  },
                  "sync_interval_seconds": {
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "slug": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "slug",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Change how a source syncs; what is not given is kept."
      }
    },
    "/admin/organizations/{orgID}/directories/{slug}/group-map": {
      "delete": {
        "operationId": "delete_organizations_orgID_directories_slug_group_map",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "group": {
                      "type": "string"
                    },
                    "mapped": {
                      "type": "boolean"
                    },
                    "remote_group": {
                      "type": "string"
                    },
                    "slug": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "slug",
                    "remote_group",
                    "group",
                    "mapped",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Stop a directory group granting a local group."
      },
      "put": {
        "operationId": "put_organizations_orgID_directories_slug_group_map",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "group": {
                    "type": "string"
                  },
                  "remote_group": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "group": {
                      "type": "string"
                    },
                    "mapped": {
                      "type": "boolean"
                    },
                    "remote_group": {
                      "type": "string"
                    },
                    "slug": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "slug",
                    "remote_group",
                    "group",
                    "mapped",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Say which local group a directory group grants."
      }
    },
    "/admin/organizations/{orgID}/directories/{slug}/sync": {
      "post": {
        "operationId": "post_organizations_orgID_directories_slug_sync",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "apply": {
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "active_before": {
                      "type": "integer"
                    },
                    "applied": {
                      "type": "boolean"
                    },
                    "attributes": {
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "dry_run_configured": {
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "error_detail": {
                      "type": "string"
                    },
                    "groups": {
                      "type": "string"
                    },
                    "groups_skipped": {
                      "type": "boolean"
                    },
                    "plan": {
                      "type": "string"
                    },
                    "slug": {
                      "type": "string"
                    },
                    "upstream": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "slug",
                    "upstream",
                    "active_before",
                    "plan",
                    "groups",
                    "attributes",
                    "applied",
                    "dry_run_configured",
                    "groups_skipped",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Reconcile the organisation with a directory, or preview it."
      }
    },
    "/admin/organizations/{orgID}/directories/{slug}/test": {
      "post": {
        "operationId": "post_organizations_orgID_directories_slug_test",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "found": {
                      "type": "integer"
                    },
                    "ok": {
                      "type": "boolean"
                    },
                    "server": {
                      "type": "string"
                    },
                    "slug": {
                      "type": "string"
                    },
                    "step": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "slug",
                    "ok",
                    "step",
                    "detail",
                    "server",
                    "found",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Read a directory as a sync would and say where it stopped."
      }
    },
    "/admin/organizations/{orgID}/duo": {
      "get": {
        "operationId": "get_organizations_orgID_duo",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "api_host": {
                      "type": "string"
                    },
                    "client_id": {
                      "type": "string"
                    },
                    "configured": {
                      "type": "boolean"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "enrolled": {
                      "type": "integer"
                    },
                    "fail_open": {
                      "type": "boolean"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "org_id",
                    "configured",
                    "enabled",
                    "client_id",
                    "api_host",
                    "fail_open",
                    "enrolled"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The organisation's Duo application, without its secret, and how many people are enrolled."
      },
      "put": {
        "operationId": "put_organizations_orgID_duo",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "api_host": {
                    "type": "string"
                  },
                  "client_id": {
                    "type": "string"
                  },
                  "fail_open": {
                    "type": "boolean"
                  },
                  "secret": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "api_host": {
                      "type": "string"
                    },
                    "client_id": {
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "fail_open": {
                      "type": "boolean"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "org_id",
                    "client_id",
                    "api_host",
                    "fail_open",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Configure Duo, checked against Duo before anything is stored."
      }
    },
    "/admin/organizations/{orgID}/event-subscriptions": {
      "get": {
        "operationId": "get_organizations_orgID_event_subscriptions",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "subscriptions": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "delivered": {
                            "type": "integer"
                          },
                          "disabled_reason": {
                            "type": "string"
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "event_types": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "outstanding": {
                            "type": "integer"
                          },
                          "url": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "url",
                          "event_types",
                          "enabled",
                          "disabled_reason",
                          "delivered",
                          "outstanding"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "org_id",
                    "subscriptions"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "Where the organisation's events are delivered, and how the deliveries are going."
      },
      "post": {
        "operationId": "post_organizations_orgID_event_subscriptions",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "event_types": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "name": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "secret": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "secret",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Subscribe a URL to events; its signing secret is shown once."
      }
    },
    "/admin/organizations/{orgID}/event-subscriptions/{name}": {
      "delete": {
        "operationId": "delete_organizations_orgID_event_subscriptions_name",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "name": {
                      "type": "string"
                    },
                    "removed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "name",
                    "removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Remove a subscription; nothing more is delivered to it."
      }
    },
    "/admin/organizations/{orgID}/event-subscriptions/{name}/enable": {
      "post": {
        "operationId": "post_organizations_orgID_event_subscriptions_name_enable",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "name",
                    "enabled",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Switch a subscription back on after it was given up on."
      }
    },
    "/admin/organizations/{orgID}/event-subscriptions/{name}/rotate-secret": {
      "post": {
        "operationId": "post_organizations_orgID_event_subscriptions_name_rotate_secret",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "name": {
                      "type": "string"
                    },
                    "secret": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "name",
                    "secret",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Replace a subscription's signing secret, shown once."
      }
    },
    "/admin/organizations/{orgID}/event-subscriptions/{name}/test": {
      "post": {
        "operationId": "post_organizations_orgID_event_subscriptions_name_test",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "event_id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "name",
                    "event_id",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Queue one signed test delivery to a subscription."
      }
    },
    "/admin/organizations/{orgID}/external-factors": {
      "get": {
        "operationId": "get_organizations_orgID_external_factors",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "external_factors": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "amr": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "created_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "issuer": {
                            "type": "string"
                          },
                          "keys": {
                            "type": "integer"
                          },
                          "name": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "url",
                          "issuer",
                          "amr",
                          "keys",
                          "created_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "org_id",
                    "external_factors"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The services an external_factor stage may ask."
      }
    },
    "/admin/organizations/{orgID}/external-factors/{name}": {
      "delete": {
        "operationId": "delete_organizations_orgID_external_factors_name",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "removed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Forget a service, refused while the sign-in flow names it."
      },
      "put": {
        "operationId": "put_organizations_orgID_external_factors_name",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "amr": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "issuer": {
                    "type": "string"
                  },
                  "jwks": {},
                  "url": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "keys": {
                      "type": "integer"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "name",
                    "keys",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Register a service, or replace what is registered under its name."
      }
    },
    "/admin/organizations/{orgID}/identity-providers": {
      "get": {
        "operationId": "get_organizations_orgID_identity_providers",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "providers": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "allow_assertions": {
                            "type": "boolean"
                          },
                          "allow_linking": {
                            "type": "boolean"
                          },
                          "allow_signup": {
                            "type": "boolean"
                          },
                          "attribute_map": {
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "attribute": {
                                  "type": "string"
                                },
                                "claim": {
                                  "type": "string"
                                },
                                "max_length": {
                                  "type": "integer"
                                },
                                "overwrite": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "claim",
                                "attribute",
                                "overwrite",
                                "max_length"
                              ],
                              "type": "object"
                            },
                            "type": "array"
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "end_session_url": {
                            "type": "string"
                          },
                          "forward_parameters": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "group_claim": {
                            "type": "string"
                          },
                          "group_map": {
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "group": {
                                  "type": "string"
                                },
                                "remote_group": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "remote_group",
                                "group"
                              ],
                              "type": "object"
                            },
                            "type": "array"
                          },
                          "has_client_key": {
                            "type": "boolean"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "issuer": {
                            "type": "string"
                          },
                          "kind": {
                            "type": "string"
                          },
                          "linked": {
                            "type": "integer"
                          },
                          "login_domains": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "metadata_read_at": {
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "metadata_url": {
                            "type": "string"
                          },
                          "mfa_acr": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "mfa_amr": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "name": {
                            "type": "string"
                          },
                          "require_verified_email": {
                            "type": "boolean"
                          },
                          "slug": {
                            "type": "string"
                          },
                          "store_tokens": {
                            "type": "boolean"
                          },
                          "token_auth_method": {
                            "type": "string"
                          },
                          "trust_email_verification": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "slug",
                          "name",
                          "kind",
                          "issuer",
                          "enabled",
                          "allow_signup",
                          "allow_linking",
                          "allow_assertions",
                          "trust_email_verification",
                          "require_verified_email",
                          "mfa_amr",
                          "mfa_acr",
                          "login_domains",
                          "end_session_url",
                          "token_auth_method",
                          "has_client_key",
                          "linked",
                          "attribute_map",
                          "forward_parameters",
                          "group_claim",
                          "group_map",
                          "store_tokens",
                          "metadata_url",
                          "metadata_read_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "org_id",
                    "providers"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The providers people sign in through and the issuers assertions come from."
      },
      "post": {
        "operationId": "post_organizations_orgID_identity_providers",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "allow_linking": {
                    "type": "boolean"
                  },
                  "allow_signup": {
                    "type": "boolean"
                  },
                  "allow_unsolicited": {
                    "type": "boolean"
                  },
                  "authorize_url": {
                    "type": "string"
                  },
                  "certificate": {
                    "type": "string"
                  },
                  "certificate_chain": {
                    "type": "string"
                  },
                  "client_id": {
                    "type": "string"
                  },
                  "client_id_prefix": {
                    "type": "string"
                  },
                  "client_secret": {
                    "type": "string"
                  },
                  "credential_format": {
                    "type": "string"
                  },
                  "cross_device": {
                    "type": "boolean"
                  },
                  "dc_api": {
                    "type": "boolean"
                  },
                  "doctype": {
                    "type": "string"
                  },
                  "email_claim": {
                    "type": "string"
                  },
                  "entity_id": {
                    "type": "string"
                  },
                  "force_authn": {
                    "type": "boolean"
                  },
                  "iaca_roots": {
                    "type": "string"
                  },
                  "issuer": {
                    "type": "string"
                  },
                  "jwks_url": {
                    "type": "string"
                  },
                  "kind": {
                    "type": "string"
                  },
                  "metadata": {
                    "type": "string"
                  },
                  "metadata_signer": {
                    "type": "string"
                  },
                  "metadata_unsigned": {
                    "type": "boolean"
                  },
                  "metadata_url": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "name_claim": {
                    "type": "string"
                  },
                  "name_id_format": {
                    "type": "string"
                  },
                  "request_key": {
                    "type": "string"
                  },
                  "response_mode": {
                    "type": "string"
                  },
                  "scopes": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "skew_seconds": {
                    "type": "integer"
                  },
                  "slug": {
                    "type": "string"
                  },
                  "sso_url": {
                    "type": "string"
                  },
                  "subject_claim": {
                    "type": "string"
                  },
                  "token_url": {
                    "type": "string"
                  },
                  "trust_email_verification": {
                    "type": "boolean"
                  },
                  "userinfo_email": {
                    "type": "string"
                  },
                  "userinfo_email_verified": {
                    "type": "string"
                  },
                  "userinfo_name": {
                    "type": "string"
                  },
                  "userinfo_subject": {
                    "type": "string"
                  },
                  "userinfo_url": {
                    "type": "string"
                  },
                  "vct_values": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "wallet_url": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "acs_path": {
                      "type": "string"
                    },
                    "allow_assertions": {
                      "type": "boolean"
                    },
                    "callback_path": {
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "keys": {
                      "type": "integer"
                    },
                    "kind": {
                      "type": "string"
                    },
                    "metadata_path": {
                      "type": "string"
                    },
                    "response_path": {
                      "type": "string"
                    },
                    "sign_in_path": {
                      "type": "string"
                    },
                    "slug": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "slug",
                    "kind",
                    "allow_assertions",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Register a provider to sign in through, or an issuer whose assertions may be accepted."
      }
    },
    "/admin/organizations/{orgID}/identity-providers/{slug}": {
      "patch": {
        "operationId": "patch_organizations_orgID_identity_providers_slug",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "allow_assertions": {
                    "type": "boolean"
                  },
                  "cross_device": {
                    "type": "boolean"
                  },
                  "dc_api": {
                    "type": "boolean"
                  },
                  "enabled": {
                    "type": "boolean"
                  },
                  "end_session_url": {
                    "type": "string"
                  },
                  "forward_parameters": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "group_claim": {
                    "type": "string"
                  },
                  "iaca_roots": {
                    "type": "string"
                  },
                  "login_domains": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "mfa_acr": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "mfa_amr": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "require_verified_email": {
                    "type": "boolean"
                  },
                  "store_tokens": {
                    "type": "boolean"
                  },
                  "trust_email_verification": {
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "slug": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "slug",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Take a provider out of service, allow its assertions, or say what of it is trusted."
      }
    },
    "/admin/organizations/{orgID}/identity-providers/{slug}/attribute-map": {
      "delete": {
        "operationId": "delete_organizations_orgID_identity_providers_slug_attribute_map",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "attribute": {
                      "type": "string"
                    },
                    "claim": {
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "mapped": {
                      "type": "boolean"
                    },
                    "slug": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "slug",
                    "claim",
                    "attribute",
                    "mapped",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Stop a provider's claim reaching an attribute."
      },
      "put": {
        "operationId": "put_organizations_orgID_identity_providers_slug_attribute_map",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "attribute": {
                    "type": "string"
                  },
                  "claim": {
                    "type": "string"
                  },
                  "max_length": {
                    "type": "integer"
                  },
                  "overwrite": {
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "attribute": {
                      "type": "string"
                    },
                    "claim": {
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "mapped": {
                      "type": "boolean"
                    },
                    "slug": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "slug",
                    "claim",
                    "attribute",
                    "mapped",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Route a provider's claim into a declared attribute."
      }
    },
    "/admin/organizations/{orgID}/identity-providers/{slug}/group-map": {
      "delete": {
        "operationId": "delete_organizations_orgID_identity_providers_slug_group_map",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "group": {
                      "type": "string"
                    },
                    "mapped": {
                      "type": "boolean"
                    },
                    "remote_group": {
                      "type": "string"
                    },
                    "slug": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "slug",
                    "remote_group",
                    "group",
                    "mapped",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Stop a provider's group granting a local one"
      },
      "put": {
        "operationId": "put_organizations_orgID_identity_providers_slug_group_map",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "group": {
                    "type": "string"
                  },
                  "remote_group": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "group": {
                      "type": "string"
                    },
                    "mapped": {
                      "type": "boolean"
                    },
                    "remote_group": {
                      "type": "string"
                    },
                    "slug": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "slug",
                    "remote_group",
                    "group",
                    "mapped",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Say a provider's group grants a local one"
      }
    },
    "/admin/organizations/{orgID}/identity-providers/{slug}/metadata": {
      "post": {
        "operationId": "post_organizations_orgID_identity_providers_slug_metadata",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "dry_run": {
                    "type": "boolean"
                  },
                  "metadata": {
                    "type": "string"
                  },
                  "metadata_signer": {
                    "type": "string"
                  },
                  "metadata_unsigned": {
                    "type": "boolean"
                  },
                  "metadata_url": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "applied": {
                      "type": "boolean"
                    },
                    "changes": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "field": {
                            "type": "string"
                          },
                          "from": {
                            "type": "string"
                          },
                          "to": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "field",
                          "from",
                          "to"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "entity_id": {
                      "type": "string"
                    },
                    "notes": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "entity_id",
                    "applied",
                    "changes",
                    "notes"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Read a SAML upstream's metadata again, or see what that would change."
      }
    },
    "/admin/organizations/{orgID}/identity-providers/{slug}/saml-key-use": {
      "put": {
        "operationId": "put_organizations_orgID_identity_providers_slug_saml_key_use",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "require_encryption": {
                    "type": "boolean"
                  },
                  "sign_requests": {
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Say whether a SAML upstream is sent signed requests and must encrypt its assertions."
      }
    },
    "/admin/organizations/{orgID}/identity-providers/{slug}/saml-keys": {
      "get": {
        "operationId": "get_organizations_orgID_identity_providers_slug_saml_keys",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "keys": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "certificate": {
                            "type": "string"
                          },
                          "created_at": {
                            "type": "string"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "purpose": {
                            "type": "string"
                          },
                          "retired_at": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "purpose",
                          "certificate",
                          "created_at",
                          "retired_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "keys"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "A SAML upstream's keys in this deployment, with their certificates."
      },
      "post": {
        "operationId": "post_organizations_orgID_identity_providers_slug_saml_keys",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "purpose": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "certificate": {
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "created_at": {
                      "type": "string"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "purpose": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "purpose",
                    "certificate",
                    "created_at",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Make a key toward a SAML upstream, to sign requests or to be encrypted to."
      }
    },
    "/admin/organizations/{orgID}/identity-providers/{slug}/saml-keys/{keyID}": {
      "delete": {
        "operationId": "delete_organizations_orgID_identity_providers_slug_saml_keys_keyID",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "keyID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "retired": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "retired",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Retire a key toward a SAML upstream."
      }
    },
    "/admin/organizations/{orgID}/identity-providers/{slug}/token-auth": {
      "put": {
        "operationId": "put_organizations_orgID_identity_providers_slug_token_auth",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "client_certificate": {
                    "type": "string"
                  },
                  "client_key": {
                    "type": "string"
                  },
                  "method": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "method": {
                      "type": "string"
                    },
                    "slug": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "slug",
                    "method",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Say how this engine proves itself at the provider's token endpoint."
      }
    },
    "/admin/organizations/{orgID}/identity-providers/{slug}/vp-issuers": {
      "delete": {
        "operationId": "delete_organizations_orgID_identity_providers_slug_vp_issuers",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "believed": {
                      "type": "boolean"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "issuer": {
                      "type": "string"
                    },
                    "slug": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "slug",
                    "issuer",
                    "believed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Stop believing an issuer for a wallet sign-in"
      },
      "put": {
        "operationId": "put_organizations_orgID_identity_providers_slug_vp_issuers",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "issuer": {
                    "type": "string"
                  },
                  "jwks": {},
                  "keys_from": {
                    "type": "string"
                  },
                  "roots": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "believed": {
                      "type": "boolean"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "issuer": {
                      "type": "string"
                    },
                    "slug": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "slug",
                    "issuer",
                    "believed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Believe an issuer for a wallet sign-in, with its keys"
      }
    },
    "/admin/organizations/{orgID}/issued-credentials": {
      "get": {
        "operationId": "get_organizations_orgID_issued_credentials",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "credentials": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "configuration": {
                            "type": "string"
                          },
                          "email": {
                            "type": "string"
                          },
                          "expires_at": {
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "issued_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "revoked_at": {
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "user_id": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "configuration",
                          "user_id",
                          "email",
                          "issued_at",
                          "expires_at",
                          "revoked_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "next_cursor": {
                      "type": "string"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "org_id",
                    "credentials",
                    "next_cursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "What has been issued and can be revoked."
      }
    },
    "/admin/organizations/{orgID}/kerberos-realms": {
      "get": {
        "operationId": "get_organizations_orgID_kerberos_realms",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "realms": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "create_accounts": {
                            "type": "boolean"
                          },
                          "created_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "host": {
                            "type": "string"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "realm": {
                            "type": "string"
                          },
                          "service_principal": {
                            "type": "string"
                          },
                          "strip_realm": {
                            "type": "boolean"
                          },
                          "trusted_realms": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          }
                        },
                        "required": [
                          "id",
                          "realm",
                          "host",
                          "service_principal",
                          "strip_realm",
                          "trusted_realms",
                          "create_accounts",
                          "created_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "realms"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "An organisation's Kerberos realms, without their keytabs"
      },
      "post": {
        "operationId": "post_organizations_orgID_kerberos_realms",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "create_accounts": {
                    "type": "boolean"
                  },
                  "host": {
                    "type": "string"
                  },
                  "keytab": {
                    "type": "string"
                  },
                  "realm": {
                    "type": "string"
                  },
                  "service_principal": {
                    "type": "string"
                  },
                  "strip_realm": {
                    "type": "boolean"
                  },
                  "trusted_realms": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "create_accounts": {
                      "type": "boolean"
                    },
                    "created_at": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "host": {
                      "type": "string"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "realm": {
                      "type": "string"
                    },
                    "service_principal": {
                      "type": "string"
                    },
                    "strip_realm": {
                      "type": "boolean"
                    },
                    "trusted_realms": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "id",
                    "realm",
                    "host",
                    "service_principal",
                    "strip_realm",
                    "trusted_realms",
                    "create_accounts",
                    "created_at",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Register a Kerberos realm and its keytab"
      }
    },
    "/admin/organizations/{orgID}/kerberos-realms/{realm}": {
      "delete": {
        "operationId": "delete_organizations_orgID_kerberos_realms_realm",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "realm",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "removed": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Forget a Kerberos realm and its keytab"
      }
    },
    "/admin/organizations/{orgID}/messages": {
      "get": {
        "operationId": "get_organizations_orgID_messages",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "messages": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "key": {
                            "type": "string"
                          },
                          "locale": {
                            "type": "string"
                          },
                          "text": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "locale",
                          "key",
                          "text"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "messages"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The messages the organisation has reworded."
      }
    },
    "/admin/organizations/{orgID}/messages/{locale}/{key}": {
      "delete": {
        "operationId": "delete_organizations_orgID_messages_locale_key",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "locale",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "removed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Return one message to the catalogue's wording."
      },
      "put": {
        "operationId": "put_organizations_orgID_messages_locale_key",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "locale",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "text": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "key": {
                      "type": "string"
                    },
                    "locale": {
                      "type": "string"
                    },
                    "text": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "locale",
                    "key",
                    "text",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Reword one message in one language, as plain text."
      }
    },
    "/admin/organizations/{orgID}/migration-source": {
      "delete": {
        "operationId": "delete_organizations_orgID_migration_source",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "removed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Remove the migration source."
      },
      "get": {
        "operationId": "get_organizations_orgID_migration_source",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "bind_dn_template": {
                      "type": "string"
                    },
                    "client_id": {
                      "type": "string"
                    },
                    "delegated_failures": {
                      "type": "integer"
                    },
                    "delegated_successes": {
                      "type": "integer"
                    },
                    "display_name": {
                      "type": "string"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "has_ca": {
                      "type": "boolean"
                    },
                    "has_client_secret": {
                      "type": "boolean"
                    },
                    "kind": {
                      "type": "string"
                    },
                    "last_error": {
                      "type": "string"
                    },
                    "scope": {
                      "type": "string"
                    },
                    "start_tls": {
                      "type": "boolean"
                    },
                    "url": {
                      "type": "string"
                    },
                    "users_migrated": {
                      "type": "integer"
                    },
                    "users_pending": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "kind",
                    "display_name",
                    "url",
                    "has_client_secret",
                    "start_tls",
                    "has_ca",
                    "enabled",
                    "delegated_successes",
                    "delegated_failures",
                    "users_pending",
                    "users_migrated"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The provider this organisation is migrating off, and how the cutover is going."
      },
      "put": {
        "operationId": "put_organizations_orgID_migration_source",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "bind_dn_template": {
                    "type": "string"
                  },
                  "ca_pem": {
                    "type": "string"
                  },
                  "client_id": {
                    "type": "string"
                  },
                  "client_secret": {
                    "type": "string"
                  },
                  "display_name": {
                    "type": "string"
                  },
                  "enabled": {
                    "type": "boolean"
                  },
                  "kind": {
                    "type": "string"
                  },
                  "scope": {
                    "type": "string"
                  },
                  "start_tls": {
                    "type": "boolean"
                  },
                  "url": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "bind_dn_template": {
                      "type": "string"
                    },
                    "client_id": {
                      "type": "string"
                    },
                    "delegated_failures": {
                      "type": "integer"
                    },
                    "delegated_successes": {
                      "type": "integer"
                    },
                    "display_name": {
                      "type": "string"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "has_ca": {
                      "type": "boolean"
                    },
                    "has_client_secret": {
                      "type": "boolean"
                    },
                    "kind": {
                      "type": "string"
                    },
                    "last_error": {
                      "type": "string"
                    },
                    "scope": {
                      "type": "string"
                    },
                    "start_tls": {
                      "type": "boolean"
                    },
                    "url": {
                      "type": "string"
                    },
                    "users_migrated": {
                      "type": "integer"
                    },
                    "users_pending": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "kind",
                    "display_name",
                    "url",
                    "has_client_secret",
                    "start_tls",
                    "has_ca",
                    "enabled",
                    "delegated_successes",
                    "delegated_failures",
                    "users_pending",
                    "users_migrated"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Configure the old directory or provider that verifies a migrating person's password."
      }
    },
    "/admin/organizations/{orgID}/migration-source/test": {
      "post": {
        "operationId": "post_organizations_orgID_migration_source_test",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "password": {
                    "type": "string"
                  },
                  "username": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "ok": {
                      "type": "boolean"
                    },
                    "step": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "step",
                    "detail",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Ask the migration source about a credential, as a first sign-in would, and name the step that failed."
      }
    },
    "/admin/organizations/{orgID}/outposts": {
      "get": {
        "operationId": "get_organizations_orgID_outposts",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "outposts": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "kind": {
                            "type": "string"
                          },
                          "last_seen_at": {
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "last_seen_ip": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "search_group": {
                            "type": "string"
                          },
                          "stale": {
                            "type": "boolean"
                          },
                          "version": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "kind",
                          "enabled",
                          "search_group",
                          "last_seen_at",
                          "last_seen_ip",
                          "version",
                          "stale"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "org_id",
                    "outposts"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The organisation's outposts, when each was last heard from, never a token."
      },
      "post": {
        "operationId": "post_organizations_orgID_outposts",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "kind": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "search_group": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "kind": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "token": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "kind",
                    "token",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Register an outpost; its token is shown once."
      }
    },
    "/admin/organizations/{orgID}/outposts/{name}": {
      "delete": {
        "operationId": "delete_organizations_orgID_outposts_name",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "name": {
                      "type": "string"
                    },
                    "removed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "name",
                    "removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Remove an outpost and its token."
      },
      "patch": {
        "operationId": "patch_organizations_orgID_outposts_name",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  },
                  "search_group": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "name": {
                      "type": "string"
                    },
                    "search_group": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "name",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Take an outpost out of service or back, or set who may search through it."
      }
    },
    "/admin/organizations/{orgID}/outposts/{name}/rotate": {
      "post": {
        "operationId": "post_organizations_orgID_outposts_name_rotate",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "name": {
                      "type": "string"
                    },
                    "token": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "name",
                    "token",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Replace an outpost's token; the new one is shown once and the old one stops at once."
      }
    },
    "/admin/organizations/{orgID}/prompts": {
      "get": {
        "operationId": "get_organizations_orgID_prompts",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "prompts": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "answered": {
                            "type": "integer"
                          },
                          "body": {
                            "type": "string"
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "fields": {
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "attribute": {
                                  "type": "string"
                                },
                                "help": {
                                  "type": "string"
                                },
                                "label": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "options": {
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "required": {
                                  "type": "boolean"
                                },
                                "type": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "name",
                                "type",
                                "label"
                              ],
                              "type": "object"
                            },
                            "type": "array"
                          },
                          "once": {
                            "type": "boolean"
                          },
                          "order": {
                            "type": "integer"
                          },
                          "slug": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "version": {
                            "type": "integer"
                          }
                        },
                        "required": [
                          "slug",
                          "title",
                          "body",
                          "once",
                          "order",
                          "fields",
                          "enabled",
                          "version",
                          "answered"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "org_id",
                    "prompts"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The prompts asked between sign-in and the session, in order."
      }
    },
    "/admin/organizations/{orgID}/prompts/{slug}": {
      "patch": {
        "operationId": "patch_organizations_orgID_prompts_slug",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "slug": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "slug",
                    "enabled",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Enable or disable a prompt, keeping its answers."
      },
      "put": {
        "operationId": "put_organizations_orgID_prompts_slug",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "body": {
                    "type": "string"
                  },
                  "fields": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "attribute": {
                          "type": "string"
                        },
                        "help": {
                          "type": "string"
                        },
                        "label": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "options": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "required": {
                          "type": "boolean"
                        },
                        "type": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "once": {
                    "type": "boolean"
                  },
                  "order": {
                    "type": "integer"
                  },
                  "title": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "asked_again": {
                      "type": "integer"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "slug": {
                      "type": "string"
                    },
                    "version": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "slug",
                    "version",
                    "asked_again",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Define or replace a prompt; a change to its wording asks everyone again."
      }
    },
    "/admin/organizations/{orgID}/providers": {
      "get": {
        "operationId": "get_organizations_orgID_providers",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "providers": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "allowed_claims": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "called": {
                            "type": "boolean"
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "hook": {
                            "type": "string"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "mode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "position": {
                            "type": "integer"
                          },
                          "signed": {
                            "type": "boolean"
                          },
                          "timeout_ms": {
                            "type": "integer"
                          },
                          "url": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "hook",
                          "position",
                          "url",
                          "mode",
                          "timeout_ms",
                          "enabled",
                          "signed",
                          "called",
                          "allowed_claims"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "org_id",
                    "providers"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The services the organisation's hooks call, and whether anything consults them."
      }
    },
    "/admin/organizations/{orgID}/providers/{hook}": {
      "delete": {
        "operationId": "delete_organizations_orgID_providers_hook",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "hook",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "hook": {
                      "type": "string"
                    },
                    "removed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "hook",
                    "removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Remove a hook's provider; the decision is made locally only."
      },
      "put": {
        "operationId": "put_organizations_orgID_providers_hook",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "hook",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "mode": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "position": {
                    "type": "integer"
                  },
                  "timeout_ms": {
                    "type": "integer"
                  },
                  "url": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "called": {
                      "type": "boolean"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "hook": {
                      "type": "string"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "secret": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "hook",
                    "secret",
                    "called",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Register or replace a hook's provider; a first registration's secret is shown once."
      }
    },
    "/admin/organizations/{orgID}/providers/{hook}/claims": {
      "put": {
        "operationId": "put_organizations_orgID_providers_hook_claims",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "hook",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "claims": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "allowed_claims": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "hook": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "hook",
                    "allowed_claims",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "The claims a token hook may add; empty lets it add none."
      }
    },
    "/admin/organizations/{orgID}/providers/{hook}/rotate-secret": {
      "post": {
        "operationId": "post_organizations_orgID_providers_hook_rotate_secret",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "hook",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "hook": {
                      "type": "string"
                    },
                    "secret": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "hook",
                    "secret",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Replace a provider's signing secret, shown once."
      }
    },
    "/admin/organizations/{orgID}/proxy-hosts": {
      "get": {
        "operationId": "get_organizations_orgID_proxy_hosts",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "proxy_hosts": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "cookie_domain": {
                            "type": "string"
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "host": {
                            "type": "string"
                          },
                          "own_cookie": {
                            "type": "boolean"
                          },
                          "release_groups": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "rules": {
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "effect": {
                                  "type": "string"
                                },
                                "methods": {
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "path": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "effect",
                                "path"
                              ],
                              "type": "object"
                            },
                            "type": "array"
                          },
                          "signed_identity": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "host",
                          "enabled",
                          "release_groups",
                          "signed_identity",
                          "rules",
                          "cookie_domain",
                          "own_cookie"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "proxy_hosts"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The applications forward auth protects."
      },
      "put": {
        "operationId": "put_organizations_orgID_proxy_hosts",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "cookie_domain": {
                    "type": "string"
                  },
                  "enabled": {
                    "type": "boolean"
                  },
                  "host": {
                    "type": "string"
                  },
                  "own_cookie": {
                    "type": "boolean"
                  },
                  "release_groups": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "rules": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "effect": {
                          "type": "string"
                        },
                        "methods": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "name": {
                          "type": "string"
                        },
                        "path": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "signed_identity": {
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "host": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "host",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Register a protected host, or enable or disable one."
      }
    },
    "/admin/organizations/{orgID}/proxy-hosts/{host}": {
      "delete": {
        "operationId": "delete_organizations_orgID_proxy_hosts_host",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "host",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "host": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "host",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Remove a protected host."
      }
    },
    "/admin/organizations/{orgID}/rac-connections": {
      "get": {
        "operationId": "get_organizations_orgID_rac_connections",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "connections": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          },
                          "has_credentials": {
                            "type": "boolean"
                          },
                          "host": {
                            "type": "string"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "max_connections": {
                            "type": "integer"
                          },
                          "max_duration_seconds": {
                            "type": "integer"
                          },
                          "name": {
                            "type": "string"
                          },
                          "parameters": {
                            "additionalProperties": {
                              "type": "string"
                            },
                            "type": "object"
                          },
                          "port": {
                            "type": "integer"
                          },
                          "protocol": {
                            "type": "string"
                          },
                          "recorded": {
                            "type": "boolean"
                          },
                          "require_group": {
                            "type": "string"
                          },
                          "slug": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "slug",
                          "name",
                          "protocol",
                          "host",
                          "port",
                          "require_group",
                          "recorded",
                          "enabled",
                          "has_credentials",
                          "parameters",
                          "max_connections",
                          "max_duration_seconds"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "org_id",
                    "connections"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The machines people reach through the browser; never a credential."
      },
      "post": {
        "operationId": "post_organizations_orgID_rac_connections",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "host": {
                    "type": "string"
                  },
                  "login": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "passphrase": {
                    "type": "string"
                  },
                  "password": {
                    "type": "string"
                  },
                  "port": {
                    "type": "integer"
                  },
                  "private_key": {
                    "type": "string"
                  },
                  "protocol": {
                    "type": "string"
                  },
                  "require_group": {
                    "type": "string"
                  },
                  "slug": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "slug": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "slug",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Register a machine, sealing its credentials."
      }
    },
    "/admin/organizations/{orgID}/rac-connections/{slug}": {
      "patch": {
        "operationId": "patch_organizations_orgID_rac_connections_slug",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  },
                  "max_connections": {
                    "type": "integer"
                  },
                  "max_duration_seconds": {
                    "type": "integer"
                  },
                  "parameters": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "max_connections": {
                      "type": "integer"
                    },
                    "max_duration_seconds": {
                      "type": "integer"
                    },
                    "parameters": {
                      "additionalProperties": {
                        "type": "string"
                      },
                      "type": "object"
                    },
                    "slug": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "slug",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Take a connection out of service or back, or replace its guacd parameters."
      }
    },
    "/admin/organizations/{orgID}/radius-authorizations": {
      "get": {
        "operationId": "get_organizations_orgID_radius_authorizations",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "authorizations": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "filter_id": {
                            "type": "string"
                          },
                          "group": {
                            "type": "string"
                          },
                          "group_id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "priority": {
                            "type": "integer"
                          },
                          "vlan_id": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "group_id",
                          "group",
                          "vlan_id",
                          "filter_id",
                          "priority"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "org_id",
                    "authorizations"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The VLAN and Filter-Id each authorised group's members are given."
      }
    },
    "/admin/organizations/{orgID}/radius-clients": {
      "get": {
        "operationId": "get_organizations_orgID_radius_clients",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "clients": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "network": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "network",
                          "enabled"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "org_id",
                    "clients"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The network devices that may send Access-Requests; never a secret."
      },
      "post": {
        "operationId": "post_organizations_orgID_radius_clients",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "network": {
                    "type": "string"
                  },
                  "secret": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "network": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "network",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Register a device by the range it sends from and its shared secret."
      }
    },
    "/admin/organizations/{orgID}/radius-clients/{deviceID}": {
      "patch": {
        "operationId": "patch_organizations_orgID_radius_clients_deviceID",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "deviceID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "enabled",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Revoke or restore a device's access."
      }
    },
    "/admin/organizations/{orgID}/registration": {
      "delete": {
        "operationId": "delete_organizations_orgID_registration",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "removed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Turn dynamic registration off, keeping its policy and tokens."
      },
      "get": {
        "operationId": "get_organizations_orgID_registration",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "allow_confidential": {
                      "type": "boolean"
                    },
                    "allowed_scopes": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "max_clients": {
                      "type": "integer"
                    },
                    "open": {
                      "type": "boolean"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "org_id",
                    "enabled",
                    "open",
                    "max_clients",
                    "allowed_scopes",
                    "allow_confidential"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "Whether /oauth2/register is on, open, and what it allows."
      },
      "put": {
        "operationId": "put_organizations_orgID_registration",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "allow_confidential": {
                    "type": "boolean"
                  },
                  "allowed_scopes": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "max_clients": {
                    "type": "integer"
                  },
                  "open": {
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "allow_confidential": {
                      "type": "boolean"
                    },
                    "allowed_scopes": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "max_clients": {
                      "type": "integer"
                    },
                    "open": {
                      "type": "boolean"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "org_id",
                    "enabled",
                    "open",
                    "max_clients",
                    "allowed_scopes",
                    "allow_confidential",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Turn dynamic registration on with this policy."
      }
    },
    "/admin/organizations/{orgID}/registration-tokens": {
      "get": {
        "operationId": "get_organizations_orgID_registration_tokens",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "registration_tokens": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "created_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "expires_at": {
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "remaining": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "revoked_at": {
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "remaining",
                          "expires_at",
                          "revoked_at",
                          "created_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "org_id",
                    "registration_tokens"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The organisation's initial access tokens, never their secrets."
      },
      "post": {
        "operationId": "post_organizations_orgID_registration_tokens",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "expires_in_s": {
                    "type": "integer"
                  },
                  "name": {
                    "type": "string"
                  },
                  "uses": {
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "token": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "token",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Mint an initial access token, shown once."
      }
    },
    "/admin/organizations/{orgID}/registration-tokens/{tokenID}": {
      "delete": {
        "operationId": "delete_organizations_orgID_registration_tokens_tokenID",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "tokenID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "removed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Revoke an initial access token."
      }
    },
    "/admin/organizations/{orgID}/relation-delegations": {
      "get": {
        "operationId": "get_organizations_orgID_relation_delegations",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "delegations": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "created_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "grantee_org_id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "object": {
                            "type": "string"
                          },
                          "org_id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "relations": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          }
                        },
                        "required": [
                          "id",
                          "org_id",
                          "grantee_org_id",
                          "object",
                          "relations",
                          "created_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "delegations"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks relations:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "relations:read"
            ]
          }
        ],
        "summary": "The delegations the organisation is either side of."
      },
      "post": {
        "operationId": "post_organizations_orgID_relation_delegations",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "grantee_org_id": {
                    "type": "string"
                  },
                  "object": {
                    "type": "string"
                  },
                  "relations": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "created_at": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "grantee_org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "object": {
                      "type": "string"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "relations": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "id",
                    "org_id",
                    "grantee_org_id",
                    "object",
                    "relations",
                    "created_at",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks relations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "relations:write"
            ]
          }
        ],
        "summary": "Let another organisation hand out relations on this one's objects; deployment-wide tokens only."
      }
    },
    "/admin/organizations/{orgID}/relation-delegations/{delegationID}": {
      "delete": {
        "operationId": "delete_organizations_orgID_relation_delegations_delegationID",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "delegationID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "removed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks relations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "relations:write"
            ]
          }
        ],
        "summary": "Take a delegation away, and all that was handed out under it; deployment-wide tokens only."
      }
    },
    "/admin/organizations/{orgID}/relation-delegations/{delegationID}/relations": {
      "delete": {
        "operationId": "delete_organizations_orgID_relation_delegations_delegationID_relations",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "delegationID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "granted": {
                      "type": "boolean"
                    },
                    "object": {
                      "type": "string"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "relation": {
                      "type": "string"
                    },
                    "subject": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "subject",
                    "relation",
                    "object",
                    "org_id",
                    "granted",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks relations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "relations:write"
            ]
          }
        ],
        "summary": "As the grantee, take a delegated relation back."
      },
      "get": {
        "operationId": "get_organizations_orgID_relation_delegations_delegationID_relations",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "delegationID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "relations": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "expires_at": {
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "object": {
                            "type": "string"
                          },
                          "relation": {
                            "type": "string"
                          },
                          "subject": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "subject",
                          "relation",
                          "object"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "relations"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks relations:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "relations:read"
            ]
          }
        ],
        "summary": "What a delegation has handed out."
      },
      "put": {
        "operationId": "put_organizations_orgID_relation_delegations_delegationID_relations",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "delegationID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "expires_at": {
                    "additionalProperties": false,
                    "properties": {},
                    "type": "object"
                  },
                  "object": {
                    "type": "string"
                  },
                  "relation": {
                    "type": "string"
                  },
                  "subject": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "granted": {
                      "type": "boolean"
                    },
                    "object": {
                      "type": "string"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "relation": {
                      "type": "string"
                    },
                    "subject": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "subject",
                    "relation",
                    "object",
                    "org_id",
                    "granted",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks relations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "relations:write"
            ]
          }
        ],
        "summary": "As the grantee, hand a delegated relation to one of its own people."
      }
    },
    "/admin/organizations/{orgID}/relations": {
      "delete": {
        "operationId": "delete_organizations_orgID_relations",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "expires_at": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "granted": {
                      "type": "boolean"
                    },
                    "object": {
                      "type": "string"
                    },
                    "relation": {
                      "type": "string"
                    },
                    "subject": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "subject",
                    "relation",
                    "object",
                    "granted",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks relations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "relations:write"
            ]
          }
        ],
        "summary": "Revoke a relation named by subject, relation and object."
      },
      "get": {
        "operationId": "get_organizations_orgID_relations",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "next_cursor": {
                      "type": "string"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "relations": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "expires_at": {
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "object": {
                            "type": "string"
                          },
                          "relation": {
                            "type": "string"
                          },
                          "subject": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "subject",
                          "relation",
                          "object",
                          "expires_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "org_id",
                    "relations",
                    "next_cursor"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks relations:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "relations:read"
            ]
          }
        ],
        "summary": "The live relations, paged by id, by subject, object or relation when given."
      },
      "put": {
        "operationId": "put_organizations_orgID_relations",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "expires_at": {
                    "additionalProperties": false,
                    "properties": {},
                    "type": "object"
                  },
                  "object": {
                    "type": "string"
                  },
                  "relation": {
                    "type": "string"
                  },
                  "subject": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "expires_at": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "granted": {
                      "type": "boolean"
                    },
                    "object": {
                      "type": "string"
                    },
                    "relation": {
                      "type": "string"
                    },
                    "subject": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "subject",
                    "relation",
                    "object",
                    "granted",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks relations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "relations:write"
            ]
          }
        ],
        "summary": "Grant a subject a relation on an object."
      }
    },
    "/admin/organizations/{orgID}/resource-servers": {
      "delete": {
        "operationId": "delete_organizations_orgID_resource_servers",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "removed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Withdraw a resource server; tokens for it are refused from the next request."
      },
      "get": {
        "operationId": "get_organizations_orgID_resource_servers",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "created_at": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "metadata_url": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "resource": {
                        "type": "string"
                      },
                      "scopes": {
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "resource"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The RFC 8707 resources this organisation's tokens may be audienced to."
      },
      "put": {
        "operationId": "put_organizations_orgID_resource_servers",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "resource": {
                    "type": "string"
                  },
                  "scopes": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "name": {
                      "type": "string"
                    },
                    "resource": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "resource",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Register a resource server, or rename one."
      }
    },
    "/admin/organizations/{orgID}/role-bindings": {
      "get": {
        "operationId": "get_organizations_orgID_role_bindings",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "role_bindings": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "client_id": {
                            "type": "string"
                          },
                          "created_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "group_id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "org_id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "role": {
                            "type": "string"
                          },
                          "user_id": {
                            "format": "uuid",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "org_id",
                          "role",
                          "created_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "role_bindings"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "Who holds which administrative role in the organisation."
      },
      "post": {
        "operationId": "post_organizations_orgID_role_bindings",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "client_id": {
                    "type": "string"
                  },
                  "group_id": {
                    "type": "string"
                  },
                  "role": {
                    "type": "string"
                  },
                  "user_id": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Give a person or an application a role, a user manager optionally over one group's members."
      }
    },
    "/admin/organizations/{orgID}/role-bindings/{bindingID}": {
      "delete": {
        "operationId": "delete_organizations_orgID_role_bindings_bindingID",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bindingID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "removed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Take a role away; the holder's next request is refused what it gave."
      }
    },
    "/admin/organizations/{orgID}/saml-providers": {
      "get": {
        "operationId": "get_organizations_orgID_saml_providers",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "providers": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "acs_urls": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "attribute_release": {
                            "additionalProperties": {
                              "type": "string"
                            },
                            "type": "object"
                          },
                          "default_relay_state": {
                            "type": "string"
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "encrypted": {
                            "type": "boolean"
                          },
                          "entity_id": {
                            "type": "string"
                          },
                          "group_release": {
                            "additionalProperties": false,
                            "properties": {
                              "attribute_name": {
                                "type": "string"
                              },
                              "only": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              }
                            },
                            "required": [
                              "attribute_name",
                              "only"
                            ],
                            "type": [
                              "object",
                              "null"
                            ]
                          },
                          "has_signing_cert": {
                            "type": "boolean"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "idp_initiated": {
                            "type": "boolean"
                          },
                          "lifetime_s": {
                            "type": "integer"
                          },
                          "metadata_read_at": {
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "metadata_url": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "name_id_attribute": {
                            "type": "string"
                          },
                          "name_id_format": {
                            "type": "string"
                          },
                          "org_endpoint": {
                            "type": "boolean"
                          },
                          "sign_assertions": {
                            "type": "boolean"
                          },
                          "sign_responses": {
                            "type": "boolean"
                          },
                          "signature_alg": {
                            "type": "string"
                          },
                          "slo_urls": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "want_signed_requests": {
                            "type": "boolean"
                          },
                          "wsfed_saml_version": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "entity_id",
                          "name",
                          "name_id_format",
                          "name_id_attribute",
                          "signature_alg",
                          "enabled",
                          "sign_assertions",
                          "sign_responses",
                          "want_signed_requests",
                          "encrypted",
                          "has_signing_cert",
                          "lifetime_s",
                          "acs_urls",
                          "slo_urls",
                          "attribute_release",
                          "group_release",
                          "idp_initiated",
                          "default_relay_state",
                          "metadata_url",
                          "metadata_read_at",
                          "wsfed_saml_version",
                          "org_endpoint"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "org_id",
                    "providers"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The organisation's SAML service providers and what each is told."
      },
      "post": {
        "operationId": "post_organizations_orgID_saml_providers",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "acs_url": {
                    "type": "string"
                  },
                  "artifact_acs_urls": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "artifact_resolution": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "index": {
                          "type": "integer"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "ecp_acs_urls": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "encryption_cert": {
                    "type": "string"
                  },
                  "entity_id": {
                    "type": "string"
                  },
                  "key_transport": {
                    "type": "string"
                  },
                  "metadata": {
                    "type": "string"
                  },
                  "metadata_encrypt": {
                    "type": "boolean"
                  },
                  "metadata_signer": {
                    "type": "string"
                  },
                  "metadata_unsigned": {
                    "type": "boolean"
                  },
                  "metadata_url": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "name_id_format": {
                    "type": "string"
                  },
                  "signing_cert": {
                    "type": "string"
                  },
                  "slo_binding": {
                    "type": "string"
                  },
                  "slo_url": {
                    "type": "string"
                  },
                  "want_signed_requests": {
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "entity_id": {
                      "type": "string"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "name_id_format": {
                      "type": "string"
                    },
                    "org_endpoint": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "entity_id",
                    "name_id_format",
                    "org_endpoint",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Register a service provider by entity id and ACS URL."
      }
    },
    "/admin/organizations/{orgID}/saml-providers/{providerID}": {
      "patch": {
        "operationId": "patch_organizations_orgID_saml_providers_providerID",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "providerID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "default_relay_state": {
                    "type": "string"
                  },
                  "idp_initiated": {
                    "type": "boolean"
                  },
                  "lifetime_s": {
                    "type": "integer"
                  },
                  "name_id_attribute": {
                    "type": "string"
                  },
                  "org_endpoint": {
                    "type": "boolean"
                  },
                  "sign_assertions": {
                    "type": "boolean"
                  },
                  "sign_responses": {
                    "type": "boolean"
                  },
                  "signature_alg": {
                    "type": "string"
                  },
                  "soap_logout_url": {
                    "type": "string"
                  },
                  "wsfed_saml_version": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "metadata_changed": {
                      "type": "boolean"
                    },
                    "sign_assertions": {
                      "type": "boolean"
                    },
                    "sign_responses": {
                      "type": "boolean"
                    },
                    "signature_alg": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "sign_assertions",
                    "sign_responses",
                    "signature_alg",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Choose what is signed, with which algorithm, and an assertion's lifetime."
      }
    },
    "/admin/organizations/{orgID}/saml-providers/{providerID}/attribute-release": {
      "delete": {
        "operationId": "delete_organizations_orgID_saml_providers_providerID_attribute_release",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "providerID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "removed": {
                      "type": "boolean"
                    },
                    "saml_attribute": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "saml_attribute",
                    "removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Stop releasing a SAML attribute."
      },
      "put": {
        "operationId": "put_organizations_orgID_saml_providers_providerID_attribute_release",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "providerID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "attribute": {
                    "type": "string"
                  },
                  "saml_attribute": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "attribute": {
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "saml_attribute": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "saml_attribute",
                    "attribute",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Release a local attribute under a SAML attribute name."
      }
    },
    "/admin/organizations/{orgID}/saml-providers/{providerID}/group-release": {
      "delete": {
        "operationId": "delete_organizations_orgID_saml_providers_providerID_group_release",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "providerID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "removed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Stop telling the provider of group membership."
      },
      "put": {
        "operationId": "put_organizations_orgID_saml_providers_providerID_group_release",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "providerID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "attribute_name": {
                    "type": "string"
                  },
                  "only": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "attribute_name": {
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "only": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "id",
                    "attribute_name",
                    "only",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Say which groups the provider is told of."
      }
    },
    "/admin/organizations/{orgID}/saml-providers/{providerID}/metadata": {
      "post": {
        "operationId": "post_organizations_orgID_saml_providers_providerID_metadata",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "providerID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "dry_run": {
                    "type": "boolean"
                  },
                  "metadata": {
                    "type": "string"
                  },
                  "metadata_signer": {
                    "type": "string"
                  },
                  "metadata_unsigned": {
                    "type": "boolean"
                  },
                  "metadata_url": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "applied": {
                      "type": "boolean"
                    },
                    "changes": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "field": {
                            "type": "string"
                          },
                          "from": {
                            "type": "string"
                          },
                          "to": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "field",
                          "from",
                          "to"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "entity_id": {
                      "type": "string"
                    },
                    "notes": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "entity_id",
                    "applied",
                    "changes",
                    "notes"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Read a service provider's metadata again, or see what that would change."
      }
    },
    "/admin/organizations/{orgID}/scim-sources": {
      "get": {
        "operationId": "get_organizations_orgID_scim_sources",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "sources": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "last_seen_at": {
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "linked": {
                            "type": "integer"
                          },
                          "name": {
                            "type": "string"
                          },
                          "on_delete": {
                            "type": "string"
                          },
                          "slug": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "slug",
                          "name",
                          "on_delete",
                          "enabled",
                          "last_seen_at",
                          "linked"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "org_id",
                    "sources"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The upstreams that provision people into the organisation; never a token."
      },
      "post": {
        "operationId": "post_organizations_orgID_scim_sources",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "on_delete": {
                    "type": "string"
                  },
                  "slug": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "slug": {
                      "type": "string"
                    },
                    "token": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "slug",
                    "token",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Register an upstream; its bearer token is shown once."
      }
    },
    "/admin/organizations/{orgID}/scim-sources/{slug}": {
      "patch": {
        "operationId": "patch_organizations_orgID_scim_sources_slug",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "slug": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "slug",
                    "enabled",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Take an upstream out of service or back."
      }
    },
    "/admin/organizations/{orgID}/scim-targets": {
      "get": {
        "operationId": "get_organizations_orgID_scim_targets",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "targets": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "base_url": {
                            "type": "string"
                          },
                          "compatibility": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "created_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "dry_run": {
                            "type": "boolean"
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "kind": {
                            "type": "string"
                          },
                          "linked": {
                            "type": "integer"
                          },
                          "name": {
                            "type": "string"
                          },
                          "oauth_authorize_url": {
                            "type": "string"
                          },
                          "oauth_authorized_at": {
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "oauth_client_auth": {
                            "type": "string"
                          },
                          "oauth_client_id": {
                            "type": "string"
                          },
                          "oauth_grant": {
                            "type": "string"
                          },
                          "oauth_scope": {
                            "type": "string"
                          },
                          "oauth_token_url": {
                            "type": "string"
                          },
                          "on_deactivate": {
                            "type": "string"
                          },
                          "recreate_missing": {
                            "type": "boolean"
                          },
                          "scope_groups": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "should_be_gone": {
                            "type": "integer"
                          },
                          "slug": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "slug",
                          "name",
                          "kind",
                          "base_url",
                          "on_deactivate",
                          "scope_groups",
                          "dry_run",
                          "enabled",
                          "recreate_missing",
                          "oauth_token_url",
                          "oauth_client_id",
                          "oauth_scope",
                          "oauth_client_auth",
                          "oauth_grant",
                          "oauth_authorize_url",
                          "oauth_authorized_at",
                          "compatibility",
                          "linked",
                          "should_be_gone",
                          "created_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "org_id",
                    "targets"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The systems the organisation's people are written out to; never a token."
      },
      "post": {
        "operationId": "post_organizations_orgID_scim_targets",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "base_url": {
                    "type": "string"
                  },
                  "compatibility": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "credentials": {},
                  "dry_run": {
                    "type": "boolean"
                  },
                  "impersonate": {
                    "type": "string"
                  },
                  "kind": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "oauth_authorize_url": {
                    "type": "string"
                  },
                  "oauth_client_auth": {
                    "type": "string"
                  },
                  "oauth_client_id": {
                    "type": "string"
                  },
                  "oauth_scope": {
                    "type": "string"
                  },
                  "oauth_token_url": {
                    "type": "string"
                  },
                  "on_deactivate": {
                    "type": "string"
                  },
                  "recreate_missing": {
                    "type": "boolean"
                  },
                  "slug": {
                    "type": "string"
                  },
                  "target_domain": {
                    "type": "string"
                  },
                  "token": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "dry_run": {
                      "type": "boolean"
                    },
                    "kind": {
                      "type": "string"
                    },
                    "slug": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "slug",
                    "kind",
                    "dry_run",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Register a SCIM, Google or Entra target; nothing is sent until it is synced."
      }
    },
    "/admin/organizations/{orgID}/scim-targets/{slug}": {
      "patch": {
        "operationId": "patch_organizations_orgID_scim_targets_slug",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "compatibility": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "enabled": {
                    "type": "boolean"
                  },
                  "recreate_missing": {
                    "type": "boolean"
                  },
                  "scope_groups": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "compatibility": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "recreate_missing": {
                      "type": "boolean"
                    },
                    "scope_groups": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "slug": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "slug",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Take a target out of service or back, or scope it to a group."
      }
    },
    "/admin/organizations/{orgID}/scim-targets/{slug}/authorization": {
      "post": {
        "operationId": "post_organizations_orgID_scim_targets_slug_authorization",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "redirect_uri": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "authorization_url": {
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "expires_at": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "slug": {
                      "type": "string"
                    },
                    "state": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "slug",
                    "authorization_url",
                    "state",
                    "expires_at",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Start signing somebody in at a target that takes the authorization code grant."
      }
    },
    "/admin/organizations/{orgID}/scim-targets/{slug}/authorization/code": {
      "post": {
        "operationId": "post_organizations_orgID_scim_targets_slug_authorization_code",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "state": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "authorized_at": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "slug": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "slug",
                    "authorized_at",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Redeem the code that sign-in sent back, and keep the refresh token it issues."
      }
    },
    "/admin/organizations/{orgID}/scim-targets/{slug}/groups/{group}": {
      "delete": {
        "operationId": "delete_organizations_orgID_scim_targets_slug_groups_group",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "group",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "group": {
                      "type": "string"
                    },
                    "provisioned": {
                      "type": "boolean"
                    },
                    "remote_id": {
                      "type": "string"
                    },
                    "slug": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "slug",
                    "group",
                    "remote_id",
                    "provisioned",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Delete a group this deployment created at a target."
      },
      "put": {
        "operationId": "put_organizations_orgID_scim_targets_slug_groups_group",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "group",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "group": {
                      "type": "string"
                    },
                    "provisioned": {
                      "type": "boolean"
                    },
                    "remote_id": {
                      "type": "string"
                    },
                    "slug": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "slug",
                    "group",
                    "remote_id",
                    "provisioned",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Create a group at a SCIM target and own it there."
      }
    },
    "/admin/organizations/{orgID}/scim-targets/{slug}/sync": {
      "post": {
        "operationId": "post_organizations_orgID_scim_targets_slug_sync",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "apply": {
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "applied": {
                      "type": "boolean"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "created": {
                      "type": "integer"
                    },
                    "deactivated": {
                      "type": "integer"
                    },
                    "deleted": {
                      "type": "integer"
                    },
                    "error": {
                      "type": "string"
                    },
                    "error_detail": {
                      "type": "string"
                    },
                    "failed": {
                      "type": "integer"
                    },
                    "failures": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "groups": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "add": {
                            "type": "integer"
                          },
                          "members_synced": {
                            "type": "boolean"
                          },
                          "name": {
                            "type": "string"
                          },
                          "remove": {
                            "type": "integer"
                          },
                          "unreadable": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "add",
                          "remove",
                          "unreadable",
                          "members_synced"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "recreated": {
                      "type": "integer"
                    },
                    "slug": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "slug",
                    "applied",
                    "created",
                    "recreated",
                    "deactivated",
                    "deleted",
                    "failed",
                    "failures",
                    "groups",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Converge a target on who should have an account there, or preview it."
      }
    },
    "/admin/organizations/{orgID}/scopes": {
      "get": {
        "operationId": "get_organizations_orgID_scopes",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "scopes": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "advertise": {
                            "type": "boolean"
                          },
                          "description": {
                            "type": "string"
                          },
                          "display_name": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "advertise"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "standard": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "scopes",
                    "standard"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The organisation's declared scopes, plus the standard set."
      },
      "put": {
        "operationId": "put_organizations_orgID_scopes",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "advertise": {
                    "type": "boolean"
                  },
                  "description": {
                    "type": "string"
                  },
                  "display_name": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "advertise": {
                      "type": "boolean"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "name",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Declare or update a scope."
      }
    },
    "/admin/organizations/{orgID}/scopes/{scope}": {
      "delete": {
        "operationId": "delete_organizations_orgID_scopes_scope",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "scope",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "name",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Remove a scope declaration."
      }
    },
    "/admin/organizations/{orgID}/settings": {
      "get": {
        "operationId": "get_organizations_orgID_settings",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "approvals_required": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "login_free_attempts": {
                      "type": "integer"
                    },
                    "login_max_delay_s": {
                      "type": "integer"
                    },
                    "mail_from": {
                      "type": "string"
                    },
                    "mail_from_name": {
                      "type": "string"
                    },
                    "max_concurrent_sessions": {
                      "type": "integer"
                    },
                    "new_device_notice": {
                      "type": "boolean"
                    },
                    "offline_lifetime_s": {
                      "type": "integer"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "password_only_binds": {
                      "type": "string"
                    },
                    "persistent_sessions": {
                      "type": "boolean"
                    },
                    "reauth_window_s": {
                      "type": "integer"
                    },
                    "remember_device_days": {
                      "type": "integer"
                    },
                    "session_idle_s": {
                      "type": "integer"
                    },
                    "session_lifetime_s": {
                      "type": "integer"
                    },
                    "session_limit_behaviour": {
                      "type": "string"
                    },
                    "sms_numbers": {
                      "type": "string"
                    },
                    "totp_algorithm": {
                      "type": "string"
                    },
                    "totp_digits": {
                      "type": "integer"
                    },
                    "totp_period_s": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "approvals_required",
                    "login_free_attempts",
                    "login_max_delay_s",
                    "mail_from",
                    "mail_from_name",
                    "max_concurrent_sessions",
                    "new_device_notice",
                    "offline_lifetime_s",
                    "org_id",
                    "password_only_binds",
                    "persistent_sessions",
                    "reauth_window_s",
                    "remember_device_days",
                    "session_idle_s",
                    "session_lifetime_s",
                    "session_limit_behaviour",
                    "sms_numbers",
                    "totp_algorithm",
                    "totp_digits",
                    "totp_period_s"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The organisation's sign-in and session policy."
      },
      "patch": {
        "operationId": "patch_organizations_orgID_settings",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "approvals_required": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "login_free_attempts": {
                    "type": "integer"
                  },
                  "login_max_delay_s": {
                    "type": "integer"
                  },
                  "mail_from": {
                    "type": "string"
                  },
                  "mail_from_name": {
                    "type": "string"
                  },
                  "max_concurrent_sessions": {
                    "type": "integer"
                  },
                  "new_device_notice": {
                    "type": "boolean"
                  },
                  "offline_lifetime_s": {
                    "type": "integer"
                  },
                  "password_only_binds": {
                    "type": "string"
                  },
                  "persistent_sessions": {
                    "type": "boolean"
                  },
                  "reauth_window_s": {
                    "type": "integer"
                  },
                  "remember_device_days": {
                    "type": "integer"
                  },
                  "session_idle_s": {
                    "type": "integer"
                  },
                  "session_lifetime_s": {
                    "type": "integer"
                  },
                  "session_limit_behaviour": {
                    "type": "string"
                  },
                  "sms_numbers": {
                    "type": "string"
                  },
                  "totp_algorithm": {
                    "type": "string"
                  },
                  "totp_digits": {
                    "type": "integer"
                  },
                  "totp_period_s": {
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "approvals_required": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "login_free_attempts": {
                      "type": "integer"
                    },
                    "login_max_delay_s": {
                      "type": "integer"
                    },
                    "mail_from": {
                      "type": "string"
                    },
                    "mail_from_name": {
                      "type": "string"
                    },
                    "max_concurrent_sessions": {
                      "type": "integer"
                    },
                    "new_device_notice": {
                      "type": "boolean"
                    },
                    "offline_lifetime_s": {
                      "type": "integer"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "password_only_binds": {
                      "type": "string"
                    },
                    "persistent_sessions": {
                      "type": "boolean"
                    },
                    "reauth_window_s": {
                      "type": "integer"
                    },
                    "remember_device_days": {
                      "type": "integer"
                    },
                    "session_idle_s": {
                      "type": "integer"
                    },
                    "session_lifetime_s": {
                      "type": "integer"
                    },
                    "session_limit_behaviour": {
                      "type": "string"
                    },
                    "sms_numbers": {
                      "type": "string"
                    },
                    "totp_algorithm": {
                      "type": "string"
                    },
                    "totp_digits": {
                      "type": "integer"
                    },
                    "totp_period_s": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "approvals_required",
                    "login_free_attempts",
                    "login_max_delay_s",
                    "mail_from",
                    "mail_from_name",
                    "max_concurrent_sessions",
                    "new_device_notice",
                    "offline_lifetime_s",
                    "org_id",
                    "password_only_binds",
                    "persistent_sessions",
                    "reauth_window_s",
                    "remember_device_days",
                    "session_idle_s",
                    "session_lifetime_s",
                    "session_limit_behaviour",
                    "sms_numbers",
                    "totp_algorithm",
                    "totp_digits",
                    "totp_period_s",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Change the settings named; the rest are left as they are."
      }
    },
    "/admin/organizations/{orgID}/sign-in-flow": {
      "get": {
        "operationId": "get_organizations_orgID_sign_in_flow",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "applied_at": {
                      "format": "date-time",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "document": {
                      "type": "string"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "org_id",
                    "document",
                    "applied_at"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The sign-in flows applied; none runs the built-in flows."
      },
      "put": {
        "operationId": "put_organizations_orgID_sign_in_flow",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "document": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "not_executed": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "summary": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "org_id",
                    "summary",
                    "not_executed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Apply a flow document once it loads and its tests pass."
      }
    },
    "/admin/organizations/{orgID}/sign-in-flow/paths": {
      "get": {
        "operationId": "get_organizations_orgID_sign_in_flow_paths",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "applied": {
                      "type": "boolean"
                    },
                    "flows": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "on": {
                            "type": "string"
                          },
                          "paths": {
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "stages": {
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "when": {
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                }
                              },
                              "required": [
                                "stages",
                                "when"
                              ],
                              "type": "object"
                            },
                            "type": "array"
                          }
                        },
                        "required": [
                          "name",
                          "on",
                          "paths"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "org_id",
                    "applied",
                    "flows"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "Every journey the flows in force can take, and the situation that takes it."
      }
    },
    "/admin/organizations/{orgID}/signup": {
      "delete": {
        "operationId": "delete_organizations_orgID_signup",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "removed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Close self-sign-up; invitations and administrators still make accounts."
      },
      "get": {
        "operationId": "get_organizations_orgID_signup",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "allowed_domains": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "any_domain": {
                      "type": "boolean"
                    },
                    "default_groups": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "require_approval": {
                      "type": "boolean"
                    },
                    "require_verified_email": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "org_id",
                    "enabled",
                    "allowed_domains",
                    "any_domain",
                    "default_groups",
                    "require_verified_email",
                    "require_approval"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "Whether people may make their own accounts, from which addresses, and into which groups."
      },
      "put": {
        "operationId": "put_organizations_orgID_signup",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "allowed_domains": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "any_domain": {
                    "type": "boolean"
                  },
                  "default_groups": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "require_approval": {
                    "type": "boolean"
                  },
                  "require_verified_email": {
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "allowed_domains": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "any_domain": {
                      "type": "boolean"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "default_groups": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "require_approval": {
                      "type": "boolean"
                    },
                    "require_verified_email": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "org_id",
                    "enabled",
                    "allowed_domains",
                    "any_domain",
                    "default_groups",
                    "require_verified_email",
                    "require_approval",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Open self-sign-up or replace its rule."
      }
    },
    "/admin/organizations/{orgID}/ssf-sources": {
      "get": {
        "operationId": "get_organizations_orgID_ssf_sources",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "sources": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "audience": {
                            "type": "string"
                          },
                          "critical_members": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "events": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "issuer": {
                            "type": "string"
                          },
                          "jwks_uri": {
                            "type": "string"
                          },
                          "last_poll_error": {
                            "type": "string"
                          },
                          "last_polled_at": {
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "name": {
                            "type": "string"
                          },
                          "poll_client_id": {
                            "type": "string"
                          },
                          "poll_has_secret": {
                            "type": "boolean"
                          },
                          "poll_url": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "issuer",
                          "jwks_uri",
                          "audience",
                          "events",
                          "critical_members",
                          "enabled",
                          "poll_url",
                          "poll_client_id",
                          "poll_has_secret",
                          "last_polled_at",
                          "last_poll_error"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "org_id",
                    "sources"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The transmitters whose events the organisation acts on."
      },
      "put": {
        "operationId": "put_organizations_orgID_ssf_sources",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "audience": {
                    "type": "string"
                  },
                  "critical_members": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "events": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "issuer": {
                    "type": "string"
                  },
                  "jwks_uri": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "issuer": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "name",
                    "issuer",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Accept events from a transmitter, or replace what it may send."
      }
    },
    "/admin/organizations/{orgID}/ssf-sources/poll": {
      "put": {
        "operationId": "put_organizations_orgID_ssf_sources_poll",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "client_id": {
                    "type": "string"
                  },
                  "issuer": {
                    "type": "string"
                  },
                  "poll_url": {
                    "type": "string"
                  },
                  "secret": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "issuer": {
                      "type": "string"
                    },
                    "poll_url": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "issuer",
                    "poll_url",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Pull a transmitter's events rather than wait for them, or stop."
      }
    },
    "/admin/organizations/{orgID}/ssf-streams": {
      "get": {
        "operationId": "get_organizations_orgID_ssf_streams",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "streams": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "client_id": {
                            "type": "string"
                          },
                          "delivery_method": {
                            "type": "string"
                          },
                          "endpoint": {
                            "type": "string"
                          },
                          "events": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "has_receiver_token": {
                            "type": "boolean"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "status": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "client_id",
                          "delivery_method",
                          "endpoint",
                          "status",
                          "events",
                          "has_receiver_token"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "org_id",
                    "streams"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks clients:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "clients:read"
            ]
          }
        ],
        "summary": "The relying parties' Shared Signals streams; never a receiver token."
      },
      "post": {
        "operationId": "post_organizations_orgID_ssf_streams",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "client_id": {
                    "type": "string"
                  },
                  "endpoint": {
                    "type": "string"
                  },
                  "events": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "poll": {
                    "type": "boolean"
                  },
                  "receiver_token": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "client_id": {
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "events": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "client_id",
                    "events",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks clients:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "clients:write"
            ]
          }
        ],
        "summary": "Register a client's stream, pushed or polled."
      }
    },
    "/admin/organizations/{orgID}/uma": {
      "get": {
        "operationId": "get_organizations_orgID_uma",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "owner_intervention": {
                      "type": "boolean"
                    },
                    "poll_interval_s": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "org_id",
                    "owner_intervention",
                    "poll_interval_s"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "Whether refused UMA requests wait for a resource owner, and how often clients poll."
      },
      "put": {
        "operationId": "put_organizations_orgID_uma",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "owner_intervention": {
                    "type": "boolean"
                  },
                  "poll_interval_s": {
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "owner_intervention": {
                      "type": "boolean"
                    },
                    "poll_interval_s": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "org_id",
                    "owner_intervention",
                    "poll_interval_s",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Offer or stop offering resource-owner intervention."
      }
    },
    "/admin/organizations/{orgID}/uma/requests": {
      "get": {
        "operationId": "get_organizations_orgID_uma_requests",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "requests": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "client_id": {
                            "type": "string"
                          },
                          "created_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "expires_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "permissions": {
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "resource_id": {
                                  "type": "string"
                                },
                                "resource_scopes": {
                                  "items": {
                                    "type": "string"
                                  },
                                  "type": "array"
                                },
                                "resource_type": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "resource_type",
                                "resource_id",
                                "resource_scopes"
                              ],
                              "type": "object"
                            },
                            "type": "array"
                          },
                          "relations": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "requesting_party": {
                            "type": "string"
                          },
                          "resource_server": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "client_id",
                          "resource_server",
                          "requesting_party",
                          "permissions",
                          "relations",
                          "created_at",
                          "expires_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "org_id",
                    "requests"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The UMA requests waiting for a decision, with the relations that would let each through."
      }
    },
    "/admin/organizations/{orgID}/uma/requests/{requestID}/approve": {
      "post": {
        "operationId": "post_organizations_orgID_uma_requests_requestID_approve",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "requestID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "expires_at": {
                    "additionalProperties": false,
                    "properties": {},
                    "type": "object"
                  },
                  "relation": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "state": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "state",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Grant a relation that lets the whole request through, and approve it."
      }
    },
    "/admin/organizations/{orgID}/uma/requests/{requestID}/deny": {
      "post": {
        "operationId": "post_organizations_orgID_uma_requests_requestID_deny",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "requestID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "state": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "state",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Close the request, granting nothing."
      }
    },
    "/admin/organizations/{orgID}/webauthn-policy": {
      "get": {
        "operationId": "get_organizations_orgID_webauthn_policy",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "algorithms": {
                      "items": {
                        "type": "integer"
                      },
                      "type": "array"
                    },
                    "allowed_aaguids": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "attachment": {
                      "type": "string"
                    },
                    "attestation": {
                      "type": "string"
                    },
                    "hints": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "refuse_cloned": {
                      "type": "boolean"
                    },
                    "resident_key": {
                      "type": "string"
                    },
                    "timeout_seconds": {
                      "type": "integer"
                    },
                    "user_verification": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "attestation"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "Read the organisation's authenticator policy."
      },
      "put": {
        "operationId": "put_organizations_orgID_webauthn_policy",
        "parameters": [
          {
            "in": "path",
            "name": "orgID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "algorithms": {
                    "items": {
                      "type": "integer"
                    },
                    "type": "array"
                  },
                  "allowed_aaguids": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "attachment": {
                    "type": "string"
                  },
                  "attestation": {
                    "type": "string"
                  },
                  "hints": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "refuse_cloned": {
                    "type": "boolean"
                  },
                  "resident_key": {
                    "type": "string"
                  },
                  "timeout_seconds": {
                    "type": "integer"
                  },
                  "user_verification": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "algorithms": {
                      "items": {
                        "type": "integer"
                      },
                      "type": "array"
                    },
                    "allowed_aaguids": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "attachment": {
                      "type": "string"
                    },
                    "attestation": {
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "hints": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "refuse_cloned": {
                      "type": "boolean"
                    },
                    "resident_key": {
                      "type": "string"
                    },
                    "timeout_seconds": {
                      "type": "integer"
                    },
                    "user_verification": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "attestation",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks organizations:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "organizations:write"
            ]
          }
        ],
        "summary": "Set attestation, approved models and cloned-authenticator refusal."
      }
    },
    "/admin/sessions/{sid}": {
      "delete": {
        "operationId": "delete_sessions_sid",
        "parameters": [
          {
            "in": "path",
            "name": "sid",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "notices_queued": {
                      "type": "integer"
                    },
                    "sessions_ended": {
                      "type": "integer"
                    },
                    "sid": {
                      "type": "string"
                    },
                    "user_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "sid",
                    "sessions_ended",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks users:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "users:write"
            ]
          }
        ],
        "summary": "End one session."
      }
    },
    "/admin/subjects/{subjectID}/erase": {
      "post": {
        "operationId": "post_subjects_subjectID_erase",
        "parameters": [
          {
            "in": "path",
            "name": "subjectID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "confirm_subject_id": {
                    "type": "string"
                  },
                  "deactivate": {
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "account_deleted": {
                      "type": "boolean"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "deactivated": {
                      "type": "boolean"
                    },
                    "erased": {
                      "type": "boolean"
                    },
                    "key_shredded": {
                      "type": "boolean"
                    },
                    "notices_queued": {
                      "type": "integer"
                    },
                    "sessions_ended": {
                      "type": "integer"
                    },
                    "subject_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "totp_credentials": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "subject_id",
                    "erased",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks subjects:erase, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "subjects:erase"
            ]
          }
        ],
        "summary": "Crypto-shred a subject. Permanent.",
        "x-privileged-scope": "privileged-users:write"
      }
    },
    "/admin/subjects/{subjectID}/export": {
      "get": {
        "operationId": "get_subjects_subjectID_export",
        "parameters": [
          {
            "in": "path",
            "name": "subjectID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "attributes": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "display_name": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "readable": {
                            "type": "boolean"
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ],
                        "type": "object"
                      },
                      "type": [
                        "array",
                        "null"
                      ]
                    },
                    "exported_at": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "format": {
                      "type": "string"
                    },
                    "subject_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "tables": {
                      "additionalProperties": {
                        "items": {
                          "additionalProperties": true,
                          "type": "object"
                        },
                        "type": "array"
                      },
                      "type": "object"
                    },
                    "withheld": {
                      "additionalProperties": {
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "type": "object"
                    }
                  },
                  "required": [
                    "format",
                    "subject_id",
                    "exported_at",
                    "tables"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks subjects:export, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "subjects:export"
            ]
          }
        ],
        "summary": "Everything kept about a person, credentials withheld."
      }
    },
    "/admin/system": {
      "get": {
        "operationId": "get_system",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "commit": {
                      "type": "string"
                    },
                    "go": {
                      "type": "string"
                    },
                    "instances": {
                      "type": "integer"
                    },
                    "organizations": {
                      "type": "integer"
                    },
                    "rate_limits": {
                      "additionalProperties": false,
                      "properties": {
                        "arrivals_per_second": {
                          "type": "integer"
                        },
                        "per_token_per_second": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "arrivals_per_second",
                        "per_token_per_second"
                      ],
                      "type": "object"
                    },
                    "release": {
                      "type": "string"
                    },
                    "schema": {
                      "additionalProperties": false,
                      "properties": {
                        "applied": {
                          "type": "integer"
                        },
                        "binary": {
                          "type": "integer"
                        },
                        "fingerprint_pinned": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "applied",
                        "binary",
                        "fingerprint_pinned"
                      ],
                      "type": "object"
                    },
                    "suspended_organizations": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "release",
                    "schema",
                    "organizations",
                    "rate_limits"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks config:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "config:read"
            ]
          }
        ],
        "summary": "The release, schema and size of the deployment. Requires an unscoped token."
      }
    },
    "/admin/tokens": {
      "get": {
        "operationId": "get_tokens",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "tokens": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "attribute_names": {
                            "items": {
                              "type": "string"
                            },
                            "type": [
                              "array",
                              "null"
                            ]
                          },
                          "client_ids": {
                            "items": {
                              "type": "string"
                            },
                            "type": [
                              "array",
                              "null"
                            ]
                          },
                          "created_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "expires_at": {
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "group_ids": {
                            "items": {
                              "type": "string"
                            },
                            "type": [
                              "array",
                              "null"
                            ]
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "last_used_at": {
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "name": {
                            "type": "string"
                          },
                          "org_id": {
                            "format": "uuid",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "revoked_at": {
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "scopes": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "scopes",
                          "created_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "tokens"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks tokens:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "tokens:read"
            ]
          }
        ],
        "summary": "The admin tokens this token may see; never a secret or hash."
      },
      "post": {
        "operationId": "post_tokens",
        "parameters": [
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "attribute_names": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "client_ids": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "expires_in_s": {
                    "type": "integer"
                  },
                  "group_ids": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "name": {
                    "type": "string"
                  },
                  "org_id": {
                    "type": "string"
                  },
                  "scopes": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "expires_at": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "org_id": {
                      "type": "string"
                    },
                    "scopes": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "secret": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "secret",
                    "scopes",
                    "expires_at",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks tokens:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "tokens:write"
            ]
          }
        ],
        "summary": "Mint an admin token no wider than the caller. The secret is returned once."
      }
    },
    "/admin/tokens/{tokenID}": {
      "delete": {
        "operationId": "delete_tokens_tokenID",
        "parameters": [
          {
            "in": "path",
            "name": "tokenID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "revoked": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "revoked",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks tokens:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "tokens:write"
            ]
          }
        ],
        "summary": "Revoke an admin token no wider than the caller."
      }
    },
    "/admin/tokens/{tokenID}/rotate": {
      "post": {
        "operationId": "post_tokens_tokenID_rotate",
        "parameters": [
          {
            "in": "path",
            "name": "tokenID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "expires_in_s": {
                    "type": "integer"
                  },
                  "grace_s": {
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "expires_at": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "replaced_works_until": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "replaces": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "secret": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "secret",
                    "replaces",
                    "replaced_works_until",
                    "expires_at",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks tokens:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "tokens:write"
            ]
          }
        ],
        "summary": "Replace a token's secret, the old one working for a grace period."
      }
    },
    "/admin/users": {
      "get": {
        "operationId": "get_users",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "next_cursor": {
                      "type": "string"
                    },
                    "users": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "created_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "email": {
                            "type": "string"
                          },
                          "id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "org_id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "status": {
                            "type": "string"
                          },
                          "username": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "org_id",
                          "email",
                          "username",
                          "status",
                          "created_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "users"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks users:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "users:read"
            ]
          }
        ],
        "summary": "List users."
      },
      "post": {
        "operationId": "post_users",
        "parameters": [
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "email": {
                    "type": "string"
                  },
                  "org_id": {
                    "type": "string"
                  },
                  "password": {
                    "type": "string"
                  },
                  "username": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks users:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "users:write"
            ]
          }
        ],
        "summary": "Create a user."
      }
    },
    "/admin/users/{userID}": {
      "delete": {
        "operationId": "delete_users_userID",
        "parameters": [
          {
            "in": "path",
            "name": "userID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "notices_queued": {
                      "type": "integer"
                    },
                    "refresh_families_revoked": {
                      "type": "integer"
                    },
                    "sessions_ended": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "id",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks users:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "users:write"
            ]
          }
        ],
        "summary": "Remove a user, ending their sessions first.",
        "x-privileged-scope": "privileged-users:write"
      },
      "get": {
        "operationId": "get_users_userID",
        "parameters": [
          {
            "in": "path",
            "name": "userID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "created_at": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "display_name": {
                      "type": "string"
                    },
                    "email": {
                      "type": "string"
                    },
                    "email_verified": {
                      "type": "boolean"
                    },
                    "given_name": {
                      "type": "string"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "locale": {
                      "type": "string"
                    },
                    "org_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "posix_uid": {
                      "type": "integer"
                    },
                    "require_password_change": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string"
                    },
                    "surname": {
                      "type": "string"
                    },
                    "updated_at": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "username": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "org_id",
                    "email",
                    "username",
                    "status",
                    "created_at",
                    "display_name",
                    "given_name",
                    "surname",
                    "email_verified",
                    "require_password_change",
                    "updated_at",
                    "locale",
                    "posix_uid"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks users:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "users:read"
            ]
          }
        ],
        "summary": "One user."
      },
      "patch": {
        "operationId": "patch_users_userID",
        "parameters": [
          {
            "in": "path",
            "name": "userID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "active": {
                    "type": "boolean"
                  },
                  "display_name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  },
                  "given_name": {
                    "type": "string"
                  },
                  "locale": {
                    "type": "string"
                  },
                  "password": {
                    "type": "string"
                  },
                  "posix_uid": {
                    "type": "integer"
                  },
                  "require_password_change": {
                    "type": "boolean"
                  },
                  "surname": {
                    "type": "string"
                  },
                  "username": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "sessions_ended": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "id",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks users:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "users:write"
            ]
          }
        ],
        "summary": "Update a user's status, password or identity fields.",
        "x-privileged-scope": "privileged-users:write"
      }
    },
    "/admin/users/{userID}/attributes": {
      "get": {
        "operationId": "get_users_userID_attributes",
        "parameters": [
          {
            "in": "path",
            "name": "userID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "attributes": {
                      "items": {
                        "additionalProperties": true,
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "user_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "user_id",
                    "attributes"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks users:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "users:read"
            ]
          }
        ],
        "summary": "One user's attribute values."
      },
      "put": {
        "operationId": "put_users_userID_attributes",
        "parameters": [
          {
            "in": "path",
            "name": "userID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "attributes": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "user_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "user_id",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks users:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "users:write"
            ]
          }
        ],
        "summary": "Set a user's attribute values.",
        "x-privileged-scope": "privileged-users:write"
      }
    },
    "/admin/users/{userID}/attributes/{name}": {
      "delete": {
        "operationId": "delete_users_userID_attributes_name",
        "parameters": [
          {
            "in": "path",
            "name": "userID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "attribute": {
                      "type": "string"
                    },
                    "cleared": {
                      "type": "boolean"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "user_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "user_id",
                    "attribute",
                    "cleared",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks users:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "users:write"
            ]
          }
        ],
        "summary": "Clear one of a user's attribute values.",
        "x-privileged-scope": "privileged-users:write"
      }
    },
    "/admin/users/{userID}/consents": {
      "get": {
        "operationId": "get_users_userID_consents",
        "parameters": [
          {
            "in": "path",
            "name": "userID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "consents": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "active_refresh_grants": {
                            "type": "integer"
                          },
                          "client_id": {
                            "type": "string"
                          },
                          "display_name": {
                            "type": "string"
                          },
                          "granted_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "offline_until": {
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "persisted_claims_until": {
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "scopes": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          }
                        },
                        "required": [
                          "client_id",
                          "display_name",
                          "scopes",
                          "granted_at",
                          "active_refresh_grants"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "user_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "user_id",
                    "consents"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks users:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "users:read"
            ]
          }
        ],
        "summary": "The applications a person consented to or that hold a grant."
      }
    },
    "/admin/users/{userID}/consents/{clientID}": {
      "delete": {
        "operationId": "delete_users_userID_consents_clientID",
        "parameters": [
          {
            "in": "path",
            "name": "userID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "clientID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "client_id": {
                      "type": "string"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "refresh_grants_revoked": {
                      "type": "integer"
                    },
                    "user_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "user_id",
                    "client_id",
                    "refresh_grants_revoked",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks users:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "users:write"
            ]
          }
        ],
        "summary": "Withdraw a consent and revoke the application's refresh grants."
      }
    },
    "/admin/users/{userID}/credential-offers": {
      "post": {
        "operationId": "post_users_userID_credential_offers",
        "parameters": [
          {
            "in": "path",
            "name": "userID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "authorization_code": {
                    "type": "boolean"
                  },
                  "by_reference": {
                    "type": "boolean"
                  },
                  "client_id": {
                    "type": "string"
                  },
                  "credential_configurations": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "credential_issuer": {
                    "type": "string"
                  },
                  "expires_in_s": {
                    "type": "integer"
                  },
                  "tx_code": {
                    "type": "boolean"
                  },
                  "tx_code_length": {
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "expires_at": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "offer": {
                      "additionalProperties": false,
                      "properties": {
                        "credential_configuration_ids": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "credential_issuer": {
                          "type": "string"
                        },
                        "grants": {
                          "additionalProperties": true,
                          "type": "object"
                        }
                      },
                      "required": [
                        "credential_issuer",
                        "credential_configuration_ids",
                        "grants"
                      ],
                      "type": "object"
                    },
                    "offer_uri": {
                      "type": "string"
                    },
                    "tx_code": {
                      "type": "string"
                    },
                    "user_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "user_id",
                    "offer",
                    "offer_uri",
                    "expires_at",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks users:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "users:write"
            ]
          }
        ],
        "summary": "Mint a Credential Offer for the person.",
        "x-privileged-scope": "privileged-users:write"
      }
    },
    "/admin/users/{userID}/duo": {
      "put": {
        "operationId": "put_users_userID_duo",
        "parameters": [
          {
            "in": "path",
            "name": "userID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "duo_username": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "duo_username": {
                      "type": "string"
                    },
                    "user_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "user_id",
                    "duo_username",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks users:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "users:write"
            ]
          }
        ],
        "summary": "Enrol a person in Duo by the username they have there.",
        "x-privileged-scope": "privileged-users:write"
      }
    },
    "/admin/users/{userID}/factors": {
      "get": {
        "operationId": "get_users_userID_factors",
        "parameters": [
          {
            "in": "path",
            "name": "userID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "factors": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "confirmed": {
                            "type": "boolean"
                          },
                          "created_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "disabled": {
                            "type": "boolean"
                          },
                          "id": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          },
                          "last_used_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "confirmed"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "has_second_factor": {
                      "type": "boolean"
                    },
                    "recovery_codes_disabled": {
                      "type": "boolean"
                    },
                    "recovery_codes_unused": {
                      "type": "integer"
                    },
                    "user_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "user_id",
                    "factors"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks users:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "users:read"
            ]
          }
        ],
        "summary": "What the user can authenticate with. No secret material."
      }
    },
    "/admin/users/{userID}/factors/{kind}": {
      "delete": {
        "operationId": "delete_users_userID_factors_kind",
        "parameters": [
          {
            "in": "path",
            "name": "userID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "kind",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "factor": {
                      "type": "string"
                    },
                    "notices_queued": {
                      "type": "integer"
                    },
                    "removed": {
                      "type": "integer"
                    },
                    "sessions_ended": {
                      "type": "integer"
                    },
                    "user_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "user_id",
                    "factor",
                    "removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks users:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "users:write"
            ]
          }
        ],
        "summary": "Remove a factor the user holds one of.",
        "x-privileged-scope": "privileged-users:write"
      }
    },
    "/admin/users/{userID}/factors/{kind}/{factorID}": {
      "delete": {
        "operationId": "delete_users_userID_factors_kind_factorID",
        "parameters": [
          {
            "in": "path",
            "name": "userID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "kind",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "factorID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "factor": {
                      "type": "string"
                    },
                    "notices_queued": {
                      "type": "integer"
                    },
                    "removed": {
                      "type": "integer"
                    },
                    "sessions_ended": {
                      "type": "integer"
                    },
                    "user_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "user_id",
                    "factor",
                    "removed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks users:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "users:write"
            ]
          }
        ],
        "summary": "Remove one of several factors.",
        "x-privileged-scope": "privileged-users:write"
      }
    },
    "/admin/users/{userID}/identity-links": {
      "get": {
        "operationId": "get_users_userID_identity_links",
        "parameters": [
          {
            "in": "path",
            "name": "userID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "links": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "kind": {
                            "type": "string"
                          },
                          "last_sign_in_at": {
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "linked_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "provider": {
                            "type": "string"
                          },
                          "subject": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "provider",
                          "kind",
                          "subject",
                          "linked_at",
                          "last_sign_in_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "user_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "user_id",
                    "links"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks users:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "users:read"
            ]
          }
        ],
        "summary": "The upstream subjects a person is linked to."
      }
    },
    "/admin/users/{userID}/identity-links/{slug}": {
      "delete": {
        "operationId": "delete_users_userID_identity_links_slug",
        "parameters": [
          {
            "in": "path",
            "name": "userID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "linked": {
                      "type": "boolean"
                    },
                    "provider": {
                      "type": "string"
                    },
                    "subject": {
                      "type": "string"
                    },
                    "user_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "user_id",
                    "provider",
                    "subject",
                    "linked",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks users:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "users:write"
            ]
          }
        ],
        "summary": "Detach the person from a provider.",
        "x-privileged-scope": "privileged-users:write"
      },
      "put": {
        "operationId": "put_users_userID_identity_links_slug",
        "parameters": [
          {
            "in": "path",
            "name": "userID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "subject": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "changed": {
                      "type": "boolean"
                    },
                    "config_version": {
                      "type": "integer"
                    },
                    "linked": {
                      "type": "boolean"
                    },
                    "provider": {
                      "type": "string"
                    },
                    "subject": {
                      "type": "string"
                    },
                    "user_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "user_id",
                    "provider",
                    "subject",
                    "linked",
                    "changed",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks users:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "users:write"
            ]
          }
        ],
        "summary": "Make a provider's subject act as the person, so its assertions mint for them.",
        "x-privileged-scope": "privileged-users:write"
      }
    },
    "/admin/users/{userID}/passkey-link": {
      "post": {
        "operationId": "post_users_userID_passkey_link",
        "parameters": [
          {
            "in": "path",
            "name": "userID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "ttl_seconds": {
                    "type": "integer"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "expires_at": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "link_id": {
                      "format": "uuid",
                      "type": "string"
                    },
                    "user_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "user_id",
                    "link_id",
                    "expires_at"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks users:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "users:write"
            ]
          }
        ],
        "summary": "Email the user a single-use link to register a passkey. The token is never returned.",
        "x-privileged-scope": "privileged-users:write"
      }
    },
    "/admin/users/{userID}/sessions": {
      "delete": {
        "operationId": "delete_users_userID_sessions",
        "parameters": [
          {
            "in": "path",
            "name": "userID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "notices_queued": {
                      "type": "integer"
                    },
                    "sessions_ended": {
                      "type": "integer"
                    },
                    "user_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "user_id",
                    "sessions_ended",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks users:write, or is scoped to another organisation."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "users:write"
            ]
          }
        ],
        "summary": "End all of a user's sessions."
      },
      "get": {
        "operationId": "get_users_userID_sessions",
        "parameters": [
          {
            "in": "path",
            "name": "userID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "next_cursor": {
                      "type": "string"
                    },
                    "sessions": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "acr": {
                            "type": "string"
                          },
                          "amr": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "auth_time": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "created_at": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "has_address": {
                            "type": "boolean"
                          },
                          "not_after": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "org_id": {
                            "format": "uuid",
                            "type": "string"
                          },
                          "sid": {
                            "type": "string"
                          },
                          "user_agent": {
                            "type": "string"
                          },
                          "user_id": {
                            "format": "uuid",
                            "type": "string"
                          }
                        },
                        "required": [
                          "sid",
                          "user_id",
                          "org_id",
                          "auth_time",
                          "not_after",
                          "created_at"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "sessions"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks users:read, or is scoped to another organisation."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "users:read"
            ]
          }
        ],
        "summary": "A user's live sessions."
      }
    },
    "/admin/users/{userID}/throttle": {
      "delete": {
        "operationId": "delete_users_userID_throttle",
        "parameters": [
          {
            "in": "path",
            "name": "userID",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "RFC 7232 precondition. The write is refused with 412 if the configuration moved since the ETag was read.",
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "config_version": {
                      "type": "integer"
                    },
                    "counts_cleared": {
                      "type": "integer"
                    },
                    "user_id": {
                      "format": "uuid",
                      "type": "string"
                    }
                  },
                  "required": [
                    "user_id",
                    "config_version"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The request was refused; `error` names why."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "No usable bearer token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The token lacks users:write, or is scoped to another organisation, or the target may impersonate others and the token lacks privileged-users:write."
          },
          "412": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "The configuration version moved; nothing was written. `expected_version` and `current_version` name both."
          }
        },
        "security": [
          {
            "bearerAuth": [
              "users:write"
            ]
          }
        ],
        "summary": "Clear the sign-in delay and the budgets wrong guesses charged to the user.",
        "x-privileged-scope": "privileged-users:write"
      }
    }
  }
}
