{
  "openapi": "3.1.0",
  "info": {
    "title": "Fravni",
    "version": "0.1.0"
  },
  "servers": [
    {
      "url": "https://api.fravni.com"
    }
  ],
  "paths": {
    "/v1/entitlements/tier": {
      "get": {
        "tags": [
          "entitlements"
        ],
        "summary": "Get the account's tier",
        "operationId": "entitlements-get_account_tier",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountTierResponse"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/connections": {
      "get": {
        "tags": [
          "connections"
        ],
        "summary": "List connections",
        "operationId": "connections-list_connections",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectionList"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "connections"
        ],
        "summary": "Create a connection",
        "operationId": "connections-create_connection",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConnectionCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectionRead"
                }
              }
            },
            "description": "Created"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_validation_error"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_connection_over_limit"
                }
              }
            },
            "description": "Conflict"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/connections/{connection_id}": {
      "get": {
        "tags": [
          "connections"
        ],
        "summary": "Get a connection",
        "operationId": "connections-get_connection",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectionRead"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_invalid_id"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_connection_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        }
      },
      "patch": {
        "tags": [
          "connections"
        ],
        "summary": "Rename a connection",
        "operationId": "connections-rename_connection",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConnectionRename"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectionRead"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_invalid_id"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_validation_error"
                    }
                  ]
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_connection_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        }
      },
      "delete": {
        "tags": [
          "connections"
        ],
        "summary": "Delete a connection",
        "operationId": "connections-delete_connection",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_invalid_id"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_connection_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        }
      }
    },
    "/v1/connections/{connection_id}/credential": {
      "put": {
        "tags": [
          "connections"
        ],
        "summary": "Replace a connection's credential",
        "operationId": "connections-replace_connection_credential",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CredentialReplace"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectionRead"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_invalid_id"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_validation_error"
                    }
                  ]
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_connection_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        }
      }
    },
    "/v1/connections/{connection_id}/proof": {
      "post": {
        "tags": [
          "connections"
        ],
        "summary": "Check a connection's proof",
        "operationId": "connections-check_connection_proof",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProofRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProofResult"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_invalid_id"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_validation_error"
                    }
                  ]
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_connection_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_connection_proof_not_applicable"
                }
              }
            },
            "description": "Conflict"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_service_unavailable__rate_limiter_unavailable__fetcher_unavailable"
                }
              }
            },
            "description": "Service Unavailable"
          }
        }
      }
    },
    "/v1/approved-hosts": {
      "get": {
        "tags": [
          "approved-hosts"
        ],
        "summary": "List approved hosts",
        "operationId": "approved-hosts-list_approved_hosts",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApprovedHostList"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/monitors": {
      "get": {
        "tags": [
          "monitors"
        ],
        "summary": "List monitors",
        "operationId": "monitors-list_monitors",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorList"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "monitors"
        ],
        "summary": "Create a monitor",
        "operationId": "monitors-create_monitor",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MonitorCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorRead"
                }
              }
            },
            "description": "Created"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_validation_error"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_source_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_monitor_cap_reached"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_source_cap_reached"
                    }
                  ]
                }
              }
            },
            "description": "Conflict"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/monitors/{monitor_id}": {
      "get": {
        "tags": [
          "monitors"
        ],
        "summary": "Get a monitor",
        "operationId": "monitors-get_monitor",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "monitor_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorRead"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_invalid_id"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_monitor_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        }
      },
      "patch": {
        "tags": [
          "monitors"
        ],
        "summary": "Update a monitor's settings",
        "operationId": "monitors-update_monitor",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "monitor_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MonitorUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorRead"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_invalid_id"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_validation_error"
                    }
                  ]
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_monitor_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        }
      },
      "delete": {
        "tags": [
          "monitors"
        ],
        "summary": "Delete a monitor",
        "operationId": "monitors-delete_monitor",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "monitor_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_invalid_id"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_monitor_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_invalid_state"
                }
              }
            },
            "description": "Conflict"
          }
        }
      }
    },
    "/v1/monitors/{monitor_id}/definition": {
      "put": {
        "tags": [
          "monitors"
        ],
        "summary": "Save a monitor's definition",
        "operationId": "monitors-save_definition",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "monitor_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorSaved"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_invalid_id"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_validation_error"
                    }
                  ]
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_monitor_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_draft_changed"
                }
              }
            },
            "description": "Conflict"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_content_too_large"
                }
              }
            },
            "description": "Content Too Large"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "source": {
                    "additionalProperties": false,
                    "properties": {
                      "event_conditions": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "field_path": {
                              "maxLength": 1024,
                              "type": "string"
                            },
                            "compare": {
                              "enum": [
                                "equals",
                                "in",
                                "exists",
                                "some"
                              ],
                              "type": "string"
                            },
                            "value": {
                              "anyOf": [
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "maxLength": 256,
                                  "type": "string"
                                },
                                {
                                  "items": {
                                    "anyOf": [
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "integer"
                                      },
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "maxLength": 256,
                                        "type": "string"
                                      }
                                    ]
                                  },
                                  "maxItems": 8,
                                  "type": "array"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "entry_field": {
                                      "maxLength": 1024,
                                      "type": "string"
                                    },
                                    "equals": {
                                      "maxLength": 1024,
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                }
                              ]
                            }
                          },
                          "type": "object"
                        },
                        "maxItems": 8,
                        "type": "array"
                      },
                      "event_fields": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "field_path": {
                              "anyOf": [
                                {
                                  "maxLength": 1024,
                                  "type": "string"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "list_path": {
                                      "maxLength": 1024,
                                      "type": "string"
                                    },
                                    "entry_field": {
                                      "maxLength": 1024,
                                      "type": "string"
                                    },
                                    "equals": {
                                      "maxLength": 1024,
                                      "type": "string"
                                    },
                                    "take_field": {
                                      "maxLength": 1024,
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                }
                              ]
                            },
                            "data_type": {
                              "enum": [
                                "string",
                                "integer",
                                "number",
                                "boolean"
                              ],
                              "type": "string"
                            },
                            "lowercase": {
                              "default": false,
                              "type": "boolean"
                            }
                          },
                          "type": "object"
                        },
                        "maxItems": 8,
                        "type": "array"
                      },
                      "action_id_field": {
                        "maxLength": 64,
                        "type": "string"
                      },
                      "record_id_field": {
                        "maxLength": 64,
                        "type": "string"
                      },
                      "latest_event_only": {
                        "default": false,
                        "type": "boolean"
                      }
                    },
                    "type": "object"
                  },
                  "translated_fields": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "translate_from": {
                          "maxLength": 64,
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "data_type": {
                          "enum": [
                            "string",
                            "integer",
                            "number",
                            "boolean"
                          ],
                          "type": "string"
                        },
                        "pairs": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "input": {
                                "anyOf": [
                                  {
                                    "type": "boolean"
                                  },
                                  {
                                    "type": "integer"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "maxLength": 256,
                                    "type": "string"
                                  }
                                ]
                              },
                              "output": {
                                "anyOf": [
                                  {
                                    "type": "boolean"
                                  },
                                  {
                                    "type": "integer"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "maxLength": 256,
                                    "type": "string"
                                  }
                                ]
                              }
                            },
                            "type": "object"
                          },
                          "maxItems": 20,
                          "type": "array"
                        }
                      },
                      "type": "object"
                    },
                    "maxItems": 4,
                    "type": "array"
                  },
                  "destination": {
                    "additionalProperties": false,
                    "properties": {
                      "fields_used": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "data_type": {
                              "enum": [
                                "string",
                                "integer",
                                "number",
                                "boolean"
                              ],
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "maxItems": 6,
                        "type": "array"
                      },
                      "operation": {
                        "type": "string"
                      },
                      "host": {
                        "type": "string"
                      },
                      "path": {
                        "maxLength": 1024,
                        "type": "string"
                      },
                      "query": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "name": {
                              "maxLength": 256,
                              "type": "string"
                            },
                            "value": {
                              "maxLength": 256,
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "maxItems": 6,
                        "type": "array"
                      },
                      "response": {
                        "additionalProperties": false,
                        "properties": {
                          "shape": {
                            "enum": [
                              "object",
                              "list"
                            ],
                            "type": "string"
                          },
                          "list_path": {
                            "maxLength": 1024,
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "expectations": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "field_path": {
                              "anyOf": [
                                {
                                  "maxLength": 256,
                                  "type": "string"
                                },
                                {
                                  "items": {
                                    "maxLength": 256,
                                    "type": "string"
                                  },
                                  "maxItems": 2,
                                  "type": "array"
                                }
                              ]
                            },
                            "expected": {
                              "anyOf": [
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "maxLength": 256,
                                  "type": "string"
                                },
                                {
                                  "additionalProperties": false,
                                  "properties": {
                                    "field": {
                                      "maxLength": 64,
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "field"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            "some": {
                              "items": {
                                "additionalProperties": false,
                                "properties": {
                                  "entry_field": {
                                    "maxLength": 256,
                                    "type": "string"
                                  },
                                  "expected": {
                                    "anyOf": [
                                      {
                                        "type": "boolean"
                                      },
                                      {
                                        "type": "integer"
                                      },
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "maxLength": 256,
                                        "type": "string"
                                      },
                                      {
                                        "additionalProperties": false,
                                        "properties": {
                                          "field": {
                                            "maxLength": 64,
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "field"
                                        ],
                                        "type": "object"
                                      }
                                    ]
                                  }
                                },
                                "type": "object"
                              },
                              "maxItems": 4,
                              "type": "array"
                            },
                            "split": {
                              "enum": [
                                ";"
                              ],
                              "type": "string"
                            },
                            "identity": {
                              "type": "boolean"
                            }
                          },
                          "type": "object"
                        },
                        "maxItems": 8,
                        "type": "array"
                      }
                    },
                    "type": "object"
                  },
                  "timing": {
                    "additionalProperties": false,
                    "properties": {
                      "read_offsets": {
                        "items": {
                          "type": "integer"
                        },
                        "type": "array"
                      },
                      "deadline": {
                        "default": 600,
                        "type": "integer"
                      }
                    },
                    "type": "object"
                  },
                  "connection_id": {
                    "format": "uuid",
                    "type": "string"
                  },
                  "source_prefill": {
                    "additionalProperties": false,
                    "properties": {
                      "type": {
                        "enum": [
                          "stripe",
                          "hmac",
                          "custom"
                        ],
                        "type": "string"
                      },
                      "hmac": {
                        "anyOf": [
                          {
                            "additionalProperties": false,
                            "oneOf": [
                              {
                                "properties": {
                                  "signature_scheme": {
                                    "const": "raw_body"
                                  }
                                },
                                "required": [
                                  "signature_header",
                                  "algorithm",
                                  "encoding",
                                  "event_id"
                                ]
                              },
                              {
                                "maxProperties": 1,
                                "properties": {
                                  "signature_scheme": {
                                    "const": "standard_webhooks"
                                  }
                                },
                                "required": [
                                  "signature_scheme"
                                ]
                              }
                            ],
                            "properties": {
                              "signature_scheme": {
                                "enum": [
                                  "raw_body",
                                  "standard_webhooks"
                                ],
                                "type": "string"
                              },
                              "signature_header": {
                                "maxLength": 128,
                                "minLength": 1,
                                "type": "string"
                              },
                              "algorithm": {
                                "enum": [
                                  "sha256",
                                  "sha512"
                                ],
                                "type": "string"
                              },
                              "encoding": {
                                "enum": [
                                  "hex",
                                  "base64"
                                ],
                                "type": "string"
                              },
                              "prefix": {
                                "maxLength": 32,
                                "type": "string"
                              },
                              "event_id": {
                                "additionalProperties": false,
                                "maxProperties": 1,
                                "minProperties": 1,
                                "properties": {
                                  "header": {
                                    "maxLength": 128,
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  "field_path": {
                                    "maxLength": 256,
                                    "minLength": 1,
                                    "type": "string"
                                  }
                                },
                                "type": "object"
                              }
                            },
                            "type": "object"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "type": "object"
                  }
                },
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/v1/monitors/{monitor_id}/publish": {
      "post": {
        "tags": [
          "monitors"
        ],
        "summary": "Publish a monitor's working copy",
        "operationId": "monitors-publish_monitor",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "monitor_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorRead"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_invalid_id"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_validation_error"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_activation_failed"
                    }
                  ]
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_monitor_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_draft_changed"
                }
              }
            },
            "description": "Conflict"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_service_unavailable__rate_limiter_unavailable"
                }
              }
            },
            "description": "Service Unavailable"
          }
        }
      }
    },
    "/v1/monitors/{monitor_id}/resume": {
      "post": {
        "tags": [
          "monitors"
        ],
        "summary": "Resume a monitor",
        "operationId": "monitors-resume_monitor",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "monitor_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorRead"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_invalid_id"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_activation_failed"
                    }
                  ]
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_monitor_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_invalid_state"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_draft_changed"
                    }
                  ]
                }
              }
            },
            "description": "Conflict"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_service_unavailable__rate_limiter_unavailable"
                }
              }
            },
            "description": "Service Unavailable"
          }
        }
      }
    },
    "/v1/monitors/{monitor_id}/discard": {
      "post": {
        "tags": [
          "monitors"
        ],
        "summary": "Discard a monitor's unpublished changes",
        "operationId": "monitors-discard_changes",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "monitor_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorSaved"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_invalid_id"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_validation_error"
                    }
                  ]
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_monitor_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_invalid_state"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_draft_changed"
                    }
                  ]
                }
              }
            },
            "description": "Conflict"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        }
      }
    },
    "/v1/monitors/{monitor_id}/pause": {
      "post": {
        "tags": [
          "monitors"
        ],
        "summary": "Pause a monitor",
        "operationId": "monitors-pause_monitor",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "monitor_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorRead"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_invalid_id"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_monitor_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_invalid_state"
                }
              }
            },
            "description": "Conflict"
          }
        }
      }
    },
    "/v1/monitors/{monitor_id}/deactivate": {
      "post": {
        "tags": [
          "monitors"
        ],
        "summary": "Deactivate a monitor",
        "operationId": "monitors-deactivate_monitor",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "monitor_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorRead"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_invalid_id"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_monitor_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_invalid_state"
                }
              }
            },
            "description": "Conflict"
          }
        }
      }
    },
    "/v1/monitors/{monitor_id}/export": {
      "get": {
        "tags": [
          "monitors"
        ],
        "summary": "Export a monitor",
        "operationId": "monitors-export_monitor",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "monitor_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_invalid_id"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_monitor_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_source_missing"
                }
              }
            },
            "description": "Conflict"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        }
      }
    },
    "/v1/monitors/import": {
      "post": {
        "tags": [
          "monitors"
        ],
        "summary": "Import a monitor",
        "operationId": "monitors-import_monitor",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorSaved"
                }
              }
            },
            "description": "Created"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_validation_error"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_monitor_cap_reached"
                }
              }
            },
            "description": "Conflict"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_content_too_large"
                }
              }
            },
            "description": "Content Too Large"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/v1/monitors/{monitor_id}/clone": {
      "post": {
        "tags": [
          "monitors"
        ],
        "summary": "Clone a monitor",
        "operationId": "monitors-clone_monitor",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "monitor_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "name",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorSaved"
                }
              }
            },
            "description": "Created"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_invalid_id"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_validation_error"
                    }
                  ]
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_monitor_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_source_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_monitor_cap_reached"
                }
              }
            },
            "description": "Conflict"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        }
      }
    },
    "/v1/monitors/{monitor_id}/source": {
      "put": {
        "tags": [
          "monitors"
        ],
        "summary": "Bind a draft monitor to a source",
        "operationId": "monitors-bind_source",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "monitor_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorSaved"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_invalid_id"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_validation_error"
                    }
                  ]
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_monitor_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_source_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_invalid_state"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_draft_changed"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_source_cap_reached"
                    }
                  ]
                }
              }
            },
            "description": "Conflict"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_content_too_large"
                }
              }
            },
            "description": "Content Too Large"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "source_type": {
                    "enum": [
                      "stripe",
                      "hmac",
                      "custom"
                    ],
                    "type": "string"
                  },
                  "source_id": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "source_type"
                ],
                "type": "object"
              }
            }
          }
        }
      }
    },
    "/v1/recipes": {
      "get": {
        "tags": [
          "recipes"
        ],
        "summary": "List recipes",
        "operationId": "recipes-list_recipes",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecipeList"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/recipes/{recipe_id}": {
      "get": {
        "tags": [
          "recipes"
        ],
        "summary": "Get a recipe",
        "operationId": "recipes-get_recipe",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "recipe_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecipeRead"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_recipe_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        }
      }
    },
    "/v1/recipes/{recipe_id}/start": {
      "post": {
        "tags": [
          "recipes"
        ],
        "summary": "Create a monitor from a recipe",
        "operationId": "recipes-start_recipe",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "recipe_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonitorSaved"
                }
              }
            },
            "description": "Created"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_validation_error"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_recipe_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_monitor_cap_reached"
                }
              }
            },
            "description": "Conflict"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        }
      }
    },
    "/v1/parts/ingest": {
      "get": {
        "tags": [
          "parts"
        ],
        "summary": "List event source parts",
        "operationId": "parts-list_ingest_parts",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartList"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/parts/destination": {
      "get": {
        "tags": [
          "parts"
        ],
        "summary": "List destination parts",
        "operationId": "parts-list_destination_parts",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartList"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/read-schedule-bounds": {
      "get": {
        "tags": [
          "read-schedule"
        ],
        "summary": "Read the read-schedule bounds",
        "operationId": "read-schedule-read_schedule_bounds",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReadScheduleBounds"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/sources": {
      "get": {
        "tags": [
          "sources"
        ],
        "summary": "List sources",
        "operationId": "sources-list_sources",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourceList"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/sources/{source_id}": {
      "get": {
        "tags": [
          "sources"
        ],
        "summary": "Get a source",
        "operationId": "sources-get_source",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "source_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourceRead"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_source_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        }
      },
      "put": {
        "tags": [
          "sources"
        ],
        "summary": "Replace a source's settings",
        "operationId": "sources-update_source",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "source_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SourceUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourceRead"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_validation_error"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_source_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        }
      },
      "patch": {
        "tags": [
          "sources"
        ],
        "summary": "Rename a source",
        "operationId": "sources-rename_source",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "source_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SourceRename"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourceRead"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_validation_error"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_source_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        }
      },
      "delete": {
        "tags": [
          "sources"
        ],
        "summary": "Delete a source",
        "operationId": "sources-delete_source",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "source_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_source_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_source_in_use"
                }
              }
            },
            "description": "Conflict"
          }
        }
      }
    },
    "/v1/sources/{source_id}/secret": {
      "put": {
        "tags": [
          "sources"
        ],
        "summary": "Set a source's signing secret",
        "operationId": "sources-replace_secret",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "source_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SigningSecretReplace"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourceRead"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_validation_error"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_source_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        }
      }
    },
    "/v1/issues": {
      "get": {
        "tags": [
          "issues"
        ],
        "summary": "List unresolved issues",
        "operationId": "issues-list_issues",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssueList"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_validation_error"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        }
      }
    },
    "/v1/issues/{issue_id}": {
      "get": {
        "tags": [
          "issues"
        ],
        "summary": "Get an issue",
        "operationId": "issues-get_issue",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "issue_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssueRead"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_invalid_id"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_issue_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        }
      }
    },
    "/v1/monitors/{monitor_id}/obligations": {
      "get": {
        "tags": [
          "obligations"
        ],
        "summary": "List a monitor's obligations",
        "operationId": "obligations-list_obligations",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "monitor_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObligationList"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_invalid_id"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_validation_error"
                    }
                  ]
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_monitor_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        }
      }
    },
    "/v1/obligations/{obligation_id}": {
      "get": {
        "tags": [
          "obligations"
        ],
        "summary": "Get an obligation",
        "operationId": "obligations-get_obligation",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "obligation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObligationRead"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_invalid_id"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_obligation_not_found"
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        }
      }
    },
    "/v1/tester/sample-runs": {
      "post": {
        "tags": [
          "tester"
        ],
        "summary": "Run a sample event",
        "operationId": "tester-run_sample",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "monitor_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "sample": {
                    "additionalProperties": true,
                    "type": "object"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "monitor_id",
                  "sample"
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SampleResult"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_validation_error"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_working_copy_invalid"
                    }
                  ]
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                }
              }
            },
            "description": "Not Found"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_content_too_large"
                }
              }
            },
            "description": "Content Too Large"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/tester/sample-examples": {
      "post": {
        "tags": [
          "tester"
        ],
        "summary": "Build an example sample",
        "operationId": "tester-build_sample_example",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "monitor_id": {
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "monitor_id"
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SampleExample"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_validation_error"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                }
              }
            },
            "description": "Not Found"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_content_too_large"
                }
              }
            },
            "description": "Content Too Large"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/tester/test-reads": {
      "post": {
        "tags": [
          "tester"
        ],
        "summary": "Run a test read",
        "operationId": "tester-run_test_read",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "monitor_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "sample": {
                    "additionalProperties": true,
                    "type": "object"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "monitor_id",
                  "sample"
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LiveReadResult"
                }
              }
            },
            "description": "OK"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse_validation_error"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse_working_copy_invalid"
                    }
                  ]
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_session_required__invalid_api_key"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_account_not_found"
                }
              }
            },
            "description": "Not Found"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_content_too_large"
                }
              }
            },
            "description": "Content Too Large"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_rate_limited"
                }
              }
            },
            "description": "Too Many Requests"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_connection_unbound__connection_deleted"
                }
              }
            },
            "description": "Conflict"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_service_unavailable__rate_limiter_unavailable__fetcher_unavailable"
                }
              }
            },
            "description": "Service Unavailable"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse_service_unavailable__rate_limiter_unavailable__fetcher_unavailable": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorBody_service_unavailable__rate_limiter_unavailable__fetcher_unavailable"
          }
        },
        "type": "object",
        "required": [
          "error"
        ]
      },
      "ErrorBody_service_unavailable__rate_limiter_unavailable__fetcher_unavailable": {
        "properties": {
          "code": {
            "type": "string",
            "enum": [
              "service_unavailable",
              "rate_limiter_unavailable",
              "fetcher_unavailable"
            ]
          },
          "message": {
            "type": "string"
          },
          "details": {
            "type": "null"
          }
        },
        "type": "object",
        "required": [
          "code",
          "message",
          "details"
        ]
      },
      "ErrorResponse_connection_unbound__connection_deleted": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorBody_connection_unbound__connection_deleted"
          }
        },
        "type": "object",
        "required": [
          "error"
        ]
      },
      "ErrorBody_connection_unbound__connection_deleted": {
        "properties": {
          "code": {
            "type": "string",
            "enum": [
              "connection_unbound",
              "connection_deleted"
            ]
          },
          "message": {
            "type": "string"
          },
          "details": {
            "type": "null"
          }
        },
        "type": "object",
        "required": [
          "code",
          "message",
          "details"
        ]
      },
      "ErrorResponse_rate_limited": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorBody_rate_limited"
          }
        },
        "type": "object",
        "required": [
          "error"
        ]
      },
      "ErrorBody_rate_limited": {
        "properties": {
          "code": {
            "type": "string",
            "const": "rate_limited"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "type": "null"
          }
        },
        "type": "object",
        "required": [
          "code",
          "message",
          "details"
        ]
      },
      "ErrorResponse_content_too_large": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorBody_content_too_large"
          }
        },
        "type": "object",
        "required": [
          "error"
        ]
      },
      "ErrorBody_content_too_large": {
        "properties": {
          "code": {
            "type": "string",
            "const": "content_too_large"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "type": "null"
          }
        },
        "type": "object",
        "required": [
          "code",
          "message",
          "details"
        ]
      },
      "ErrorResponse_account_not_found": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorBody_account_not_found"
          }
        },
        "type": "object",
        "required": [
          "error"
        ]
      },
      "ErrorBody_account_not_found": {
        "properties": {
          "code": {
            "type": "string",
            "const": "account_not_found"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "type": "null"
          }
        },
        "type": "object",
        "required": [
          "code",
          "message",
          "details"
        ]
      },
      "ErrorResponse_session_required__invalid_api_key": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorBody_session_required__invalid_api_key"
          }
        },
        "type": "object",
        "required": [
          "error"
        ]
      },
      "ErrorBody_session_required__invalid_api_key": {
        "properties": {
          "code": {
            "type": "string",
            "enum": [
              "session_required",
              "invalid_api_key"
            ]
          },
          "message": {
            "type": "string"
          },
          "details": {
            "type": "null"
          }
        },
        "type": "object",
        "required": [
          "code",
          "message",
          "details"
        ]
      },
      "ErrorResponse_working_copy_invalid": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorBody_working_copy_invalid"
          }
        },
        "type": "object",
        "required": [
          "error"
        ]
      },
      "ErrorBody_working_copy_invalid": {
        "properties": {
          "code": {
            "type": "string",
            "const": "working_copy_invalid"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "$ref": "#/components/schemas/RequestErrorDetails"
          }
        },
        "type": "object",
        "required": [
          "code",
          "message",
          "details"
        ]
      },
      "RequestErrorDetails": {
        "properties": {
          "errors": {
            "items": {
              "$ref": "#/components/schemas/RequestError"
            },
            "type": "array",
            "minItems": 1
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "errors"
        ]
      },
      "RequestError": {
        "properties": {
          "source": {
            "$ref": "#/components/schemas/RequestLocation"
          },
          "path": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array"
          },
          "reason": {
            "$ref": "#/components/schemas/RequestErrorReason"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "source",
          "path",
          "reason"
        ]
      },
      "RequestErrorReason": {
        "type": "string",
        "enum": [
          "required",
          "unsupported",
          "invalid"
        ]
      },
      "RequestLocation": {
        "type": "string",
        "enum": [
          "body",
          "query",
          "path",
          "header",
          "cookie",
          "unknown"
        ]
      },
      "ErrorResponse_validation_error": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorBody_validation_error"
          }
        },
        "type": "object",
        "required": [
          "error"
        ]
      },
      "ErrorBody_validation_error": {
        "properties": {
          "code": {
            "type": "string",
            "const": "validation_error"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "$ref": "#/components/schemas/RequestErrorDetails"
          }
        },
        "type": "object",
        "required": [
          "code",
          "message",
          "details"
        ]
      },
      "LiveReadResult": {
        "properties": {
          "outcome": {
            "$ref": "#/components/schemas/SampleOutcome"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "unsupported_api_version",
                  "conditions_not_met",
                  "input_unassessable"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "fields": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/PathError"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          },
          "request": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ResolvedRequest"
              },
              {
                "type": "null"
              }
            ]
          },
          "read": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReadView"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "outcome",
          "reason",
          "fields",
          "errors",
          "request",
          "read"
        ]
      },
      "ReadView": {
        "properties": {
          "outcome": {
            "$ref": "#/components/schemas/ReadOutcome"
          },
          "cause": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReadCause"
              },
              {
                "type": "null"
              }
            ]
          },
          "identity_mismatch": {
            "type": "boolean"
          },
          "http_status": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "observed": {
            "items": {
              "$ref": "#/components/schemas/ObservedValue"
            },
            "type": "array"
          }
        },
        "type": "object",
        "required": [
          "outcome",
          "cause",
          "identity_mismatch",
          "http_status",
          "observed"
        ]
      },
      "ObservedValue": {
        "properties": {
          "field_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            ]
          },
          "state": {
            "$ref": "#/components/schemas/ObservedState"
          },
          "value": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "field_path",
          "state",
          "value"
        ]
      },
      "ObservedState": {
        "type": "string",
        "enum": [
          "value",
          "missing",
          "object",
          "array",
          "too_long",
          "contains",
          "lacks"
        ]
      },
      "ReadCause": {
        "type": "string",
        "enum": [
          "dns_error",
          "connect_error",
          "tls_error",
          "timeout",
          "address_refused",
          "auth_failed",
          "rate_limited",
          "server_error",
          "connection_unverified",
          "unexpected_status",
          "invalid_response",
          "operation_not_approved"
        ]
      },
      "ReadOutcome": {
        "type": "string",
        "enum": [
          "match",
          "mismatch",
          "not_found",
          "ambiguous",
          "unavailable",
          "skipped"
        ]
      },
      "ResolvedRequest": {
        "properties": {
          "operation": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "credential": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "operation",
          "url",
          "credential"
        ]
      },
      "PathError": {
        "properties": {
          "path": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array"
          },
          "reason": {
            "$ref": "#/components/schemas/RequestErrorReason"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "path",
          "reason"
        ]
      },
      "SampleOutcome": {
        "type": "string",
        "enum": [
          "resolved",
          "ignored",
          "not_admitted"
        ]
      },
      "SampleExample": {
        "properties": {
          "sample": {
            "additionalProperties": true,
            "type": "object"
          }
        },
        "type": "object",
        "required": [
          "sample"
        ]
      },
      "SampleResult": {
        "properties": {
          "outcome": {
            "$ref": "#/components/schemas/SampleOutcome"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "unsupported_api_version",
                  "conditions_not_met",
                  "input_unassessable"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "fields": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/PathError"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          },
          "request": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ResolvedRequest"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "outcome",
          "reason",
          "fields",
          "errors",
          "request"
        ]
      },
      "ErrorResponse_obligation_not_found": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorBody_obligation_not_found"
          }
        },
        "type": "object",
        "required": [
          "error"
        ]
      },
      "ErrorBody_obligation_not_found": {
        "properties": {
          "code": {
            "type": "string",
            "const": "obligation_not_found"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "type": "null"
          }
        },
        "type": "object",
        "required": [
          "code",
          "message",
          "details"
        ]
      },
      "ErrorResponse_invalid_id": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorBody_invalid_id"
          }
        },
        "type": "object",
        "required": [
          "error"
        ]
      },
      "ErrorBody_invalid_id": {
        "properties": {
          "code": {
            "type": "string",
            "const": "invalid_id"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "$ref": "#/components/schemas/FieldErrorDetails"
          }
        },
        "type": "object",
        "required": [
          "code",
          "message",
          "details"
        ]
      },
      "FieldErrorDetails": {
        "properties": {
          "field": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "field"
        ]
      },
      "ObligationRead": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "monitor_id": {
            "type": "string",
            "format": "uuid"
          },
          "event_id": {
            "type": "string"
          },
          "received_at": {
            "type": "string",
            "format": "date-time"
          },
          "deadline_at": {
            "type": "string",
            "format": "date-time"
          },
          "action_id": {
            "type": "string"
          },
          "record_id": {
            "type": "string"
          },
          "check_state": {
            "$ref": "#/components/schemas/CheckState"
          },
          "verdict": {
            "$ref": "#/components/schemas/Verdict"
          },
          "verdict_recorded_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "unchecked_cause": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UncheckedCause"
              },
              {
                "type": "null"
              }
            ]
          },
          "stop_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StopReason"
              },
              {
                "type": "null"
              }
            ]
          },
          "superseded_by_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "terminal_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "later_match_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "label_kind": {
            "$ref": "#/components/schemas/LabelKind"
          },
          "expectations": {
            "items": {
              "$ref": "#/components/schemas/ExpectationView"
            },
            "type": "array"
          },
          "reads": {
            "items": {
              "$ref": "#/components/schemas/ObligationReadEntry"
            },
            "type": "array"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "id",
          "monitor_id",
          "event_id",
          "received_at",
          "deadline_at",
          "action_id",
          "record_id",
          "check_state",
          "verdict",
          "verdict_recorded_at",
          "unchecked_cause",
          "stop_reason",
          "superseded_by_id",
          "terminal_at",
          "later_match_at",
          "label_kind",
          "expectations",
          "reads"
        ]
      },
      "ObligationReadEntry": {
        "properties": {
          "read": {
            "$ref": "#/components/schemas/ReadView"
          },
          "kind": {
            "$ref": "#/components/schemas/ReadKind"
          },
          "recorded_at": {
            "type": "string",
            "format": "date-time"
          },
          "due_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_verdict": {
            "type": "boolean"
          },
          "skip_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SkipReason"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "read",
          "kind",
          "recorded_at",
          "due_at",
          "is_verdict",
          "skip_reason"
        ]
      },
      "SkipReason": {
        "type": "string",
        "enum": [
          "window_closed"
        ]
      },
      "ReadKind": {
        "type": "string",
        "enum": [
          "scheduled",
          "late",
          "manual"
        ]
      },
      "ExpectationView": {
        "properties": {
          "field_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            ]
          },
          "expected": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "some": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ConditionView"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          },
          "identity": {
            "type": "boolean"
          }
        },
        "type": "object",
        "required": [
          "field_path",
          "expected",
          "some",
          "identity"
        ]
      },
      "ConditionView": {
        "properties": {
          "entry_field": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "expected": {
            "type": "string"
          }
        },
        "type": "object",
        "required": [
          "entry_field",
          "expected"
        ]
      },
      "LabelKind": {
        "type": "string",
        "enum": [
          "checking",
          "match_observed",
          "not_matched",
          "not_found",
          "cannot_identify",
          "could_not_check",
          "stopped"
        ]
      },
      "StopReason": {
        "type": "string",
        "enum": [
          "monitor_deactivated",
          "connection_deleted",
          "superseded"
        ]
      },
      "UncheckedCause": {
        "type": "string",
        "enum": [
          "dns_error",
          "connect_error",
          "tls_error",
          "timeout",
          "address_refused",
          "auth_failed",
          "rate_limited",
          "server_error",
          "connection_unverified",
          "unexpected_status",
          "invalid_response",
          "operation_not_approved",
          "window_closed"
        ]
      },
      "Verdict": {
        "type": "string",
        "enum": [
          "pending",
          "matched",
          "mismatch",
          "not_found",
          "ambiguous"
        ]
      },
      "CheckState": {
        "type": "string",
        "enum": [
          "scheduled",
          "checked",
          "late",
          "checked_late",
          "unchecked",
          "stopped"
        ]
      },
      "ErrorResponse_monitor_not_found": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorBody_monitor_not_found"
          }
        },
        "type": "object",
        "required": [
          "error"
        ]
      },
      "ErrorBody_monitor_not_found": {
        "properties": {
          "code": {
            "type": "string",
            "const": "monitor_not_found"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "type": "null"
          }
        },
        "type": "object",
        "required": [
          "code",
          "message",
          "details"
        ]
      },
      "ObligationList": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ObligationItem"
            },
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "items",
          "next_cursor"
        ]
      },
      "ObligationItem": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "monitor_id": {
            "type": "string",
            "format": "uuid"
          },
          "event_id": {
            "type": "string"
          },
          "received_at": {
            "type": "string",
            "format": "date-time"
          },
          "deadline_at": {
            "type": "string",
            "format": "date-time"
          },
          "action_id": {
            "type": "string"
          },
          "record_id": {
            "type": "string"
          },
          "check_state": {
            "$ref": "#/components/schemas/CheckState"
          },
          "verdict": {
            "$ref": "#/components/schemas/Verdict"
          },
          "verdict_recorded_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "unchecked_cause": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UncheckedCause"
              },
              {
                "type": "null"
              }
            ]
          },
          "stop_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/StopReason"
              },
              {
                "type": "null"
              }
            ]
          },
          "superseded_by_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "terminal_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "later_match_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "label_kind": {
            "$ref": "#/components/schemas/LabelKind"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "id",
          "monitor_id",
          "event_id",
          "received_at",
          "deadline_at",
          "action_id",
          "record_id",
          "check_state",
          "verdict",
          "verdict_recorded_at",
          "unchecked_cause",
          "stop_reason",
          "superseded_by_id",
          "terminal_at",
          "later_match_at",
          "label_kind"
        ]
      },
      "ErrorResponse_issue_not_found": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorBody_issue_not_found"
          }
        },
        "type": "object",
        "required": [
          "error"
        ]
      },
      "ErrorBody_issue_not_found": {
        "properties": {
          "code": {
            "type": "string",
            "const": "issue_not_found"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "type": "null"
          }
        },
        "type": "object",
        "required": [
          "code",
          "message",
          "details"
        ]
      },
      "IssueRead": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "subject": {
            "$ref": "#/components/schemas/IssueSubject"
          },
          "state": {
            "$ref": "#/components/schemas/IssueState"
          },
          "reason": {
            "$ref": "#/components/schemas/IssueReason"
          },
          "reason_label": {
            "type": "string"
          },
          "resolution": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Resolution"
              },
              {
                "type": "null"
              }
            ]
          },
          "monitor_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "connection_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "obligation_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "source_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "opened_at": {
            "type": "string",
            "format": "date-time"
          },
          "acknowledged_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "resolved_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "resolve_allowed": {
            "type": "boolean"
          }
        },
        "type": "object",
        "required": [
          "id",
          "subject",
          "state",
          "reason",
          "reason_label",
          "resolution",
          "monitor_id",
          "connection_id",
          "obligation_id",
          "source_id",
          "opened_at",
          "acknowledged_at",
          "resolved_at",
          "resolve_allowed"
        ]
      },
      "Resolution": {
        "type": "string",
        "enum": [
          "later_match",
          "operator_resolved",
          "monitor_deactivated",
          "connection_recovered",
          "connection_deleted",
          "response_recovered",
          "admission_resumed",
          "delivery_resumed",
          "source_deleted",
          "quota_restored"
        ]
      },
      "IssueReason": {
        "type": "string",
        "enum": [
          "input_unassessable",
          "monitor_over_limit",
          "unsupported_api_version",
          "event_too_old",
          "check_quota_exhausted",
          "dns_error",
          "connect_error",
          "tls_error",
          "timeout",
          "address_refused",
          "auth_failed",
          "rate_limited",
          "server_error",
          "connection_unverified",
          "unexpected_status",
          "invalid_response",
          "operation_not_approved",
          "mismatch",
          "not_found",
          "ambiguous",
          "signature_failures"
        ]
      },
      "IssueState": {
        "type": "string",
        "enum": [
          "open",
          "acknowledged",
          "resolved"
        ]
      },
      "IssueSubject": {
        "type": "string",
        "enum": [
          "obligation",
          "connection",
          "monitor_response",
          "monitor_coverage",
          "source_coverage",
          "account_quota"
        ]
      },
      "IssueList": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/IssueRead"
            },
            "type": "array"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "items",
          "next_cursor"
        ]
      },
      "ErrorResponse_source_not_found": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorBody_source_not_found"
          }
        },
        "type": "object",
        "required": [
          "error"
        ]
      },
      "ErrorBody_source_not_found": {
        "properties": {
          "code": {
            "type": "string",
            "const": "source_not_found"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "type": "null"
          }
        },
        "type": "object",
        "required": [
          "code",
          "message",
          "details"
        ]
      },
      "SourceRead": {
        "properties": {
          "source_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "source_type": {
            "$ref": "#/components/schemas/SourceType"
          },
          "url": {
            "type": "string"
          },
          "alerts_enabled": {
            "type": "boolean"
          },
          "hmac": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HmacSettingsRead"
              },
              {
                "type": "null"
              }
            ]
          },
          "credential_set": {
            "type": "boolean"
          },
          "credential_set_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "last_valid_delivery_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "signature_failures": {
            "type": "integer"
          },
          "last_refusal_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "last_refusal_status": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "last_refusal_reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AdmissionReason"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "source_id",
          "name",
          "source_type",
          "url",
          "alerts_enabled",
          "hmac",
          "credential_set",
          "credential_set_at",
          "last_valid_delivery_at",
          "signature_failures",
          "last_refusal_at",
          "last_refusal_status",
          "last_refusal_reason"
        ]
      },
      "AdmissionReason": {
        "type": "string",
        "enum": [
          "conditions_not_met",
          "monitor_inactive",
          "monitor_over_limit",
          "input_unassessable",
          "unsupported_api_version",
          "event_too_old",
          "event_id_conflict",
          "check_quota_exhausted"
        ]
      },
      "HmacSettingsRead": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/RawBodySettingsRead"
          },
          {
            "$ref": "#/components/schemas/StandardWebhooksSettingsRead"
          }
        ],
        "discriminator": {
          "propertyName": "signature_scheme",
          "mapping": {
            "raw_body": "#/components/schemas/RawBodySettingsRead",
            "standard_webhooks": "#/components/schemas/StandardWebhooksSettingsRead"
          }
        }
      },
      "StandardWebhooksSettingsRead": {
        "properties": {
          "signature_scheme": {
            "type": "string",
            "const": "standard_webhooks"
          }
        },
        "type": "object",
        "required": [
          "signature_scheme"
        ]
      },
      "RawBodySettingsRead": {
        "properties": {
          "signature_scheme": {
            "type": "string",
            "const": "raw_body"
          },
          "signature_header": {
            "type": "string"
          },
          "algorithm": {
            "$ref": "#/components/schemas/HmacAlgorithm"
          },
          "encoding": {
            "$ref": "#/components/schemas/HmacEncoding"
          },
          "prefix": {
            "type": "string"
          },
          "event_id": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EventIdHeaderRead"
              },
              {
                "$ref": "#/components/schemas/EventIdFieldPathRead"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "signature_scheme",
          "signature_header",
          "algorithm",
          "encoding",
          "prefix",
          "event_id"
        ]
      },
      "EventIdFieldPathRead": {
        "properties": {
          "field_path": {
            "type": "string"
          }
        },
        "type": "object",
        "required": [
          "field_path"
        ]
      },
      "EventIdHeaderRead": {
        "properties": {
          "header": {
            "type": "string"
          }
        },
        "type": "object",
        "required": [
          "header"
        ]
      },
      "HmacEncoding": {
        "type": "string",
        "enum": [
          "hex",
          "base64"
        ]
      },
      "HmacAlgorithm": {
        "type": "string",
        "enum": [
          "sha256",
          "sha512"
        ]
      },
      "SourceType": {
        "type": "string",
        "enum": [
          "stripe",
          "hmac",
          "custom"
        ]
      },
      "SigningSecretReplace": {
        "properties": {
          "secret": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1,
            "format": "password",
            "writeOnly": true
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "secret"
        ]
      },
      "ErrorResponse_source_in_use": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorBody_source_in_use"
          }
        },
        "type": "object",
        "required": [
          "error"
        ]
      },
      "ErrorBody_source_in_use": {
        "properties": {
          "code": {
            "type": "string",
            "const": "source_in_use"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "type": "null"
          }
        },
        "type": "object",
        "required": [
          "code",
          "message",
          "details"
        ]
      },
      "ErrorResponse": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorBody"
          }
        },
        "type": "object",
        "required": [
          "error"
        ]
      },
      "ErrorBody": {
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "code",
          "message",
          "details"
        ]
      },
      "SourceRename": {
        "properties": {
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name"
        ]
      },
      "SourceUpdate": {
        "properties": {
          "alerts_enabled": {
            "type": "boolean"
          },
          "hmac": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HmacSettingsBody"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "alerts_enabled",
          "hmac"
        ]
      },
      "HmacSettingsBody": {
        "oneOf": [
          {
            "properties": {
              "signature_scheme": {
                "const": "raw_body"
              }
            },
            "required": [
              "signature_header",
              "algorithm",
              "encoding",
              "event_id"
            ]
          },
          {
            "properties": {
              "signature_scheme": {
                "const": "standard_webhooks"
              }
            },
            "maxProperties": 1,
            "required": [
              "signature_scheme"
            ]
          }
        ],
        "properties": {
          "signature_scheme": {
            "$ref": "#/components/schemas/SignatureScheme",
            "default": "raw_body"
          },
          "signature_header": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1
          },
          "algorithm": {
            "$ref": "#/components/schemas/HmacAlgorithm"
          },
          "encoding": {
            "$ref": "#/components/schemas/HmacEncoding"
          },
          "prefix": {
            "type": "string",
            "maxLength": 32
          },
          "event_id": {
            "$ref": "#/components/schemas/EventIdBody"
          }
        },
        "additionalProperties": false,
        "type": "object"
      },
      "EventIdBody": {
        "properties": {
          "header": {
            "type": "string",
            "maxLength": 128,
            "minLength": 1
          },
          "field_path": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1
          }
        },
        "additionalProperties": false,
        "type": "object",
        "maxProperties": 1,
        "minProperties": 1
      },
      "SignatureScheme": {
        "type": "string",
        "enum": [
          "raw_body",
          "standard_webhooks"
        ]
      },
      "SourceList": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SourceRead"
            },
            "type": "array"
          }
        },
        "type": "object",
        "required": [
          "items"
        ]
      },
      "ReadScheduleBounds": {
        "properties": {
          "default_read_offsets": {
            "items": {
              "type": "integer"
            },
            "type": "array"
          },
          "min_read_offset_count": {
            "type": "integer"
          },
          "max_read_offset_count": {
            "type": "integer"
          },
          "default_deadline": {
            "type": "integer"
          },
          "min_first_offset": {
            "type": "integer"
          },
          "min_offset_gap": {
            "type": "integer"
          },
          "min_deadline": {
            "type": "integer"
          },
          "max_deadline": {
            "type": "integer"
          }
        },
        "type": "object",
        "required": [
          "default_read_offsets",
          "min_read_offset_count",
          "max_read_offset_count",
          "default_deadline",
          "min_first_offset",
          "min_offset_gap",
          "min_deadline",
          "max_deadline"
        ]
      },
      "PartList": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/Part"
            },
            "type": "array"
          }
        },
        "type": "object",
        "required": [
          "items"
        ]
      },
      "Part": {
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 64
          },
          "title": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1
          },
          "description": {
            "type": "string",
            "maxLength": 500,
            "minLength": 1
          },
          "source_provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "destination_provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "search_words": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "event_types": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "body": {
            "additionalProperties": true,
            "type": "object"
          }
        },
        "type": "object",
        "required": [
          "id",
          "title",
          "description",
          "source_provider",
          "destination_provider",
          "search_words",
          "event_types",
          "tags",
          "body"
        ]
      },
      "ErrorResponse_monitor_cap_reached": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorBody_monitor_cap_reached"
          }
        },
        "type": "object",
        "required": [
          "error"
        ]
      },
      "ErrorBody_monitor_cap_reached": {
        "properties": {
          "code": {
            "type": "string",
            "const": "monitor_cap_reached"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "type": "null"
          }
        },
        "type": "object",
        "required": [
          "code",
          "message",
          "details"
        ]
      },
      "ErrorResponse_recipe_not_found": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorBody_recipe_not_found"
          }
        },
        "type": "object",
        "required": [
          "error"
        ]
      },
      "ErrorBody_recipe_not_found": {
        "properties": {
          "code": {
            "type": "string",
            "const": "recipe_not_found"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "type": "null"
          }
        },
        "type": "object",
        "required": [
          "code",
          "message",
          "details"
        ]
      },
      "MonitorSaved": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "source_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SourceType"
              },
              {
                "type": "null"
              }
            ]
          },
          "grade": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Grade"
              },
              {
                "type": "null"
              }
            ]
          },
          "state": {
            "$ref": "#/components/schemas/MonitorState"
          },
          "alerts_enabled": {
            "type": "boolean"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "definition": {
            "additionalProperties": true,
            "type": "object"
          },
          "connection_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "unpublished_changes": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "first_admitted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SourceRead"
              },
              {
                "type": "null"
              }
            ]
          },
          "source_prefill": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SourcePrefill"
              },
              {
                "type": "null"
              }
            ]
          },
          "warnings": {
            "items": {
              "$ref": "#/components/schemas/RequestError"
            },
            "type": "array"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "source_type",
          "grade",
          "state",
          "alerts_enabled",
          "created_at",
          "definition",
          "connection_id",
          "unpublished_changes",
          "first_admitted_at",
          "source",
          "source_prefill",
          "warnings"
        ]
      },
      "SourcePrefill": {
        "properties": {
          "type": {
            "$ref": "#/components/schemas/SourceType"
          },
          "hmac": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HmacSettingsRead"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "type",
          "hmac"
        ]
      },
      "MonitorState": {
        "type": "string",
        "enum": [
          "draft",
          "active",
          "paused",
          "inactive"
        ]
      },
      "Grade": {
        "type": "string",
        "enum": [
          "provider_webhook",
          "custom"
        ]
      },
      "RecipeRead": {
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 64
          },
          "title": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1
          },
          "description": {
            "type": "string",
            "maxLength": 500,
            "minLength": 1
          },
          "source_provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "destination_provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "search_words": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "event_types": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "source_type": {
            "$ref": "#/components/schemas/SourceType"
          },
          "file": {
            "additionalProperties": true,
            "type": "object"
          }
        },
        "type": "object",
        "required": [
          "id",
          "title",
          "description",
          "source_provider",
          "destination_provider",
          "search_words",
          "event_types",
          "tags",
          "source_type",
          "file"
        ]
      },
      "RecipeList": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/Recipe"
            },
            "type": "array"
          }
        },
        "type": "object",
        "required": [
          "items"
        ]
      },
      "Recipe": {
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 64
          },
          "title": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1
          },
          "description": {
            "type": "string",
            "maxLength": 500,
            "minLength": 1
          },
          "source_provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "destination_provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "search_words": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "event_types": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "source_type": {
            "$ref": "#/components/schemas/SourceType"
          }
        },
        "type": "object",
        "required": [
          "id",
          "title",
          "description",
          "source_provider",
          "destination_provider",
          "search_words",
          "event_types",
          "tags",
          "source_type"
        ]
      },
      "ErrorResponse_source_cap_reached": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorBody_source_cap_reached"
          }
        },
        "type": "object",
        "required": [
          "error"
        ]
      },
      "ErrorBody_source_cap_reached": {
        "properties": {
          "code": {
            "type": "string",
            "const": "source_cap_reached"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "type": "null"
          }
        },
        "type": "object",
        "required": [
          "code",
          "message",
          "details"
        ]
      },
      "ErrorResponse_draft_changed": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorBody_draft_changed"
          }
        },
        "type": "object",
        "required": [
          "error"
        ]
      },
      "ErrorBody_draft_changed": {
        "properties": {
          "code": {
            "type": "string",
            "const": "draft_changed"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "type": "null"
          }
        },
        "type": "object",
        "required": [
          "code",
          "message",
          "details"
        ]
      },
      "ErrorResponse_invalid_state": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorBody_invalid_state"
          }
        },
        "type": "object",
        "required": [
          "error"
        ]
      },
      "ErrorBody_invalid_state": {
        "properties": {
          "code": {
            "type": "string",
            "const": "invalid_state"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "$ref": "#/components/schemas/InvalidStateDetails"
          }
        },
        "type": "object",
        "required": [
          "code",
          "message",
          "details"
        ]
      },
      "InvalidStateDetails": {
        "properties": {
          "state": {
            "$ref": "#/components/schemas/MonitorState"
          }
        },
        "type": "object",
        "required": [
          "state"
        ]
      },
      "ErrorResponse_source_missing": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorBody_source_missing"
          }
        },
        "type": "object",
        "required": [
          "error"
        ]
      },
      "ErrorBody_source_missing": {
        "properties": {
          "code": {
            "type": "string",
            "const": "source_missing"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "type": "null"
          }
        },
        "type": "object",
        "required": [
          "code",
          "message",
          "details"
        ]
      },
      "MonitorRead": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "source_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SourceType"
              },
              {
                "type": "null"
              }
            ]
          },
          "grade": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Grade"
              },
              {
                "type": "null"
              }
            ]
          },
          "state": {
            "$ref": "#/components/schemas/MonitorState"
          },
          "alerts_enabled": {
            "type": "boolean"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "definition": {
            "additionalProperties": true,
            "type": "object"
          },
          "connection_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "unpublished_changes": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "first_admitted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SourceRead"
              },
              {
                "type": "null"
              }
            ]
          },
          "source_prefill": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SourcePrefill"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "source_type",
          "grade",
          "state",
          "alerts_enabled",
          "created_at",
          "definition",
          "connection_id",
          "unpublished_changes",
          "first_admitted_at",
          "source",
          "source_prefill"
        ]
      },
      "ErrorResponse_service_unavailable__rate_limiter_unavailable": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorBody_service_unavailable__rate_limiter_unavailable"
          }
        },
        "type": "object",
        "required": [
          "error"
        ]
      },
      "ErrorBody_service_unavailable__rate_limiter_unavailable": {
        "properties": {
          "code": {
            "type": "string",
            "enum": [
              "service_unavailable",
              "rate_limiter_unavailable"
            ]
          },
          "message": {
            "type": "string"
          },
          "details": {
            "type": "null"
          }
        },
        "type": "object",
        "required": [
          "code",
          "message",
          "details"
        ]
      },
      "ErrorResponse_activation_failed": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorBody_activation_failed"
          }
        },
        "type": "object",
        "required": [
          "error"
        ]
      },
      "ErrorBody_activation_failed": {
        "properties": {
          "code": {
            "type": "string",
            "const": "activation_failed"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "$ref": "#/components/schemas/ActivationFailedDetails"
          }
        },
        "type": "object",
        "required": [
          "code",
          "message",
          "details"
        ]
      },
      "ActivationFailedDetails": {
        "properties": {
          "checks": {
            "items": {
              "$ref": "#/components/schemas/FailedCheck"
            },
            "type": "array"
          }
        },
        "type": "object",
        "required": [
          "checks"
        ]
      },
      "FailedCheck": {
        "properties": {
          "check": {
            "$ref": "#/components/schemas/ActivationCheck"
          },
          "errors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/RequestError"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "check",
          "errors"
        ]
      },
      "ActivationCheck": {
        "type": "string",
        "enum": [
          "definition_invalid",
          "connection_unverified",
          "active_monitor_limit",
          "source_unconfigured"
        ]
      },
      "MonitorUpdate": {
        "properties": {
          "name": {
            "type": "string"
          },
          "alerts_enabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "type": "object"
      },
      "MonitorCreate": {
        "properties": {
          "name": {
            "type": "string"
          },
          "source_type": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SourceType"
              },
              {
                "type": "null"
              }
            ]
          },
          "source_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name"
        ]
      },
      "MonitorList": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/MonitorRead"
            },
            "type": "array"
          },
          "monitor_limit": {
            "type": "integer"
          }
        },
        "type": "object",
        "required": [
          "items",
          "monitor_limit"
        ]
      },
      "ApprovedHostList": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ApprovedHostRead"
            },
            "type": "array"
          }
        },
        "type": "object",
        "required": [
          "items"
        ]
      },
      "ApprovedHostRead": {
        "properties": {
          "host": {
            "type": "string"
          },
          "auth_scheme": {
            "$ref": "#/components/schemas/AuthScheme"
          },
          "auth_header": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "credential_label": {
            "type": "string"
          },
          "provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "host",
          "auth_scheme",
          "auth_header",
          "credential_label",
          "provider"
        ]
      },
      "AuthScheme": {
        "type": "string",
        "enum": [
          "bearer",
          "header"
        ]
      },
      "ErrorResponse_connection_proof_not_applicable": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorBody_connection_proof_not_applicable"
          }
        },
        "type": "object",
        "required": [
          "error"
        ]
      },
      "ErrorBody_connection_proof_not_applicable": {
        "properties": {
          "code": {
            "type": "string",
            "const": "connection_proof_not_applicable"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "type": "null"
          }
        },
        "type": "object",
        "required": [
          "code",
          "message",
          "details"
        ]
      },
      "ErrorResponse_connection_not_found": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorBody_connection_not_found"
          }
        },
        "type": "object",
        "required": [
          "error"
        ]
      },
      "ErrorBody_connection_not_found": {
        "properties": {
          "code": {
            "type": "string",
            "const": "connection_not_found"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "type": "null"
          }
        },
        "type": "object",
        "required": [
          "code",
          "message",
          "details"
        ]
      },
      "ProofResult": {
        "properties": {
          "result": {
            "$ref": "#/components/schemas/ProofOutcome"
          },
          "reason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProofReason"
              },
              {
                "type": "string",
                "enum": [
                  "dns_error",
                  "address_refused",
                  "connect_error",
                  "tls_error",
                  "timeout",
                  "invalid_response"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "http_status": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "result",
          "reason",
          "http_status"
        ]
      },
      "ProofReason": {
        "type": "string",
        "enum": [
          "token_not_found",
          "status"
        ]
      },
      "ProofOutcome": {
        "type": "string",
        "enum": [
          "passed",
          "failed"
        ]
      },
      "ProofRequest": {
        "properties": {
          "method": {
            "$ref": "#/components/schemas/ProofMethod"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "method"
        ]
      },
      "ProofMethod": {
        "type": "string",
        "enum": [
          "file",
          "dns"
        ]
      },
      "ConnectionRead": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "const": "generic"
          },
          "host": {
            "type": "string"
          },
          "auth_scheme": {
            "$ref": "#/components/schemas/AuthScheme"
          },
          "auth_header": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "verification": {
            "type": "string",
            "enum": [
              "verified",
              "unverified"
            ]
          },
          "credential_set": {
            "type": "boolean"
          },
          "credential_set_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "proof": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ConnectionProofRead"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "kind",
          "host",
          "auth_scheme",
          "auth_header",
          "verification",
          "credential_set",
          "credential_set_at",
          "created_at",
          "proof"
        ]
      },
      "ConnectionProofRead": {
        "properties": {
          "token": {
            "type": "string"
          },
          "file_url": {
            "type": "string"
          },
          "txt_name": {
            "type": "string"
          }
        },
        "type": "object",
        "required": [
          "token",
          "file_url",
          "txt_name"
        ]
      },
      "CredentialReplace": {
        "properties": {
          "credential": {
            "type": "string",
            "format": "password",
            "writeOnly": true
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "credential"
        ]
      },
      "ConnectionRename": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name"
        ]
      },
      "ErrorResponse_connection_over_limit": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorBody_connection_over_limit"
          }
        },
        "type": "object",
        "required": [
          "error"
        ]
      },
      "ErrorBody_connection_over_limit": {
        "properties": {
          "code": {
            "type": "string",
            "const": "connection_over_limit"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "type": "null"
          }
        },
        "type": "object",
        "required": [
          "code",
          "message",
          "details"
        ]
      },
      "ConnectionCreate": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1
          },
          "host": {
            "type": "string"
          },
          "auth_scheme": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuthScheme"
              },
              {
                "type": "null"
              }
            ]
          },
          "auth_header": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "credential": {
            "anyOf": [
              {
                "type": "string",
                "format": "password",
                "writeOnly": true
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name",
          "host"
        ]
      },
      "ConnectionList": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/ConnectionRead"
            },
            "type": "array"
          }
        },
        "type": "object",
        "required": [
          "items"
        ]
      },
      "AccountTierResponse": {
        "properties": {
          "tier": {
            "$ref": "#/components/schemas/QuotaTier"
          },
          "source": {
            "$ref": "#/components/schemas/TierSource"
          },
          "grant_expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "tier",
          "source",
          "grant_expires_at"
        ]
      },
      "TierSource": {
        "type": "string",
        "enum": [
          "billing",
          "grant",
          "default"
        ]
      },
      "QuotaTier": {
        "type": "string",
        "enum": [
          "free",
          "core",
          "pro",
          "team"
        ]
      }
    },
    "securitySchemes": {
      "HTTPBearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  }
}
