{
  "openapi": "3.1.0",
  "info": {
    "title": "shipdrama business feed",
    "description": "Maritime incidents as the shipdrama pipeline extracts them, before and after an editor posts them.\n\n**Verification.** An incident no editor has approved carries `\"verification\": \"unverified, machine-extracted\"`: it was read out of\npublished reports by a language model and nobody has checked it. Every incident carries its source links. Check them before you act.\n\n**Confidence** is a rule of thumb from the sources (how trusted, how many, whether a ship was matched to AIS), not a probability.\n\n**Push.** Add a channel and a watchlist; only incidents that match a watchlist are pushed. A webhook delivery is signed\n(`X-Shipdrama-Signature`) and carries a delivery id (`X-Shipdrama-Delivery`) that is the same on every retry.\n\n**Position data** comes from third-party AIS networks, with no guarantee of accuracy or availability. A track names the\nsource of every point and carries the credit for those sources. Vessel positions: aisstream.io; Source: Fintraffic / digitraffic.fi, license CC 4.0 BY; Contains data under the Norwegian licence for Open Government data (NLOD) distributed by Kystverket. Positions from Fintraffic\n(https://creativecommons.org/licenses/by/4.0/) and Kystverket (https://data.norge.no/nlod/en/2.0) stay under those licences.\n\nNo warranty. Not for navigation. No resale or redistribution. Terms: https://shipdrama.com/feed/terms/",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://shipdrama.com"
    }
  ],
  "paths": {
    "/api/v1/changes": {
      "get": {
        "tags": [
          "feed"
        ],
        "summary": "Changes since a cursor",
        "description": "Every revision of every incident after `cursor`, oldest first. Start with cursor 0 to\nread the whole history, then pass `next_cursor` back. An incident that changed three\ntimes appears three times; `incident.revision` counts them.",
        "operationId": "changes_api_v1_changes_get",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 0,
              "title": "Cursor"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 100,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/incidents": {
      "get": {
        "tags": [
          "feed"
        ],
        "summary": "Incidents as they stand, filtered",
        "description": "One record per incident, as it stands now, oldest in the feed first. `since` and `until`\nbound the first report (a date or a time, UTC). `type` takes one or more incident types,\ncomma-separated. `region` is one of the named regions, or give `bbox` as west,south,east,north;\neither leaves out incidents without a position. `min_score` is the least `score` (0 to 100).\nPass `next_after` back as `after` while `more` is true.",
        "operationId": "incident_list_api_v1_incidents_get",
        "parameters": [
          {
            "name": "since",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Since"
            }
          },
          {
            "name": "until",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Until"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Type"
            }
          },
          {
            "name": "region",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Region"
            }
          },
          {
            "name": "bbox",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Bbox"
            }
          },
          {
            "name": "min_score",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Min Score"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 0,
              "title": "After"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 100,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/incidents/{slug}": {
      "get": {
        "tags": [
          "feed"
        ],
        "summary": "One incident, as it stands",
        "operationId": "incident_api_v1_incidents__slug__get",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Slug"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/incidents/{slug}/revisions": {
      "get": {
        "tags": [
          "feed"
        ],
        "summary": "The revision history of one incident",
        "description": "Every state the incident has been in, newest first, each a full document.",
        "operationId": "revisions_api_v1_incidents__slug__revisions_get",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Slug"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/incidents/{slug}/track": {
      "get": {
        "tags": [
          "feed"
        ],
        "summary": "AIS positions around one incident, as GeoJSON",
        "description": "One LineString per vessel linked to the incident, from three days before its first\nreport to three days after its last; `times` gives the time of each point and `sources`\nthe AIS source it came from. `attribution` is the credit those sources ask for. Position\ndata comes from third-party AIS networks, with no guarantee of accuracy or availability.",
        "operationId": "track_api_v1_incidents__slug__track_get",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Slug"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/export.ndjson": {
      "get": {
        "tags": [
          "feed"
        ],
        "summary": "The whole archive, one incident a line",
        "description": "Every incident in the feed as it stands now, as newline-delimited JSON. For every\npast state as well, read `/changes` from cursor 0.",
        "operationId": "export_api_v1_export_ndjson_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/watchlists": {
      "get": {
        "tags": [
          "feed"
        ],
        "summary": "Your watchlists",
        "operationId": "watchlists_api_v1_watchlists_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "feed"
        ],
        "summary": "Make a watchlist",
        "description": "A watchlist matches an incident when, for every kind of rule it has, at least one\nrule of that kind matches. Only matches are pushed to your channels.",
        "operationId": "create_watchlist_api_v1_watchlists_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$defs": {
                  "Rule": {
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "imo",
                          "mmsi",
                          "port",
                          "region",
                          "corridor",
                          "type"
                        ],
                        "title": "Kind"
                      },
                      "value": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 120
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "title": "Value"
                      },
                      "radius_km": {
                        "anyOf": [
                          {
                            "type": "number",
                            "maximum": 2000.0,
                            "exclusiveMinimum": 0.0
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "title": "Radius Km"
                      },
                      "width_km": {
                        "anyOf": [
                          {
                            "type": "number",
                            "maximum": 2000.0,
                            "exclusiveMinimum": 0.0
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "title": "Width Km"
                      },
                      "bbox": {
                        "anyOf": [
                          {
                            "items": {
                              "type": "number"
                            },
                            "type": "array",
                            "maxItems": 4,
                            "minItems": 4
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "title": "Bbox"
                      },
                      "polygon": {
                        "anyOf": [
                          {
                            "items": {
                              "prefixItems": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                }
                              ],
                              "type": "array",
                              "maxItems": 2,
                              "minItems": 2
                            },
                            "type": "array",
                            "maxItems": 200,
                            "minItems": 3
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "title": "Polygon"
                      },
                      "points": {
                        "anyOf": [
                          {
                            "items": {
                              "prefixItems": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                }
                              ],
                              "type": "array",
                              "maxItems": 2,
                              "minItems": 2
                            },
                            "type": "array",
                            "maxItems": 200,
                            "minItems": 2
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "title": "Points"
                      }
                    },
                    "additionalProperties": false,
                    "type": "object",
                    "required": [
                      "kind"
                    ],
                    "title": "Rule",
                    "description": "One rule of a watchlist. `imo`, `mmsi` and `type` need `value`. `port` needs `value`, a\nname from the gazetteer, and may give `radius_km` (default 25). `region` needs `bbox`\n[min_lon, min_lat, max_lon, max_lat] or `polygon`. `corridor` needs `points`, the route as\n[lon, lat] waypoints, and may give `width_km`, the distance either side that counts (default 50)."
                  }
                },
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 80,
                    "minLength": 1,
                    "title": "Name"
                  },
                  "rules": {
                    "items": {
                      "$ref": "#/components/schemas/Rule"
                    },
                    "type": "array",
                    "maxItems": 5000,
                    "title": "Rules"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "name"
                ],
                "title": "WatchlistIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/watchlists/{watchlist}": {
      "put": {
        "tags": [
          "feed"
        ],
        "summary": "Replace a watchlist's name and rules",
        "operationId": "replace_watchlist_api_v1_watchlists__watchlist__put",
        "parameters": [
          {
            "name": "watchlist",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Watchlist"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$defs": {
                  "Rule": {
                    "additionalProperties": false,
                    "description": "One rule of a watchlist. `imo`, `mmsi` and `type` need `value`. `port` needs `value`, a\nname from the gazetteer, and may give `radius_km` (default 25). `region` needs `bbox`\n[min_lon, min_lat, max_lon, max_lat] or `polygon`. `corridor` needs `points`, the route as\n[lon, lat] waypoints, and may give `width_km`, the distance either side that counts (default 50).",
                    "properties": {
                      "kind": {
                        "enum": [
                          "imo",
                          "mmsi",
                          "port",
                          "region",
                          "corridor",
                          "type"
                        ],
                        "title": "Kind",
                        "type": "string"
                      },
                      "value": {
                        "anyOf": [
                          {
                            "maxLength": 120,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "title": "Value"
                      },
                      "radius_km": {
                        "anyOf": [
                          {
                            "exclusiveMinimum": 0,
                            "maximum": 2000,
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "title": "Radius Km"
                      },
                      "width_km": {
                        "anyOf": [
                          {
                            "exclusiveMinimum": 0,
                            "maximum": 2000,
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "title": "Width Km"
                      },
                      "bbox": {
                        "anyOf": [
                          {
                            "items": {
                              "type": "number"
                            },
                            "maxItems": 4,
                            "minItems": 4,
                            "type": "array"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "title": "Bbox"
                      },
                      "polygon": {
                        "anyOf": [
                          {
                            "items": {
                              "maxItems": 2,
                              "minItems": 2,
                              "prefixItems": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                }
                              ],
                              "type": "array"
                            },
                            "maxItems": 200,
                            "minItems": 3,
                            "type": "array"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "title": "Polygon"
                      },
                      "points": {
                        "anyOf": [
                          {
                            "items": {
                              "maxItems": 2,
                              "minItems": 2,
                              "prefixItems": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                }
                              ],
                              "type": "array"
                            },
                            "maxItems": 200,
                            "minItems": 2,
                            "type": "array"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "title": "Points"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "title": "Rule",
                    "type": "object"
                  }
                },
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "maxLength": 80,
                    "minLength": 1,
                    "title": "Name",
                    "type": "string"
                  },
                  "rules": {
                    "items": {
                      "$ref": "#/components/schemas/Rule"
                    },
                    "maxItems": 5000,
                    "title": "Rules",
                    "type": "array"
                  }
                },
                "required": [
                  "name"
                ],
                "title": "WatchlistIn",
                "type": "object"
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "tags": [
          "feed"
        ],
        "summary": "Delete a watchlist",
        "operationId": "delete_watchlist_api_v1_watchlists__watchlist__delete",
        "parameters": [
          {
            "name": "watchlist",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Watchlist"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/watchlists/{watchlist}/vessels": {
      "post": {
        "tags": [
          "feed"
        ],
        "summary": "Add a fleet list to a watchlist",
        "description": "Send the fleet list as text or CSV in any layout. Every seven-digit number with a\nright IMO check digit becomes an `imo` rule and every nine-digit number an `mmsi` rule.",
        "operationId": "add_fleet_api_v1_watchlists__watchlist__vessels_post",
        "parameters": [
          {
            "name": "watchlist",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Watchlist"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "text/plain": {
              "schema": {
                "type": "string"
              }
            },
            "text/csv": {
              "schema": {
                "type": "string"
              }
            }
          },
          "required": true
        }
      }
    },
    "/api/v1/channels": {
      "get": {
        "tags": [
          "feed"
        ],
        "summary": "Where your alerts go",
        "operationId": "channels_api_v1_channels_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "feed"
        ],
        "summary": "Add a webhook, a Slack channel or a mail address",
        "description": "A webhook's signing secret is in the answer and is shown this once. Each delivery\ncarries `X-Shipdrama-Delivery` (the same id on every retry: drop one you have seen) and\n`X-Shipdrama-Signature: t=<unix time>,v1=<HMAC-SHA256 of \"<t>.<raw body>\" under the secret>`.\nAnswer 2xx within 10 seconds. Anything else is retried after 1, 5 and 30 minutes, 2 and 6 hours.",
        "operationId": "add_channel_api_v1_channels_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "webhook",
                      "slack",
                      "email"
                    ],
                    "title": "Kind"
                  },
                  "target": {
                    "type": "string",
                    "maxLength": 500,
                    "minLength": 3,
                    "title": "Target"
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "kind",
                  "target"
                ],
                "title": "ChannelIn",
                "description": "`webhook`: an https URL (API plan). `slack`: a Slack incoming-webhook URL. `email`: an address."
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/channels/{channel}": {
      "delete": {
        "tags": [
          "feed"
        ],
        "summary": "Remove a channel",
        "operationId": "delete_channel_api_v1_channels__channel__delete",
        "parameters": [
          {
            "name": "channel",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Channel"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/deliveries": {
      "get": {
        "tags": [
          "feed"
        ],
        "summary": "The last 100 alerts sent or owed to your channels",
        "operationId": "deliveries_api_v1_deliveries_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/account": {
      "get": {
        "tags": [
          "feed"
        ],
        "summary": "Your plan, seats and API keys",
        "operationId": "account_api_v1_account_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/keys": {
      "post": {
        "tags": [
          "feed"
        ],
        "summary": "Make an API key",
        "description": "The key is in the answer and is shown this once; only its hash is kept.",
        "operationId": "make_key_api_v1_keys_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "label": {
                    "type": "string",
                    "maxLength": 80,
                    "title": "Label",
                    "default": ""
                  }
                },
                "additionalProperties": false,
                "type": "object",
                "title": "KeyIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/keys/{key}": {
      "delete": {
        "tags": [
          "feed"
        ],
        "summary": "Revoke an API key",
        "operationId": "revoke_key_api_v1_keys__key__delete",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Key"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          },
          "input": {
            "title": "Input"
          },
          "ctx": {
            "type": "object",
            "title": "Context"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "Rule": {
        "additionalProperties": false,
        "description": "One rule of a watchlist. `imo`, `mmsi` and `type` need `value`. `port` needs `value`, a\nname from the gazetteer, and may give `radius_km` (default 25). `region` needs `bbox`\n[min_lon, min_lat, max_lon, max_lat] or `polygon`. `corridor` needs `points`, the route as\n[lon, lat] waypoints, and may give `width_km`, the distance either side that counts (default 50).",
        "properties": {
          "kind": {
            "enum": [
              "imo",
              "mmsi",
              "port",
              "region",
              "corridor",
              "type"
            ],
            "title": "Kind",
            "type": "string"
          },
          "value": {
            "anyOf": [
              {
                "maxLength": 120,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Value"
          },
          "radius_km": {
            "anyOf": [
              {
                "exclusiveMinimum": 0,
                "maximum": 2000,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Radius Km"
          },
          "width_km": {
            "anyOf": [
              {
                "exclusiveMinimum": 0,
                "maximum": 2000,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Width Km"
          },
          "bbox": {
            "anyOf": [
              {
                "items": {
                  "type": "number"
                },
                "maxItems": 4,
                "minItems": 4,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Bbox"
          },
          "polygon": {
            "anyOf": [
              {
                "items": {
                  "maxItems": 2,
                  "minItems": 2,
                  "prefixItems": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "number"
                    }
                  ],
                  "type": "array"
                },
                "maxItems": 200,
                "minItems": 3,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Polygon"
          },
          "points": {
            "anyOf": [
              {
                "items": {
                  "maxItems": 2,
                  "minItems": 2,
                  "prefixItems": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "number"
                    }
                  ],
                  "type": "array"
                },
                "maxItems": 200,
                "minItems": 2,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Points"
          }
        },
        "required": [
          "kind"
        ],
        "title": "Rule",
        "type": "object"
      }
    },
    "securitySchemes": {
      "key": {
        "type": "http",
        "scheme": "bearer",
        "description": "An API key (`sd_...`), or the token of a mailed account link."
      }
    }
  },
  "security": [
    {
      "key": []
    }
  ]
}
