{
  "components": {
    "responses": {
      "BadRequestResponse": {
        "content": {
          "application/json": {
            "example": {
              "error": {
                "code": "bad-request",
                "message": "Bad request.",
                "status": 400
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            }
          }
        },
        "description": "Bad request."
      },
      "ForbiddenResponse": {
        "content": {
          "application/json": {
            "example": {
              "error": {
                "code": "forbidden",
                "message": "Forbidden.",
                "status": 403
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            }
          }
        },
        "description": "Forbidden."
      },
      "NotFoundResponse": {
        "content": {
          "application/json": {
            "example": {
              "error": {
                "code": "not-found",
                "message": "Not found.",
                "status": 404
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            }
          }
        },
        "description": "Not found."
      },
      "PayloadTooLargeResponse": {
        "content": {
          "application/json": {
            "example": {
              "error": {
                "code": "payload-too-large",
                "message": "Payload too large.",
                "status": 413
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            }
          }
        },
        "description": "Payload too large."
      },
      "ServerErrorResponse": {
        "content": {
          "application/json": {
            "example": {
              "error": {
                "code": "server-error",
                "message": "Server error.",
                "status": 500
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            }
          }
        },
        "description": "Server error."
      },
      "ServiceUnavailableResponse": {
        "content": {
          "application/json": {
            "example": {
              "error": {
                "code": "service-unavailable",
                "message": "Service unavailable.",
                "status": 503
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            }
          }
        },
        "description": "Service unavailable."
      },
      "UnauthorizedResponse": {
        "content": {
          "application/json": {
            "example": {
              "error": {
                "code": "unauthorized",
                "message": "Unauthorized.",
                "status": 401
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            }
          }
        },
        "description": "Unauthorized."
      }
    },
    "schemas": {
      "ActiveVisitors": {
        "additionalProperties": false,
        "properties": {
          "visitors": {
            "description": "Unique visitor counts for the selected period.",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "visitors"
        ],
        "type": "object"
      },
      "ApiError": {
        "additionalProperties": false,
        "description": "Standard Umami API error response.",
        "properties": {
          "error": {
            "additionalProperties": {},
            "description": "Error details returned when the operation fails.",
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "description": "Human-readable explanation of the result.",
                "type": "string"
              },
              "status": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              }
            },
            "required": [
              "message",
              "code",
              "status"
            ],
            "type": "object"
          }
        },
        "required": [
          "error"
        ],
        "type": "object"
      },
      "CreateWebsiteRequest": {
        "properties": {
          "domain": {
            "description": "Domain name associated with the resource.",
            "maxLength": 500,
            "pattern": "^(localhost(:[1-9]\\d{0,4})?|((?=[a-z0-9-_]{1,63}\\.)(xn--)?[a-z0-9-_]+(-[a-z0-9-_]+)*\\.)+(xn--)?[a-z0-9-_]{2,63})$",
            "type": "string"
          },
          "id": {
            "anyOf": [
              {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Unique identifier of the resource."
          },
          "name": {
            "description": "Display name of the resource.",
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "shareId": {
            "anyOf": [
              {
                "maxLength": 50,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Identifier used to access a shared resource."
          },
          "teamId": {
            "anyOf": [
              {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "ID of the associated team."
          }
        },
        "required": [
          "name",
          "domain"
        ],
        "type": "object"
      },
      "LoginRequest": {
        "properties": {
          "password": {
            "description": "Umami password.",
            "type": "string"
          },
          "username": {
            "description": "Umami username.",
            "type": "string"
          }
        },
        "required": [
          "username",
          "password"
        ],
        "type": "object"
      },
      "LoginResponse": {
        "anyOf": [
          {
            "additionalProperties": false,
            "properties": {
              "partialToken": {
                "description": "Temporary login token used to complete two-factor authentication.",
                "type": "string"
              },
              "requiresTwoFactor": {
                "const": true,
                "description": "Whether login requires a second authentication factor.",
                "type": "boolean"
              }
            },
            "required": [
              "requiresTwoFactor",
              "partialToken"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "token": {
                "type": "string"
              },
              "user": {
                "$ref": "#/components/schemas/LoginUser",
                "description": "User associated with the resource."
              }
            },
            "required": [
              "token",
              "user"
            ],
            "type": "object"
          }
        ]
      },
      "LoginTeam": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "Unique identifier of the resource.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "logoUrl": {
            "description": "URL of the logo image.",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "description": "Display name of the resource.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "logoUrl"
        ],
        "type": "object"
      },
      "LoginUser": {
        "additionalProperties": false,
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Date and time the record was created."
          },
          "id": {
            "description": "Unique identifier of the resource.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "isAdmin": {
            "description": "Whether the user has administrator privileges.",
            "type": "boolean"
          },
          "role": {
            "description": "Permission role assigned to the user.",
            "type": "string"
          },
          "teams": {
            "description": "Teams associated with the user.",
            "items": {
              "$ref": "#/components/schemas/LoginTeam"
            },
            "type": "array"
          },
          "username": {
            "description": "Username of the account.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "username",
          "role",
          "createdAt",
          "isAdmin",
          "teams"
        ],
        "type": "object"
      },
      "MetricRow": {
        "additionalProperties": false,
        "properties": {
          "t": {
            "type": "string"
          },
          "x": {
            "description": "Dimension value (e.g. a path or country).",
            "type": [
              "string",
              "null"
            ]
          },
          "y": {
            "description": "Count of views/events or unique visitors.",
            "type": "number"
          }
        },
        "required": [
          "x",
          "y"
        ],
        "type": "object"
      },
      "MetricRows": {
        "items": {
          "$ref": "#/components/schemas/MetricRow"
        },
        "type": "array"
      },
      "Ok": {
        "additionalProperties": false,
        "description": "Successful operation response.",
        "properties": {
          "ok": {
            "const": true,
            "description": "Whether the operation succeeded.",
            "type": "boolean"
          }
        },
        "required": [
          "ok"
        ],
        "type": "object"
      },
      "ReplayConfig": {
        "additionalProperties": {},
        "properties": {
          "blockSelector": {
            "description": "CSS selector for elements excluded from recordings.",
            "type": "string"
          },
          "heatmapEnabled": {
            "description": "Whether heatmap recording is enabled.",
            "type": "boolean"
          },
          "heatmapSampleRate": {
            "description": "Fraction of sessions to record for heatmaps, from 0 to 1.",
            "maximum": 1,
            "minimum": 0,
            "type": "number"
          },
          "maskLevel": {
            "description": "Privacy masking level used by the recorder: strict or moderate.",
            "enum": [
              "strict",
              "moderate"
            ],
            "type": "string"
          },
          "maxDuration": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "replayEnabled": {
            "description": "Whether session replay recording is enabled.",
            "type": "boolean"
          },
          "sampleRate": {
            "description": "Fraction of sessions to record for replay, from 0 to 1.",
            "maximum": 1,
            "minimum": 0,
            "type": "number"
          }
        },
        "type": "object"
      },
      "ReplayConfigInput": {
        "properties": {
          "blockSelector": {
            "description": "CSS selector for elements excluded from recordings.",
            "type": "string"
          },
          "heatmapEnabled": {
            "description": "Whether heatmap recording is enabled.",
            "type": "boolean"
          },
          "heatmapSampleRate": {
            "description": "Fraction of sessions to record for heatmaps, from 0 to 1.",
            "maximum": 1,
            "minimum": 0,
            "type": "number"
          },
          "maskLevel": {
            "description": "Privacy masking level used by the recorder: strict or moderate.",
            "enum": [
              "strict",
              "moderate"
            ],
            "type": "string"
          },
          "maxDuration": {
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "replayEnabled": {
            "description": "Whether session replay recording is enabled.",
            "type": "boolean"
          },
          "sampleRate": {
            "description": "Fraction of sessions to record for replay, from 0 to 1.",
            "maximum": 1,
            "minimum": 0,
            "type": "number"
          }
        },
        "type": "object"
      },
      "TimeSeriesPoint": {
        "additionalProperties": false,
        "properties": {
          "x": {
            "description": "Bucket start (ISO date/time).",
            "type": "string"
          },
          "y": {
            "description": "Value for the bucket.",
            "type": "number"
          }
        },
        "required": [
          "x",
          "y"
        ],
        "type": "object"
      },
      "UpdateWebsiteRequest": {
        "properties": {
          "domain": {
            "description": "Domain name associated with the resource.",
            "maxLength": 500,
            "pattern": "^(localhost(:[1-9]\\d{0,4})?|((?=[a-z0-9-_]{1,63}\\.)(xn--)?[a-z0-9-_]+(-[a-z0-9-_]+)*\\.)+(xn--)?[a-z0-9-_]{2,63})$",
            "type": "string"
          },
          "name": {
            "description": "Display name of the resource.",
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "replayConfig": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReplayConfigInput"
              },
              {
                "type": "null"
              }
            ],
            "description": "Session replay and heatmap recording configuration."
          },
          "shareId": {
            "anyOf": [
              {
                "maxLength": 50,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Identifier used to access a shared resource."
          }
        },
        "type": "object"
      },
      "Website": {
        "additionalProperties": false,
        "properties": {
          "createdAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Date and time the record was created."
          },
          "createdBy": {
            "anyOf": [
              {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "ID of the user who created the resource."
          },
          "deletedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Date and time the record was deleted, if applicable."
          },
          "domain": {
            "description": "Domain name associated with the resource.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "Unique identifier of the resource.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "name": {
            "description": "Display name of the resource.",
            "type": "string"
          },
          "recorderEnabled": {
            "description": "Whether recording is enabled for the website.",
            "type": "boolean"
          },
          "replayConfig": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReplayConfig"
              },
              {
                "type": "null"
              }
            ],
            "description": "Session replay and heatmap recording configuration."
          },
          "resetAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Date and time the website analytics were last reset."
          },
          "shareId": {
            "description": "Identifier used to access a shared resource.",
            "type": [
              "string",
              "null"
            ]
          },
          "teamId": {
            "anyOf": [
              {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "ID of the associated team."
          },
          "updatedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Date and time the record was last updated."
          },
          "user": {
            "$ref": "#/components/schemas/WebsiteUser",
            "description": "User associated with the resource."
          },
          "userId": {
            "anyOf": [
              {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "ID of the associated user."
          }
        },
        "required": [
          "id",
          "name",
          "domain",
          "resetAt",
          "userId",
          "teamId",
          "createdBy",
          "createdAt",
          "updatedAt",
          "deletedAt",
          "recorderEnabled",
          "replayConfig",
          "shareId"
        ],
        "type": "object"
      },
      "WebsiteEvent": {
        "additionalProperties": {},
        "properties": {
          "createdAt": {
            "description": "Date and time the record was created.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "distinctId": {
            "description": "Custom identifier assigned to the visitor.",
            "type": [
              "string",
              "null"
            ]
          },
          "eventName": {
            "description": "Name of the custom event.",
            "type": [
              "string",
              "null"
            ]
          },
          "eventType": {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "hostname": {
            "description": "Hostname on which the activity occurred.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "Unique identifier of the resource.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "pageTitle": {
            "description": "Title of the page.",
            "type": [
              "string",
              "null"
            ]
          },
          "referrerDomain": {
            "description": "Domain of the referring page.",
            "type": [
              "string",
              "null"
            ]
          },
          "sessionId": {
            "description": "ID of the visitor session.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "urlPath": {
            "description": "Path portion of the page URL.",
            "type": [
              "string",
              "null"
            ]
          },
          "urlQuery": {
            "description": "Query string portion of the page URL.",
            "type": [
              "string",
              "null"
            ]
          },
          "websiteId": {
            "description": "ID of the website.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "id",
          "websiteId",
          "sessionId",
          "createdAt",
          "eventType"
        ],
        "type": "object"
      },
      "WebsiteEventPage": {
        "additionalProperties": false,
        "properties": {
          "count": {
            "description": "Number of matching records.",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "data": {
            "description": "Data returned by the operation.",
            "items": {
              "$ref": "#/components/schemas/WebsiteEvent"
            },
            "type": "array"
          },
          "isCapped": {
            "description": "Whether the results were truncated by the maximum result limit.",
            "type": "boolean"
          },
          "page": {
            "description": "Page number, starting at 1.",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "pageSize": {
            "description": "Number of results per page.",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "data",
          "count",
          "page",
          "pageSize"
        ],
        "type": "object"
      },
      "WebsitePage": {
        "additionalProperties": false,
        "properties": {
          "count": {
            "description": "Number of matching records.",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "data": {
            "description": "Data returned by the operation.",
            "items": {
              "$ref": "#/components/schemas/Website"
            },
            "type": "array"
          },
          "orderBy": {
            "description": "Field to sort the results by.",
            "type": "string"
          },
          "page": {
            "description": "Page number, starting at 1.",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "pageSize": {
            "description": "Number of results per page.",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "search": {
            "description": "Search text used to filter results.",
            "type": "string"
          }
        },
        "required": [
          "data",
          "count",
          "page",
          "pageSize"
        ],
        "type": "object"
      },
      "WebsitePageviews": {
        "additionalProperties": false,
        "properties": {
          "compare": {
            "additionalProperties": false,
            "description": "Present when `compare` was requested.",
            "properties": {
              "endDate": {
                "description": "End of the date range as an ISO 8601 date or date-time.",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              "pageviews": {
                "description": "Pageview counts for the selected period.",
                "items": {
                  "$ref": "#/components/schemas/TimeSeriesPoint"
                },
                "type": "array"
              },
              "sessions": {
                "items": {
                  "$ref": "#/components/schemas/TimeSeriesPoint"
                },
                "type": "array"
              },
              "startDate": {
                "description": "Start of the date range as an ISO 8601 date or date-time.",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              }
            },
            "required": [
              "pageviews",
              "sessions",
              "startDate",
              "endDate"
            ],
            "type": "object"
          },
          "endDate": {
            "description": "End of the date range as an ISO 8601 date or date-time.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "pageviews": {
            "description": "Pageview counts for the selected period.",
            "items": {
              "$ref": "#/components/schemas/TimeSeriesPoint"
            },
            "type": "array"
          },
          "sessions": {
            "items": {
              "$ref": "#/components/schemas/TimeSeriesPoint"
            },
            "type": "array"
          },
          "startDate": {
            "description": "Start of the date range as an ISO 8601 date or date-time.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          }
        },
        "required": [
          "pageviews",
          "sessions"
        ],
        "type": "object"
      },
      "WebsiteSession": {
        "additionalProperties": {},
        "properties": {
          "browser": {
            "description": "Browser used by the visitor.",
            "type": [
              "string",
              "null"
            ]
          },
          "city": {
            "description": "City of the visitor.",
            "type": [
              "string",
              "null"
            ]
          },
          "country": {
            "description": "Country code of the visitor.",
            "type": [
              "string",
              "null"
            ]
          },
          "createdAt": {
            "description": "Date and time the record was created.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "device": {
            "description": "Device category used by the visitor.",
            "type": [
              "string",
              "null"
            ]
          },
          "distinctId": {
            "description": "Custom identifier assigned to the visitor.",
            "type": [
              "string",
              "null"
            ]
          },
          "events": {
            "type": "number"
          },
          "firstAt": {
            "description": "Date and time of the first recorded activity.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "hostname": {
            "description": "Hostname on which the activity occurred.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "Unique identifier of the resource.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "language": {
            "description": "Preferred language reported by the visitor browser.",
            "type": [
              "string",
              "null"
            ]
          },
          "lastAt": {
            "description": "Date and time of the most recent recorded activity.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "os": {
            "description": "Operating system used by the visitor.",
            "type": [
              "string",
              "null"
            ]
          },
          "region": {
            "description": "Region or subdivision of the visitor.",
            "type": [
              "string",
              "null"
            ]
          },
          "screen": {
            "description": "Screen resolution of the visitor device.",
            "type": [
              "string",
              "null"
            ]
          },
          "views": {
            "description": "Pageview counts for the selected period.",
            "type": "number"
          },
          "visits": {
            "description": "Visit counts for the selected period.",
            "type": "number"
          },
          "websiteId": {
            "description": "ID of the website.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "id",
          "websiteId",
          "hostname",
          "browser",
          "os",
          "device",
          "screen",
          "language",
          "country",
          "region",
          "city",
          "firstAt",
          "lastAt",
          "visits",
          "views",
          "createdAt"
        ],
        "type": "object"
      },
      "WebsiteSessionPage": {
        "additionalProperties": false,
        "properties": {
          "count": {
            "description": "Number of matching records.",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "data": {
            "description": "Data returned by the operation.",
            "items": {
              "$ref": "#/components/schemas/WebsiteSession"
            },
            "type": "array"
          },
          "isCapped": {
            "description": "Whether the results were truncated by the maximum result limit.",
            "type": "boolean"
          },
          "page": {
            "description": "Page number, starting at 1.",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "pageSize": {
            "description": "Number of results per page.",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "data",
          "count",
          "page",
          "pageSize"
        ],
        "type": "object"
      },
      "WebsiteStats": {
        "additionalProperties": false,
        "properties": {
          "bounces": {
            "description": "Number of visits with only one pageview.",
            "type": "number"
          },
          "comparison": {
            "$ref": "#/components/schemas/WebsiteStatsValues",
            "description": "The same totals for the comparison period (previous period by default)."
          },
          "pageviews": {
            "description": "Pageview counts for the selected period.",
            "type": "number"
          },
          "totaltime": {
            "description": "Total visit duration in seconds.",
            "type": "number"
          },
          "visitors": {
            "description": "Unique visitor counts for the selected period.",
            "type": "number"
          },
          "visits": {
            "description": "Visit counts for the selected period.",
            "type": "number"
          }
        },
        "required": [
          "pageviews",
          "visitors",
          "visits",
          "bounces",
          "totaltime",
          "comparison"
        ],
        "type": "object"
      },
      "WebsiteStatsValues": {
        "additionalProperties": false,
        "properties": {
          "bounces": {
            "description": "Number of visits with only one pageview.",
            "type": "number"
          },
          "pageviews": {
            "description": "Pageview counts for the selected period.",
            "type": "number"
          },
          "totaltime": {
            "description": "Total visit duration in seconds.",
            "type": "number"
          },
          "visitors": {
            "description": "Unique visitor counts for the selected period.",
            "type": "number"
          },
          "visits": {
            "description": "Visit counts for the selected period.",
            "type": "number"
          }
        },
        "required": [
          "pageviews",
          "visitors",
          "visits",
          "bounces",
          "totaltime"
        ],
        "type": "object"
      },
      "WebsiteUser": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "Unique identifier of the resource.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "username": {
            "description": "Username of the account.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "username"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "bearerFormat": "JWT",
        "description": "Token returned by POST /api/auth/login, or an API key (`umami_…`) created under Settings → API keys (self-hosted only).",
        "scheme": "bearer",
        "type": "http"
      },
      "shareContext": {
        "description": "Required context header when authenticating with a share token.",
        "in": "header",
        "name": "x-umami-share-context",
        "type": "apiKey"
      },
      "shareToken": {
        "description": "Signed token returned by a share endpoint.",
        "in": "header",
        "name": "x-umami-share-token",
        "type": "apiKey"
      }
    }
  },
  "externalDocs": {
    "description": "Umami API documentation",
    "url": "https://docs.umami.is/docs/api"
  },
  "info": {
    "description": "REST API for Umami analytics. Every App Router API operation is included. Operations marked with x-umami-contract: inferred are generated from handler source; colocated explicit contracts provide curated descriptions and exact response models. Self-hosted deployments serve these paths beneath their configured BASE_PATH.",
    "license": {
      "identifier": "MIT",
      "name": "MIT"
    },
    "title": "Umami API",
    "version": "3.5.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/api/2fa/disable": {
      "post": {
        "description": "Disables two-factor authentication for the current user after verifying their password and authenticator code. Rejected when an administrator or team requires it.",
        "operationId": "disableTwoFactor",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "password": {
                    "description": "Password used to authenticate the account.",
                    "type": "string"
                  },
                  "token": {
                    "maxLength": 6,
                    "minLength": 6,
                    "type": "string"
                  }
                },
                "required": [
                  "password",
                  "token"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "description": "Error details returned when the operation fails.",
                          "properties": {
                            "code": {
                              "type": "string"
                            },
                            "lockedUntil": {
                              "description": "Time until which further authentication attempts are blocked.",
                              "format": "date-time",
                              "type": "string"
                            },
                            "message": {
                              "description": "Human-readable explanation of the result.",
                              "type": "string"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "lockedUntil"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "ok": {
                          "description": "Whether the operation succeeded.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "forbidden",
                    "message": "Forbidden.",
                    "status": 403
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Forbidden."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error details returned when the operation fails.",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "lockedUntil": {
                          "description": "Time until which further authentication attempts are blocked.",
                          "format": "date-time",
                          "type": "string"
                        },
                        "message": {
                          "description": "Human-readable explanation of the result.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "lockedUntil"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "service-unavailable",
                    "message": "Service unavailable.",
                    "status": 503
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Service unavailable."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Disable two-factor authentication",
        "tags": [
          "Two-factor authentication"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/2fa/disable/contract.generated.ts"
      }
    },
    "/api/2fa/setup/cancel": {
      "post": {
        "description": "Deletes the current user's pending setup without changing an already enabled authenticator.",
        "operationId": "cancelTwoFactorSetup",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "description": "Whether the operation succeeded.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Cancel two-factor authentication setup",
        "tags": [
          "Two-factor authentication"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/2fa/setup/cancel/contract.generated.ts"
      }
    },
    "/api/2fa/setup/confirm": {
      "post": {
        "description": "Verifies an authenticator code, enables two-factor authentication, and returns a new set of backup codes.",
        "operationId": "confirmTwoFactorSetup",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "token": {
                    "maxLength": 6,
                    "minLength": 6,
                    "type": "string"
                  }
                },
                "required": [
                  "token"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "description": "Error details returned when the operation fails.",
                          "properties": {
                            "code": {
                              "type": "string"
                            },
                            "lockedUntil": {
                              "description": "Time until which further authentication attempts are blocked.",
                              "format": "date-time",
                              "type": "string"
                            },
                            "message": {
                              "description": "Human-readable explanation of the result.",
                              "type": "string"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "lockedUntil"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "backupCodes": {
                          "description": "Single-use backup codes for two-factor authentication.",
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "backupCodes"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error details returned when the operation fails.",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "lockedUntil": {
                          "description": "Time until which further authentication attempts are blocked.",
                          "format": "date-time",
                          "type": "string"
                        },
                        "message": {
                          "description": "Human-readable explanation of the result.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "lockedUntil"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "service-unavailable",
                    "message": "Service unavailable.",
                    "status": 503
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Service unavailable."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Confirm two-factor authentication setup",
        "tags": [
          "Two-factor authentication"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/2fa/setup/confirm/contract.generated.ts"
      }
    },
    "/api/2fa/setup/initiate": {
      "post": {
        "description": "Starts or replaces the current user's pending setup and returns a QR code and manual setup key for an authenticator app.",
        "operationId": "initiateTwoFactorSetup",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "manualKey": {
                      "description": "Secret key for manually configuring an authenticator app.",
                      "type": "string"
                    },
                    "qrCodeDataUrl": {
                      "description": "Data URL of the QR code for authenticator setup.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "qrCodeDataUrl",
                    "manualKey"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "service-unavailable",
                    "message": "Service unavailable.",
                    "status": 503
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Service unavailable."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Set up two-factor authentication",
        "tags": [
          "Two-factor authentication"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/2fa/setup/initiate/contract.generated.ts"
      }
    },
    "/api/2fa/status": {
      "get": {
        "description": "Returns whether two-factor authentication is enabled, configured, or required for the current user, including the reason it is required.",
        "operationId": "getTwoFactorStatus",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "globalRequired": {
                          "description": "Whether two-factor authentication is required for all users.",
                          "type": "boolean"
                        },
                        "isConfigured": {
                          "description": "Whether two-factor authentication has been configured.",
                          "type": "boolean"
                        },
                        "isEnabled": {
                          "description": "Whether two-factor authentication is enabled.",
                          "type": "boolean"
                        },
                        "isRequired": {
                          "description": "Whether two-factor authentication is required for this user.",
                          "type": "boolean"
                        },
                        "requiredReason": {
                          "description": "Reason two-factor authentication is required.",
                          "type": "null"
                        }
                      },
                      "required": [
                        "isEnabled",
                        "isRequired",
                        "requiredReason",
                        "isConfigured",
                        "globalRequired"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "globalRequired": {
                          "description": "Whether two-factor authentication is required for all users.",
                          "type": "boolean"
                        },
                        "isConfigured": {
                          "description": "Whether two-factor authentication has been configured.",
                          "type": "boolean"
                        },
                        "isEnabled": {
                          "description": "Whether two-factor authentication is enabled.",
                          "type": "boolean"
                        },
                        "isRequired": {
                          "description": "Whether two-factor authentication is required for this user.",
                          "type": "boolean"
                        },
                        "requiredReason": {
                          "anyOf": [
                            {
                              "const": "user"
                            },
                            {
                              "const": "team"
                            },
                            {
                              "const": "global"
                            }
                          ],
                          "description": "Reason two-factor authentication is required."
                        }
                      },
                      "required": [
                        "isEnabled",
                        "isRequired",
                        "requiredReason",
                        "isConfigured",
                        "globalRequired"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get two-factor authentication status",
        "tags": [
          "Two-factor authentication"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/2fa/status/contract.generated.ts"
      }
    },
    "/api/2fa/verify": {
      "post": {
        "description": "Exchanges a partial sign-in token and a valid authenticator or backup code for a full authentication token and user details.",
        "operationId": "verifyTwoFactor",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "properties": {
                      "token": {
                        "maxLength": 6,
                        "minLength": 6,
                        "type": "string"
                      }
                    },
                    "required": [
                      "token"
                    ],
                    "type": "object"
                  },
                  {
                    "properties": {
                      "backupCode": {
                        "description": "Single-use backup code for two-factor authentication.",
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "backupCode"
                    ],
                    "type": "object"
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "description": "Error details returned when the operation fails.",
                          "properties": {
                            "code": {
                              "type": "string"
                            },
                            "lockedUntil": {
                              "description": "Time until which further authentication attempts are blocked.",
                              "format": "date-time",
                              "type": "string"
                            },
                            "message": {
                              "description": "Human-readable explanation of the result.",
                              "type": "string"
                            }
                          },
                          "required": [
                            "code",
                            "message",
                            "lockedUntil"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "token": {
                          "type": "string"
                        },
                        "user": {
                          "description": "User associated with the resource.",
                          "properties": {
                            "createdAt": {
                              "description": "Date and time the record was created.",
                              "format": "date-time",
                              "type": "string"
                            },
                            "id": {
                              "description": "Unique identifier of the resource.",
                              "type": "string"
                            },
                            "isAdmin": {
                              "description": "Whether the user has administrator privileges.",
                              "type": "boolean"
                            },
                            "passwordChangeRequired": {
                              "type": "boolean"
                            },
                            "role": {
                              "description": "Permission role assigned to the user.",
                              "type": "string"
                            },
                            "teams": {
                              "description": "Teams associated with the user.",
                              "items": {
                                "properties": {
                                  "id": {
                                    "description": "Unique identifier of the resource.",
                                    "type": "string"
                                  },
                                  "logoUrl": {
                                    "description": "URL of the logo image.",
                                    "type": "string"
                                  },
                                  "name": {
                                    "description": "Display name of the resource.",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "logoUrl",
                                  "name"
                                ],
                                "type": "object"
                              },
                              "type": "array"
                            },
                            "username": {
                              "description": "Username of the account.",
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "username",
                            "role",
                            "createdAt",
                            "isAdmin",
                            "passwordChangeRequired",
                            "teams"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "token",
                        "user"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "description": "Error details returned when the operation fails.",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "lockedUntil": {
                          "description": "Time until which further authentication attempts are blocked.",
                          "format": "date-time",
                          "type": "string"
                        },
                        "message": {
                          "description": "Human-readable explanation of the result.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "lockedUntil"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "service-unavailable",
                    "message": "Service unavailable.",
                    "status": 503
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Service unavailable."
          }
        },
        "security": [],
        "summary": "Complete two-factor sign-in",
        "tags": [
          "Two-factor authentication"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/2fa/verify/contract.generated.ts"
      }
    },
    "/api/admin/2fa/global": {
      "post": {
        "description": "Enables or disables the installation-wide requirement for users to set up two-factor authentication.",
        "operationId": "postAdmin2faGlobal",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "required": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "required"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "description": "Whether the operation succeeded.",
                      "type": "boolean"
                    },
                    "required": {}
                  },
                  "required": [
                    "ok",
                    "required"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "service-unavailable",
                    "message": "Service unavailable.",
                    "status": 503
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Service unavailable."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Set the two-factor requirement for everyone",
        "tags": [
          "Administration"
        ],
        "x-umami-audience": "internal",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/admin/2fa/global/contract.generated.ts"
      }
    },
    "/api/admin/teams": {
      "get": {
        "description": "Returns a paginated list of teams with member details and website and member counts for administration.",
        "operationId": "getAdminTeams",
        "parameters": [
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Field to sort the results by.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether to sort results in descending order.",
            "in": "query",
            "name": "sortDescending",
            "required": false,
            "schema": {
              "enum": [
                "true",
                "false"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "properties": {
                          "accessCode": {
                            "description": "Code used to join the team.",
                            "type": "string"
                          },
                          "createdAt": {
                            "description": "Date and time the record was created.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "deletedAt": {
                            "description": "Date and time the record was deleted, if applicable.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "logoUrl": {
                            "description": "URL of the logo image.",
                            "type": "string"
                          },
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "twoFactorRequired": {
                            "description": "Whether two-factor authentication is required.",
                            "type": "boolean"
                          },
                          "updatedAt": {
                            "description": "Date and time the record was last updated.",
                            "format": "date-time",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "createdAt",
                          "updatedAt",
                          "logoUrl",
                          "twoFactorRequired",
                          "deletedAt",
                          "name",
                          "accessCode"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List all teams",
        "tags": [
          "Administration"
        ],
        "x-umami-audience": "internal",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/admin/teams/contract.generated.ts"
      }
    },
    "/api/admin/teams/{teamId}/2fa": {
      "post": {
        "description": "Enables or disables the requirement for members of the specified team to use two-factor authentication.",
        "operationId": "postAdminTeamsTeamId2fa",
        "parameters": [
          {
            "description": "ID of the associated team.",
            "in": "path",
            "name": "teamId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "required": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "required"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "description": "Whether the operation succeeded.",
                      "type": "boolean"
                    },
                    "teamId": {
                      "description": "ID of the associated team.",
                      "type": "string"
                    },
                    "twoFactorRequired": {
                      "description": "Whether two-factor authentication is required."
                    }
                  },
                  "required": [
                    "ok",
                    "teamId",
                    "twoFactorRequired"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "service-unavailable",
                    "message": "Service unavailable.",
                    "status": 503
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Service unavailable."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Set a team's two-factor requirement",
        "tags": [
          "Administration"
        ],
        "x-umami-audience": "internal",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/admin/teams/[teamId]/2fa/contract.generated.ts"
      }
    },
    "/api/admin/users": {
      "get": {
        "description": "Returns a paginated list of users and their website counts for administration, excluding passwords.",
        "operationId": "getAdminUsers",
        "parameters": [
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Field to sort the results by.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether to sort results in descending order.",
            "in": "query",
            "name": "sortDescending",
            "required": false,
            "schema": {
              "enum": [
                "true",
                "false"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "properties": {
                          "_count": {
                            "properties": {
                              "websites": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "websites"
                            ],
                            "type": "object"
                          },
                          "createdAt": {
                            "description": "Date and time the record was created.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "role": {
                            "description": "Permission role assigned to the user.",
                            "type": "string"
                          },
                          "twoFactorRequired": {
                            "description": "Whether two-factor authentication is required.",
                            "type": "boolean"
                          },
                          "username": {
                            "description": "Username of the account.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "username",
                          "role",
                          "createdAt",
                          "twoFactorRequired"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List all users",
        "tags": [
          "Administration"
        ],
        "x-umami-audience": "internal",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/admin/users/contract.generated.ts"
      }
    },
    "/api/admin/users/{userId}/2fa": {
      "delete": {
        "description": "Removes the specified user's authenticator setup, backup codes, used-code history, and failed-attempt limits so they can set up authentication again.",
        "operationId": "deleteAdminUsersUserId2fa",
        "parameters": [
          {
            "description": "ID of the associated user.",
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "description": "Whether the operation succeeded.",
                      "type": "boolean"
                    },
                    "reset": {
                      "properties": {
                        "backupCodes": {
                          "description": "Single-use backup codes for two-factor authentication."
                        },
                        "otpUsed": {},
                        "rateLimit": {},
                        "twoFactorAuth": {}
                      },
                      "required": [
                        "twoFactorAuth",
                        "backupCodes",
                        "otpUsed",
                        "rateLimit"
                      ],
                      "type": "object"
                    },
                    "userId": {
                      "description": "ID of the associated user.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "userId",
                    "reset"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Reset a user's two-factor authentication",
        "tags": [
          "Administration"
        ],
        "x-umami-audience": "internal",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/admin/users/[userId]/2fa/contract.generated.ts"
      },
      "get": {
        "description": "Returns whether two-factor authentication is enabled for the specified user.",
        "operationId": "getAdminUsersUserId2fa",
        "parameters": [
          {
            "description": "ID of the associated user.",
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "isEnabled": {
                      "description": "Whether two-factor authentication is enabled.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "isEnabled"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a user's two-factor status",
        "tags": [
          "Administration"
        ],
        "x-umami-audience": "internal",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/admin/users/[userId]/2fa/contract.generated.ts"
      },
      "post": {
        "description": "Enables or disables the requirement for the specified user to set up two-factor authentication.",
        "operationId": "postAdminUsersUserId2fa",
        "parameters": [
          {
            "description": "ID of the associated user.",
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "required": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "required"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "description": "Whether the operation succeeded.",
                      "type": "boolean"
                    },
                    "twoFactorRequired": {
                      "description": "Whether two-factor authentication is required."
                    },
                    "userId": {
                      "description": "ID of the associated user.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "userId",
                    "twoFactorRequired"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "service-unavailable",
                    "message": "Service unavailable.",
                    "status": 503
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Service unavailable."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Set a user's two-factor requirement",
        "tags": [
          "Administration"
        ],
        "x-umami-audience": "internal",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/admin/users/[userId]/2fa/contract.generated.ts"
      }
    },
    "/api/admin/websites": {
      "get": {
        "description": "Returns a paginated, searchable list of websites across users and teams for administration.",
        "operationId": "getAdminWebsites",
        "parameters": [
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Field to sort the results by.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether to sort results in descending order.",
            "in": "query",
            "name": "sortDescending",
            "required": false,
            "schema": {
              "enum": [
                "true",
                "false"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "allOf": [
                          {
                            "properties": {
                              "createdAt": {
                                "description": "Date and time the record was created.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "createdBy": {
                                "description": "ID of the user who created the resource.",
                                "type": "string"
                              },
                              "deletedAt": {
                                "description": "Date and time the record was deleted, if applicable.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "domain": {
                                "description": "Domain name associated with the resource.",
                                "type": "string"
                              },
                              "id": {
                                "description": "Unique identifier of the resource.",
                                "type": "string"
                              },
                              "name": {
                                "description": "Display name of the resource.",
                                "type": "string"
                              },
                              "recorderEnabled": {
                                "description": "Whether recording is enabled for the website.",
                                "type": "boolean"
                              },
                              "replayConfig": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "const": false
                                  },
                                  {
                                    "const": true
                                  },
                                  {
                                    "additionalProperties": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "const": false
                                        },
                                        {
                                          "const": true
                                        },
                                        {},
                                        {
                                          "properties": {
                                            "length": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "length"
                                          ],
                                          "type": "object"
                                        }
                                      ]
                                    },
                                    "properties": {},
                                    "type": "object"
                                  },
                                  {
                                    "properties": {
                                      "length": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "length"
                                    ],
                                    "type": "object"
                                  }
                                ],
                                "description": "Session replay and heatmap recording configuration."
                              },
                              "resetAt": {
                                "description": "Date and time the website analytics were last reset.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "teamId": {
                                "description": "ID of the associated team.",
                                "type": "string"
                              },
                              "updatedAt": {
                                "description": "Date and time the record was last updated.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "userId": {
                                "description": "ID of the associated user.",
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "userId",
                              "createdAt",
                              "updatedAt",
                              "deletedAt",
                              "createdBy",
                              "name",
                              "domain",
                              "resetAt",
                              "teamId",
                              "recorderEnabled",
                              "replayConfig"
                            ],
                            "type": "object"
                          },
                          {
                            "properties": {
                              "createUser": {
                                "description": "User who created the resource.",
                                "properties": {
                                  "id": {
                                    "description": "Unique identifier of the resource.",
                                    "type": "string"
                                  },
                                  "username": {
                                    "description": "Username of the account.",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "username"
                                ],
                                "type": "object"
                              },
                              "shareId": {
                                "description": "Identifier used to access a shared resource.",
                                "type": "string"
                              },
                              "team": {
                                "description": "Team associated with the resource.",
                                "properties": {
                                  "members": {
                                    "description": "Members of the team.",
                                    "items": {
                                      "properties": {
                                        "role": {
                                          "description": "Permission role assigned to the user.",
                                          "type": "string"
                                        },
                                        "userId": {
                                          "description": "ID of the associated user.",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "userId",
                                        "role"
                                      ],
                                      "type": "object"
                                    },
                                    "type": "array"
                                  }
                                },
                                "required": [
                                  "members"
                                ],
                                "type": "object"
                              },
                              "user": {
                                "description": "User associated with the resource.",
                                "properties": {
                                  "id": {
                                    "description": "Unique identifier of the resource.",
                                    "type": "string"
                                  },
                                  "username": {
                                    "description": "Username of the account.",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "username"
                                ],
                                "type": "object"
                              }
                            },
                            "required": [
                              "shareId"
                            ],
                            "type": "object"
                          }
                        ]
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List all websites",
        "tags": [
          "Administration"
        ],
        "x-umami-audience": "internal",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/admin/websites/contract.generated.ts"
      }
    },
    "/api/auth/login": {
      "post": {
        "description": "Authenticates a user with a username and password. Users with two-factor authentication receive a short-lived partial token to complete sign-in.",
        "operationId": "login",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginResponse"
                }
              }
            },
            "description": "Authenticated successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "503": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "service-unavailable",
                    "message": "Service unavailable.",
                    "status": 503
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Service unavailable."
          }
        },
        "security": [],
        "summary": "Log in",
        "tags": [
          "Authentication"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/auth/login/contract.ts"
      }
    },
    "/api/auth/logout": {
      "post": {
        "description": "Ends the current authentication session by removing its stored token when Redis-backed sessions are enabled.",
        "operationId": "logout",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "const": true,
                      "description": "Whether the operation succeeded."
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Log out",
        "tags": [
          "Authentication"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/auth/logout/contract.generated.ts"
      }
    },
    "/api/auth/sso": {
      "post": {
        "description": "Returns the authenticated user and a new token valid for 24 hours. Requires Redis-backed authentication.",
        "operationId": "sso",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "token": {
                      "type": "string"
                    },
                    "user": {
                      "description": "User associated with the resource."
                    }
                  },
                  "required": [
                    "user",
                    "token"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "500": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "server-error",
                    "message": "Server error.",
                    "status": 500
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Server error."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a single sign-on token",
        "tags": [
          "Authentication"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/auth/sso/contract.generated.ts"
      }
    },
    "/api/auth/subscription": {
      "get": {
        "description": "Returns subscription and feature availability for the current user or a specified team the user can access.",
        "operationId": "getSubscription",
        "parameters": [
          {
            "description": "ID of the associated team.",
            "in": "query",
            "name": "teamId",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "error": {
                          "description": "Error details returned when the operation fails.",
                          "properties": {
                            "code": {
                              "type": "string"
                            },
                            "message": {
                              "description": "Human-readable explanation of the result.",
                              "type": "string"
                            },
                            "status": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "message",
                            "code",
                            "status"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "hasSubscription": {
                          "type": "boolean"
                        },
                        "isBusiness": {
                          "type": "boolean"
                        },
                        "isNoBilling": {
                          "type": "boolean"
                        },
                        "isPro": {
                          "type": "boolean"
                        },
                        "unlimitedWebsites": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "isPro",
                        "isBusiness",
                        "isNoBilling",
                        "hasSubscription",
                        "unlimitedWebsites"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "billingStatus": {
                          "type": "string"
                        },
                        "hasSubscription": {
                          "type": "boolean"
                        },
                        "isBusiness": {
                          "type": "boolean"
                        },
                        "isNoBilling": {
                          "type": "boolean"
                        },
                        "isOwner": {
                          "type": "boolean"
                        },
                        "isPro": {
                          "type": "boolean"
                        },
                        "unlimitedWebsites": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "isOwner",
                        "isPro",
                        "isBusiness",
                        "isNoBilling",
                        "hasSubscription",
                        "unlimitedWebsites",
                        "billingStatus"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get subscription details",
        "tags": [
          "Authentication"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/auth/subscription/contract.generated.ts"
      }
    },
    "/api/auth/verify": {
      "post": {
        "description": "Validates the current authentication credentials and returns the user and their team memberships.",
        "operationId": "verify",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "passwordChangeRequired": {
                      "type": "boolean"
                    },
                    "teams": {
                      "description": "Teams associated with the user."
                    }
                  },
                  "required": [
                    "passwordChangeRequired",
                    "teams"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Verify the current sign-in",
        "tags": [
          "Authentication"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/auth/verify/contract.generated.ts"
      }
    },
    "/api/batch": {
      "post": {
        "description": "Processes up to 500 tracking payloads and returns processed and failed counts, individual error details, and a tracking cache token.",
        "operationId": "batch",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "maxItems": 500,
                "type": "array"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "cache": {},
                    "details": {
                      "items": {},
                      "type": "array"
                    },
                    "errors": {
                      "type": "number"
                    },
                    "processed": {
                      "type": "number"
                    },
                    "size": {}
                  },
                  "required": [
                    "size",
                    "processed",
                    "errors",
                    "details",
                    "cache"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "500": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "server-error",
                    "message": "Server error.",
                    "status": 500
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Server error."
          }
        },
        "security": [],
        "summary": "Send a batch of tracking requests",
        "tags": [
          "Collection"
        ],
        "x-umami-audience": "collect",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/batch/contract.generated.ts"
      }
    },
    "/api/boards": {
      "get": {
        "description": "Returns a paginated list of the current user's boards, with search and sorting options.",
        "operationId": "getBoards",
        "parameters": [
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Field to sort the results by.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether to sort results in descending order.",
            "in": "query",
            "name": "sortDescending",
            "required": false,
            "schema": {
              "enum": [
                "true",
                "false"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "properties": {
                          "createdAt": {
                            "description": "Date and time the record was created.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "description": {
                            "description": "Description of the resource.",
                            "type": "string"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "parameters": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {
                                "additionalProperties": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "const": false
                                    },
                                    {
                                      "const": true
                                    },
                                    {},
                                    {
                                      "properties": {
                                        "length": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "length"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "properties": {},
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ],
                            "description": "Configuration parameters for the resource."
                          },
                          "teamId": {
                            "description": "ID of the associated team.",
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "Date and time the record was last updated.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "userId": {
                            "description": "ID of the associated user.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "userId",
                          "createdAt",
                          "updatedAt",
                          "name",
                          "teamId",
                          "type",
                          "description",
                          "parameters"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List my boards",
        "tags": [
          "Boards"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/boards/contract.generated.ts"
      },
      "post": {
        "description": "Creates a board with a name, type, and configuration, optionally assigned to a team. Validates access to its referenced resources and reports.",
        "operationId": "createBoard",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "description": {
                    "description": "Description of the resource.",
                    "maxLength": 500,
                    "type": "string"
                  },
                  "name": {
                    "description": "Display name of the resource.",
                    "maxLength": 100,
                    "type": "string"
                  },
                  "parameters": {
                    "description": "Configuration parameters for the resource.",
                    "properties": {
                      "linkId": {
                        "description": "ID of the tracked link.",
                        "format": "uuid",
                        "type": "string"
                      },
                      "pixelId": {
                        "description": "ID of the tracking pixel.",
                        "format": "uuid",
                        "type": "string"
                      },
                      "websiteId": {
                        "description": "ID of the website.",
                        "format": "uuid",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "teamId": {
                    "anyOf": [
                      {
                        "format": "uuid",
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "ID of the associated team."
                  },
                  "type": {
                    "anyOf": [
                      {
                        "enum": [],
                        "type": "string"
                      },
                      {
                        "const": "open"
                      }
                    ]
                  },
                  "userId": {
                    "anyOf": [
                      {
                        "format": "uuid",
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "ID of the associated user."
                  }
                },
                "required": [
                  "type",
                  "name"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "description": {
                      "description": "Description of the resource.",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Display name of the resource.",
                      "type": "string"
                    },
                    "parameters": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "const": false
                        },
                        {
                          "const": true
                        },
                        {
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {},
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ]
                          },
                          "properties": {},
                          "type": "object"
                        },
                        {
                          "properties": {
                            "length": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "length"
                          ],
                          "type": "object"
                        }
                      ],
                      "description": "Configuration parameters for the resource."
                    },
                    "teamId": {
                      "description": "ID of the associated team.",
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "userId": {
                      "description": "ID of the associated user.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "userId",
                    "createdAt",
                    "updatedAt",
                    "name",
                    "teamId",
                    "type",
                    "description",
                    "parameters"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Create a board",
        "tags": [
          "Boards"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/boards/contract.generated.ts"
      }
    },
    "/api/boards/{boardId}": {
      "delete": {
        "description": "Deletes the specified board after checking the caller's permission to remove it.",
        "operationId": "deleteBoard",
        "parameters": [
          {
            "description": "ID of the board.",
            "in": "path",
            "name": "boardId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "const": true,
                      "description": "Whether the operation succeeded."
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete a board",
        "tags": [
          "Boards"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/boards/[boardId]/contract.generated.ts"
      },
      "get": {
        "description": "Returns the specified board and its configuration.",
        "operationId": "getBoard",
        "parameters": [
          {
            "description": "ID of the board.",
            "in": "path",
            "name": "boardId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "description": {
                      "description": "Description of the resource.",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Display name of the resource.",
                      "type": "string"
                    },
                    "parameters": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "const": false
                        },
                        {
                          "const": true
                        },
                        {
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {},
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ]
                          },
                          "properties": {},
                          "type": "object"
                        },
                        {
                          "properties": {
                            "length": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "length"
                          ],
                          "type": "object"
                        }
                      ],
                      "description": "Configuration parameters for the resource."
                    },
                    "teamId": {
                      "description": "ID of the associated team.",
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "userId": {
                      "description": "ID of the associated user.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "userId",
                    "createdAt",
                    "updatedAt",
                    "name",
                    "teamId",
                    "type",
                    "description",
                    "parameters"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get a board",
        "tags": [
          "Boards"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/boards/[boardId]/contract.generated.ts"
      },
      "post": {
        "description": "Updates a board's name, description, or configuration and validates the resources and reports it references.",
        "operationId": "updateBoard",
        "parameters": [
          {
            "description": "ID of the board.",
            "in": "path",
            "name": "boardId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "description": {
                    "description": "Description of the resource.",
                    "maxLength": 500,
                    "type": "string"
                  },
                  "name": {
                    "description": "Display name of the resource.",
                    "maxLength": 200,
                    "type": "string"
                  },
                  "parameters": {
                    "description": "Configuration parameters for the resource.",
                    "properties": {},
                    "type": "object"
                  },
                  "type": {
                    "anyOf": [
                      {
                        "enum": [],
                        "type": "string"
                      },
                      {
                        "const": "open"
                      }
                    ]
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "description": {
                      "description": "Description of the resource.",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Display name of the resource.",
                      "type": "string"
                    },
                    "parameters": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "const": false
                        },
                        {
                          "const": true
                        },
                        {
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {},
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ]
                          },
                          "properties": {},
                          "type": "object"
                        },
                        {
                          "properties": {
                            "length": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "length"
                          ],
                          "type": "object"
                        }
                      ],
                      "description": "Configuration parameters for the resource."
                    },
                    "teamId": {
                      "description": "ID of the associated team.",
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "userId": {
                      "description": "ID of the associated user.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "userId",
                    "createdAt",
                    "updatedAt",
                    "name",
                    "teamId",
                    "type",
                    "description",
                    "parameters"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "500": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "server-error",
                    "message": "Server error.",
                    "status": 500
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Server error."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Update a board",
        "tags": [
          "Boards"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/boards/[boardId]/contract.generated.ts"
      }
    },
    "/api/boards/{boardId}/clone": {
      "post": {
        "description": "Creates a copy of a board with optional changes to its name, description, and configuration. Removes invalid report references from the copy.",
        "operationId": "cloneBoard",
        "parameters": [
          {
            "description": "ID of the board.",
            "in": "path",
            "name": "boardId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "description": {
                    "description": "Description of the resource.",
                    "maxLength": 500,
                    "type": "string"
                  },
                  "name": {
                    "description": "Display name of the resource.",
                    "maxLength": 200,
                    "type": "string"
                  },
                  "parameters": {
                    "description": "Configuration parameters for the resource.",
                    "properties": {},
                    "type": "object"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "description": {
                      "description": "Description of the resource.",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Display name of the resource.",
                      "type": "string"
                    },
                    "parameters": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "const": false
                        },
                        {
                          "const": true
                        },
                        {
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {},
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ]
                          },
                          "properties": {},
                          "type": "object"
                        },
                        {
                          "properties": {
                            "length": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "length"
                          ],
                          "type": "object"
                        }
                      ],
                      "description": "Configuration parameters for the resource."
                    },
                    "teamId": {
                      "description": "ID of the associated team.",
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "userId": {
                      "description": "ID of the associated user.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "userId",
                    "createdAt",
                    "updatedAt",
                    "name",
                    "teamId",
                    "type",
                    "description",
                    "parameters"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Clone a board",
        "tags": [
          "Boards"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/boards/[boardId]/clone/contract.generated.ts"
      }
    },
    "/api/boards/{boardId}/shares": {
      "get": {
        "description": "Returns a paginated list of shares for the specified board.",
        "operationId": "getBoardShares",
        "parameters": [
          {
            "description": "ID of the board.",
            "in": "path",
            "name": "boardId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "properties": {
                          "createdAt": {
                            "description": "Date and time the record was created.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "entityId": {
                            "description": "ID of the resource being shared.",
                            "type": "string"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "parameters": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {
                                "additionalProperties": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "const": false
                                    },
                                    {
                                      "const": true
                                    },
                                    {},
                                    {
                                      "properties": {
                                        "length": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "length"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "properties": {},
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ],
                            "description": "Configuration parameters for the resource."
                          },
                          "shareType": {
                            "description": "Type of resource made available by the share.",
                            "type": "number"
                          },
                          "slug": {
                            "description": "URL slug used to access the resource.",
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "Date and time the record was last updated.",
                            "format": "date-time",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "createdAt",
                          "updatedAt",
                          "name",
                          "slug",
                          "parameters",
                          "entityId",
                          "shareType"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List shares for a board",
        "tags": [
          "Boards"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/boards/[boardId]/shares/contract.generated.ts"
      },
      "post": {
        "description": "Creates a named share for the specified board with optional parameters.",
        "operationId": "createBoardShare",
        "parameters": [
          {
            "description": "ID of the board.",
            "in": "path",
            "name": "boardId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "name": {
                    "description": "Display name of the resource.",
                    "maxLength": 200,
                    "type": "string"
                  },
                  "parameters": {
                    "additionalProperties": true,
                    "description": "Configuration parameters for the resource.",
                    "type": "object"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "entityId": {
                      "description": "ID of the resource being shared.",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Display name of the resource.",
                      "type": "string"
                    },
                    "parameters": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "const": false
                        },
                        {
                          "const": true
                        },
                        {
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {},
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ]
                          },
                          "properties": {},
                          "type": "object"
                        },
                        {
                          "properties": {
                            "length": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "length"
                          ],
                          "type": "object"
                        }
                      ],
                      "description": "Configuration parameters for the resource."
                    },
                    "shareType": {
                      "description": "Type of resource made available by the share.",
                      "type": "number"
                    },
                    "slug": {
                      "description": "URL slug used to access the resource.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "name",
                    "slug",
                    "parameters",
                    "entityId",
                    "shareType"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a share for a board",
        "tags": [
          "Boards"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/boards/[boardId]/shares/contract.generated.ts"
      }
    },
    "/api/dashboard": {
      "get": {
        "description": "Returns the current user's personal dashboard board and its configuration.",
        "operationId": "getDashboard",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "description": {
                      "description": "Description of the dashboard.",
                      "type": "string"
                    },
                    "id": {
                      "description": "Dashboard board ID, equal to the owning user ID.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Display name of the dashboard.",
                      "type": "string"
                    },
                    "parameters": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "const": false
                        },
                        {
                          "const": true
                        },
                        {
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {},
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ]
                          },
                          "properties": {},
                          "type": "object"
                        },
                        {
                          "properties": {
                            "length": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "length"
                          ],
                          "type": "object"
                        }
                      ],
                      "description": "Dashboard configuration, including components, layout, and saved reports."
                    },
                    "teamId": {
                      "description": "ID of the associated team, if any.",
                      "type": "string"
                    },
                    "type": {
                      "description": "Board type used for the dashboard.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "userId": {
                      "description": "ID of the user who owns the dashboard.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "userId",
                    "createdAt",
                    "updatedAt",
                    "name",
                    "teamId",
                    "type",
                    "description",
                    "parameters"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get my dashboard",
        "tags": [
          "Dashboard"
        ],
        "x-umami-audience": "internal",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/dashboard/contract.generated.ts"
      },
      "post": {
        "description": "Creates or updates the current user's personal dashboard with the supplied name, description, and configuration.",
        "operationId": "postDashboard",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "description": {
                    "description": "Description of the dashboard.",
                    "maxLength": 500,
                    "type": "string"
                  },
                  "name": {
                    "description": "Display name of the dashboard.",
                    "maxLength": 200,
                    "type": "string"
                  },
                  "parameters": {
                    "description": "Dashboard configuration, including components, layout, and saved reports.",
                    "properties": {},
                    "type": "object"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "description": {
                      "description": "Description of the dashboard.",
                      "type": "string"
                    },
                    "id": {
                      "description": "Dashboard board ID, equal to the owning user ID.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Display name of the dashboard.",
                      "type": "string"
                    },
                    "parameters": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "const": false
                        },
                        {
                          "const": true
                        },
                        {
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {},
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ]
                          },
                          "properties": {},
                          "type": "object"
                        },
                        {
                          "properties": {
                            "length": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "length"
                          ],
                          "type": "object"
                        }
                      ],
                      "description": "Dashboard configuration, including components, layout, and saved reports."
                    },
                    "teamId": {
                      "description": "ID of the associated team, if any.",
                      "type": "string"
                    },
                    "type": {
                      "description": "Board type used for the dashboard.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "userId": {
                      "description": "ID of the user who owns the dashboard.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "userId",
                    "createdAt",
                    "updatedAt",
                    "name",
                    "teamId",
                    "type",
                    "description",
                    "parameters"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Save my dashboard",
        "tags": [
          "Dashboard"
        ],
        "x-umami-audience": "internal",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/dashboard/contract.generated.ts"
      }
    },
    "/api/heartbeat": {
      "get": {
        "description": "Returns a simple success response to confirm that the application can serve requests.",
        "operationId": "getHeartbeat",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "description": "Whether the operation succeeded.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          }
        },
        "security": [],
        "summary": "Check application availability",
        "tags": [
          "System"
        ],
        "x-umami-audience": "internal",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/heartbeat/contract.generated.ts"
      }
    },
    "/api/links": {
      "get": {
        "description": "Returns a paginated list of the current user's tracked links, with search and sorting options.",
        "operationId": "getLinks",
        "parameters": [
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Field to sort the results by.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether to sort results in descending order.",
            "in": "query",
            "name": "sortDescending",
            "required": false,
            "schema": {
              "enum": [
                "true",
                "false"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "properties": {
                          "createdAt": {
                            "description": "Date and time the record was created.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "deletedAt": {
                            "description": "Date and time the record was deleted, if applicable.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "slug": {
                            "description": "URL slug used to access the resource.",
                            "type": "string"
                          },
                          "teamId": {
                            "description": "ID of the associated team.",
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "Date and time the record was last updated.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "url": {
                            "description": "URL associated with the resource.",
                            "type": "string"
                          },
                          "userId": {
                            "description": "ID of the associated user.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "userId",
                          "createdAt",
                          "updatedAt",
                          "deletedAt",
                          "name",
                          "teamId",
                          "url",
                          "slug"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List my links",
        "tags": [
          "Links"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/links/contract.generated.ts"
      },
      "post": {
        "description": "Creates a tracked link with a name, destination URL, and slug, optionally assigned to a team.",
        "operationId": "createLink",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "anyOf": [
                      {
                        "format": "uuid",
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Unique identifier of the resource."
                  },
                  "name": {
                    "description": "Display name of the resource.",
                    "maxLength": 100,
                    "type": "string"
                  },
                  "slug": {
                    "description": "URL slug used to access the resource.",
                    "maxLength": 100,
                    "minLength": 8,
                    "type": "string"
                  },
                  "teamId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "ID of the associated team."
                  },
                  "url": {
                    "description": "URL associated with the resource.",
                    "maxLength": 500,
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "url",
                  "slug"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "deletedAt": {
                      "description": "Date and time the record was deleted, if applicable.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Display name of the resource.",
                      "type": "string"
                    },
                    "slug": {
                      "description": "URL slug used to access the resource.",
                      "type": "string"
                    },
                    "teamId": {
                      "description": "ID of the associated team.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "url": {
                      "description": "URL associated with the resource.",
                      "type": "string"
                    },
                    "userId": {
                      "description": "ID of the associated user.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "userId",
                    "createdAt",
                    "updatedAt",
                    "deletedAt",
                    "name",
                    "teamId",
                    "url",
                    "slug"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a tracked link",
        "tags": [
          "Links"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/links/contract.generated.ts"
      }
    },
    "/api/links/{linkId}": {
      "delete": {
        "description": "Deletes the specified tracked link after checking the caller's permission to remove it.",
        "operationId": "deleteLink",
        "parameters": [
          {
            "description": "ID of the tracked link.",
            "in": "path",
            "name": "linkId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "const": true,
                      "description": "Whether the operation succeeded."
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete a tracked link",
        "tags": [
          "Links"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/links/[linkId]/contract.generated.ts"
      },
      "get": {
        "description": "Returns the specified tracked link, including its destination URL and slug.",
        "operationId": "getLink",
        "parameters": [
          {
            "description": "ID of the tracked link.",
            "in": "path",
            "name": "linkId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "deletedAt": {
                      "description": "Date and time the record was deleted, if applicable.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Display name of the resource.",
                      "type": "string"
                    },
                    "slug": {
                      "description": "URL slug used to access the resource.",
                      "type": "string"
                    },
                    "teamId": {
                      "description": "ID of the associated team.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "url": {
                      "description": "URL associated with the resource.",
                      "type": "string"
                    },
                    "userId": {
                      "description": "ID of the associated user.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "userId",
                    "createdAt",
                    "updatedAt",
                    "deletedAt",
                    "name",
                    "teamId",
                    "url",
                    "slug"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get a tracked link",
        "tags": [
          "Links"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/links/[linkId]/contract.generated.ts"
      },
      "post": {
        "description": "Updates a tracked link's name, destination URL, or slug.",
        "operationId": "updateLink",
        "parameters": [
          {
            "description": "ID of the tracked link.",
            "in": "path",
            "name": "linkId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "name": {
                    "description": "Display name of the resource.",
                    "maxLength": 100,
                    "type": "string"
                  },
                  "slug": {
                    "description": "URL slug used to access the resource.",
                    "maxLength": 100,
                    "minLength": 8,
                    "type": "string"
                  },
                  "url": {
                    "description": "URL associated with the resource.",
                    "maxLength": 500,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "deletedAt": {
                      "description": "Date and time the record was deleted, if applicable.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Display name of the resource.",
                      "type": "string"
                    },
                    "slug": {
                      "description": "URL slug used to access the resource.",
                      "type": "string"
                    },
                    "teamId": {
                      "description": "ID of the associated team.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "url": {
                      "description": "URL associated with the resource.",
                      "type": "string"
                    },
                    "userId": {
                      "description": "ID of the associated user.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "userId",
                    "createdAt",
                    "updatedAt",
                    "deletedAt",
                    "name",
                    "teamId",
                    "url",
                    "slug"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "500": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "server-error",
                    "message": "Server error.",
                    "status": 500
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Server error."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update a tracked link",
        "tags": [
          "Links"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/links/[linkId]/contract.generated.ts"
      }
    },
    "/api/links/{linkId}/shares": {
      "get": {
        "description": "Returns a paginated list of shares for the specified link.",
        "operationId": "getLinkShares",
        "parameters": [
          {
            "description": "ID of the tracked link.",
            "in": "path",
            "name": "linkId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "properties": {
                          "createdAt": {
                            "description": "Date and time the record was created.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "entityId": {
                            "description": "ID of the resource being shared.",
                            "type": "string"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "parameters": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {
                                "additionalProperties": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "const": false
                                    },
                                    {
                                      "const": true
                                    },
                                    {},
                                    {
                                      "properties": {
                                        "length": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "length"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "properties": {},
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ],
                            "description": "Configuration parameters for the resource."
                          },
                          "shareType": {
                            "description": "Type of resource made available by the share.",
                            "type": "number"
                          },
                          "slug": {
                            "description": "URL slug used to access the resource.",
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "Date and time the record was last updated.",
                            "format": "date-time",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "createdAt",
                          "updatedAt",
                          "name",
                          "slug",
                          "parameters",
                          "entityId",
                          "shareType"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List shares for a link",
        "tags": [
          "Links"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/links/[linkId]/shares/contract.generated.ts"
      },
      "post": {
        "description": "Creates a named share for the specified link with optional parameters.",
        "operationId": "createLinkShare",
        "parameters": [
          {
            "description": "ID of the tracked link.",
            "in": "path",
            "name": "linkId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "name": {
                    "description": "Display name of the resource.",
                    "maxLength": 200,
                    "type": "string"
                  },
                  "parameters": {
                    "additionalProperties": true,
                    "description": "Configuration parameters for the resource.",
                    "type": "object"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "entityId": {
                      "description": "ID of the resource being shared.",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Display name of the resource.",
                      "type": "string"
                    },
                    "parameters": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "const": false
                        },
                        {
                          "const": true
                        },
                        {
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {},
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ]
                          },
                          "properties": {},
                          "type": "object"
                        },
                        {
                          "properties": {
                            "length": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "length"
                          ],
                          "type": "object"
                        }
                      ],
                      "description": "Configuration parameters for the resource."
                    },
                    "shareType": {
                      "description": "Type of resource made available by the share.",
                      "type": "number"
                    },
                    "slug": {
                      "description": "URL slug used to access the resource.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "name",
                    "slug",
                    "parameters",
                    "entityId",
                    "shareType"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a share for a link",
        "tags": [
          "Links"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/links/[linkId]/shares/contract.generated.ts"
      }
    },
    "/api/links/charts": {
      "get": {
        "description": "Returns visitor totals and chart data for the requested links the caller can view, within the selected date range.",
        "operationId": "getLinksCharts",
        "parameters": [
          {
            "description": "Comma-separated resource IDs. Provide between 1 and 20 IDs.",
            "in": "query",
            "name": "ids",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "additionalProperties": {
                        "properties": {
                          "total": {
                            "type": "number"
                          },
                          "values": {
                            "items": {
                              "type": "number"
                            },
                            "type": "array"
                          }
                        },
                        "required": [
                          "values",
                          "total"
                        ],
                        "type": "object"
                      },
                      "description": "Data returned by the operation.",
                      "properties": {},
                      "type": "object"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get visitor charts for links",
        "tags": [
          "Links"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/links/charts/contract.generated.ts"
      }
    },
    "/api/me": {
      "get": {
        "description": "Returns the current authentication context, including the authenticated user or share credentials.",
        "operationId": "getMe",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "apiKey": {
                      "description": "API key authentication details.",
                      "properties": {
                        "id": {
                          "description": "Unique identifier of the resource.",
                          "type": "string"
                        },
                        "name": {
                          "description": "Display name of the resource.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name"
                      ],
                      "type": "object"
                    },
                    "authType": {
                      "anyOf": [
                        {
                          "const": "session"
                        },
                        {
                          "const": "share"
                        },
                        {
                          "const": "api-key"
                        }
                      ]
                    },
                    "passwordChangeRequired": {
                      "type": "boolean"
                    },
                    "shareToken": {
                      "properties": {
                        "boardId": {
                          "description": "ID of the board.",
                          "type": "string"
                        },
                        "linkId": {
                          "description": "ID of the tracked link.",
                          "type": "string"
                        },
                        "linkIds": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "parameters": {
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {
                                "const": "light"
                              },
                              {
                                "const": "dark"
                              }
                            ]
                          },
                          "description": "Configuration parameters for the resource.",
                          "properties": {
                            "allowFilter": {
                              "type": "boolean"
                            },
                            "theme": {
                              "anyOf": [
                                {
                                  "const": "light"
                                },
                                {
                                  "const": "dark"
                                }
                              ]
                            }
                          },
                          "type": "object"
                        },
                        "pixelId": {
                          "description": "ID of the tracking pixel.",
                          "type": "string"
                        },
                        "pixelIds": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "shareType": {
                          "description": "Type of resource made available by the share.",
                          "type": "number"
                        },
                        "websiteId": {
                          "description": "ID of the website.",
                          "type": "string"
                        },
                        "websiteIds": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    },
                    "twoFactorSetupPending": {
                      "type": "boolean"
                    },
                    "user": {
                      "description": "User associated with the resource.",
                      "properties": {
                        "id": {
                          "description": "Unique identifier of the resource.",
                          "type": "string"
                        },
                        "isAdmin": {
                          "description": "Whether the user has administrator privileges.",
                          "type": "boolean"
                        },
                        "role": {
                          "description": "Permission role assigned to the user.",
                          "type": "string"
                        },
                        "username": {
                          "description": "Username of the account.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "username",
                        "role",
                        "isAdmin"
                      ],
                      "type": "object"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get my authentication details",
        "tags": [
          "Account"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/me/contract.generated.ts"
      }
    },
    "/api/me/api-keys": {
      "get": {
        "description": "Returns metadata for the current user's API keys. Available on self-hosted installations.",
        "operationId": "getMyApiKeys",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "createdAt": {
                        "description": "Date and time the record was created.",
                        "format": "date-time",
                        "type": "string"
                      },
                      "id": {
                        "description": "Unique identifier of the resource.",
                        "type": "string"
                      },
                      "keyPrefix": {
                        "description": "Visible prefix used to identify an API key.",
                        "type": "string"
                      },
                      "lastUsedAt": {
                        "description": "Date and time the credential was last used.",
                        "format": "date-time",
                        "type": "string"
                      },
                      "name": {
                        "description": "Display name of the resource.",
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "createdAt",
                      "name",
                      "keyPrefix",
                      "lastUsedAt"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List my API keys",
        "tags": [
          "Account"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/me/api-keys/contract.generated.ts"
      },
      "post": {
        "description": "Creates a named API key for the current user and returns its secret value. Available on self-hosted installations.",
        "operationId": "createMyApiKey",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "name": {
                    "description": "Display name of the resource.",
                    "maxLength": 255,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "key": {
                      "type": "string"
                    },
                    "keyPrefix": {
                      "description": "Visible prefix used to identify an API key.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Display name of the resource.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "key",
                    "id",
                    "createdAt",
                    "name",
                    "keyPrefix"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create an API key",
        "tags": [
          "Account"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/me/api-keys/contract.generated.ts"
      }
    },
    "/api/me/api-keys/{keyId}": {
      "delete": {
        "description": "Deletes an API key belonging to the current user, revoking its access. Available on self-hosted installations.",
        "operationId": "deleteMyApiKey",
        "parameters": [
          {
            "description": "ID of the API key.",
            "in": "path",
            "name": "keyId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "const": true,
                      "description": "Whether the operation succeeded."
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete an API key",
        "tags": [
          "Account"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/me/api-keys/[keyId]/contract.generated.ts"
      }
    },
    "/api/me/password": {
      "post": {
        "description": "Verifies the current password and replaces it with the supplied new password.",
        "operationId": "updateMyPassword",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "currentPassword": {
                    "description": "Current account password.",
                    "type": "string"
                  },
                  "newPassword": {
                    "description": "New password to set for the account.",
                    "minLength": 8,
                    "type": "string"
                  }
                },
                "required": [
                  "currentPassword",
                  "newPassword"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "role": {
                      "description": "Permission role assigned to the user.",
                      "type": "string"
                    },
                    "token": {
                      "type": "string"
                    },
                    "username": {
                      "description": "Username of the account.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "token",
                    "id",
                    "createdAt",
                    "username",
                    "role"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Change my password",
        "tags": [
          "Account"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/me/password/contract.generated.ts"
      }
    },
    "/api/me/teams": {
      "get": {
        "description": "Returns a paginated list of teams the current user belongs to, with sorting options.",
        "operationId": "getMyTeams",
        "parameters": [
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Field to sort the results by.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether to sort results in descending order.",
            "in": "query",
            "name": "sortDescending",
            "required": false,
            "schema": {
              "enum": [
                "true",
                "false"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "allOf": [
                          {
                            "properties": {
                              "createdAt": {
                                "description": "Date and time the record was created.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "deletedAt": {
                                "description": "Date and time the record was deleted, if applicable.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "id": {
                                "description": "Unique identifier of the resource.",
                                "type": "string"
                              },
                              "logoUrl": {
                                "description": "URL of the logo image.",
                                "type": "string"
                              },
                              "name": {
                                "description": "Display name of the resource.",
                                "type": "string"
                              },
                              "twoFactorRequired": {
                                "description": "Whether two-factor authentication is required.",
                                "type": "boolean"
                              },
                              "updatedAt": {
                                "description": "Date and time the record was last updated.",
                                "format": "date-time",
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "createdAt",
                              "updatedAt",
                              "logoUrl",
                              "twoFactorRequired",
                              "deletedAt",
                              "name"
                            ],
                            "type": "object"
                          },
                          {
                            "properties": {
                              "accessCode": {
                                "description": "Code used to join the team.",
                                "type": "string"
                              }
                            },
                            "type": "object"
                          }
                        ]
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List my team memberships",
        "tags": [
          "Account"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/me/teams/contract.generated.ts"
      }
    },
    "/api/me/websites": {
      "get": {
        "description": "Returns a paginated list of the current user's websites, optionally including websites accessible through team membership.",
        "operationId": "getMyWebsites",
        "parameters": [
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Field to sort the results by.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether to sort results in descending order.",
            "in": "query",
            "name": "sortDescending",
            "required": false,
            "schema": {
              "enum": [
                "true",
                "false"
              ],
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to include websites accessible through team membership.",
            "in": "query",
            "name": "includeTeams",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "allOf": [
                          {
                            "properties": {
                              "createdAt": {
                                "description": "Date and time the record was created.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "createdBy": {
                                "description": "ID of the user who created the resource.",
                                "type": "string"
                              },
                              "deletedAt": {
                                "description": "Date and time the record was deleted, if applicable.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "domain": {
                                "description": "Domain name associated with the resource.",
                                "type": "string"
                              },
                              "id": {
                                "description": "Unique identifier of the resource.",
                                "type": "string"
                              },
                              "name": {
                                "description": "Display name of the resource.",
                                "type": "string"
                              },
                              "recorderEnabled": {
                                "description": "Whether recording is enabled for the website.",
                                "type": "boolean"
                              },
                              "replayConfig": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "const": false
                                  },
                                  {
                                    "const": true
                                  },
                                  {
                                    "additionalProperties": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "const": false
                                        },
                                        {
                                          "const": true
                                        },
                                        {},
                                        {
                                          "properties": {
                                            "length": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "length"
                                          ],
                                          "type": "object"
                                        }
                                      ]
                                    },
                                    "properties": {},
                                    "type": "object"
                                  },
                                  {
                                    "properties": {
                                      "length": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "length"
                                    ],
                                    "type": "object"
                                  }
                                ],
                                "description": "Session replay and heatmap recording configuration."
                              },
                              "resetAt": {
                                "description": "Date and time the website analytics were last reset.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "teamId": {
                                "description": "ID of the associated team.",
                                "type": "string"
                              },
                              "updatedAt": {
                                "description": "Date and time the record was last updated.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "userId": {
                                "description": "ID of the associated user.",
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "userId",
                              "createdAt",
                              "updatedAt",
                              "deletedAt",
                              "createdBy",
                              "name",
                              "domain",
                              "resetAt",
                              "teamId",
                              "recorderEnabled",
                              "replayConfig"
                            ],
                            "type": "object"
                          },
                          {
                            "properties": {
                              "createUser": {
                                "description": "User who created the resource.",
                                "properties": {
                                  "id": {
                                    "description": "Unique identifier of the resource.",
                                    "type": "string"
                                  },
                                  "username": {
                                    "description": "Username of the account.",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "username"
                                ],
                                "type": "object"
                              },
                              "shareId": {
                                "description": "Identifier used to access a shared resource.",
                                "type": "string"
                              },
                              "team": {
                                "description": "Team associated with the resource.",
                                "properties": {
                                  "members": {
                                    "description": "Members of the team.",
                                    "items": {
                                      "properties": {
                                        "role": {
                                          "description": "Permission role assigned to the user.",
                                          "type": "string"
                                        },
                                        "userId": {
                                          "description": "ID of the associated user.",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "userId",
                                        "role"
                                      ],
                                      "type": "object"
                                    },
                                    "type": "array"
                                  }
                                },
                                "required": [
                                  "members"
                                ],
                                "type": "object"
                              },
                              "user": {
                                "description": "User associated with the resource.",
                                "properties": {
                                  "id": {
                                    "description": "Unique identifier of the resource.",
                                    "type": "string"
                                  },
                                  "username": {
                                    "description": "Username of the account.",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "username"
                                ],
                                "type": "object"
                              }
                            },
                            "required": [
                              "shareId"
                            ],
                            "type": "object"
                          }
                        ]
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List my websites",
        "tags": [
          "Account"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/me/websites/contract.generated.ts"
      }
    },
    "/api/pixels": {
      "get": {
        "description": "Returns a paginated list of the current user's tracking pixels, with search and sorting options.",
        "operationId": "getPixels",
        "parameters": [
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Field to sort the results by.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether to sort results in descending order.",
            "in": "query",
            "name": "sortDescending",
            "required": false,
            "schema": {
              "enum": [
                "true",
                "false"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "properties": {
                          "createdAt": {
                            "description": "Date and time the record was created.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "deletedAt": {
                            "description": "Date and time the record was deleted, if applicable.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "slug": {
                            "description": "URL slug used to access the resource.",
                            "type": "string"
                          },
                          "teamId": {
                            "description": "ID of the associated team.",
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "Date and time the record was last updated.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "userId": {
                            "description": "ID of the associated user.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "userId",
                          "createdAt",
                          "updatedAt",
                          "deletedAt",
                          "name",
                          "teamId",
                          "slug"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List my tracking pixels",
        "tags": [
          "Pixels"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/pixels/contract.generated.ts"
      },
      "post": {
        "description": "Creates a tracking pixel with a name and slug, optionally assigned to a team.",
        "operationId": "createPixel",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "anyOf": [
                      {
                        "format": "uuid",
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Unique identifier of the resource."
                  },
                  "name": {
                    "description": "Display name of the resource.",
                    "maxLength": 100,
                    "type": "string"
                  },
                  "slug": {
                    "description": "URL slug used to access the resource.",
                    "maxLength": 100,
                    "minLength": 8,
                    "type": "string"
                  },
                  "teamId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "ID of the associated team."
                  }
                },
                "required": [
                  "name",
                  "slug"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "deletedAt": {
                      "description": "Date and time the record was deleted, if applicable.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Display name of the resource.",
                      "type": "string"
                    },
                    "slug": {
                      "description": "URL slug used to access the resource.",
                      "type": "string"
                    },
                    "teamId": {
                      "description": "ID of the associated team.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "userId": {
                      "description": "ID of the associated user.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "userId",
                    "createdAt",
                    "updatedAt",
                    "deletedAt",
                    "name",
                    "teamId",
                    "slug"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a tracking pixel",
        "tags": [
          "Pixels"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/pixels/contract.generated.ts"
      }
    },
    "/api/pixels/{pixelId}": {
      "delete": {
        "description": "Deletes the specified tracking pixel after checking the caller's permission to remove it.",
        "operationId": "deletePixel",
        "parameters": [
          {
            "description": "ID of the tracking pixel.",
            "in": "path",
            "name": "pixelId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "const": true,
                      "description": "Whether the operation succeeded."
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete a tracking pixel",
        "tags": [
          "Pixels"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/pixels/[pixelId]/contract.generated.ts"
      },
      "get": {
        "description": "Returns the specified tracking pixel and its configuration.",
        "operationId": "getPixel",
        "parameters": [
          {
            "description": "ID of the tracking pixel.",
            "in": "path",
            "name": "pixelId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "deletedAt": {
                      "description": "Date and time the record was deleted, if applicable.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Display name of the resource.",
                      "type": "string"
                    },
                    "slug": {
                      "description": "URL slug used to access the resource.",
                      "type": "string"
                    },
                    "teamId": {
                      "description": "ID of the associated team.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "userId": {
                      "description": "ID of the associated user.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "userId",
                    "createdAt",
                    "updatedAt",
                    "deletedAt",
                    "name",
                    "teamId",
                    "slug"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get a tracking pixel",
        "tags": [
          "Pixels"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/pixels/[pixelId]/contract.generated.ts"
      },
      "post": {
        "description": "Updates a tracking pixel's name or slug.",
        "operationId": "updatePixel",
        "parameters": [
          {
            "description": "ID of the tracking pixel.",
            "in": "path",
            "name": "pixelId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "name": {
                    "description": "Display name of the resource.",
                    "maxLength": 100,
                    "type": "string"
                  },
                  "slug": {
                    "description": "URL slug used to access the resource.",
                    "maxLength": 100,
                    "minLength": 8,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "deletedAt": {
                      "description": "Date and time the record was deleted, if applicable.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Display name of the resource.",
                      "type": "string"
                    },
                    "slug": {
                      "description": "URL slug used to access the resource.",
                      "type": "string"
                    },
                    "teamId": {
                      "description": "ID of the associated team.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "userId": {
                      "description": "ID of the associated user.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "userId",
                    "createdAt",
                    "updatedAt",
                    "deletedAt",
                    "name",
                    "teamId",
                    "slug"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "500": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "server-error",
                    "message": "Server error.",
                    "status": 500
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Server error."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update a tracking pixel",
        "tags": [
          "Pixels"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/pixels/[pixelId]/contract.generated.ts"
      }
    },
    "/api/pixels/{pixelId}/shares": {
      "get": {
        "description": "Returns a paginated list of shares for the specified tracking pixel.",
        "operationId": "getPixelShares",
        "parameters": [
          {
            "description": "ID of the tracking pixel.",
            "in": "path",
            "name": "pixelId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "properties": {
                          "createdAt": {
                            "description": "Date and time the record was created.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "entityId": {
                            "description": "ID of the resource being shared.",
                            "type": "string"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "parameters": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {
                                "additionalProperties": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "const": false
                                    },
                                    {
                                      "const": true
                                    },
                                    {},
                                    {
                                      "properties": {
                                        "length": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "length"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "properties": {},
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ],
                            "description": "Configuration parameters for the resource."
                          },
                          "shareType": {
                            "description": "Type of resource made available by the share.",
                            "type": "number"
                          },
                          "slug": {
                            "description": "URL slug used to access the resource.",
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "Date and time the record was last updated.",
                            "format": "date-time",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "createdAt",
                          "updatedAt",
                          "name",
                          "slug",
                          "parameters",
                          "entityId",
                          "shareType"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List shares for a tracking pixel",
        "tags": [
          "Pixels"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/pixels/[pixelId]/shares/contract.generated.ts"
      },
      "post": {
        "description": "Creates a named share for the specified tracking pixel with optional parameters.",
        "operationId": "createPixelShare",
        "parameters": [
          {
            "description": "ID of the tracking pixel.",
            "in": "path",
            "name": "pixelId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "name": {
                    "description": "Display name of the resource.",
                    "maxLength": 200,
                    "type": "string"
                  },
                  "parameters": {
                    "additionalProperties": true,
                    "description": "Configuration parameters for the resource.",
                    "type": "object"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "entityId": {
                      "description": "ID of the resource being shared.",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Display name of the resource.",
                      "type": "string"
                    },
                    "parameters": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "const": false
                        },
                        {
                          "const": true
                        },
                        {
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {},
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ]
                          },
                          "properties": {},
                          "type": "object"
                        },
                        {
                          "properties": {
                            "length": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "length"
                          ],
                          "type": "object"
                        }
                      ],
                      "description": "Configuration parameters for the resource."
                    },
                    "shareType": {
                      "description": "Type of resource made available by the share.",
                      "type": "number"
                    },
                    "slug": {
                      "description": "URL slug used to access the resource.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "name",
                    "slug",
                    "parameters",
                    "entityId",
                    "shareType"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a share for a tracking pixel",
        "tags": [
          "Pixels"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/pixels/[pixelId]/shares/contract.generated.ts"
      }
    },
    "/api/pixels/charts": {
      "get": {
        "description": "Returns visitor totals and chart data for the requested pixels the caller can view, within the selected date range.",
        "operationId": "getPixelsCharts",
        "parameters": [
          {
            "description": "Comma-separated resource IDs. Provide between 1 and 20 IDs.",
            "in": "query",
            "name": "ids",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "additionalProperties": {
                        "properties": {
                          "total": {
                            "type": "number"
                          },
                          "values": {
                            "items": {
                              "type": "number"
                            },
                            "type": "array"
                          }
                        },
                        "required": [
                          "values",
                          "total"
                        ],
                        "type": "object"
                      },
                      "description": "Data returned by the operation.",
                      "properties": {},
                      "type": "object"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get visitor charts for tracking pixels",
        "tags": [
          "Pixels"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/pixels/charts/contract.generated.ts"
      }
    },
    "/api/realtime/{websiteId}": {
      "get": {
        "description": "Returns recent website activity and visitor data for the real-time view, applying the supplied filters.",
        "operationId": "getRealtime",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "countries": {
                      "additionalProperties": {
                        "type": "number"
                      },
                      "properties": {},
                      "type": "object"
                    },
                    "events": {
                      "items": {
                        "properties": {
                          "__type": {
                            "anyOf": [
                              {
                                "const": "event"
                              },
                              {
                                "const": "session"
                              },
                              {
                                "const": "pageview"
                              }
                            ]
                          },
                          "browser": {
                            "description": "Browser used by the visitor.",
                            "type": "string"
                          },
                          "country": {
                            "description": "Country code of the visitor.",
                            "type": "string"
                          },
                          "createdAt": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "format": "date-time",
                                "type": "string"
                              }
                            ],
                            "description": "Date and time the record was created."
                          },
                          "device": {
                            "description": "Device category used by the visitor.",
                            "type": "string"
                          },
                          "eventName": {
                            "description": "Name of the custom event.",
                            "type": "string"
                          },
                          "hostname": {
                            "description": "Hostname on which the activity occurred.",
                            "type": "string"
                          },
                          "os": {
                            "description": "Operating system used by the visitor.",
                            "type": "string"
                          },
                          "referrerDomain": {
                            "description": "Domain of the referring page.",
                            "type": "string"
                          },
                          "sessionId": {
                            "description": "ID of the visitor session.",
                            "type": "string"
                          },
                          "urlPath": {
                            "description": "Path portion of the page URL.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "__type",
                          "sessionId",
                          "eventName",
                          "createdAt",
                          "browser",
                          "os",
                          "device",
                          "country",
                          "urlPath",
                          "referrerDomain",
                          "hostname"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "referrers": {
                      "additionalProperties": {
                        "type": "number"
                      },
                      "properties": {},
                      "type": "object"
                    },
                    "series": {
                      "properties": {
                        "views": {
                          "description": "Pageview counts for the selected period.",
                          "items": {
                            "properties": {
                              "t": {
                                "type": "string"
                              },
                              "x": {
                                "type": "string"
                              },
                              "y": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "x",
                              "t",
                              "y"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "visitors": {
                          "description": "Unique visitor counts for the selected period.",
                          "items": {
                            "properties": {
                              "t": {
                                "type": "string"
                              },
                              "x": {
                                "type": "string"
                              },
                              "y": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "x",
                              "t",
                              "y"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "views",
                        "visitors"
                      ],
                      "type": "object"
                    },
                    "timestamp": {
                      "type": "number"
                    },
                    "totals": {
                      "properties": {
                        "countries": {
                          "type": "number"
                        },
                        "events": {
                          "type": "number"
                        },
                        "views": {
                          "description": "Pageview counts for the selected period.",
                          "type": "number"
                        },
                        "visitors": {
                          "description": "Unique visitor counts for the selected period.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "views",
                        "visitors",
                        "events",
                        "countries"
                      ],
                      "type": "object"
                    },
                    "urls": {
                      "additionalProperties": {
                        "type": "number"
                      },
                      "properties": {},
                      "type": "object"
                    }
                  },
                  "required": [
                    "countries",
                    "events",
                    "referrers",
                    "timestamp",
                    "series",
                    "totals",
                    "urls"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get real-time website activity",
        "tags": [
          "Realtime"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/realtime/[websiteId]/contract.generated.ts"
      }
    },
    "/api/record": {
      "post": {
        "description": "Stores session replay events or heatmap clicks and scrolls for a website, using a valid tracking cache token to identify the session and visit.",
        "operationId": "record",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "properties": {
                      "payload": {
                        "properties": {
                          "events": {
                            "items": {},
                            "maxItems": 200,
                            "type": "array"
                          },
                          "timestamp": {
                            "maximum": 2147483647,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "website": {
                            "format": "uuid",
                            "type": "string"
                          }
                        },
                        "required": [
                          "website",
                          "events"
                        ],
                        "type": "object"
                      },
                      "type": {
                        "const": "record"
                      }
                    },
                    "required": [
                      "type",
                      "payload"
                    ],
                    "type": "object"
                  },
                  {
                    "properties": {
                      "payload": {
                        "properties": {
                          "events": {
                            "items": {
                              "anyOf": [
                                {
                                  "properties": {
                                    "pageH": {
                                      "description": "Page height in pixels.",
                                      "type": "number"
                                    },
                                    "pageW": {
                                      "description": "Page width in pixels.",
                                      "type": "number"
                                    },
                                    "pageX": {
                                      "description": "Horizontal position on the page in pixels.",
                                      "type": "number"
                                    },
                                    "pageY": {
                                      "description": "Vertical position on the page in pixels.",
                                      "type": "number"
                                    },
                                    "timestamp": {
                                      "type": "integer"
                                    },
                                    "type": {
                                      "const": "click"
                                    },
                                    "url": {
                                      "description": "URL associated with the resource.",
                                      "type": "string"
                                    },
                                    "viewportH": {
                                      "description": "Viewport height in pixels.",
                                      "type": "number"
                                    },
                                    "viewportW": {
                                      "description": "Viewport width in pixels.",
                                      "type": "number"
                                    },
                                    "x": {
                                      "type": "number"
                                    },
                                    "y": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "url"
                                  ],
                                  "type": "object"
                                },
                                {
                                  "properties": {
                                    "pageH": {
                                      "description": "Page height in pixels.",
                                      "type": "number"
                                    },
                                    "pageW": {
                                      "description": "Page width in pixels.",
                                      "type": "number"
                                    },
                                    "scrollPct": {
                                      "type": "number"
                                    },
                                    "timestamp": {
                                      "type": "integer"
                                    },
                                    "type": {
                                      "const": "scroll"
                                    },
                                    "url": {
                                      "description": "URL associated with the resource.",
                                      "type": "string"
                                    },
                                    "viewportH": {
                                      "description": "Viewport height in pixels.",
                                      "type": "number"
                                    },
                                    "viewportW": {
                                      "description": "Viewport width in pixels.",
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "url"
                                  ],
                                  "type": "object"
                                }
                              ]
                            },
                            "maxItems": 200,
                            "type": "array"
                          },
                          "timestamp": {
                            "maximum": 2147483647,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "website": {
                            "format": "uuid",
                            "type": "string"
                          }
                        },
                        "required": [
                          "website",
                          "events"
                        ],
                        "type": "object"
                      },
                      "type": {
                        "const": "heatmap"
                      }
                    },
                    "required": [
                      "type",
                      "payload"
                    ],
                    "type": "object"
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "ok": {
                          "description": "Whether the operation succeeded.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "ok": {
                          "description": "Whether the operation succeeded.",
                          "type": "boolean"
                        },
                        "reason": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "ok",
                        "reason"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "beep": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "beep"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "403": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "forbidden",
                    "message": "Forbidden.",
                    "status": 403
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Forbidden."
          },
          "413": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "payload-too-large",
                    "message": "Payload too large.",
                    "status": 413
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Payload too large."
          },
          "500": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "server-error",
                    "message": "Server error.",
                    "status": 500
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Server error."
          }
        },
        "security": [],
        "summary": "Send session recordings or heatmap data",
        "tags": [
          "Collection"
        ],
        "x-umami-audience": "collect",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/record/contract.generated.ts"
      }
    },
    "/api/scripts/telemetry": {
      "get": {
        "description": "Returns JavaScript that sends the application version through a telemetry pixel, or an inactive script when telemetry is disabled.",
        "operationId": "getScriptsTelemetry",
        "responses": {
          "200": {
            "content": {
              "text/javascript": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "Successful response. The response shape is inferred as free-form because the handler does not expose a reusable response schema."
          }
        },
        "security": [],
        "summary": "Get the installation telemetry script",
        "tags": [
          "Scripts"
        ],
        "x-umami-audience": "internal",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/scripts/telemetry/contract.generated.ts"
      }
    },
    "/api/send": {
      "post": {
        "description": "Collects a pageview, custom event, visitor identification, or performance payload and returns session information and a tracking cache token when accepted.",
        "operationId": "send",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "properties": {
                      "payload": {
                        "properties": {
                          "environment": {
                            "default": "production",
                            "maxLength": 50,
                            "type": "string"
                          },
                          "eventId": {
                            "description": "ID of the event.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "fingerprint": {
                            "items": {
                              "maxLength": 200,
                              "minLength": 1,
                              "type": "string"
                            },
                            "maxItems": 5,
                            "minItems": 1,
                            "type": "array"
                          },
                          "handled": {
                            "default": false,
                            "type": "boolean"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "maxLength": 50,
                            "type": "string"
                          },
                          "language": {
                            "description": "Preferred language reported by the visitor browser.",
                            "maxLength": 35,
                            "type": "string"
                          },
                          "message": {
                            "description": "Human-readable explanation of the result.",
                            "maxLength": 2000,
                            "type": "string"
                          },
                          "name": {
                            "description": "Display name of the resource.",
                            "maxLength": 200,
                            "minLength": 1,
                            "type": "string"
                          },
                          "release": {
                            "default": "",
                            "maxLength": 100,
                            "type": "string"
                          },
                          "salt": {
                            "maxLength": 100,
                            "type": "string"
                          },
                          "screen": {
                            "description": "Screen resolution of the visitor device.",
                            "maxLength": 11,
                            "type": "string"
                          },
                          "stack": {
                            "default": "",
                            "maxLength": 16000,
                            "type": "string"
                          },
                          "tags": {
                            "additionalProperties": {
                              "maxLength": 200,
                              "type": "string"
                            },
                            "default": {},
                            "propertyNames": {
                              "maxLength": 50,
                              "type": "string"
                            },
                            "type": "object"
                          },
                          "timestamp": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          },
                          "url": {
                            "description": "URL associated with the resource.",
                            "maxLength": 2000,
                            "type": "string"
                          },
                          "version": {
                            "const": 1,
                            "type": "number"
                          },
                          "website": {
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          }
                        },
                        "required": [
                          "version",
                          "website",
                          "eventId",
                          "timestamp",
                          "name",
                          "message",
                          "url"
                        ],
                        "type": "object"
                      },
                      "type": {
                        "const": "error",
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "payload"
                    ],
                    "type": "object"
                  },
                  {
                    "properties": {
                      "payload": {
                        "properties": {
                          "browser": {
                            "description": "Browser used by the visitor.",
                            "type": "string"
                          },
                          "cls": {
                            "maximum": 100,
                            "minimum": 0,
                            "type": "number"
                          },
                          "data": {
                            "additionalProperties": {},
                            "description": "Data returned by the operation.",
                            "propertyNames": {
                              "type": "string"
                            },
                            "type": "object"
                          },
                          "device": {
                            "description": "Device category used by the visitor.",
                            "type": "string"
                          },
                          "fcp": {
                            "maximum": 60000,
                            "minimum": 0,
                            "type": "number"
                          },
                          "hostname": {
                            "description": "Hostname on which the activity occurred.",
                            "type": "string"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "inp": {
                            "maximum": 60000,
                            "minimum": 0,
                            "type": "number"
                          },
                          "ip": {
                            "type": "string"
                          },
                          "language": {
                            "description": "Preferred language reported by the visitor browser.",
                            "type": "string"
                          },
                          "lcp": {
                            "maximum": 60000,
                            "minimum": 0,
                            "type": "number"
                          },
                          "link": {
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "os": {
                            "description": "Operating system used by the visitor.",
                            "type": "string"
                          },
                          "pixel": {
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "referrer": {
                            "description": "URL of the referring page.",
                            "type": "string"
                          },
                          "salt": {
                            "maxLength": 100,
                            "type": "string"
                          },
                          "screen": {
                            "description": "Screen resolution of the visitor device.",
                            "type": "string"
                          },
                          "tag": {
                            "description": "Tag attached to the tracked activity.",
                            "type": "string"
                          },
                          "timestamp": {
                            "maximum": 2147483647,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "title": {
                            "description": "Title of the page.",
                            "type": "string"
                          },
                          "ttfb": {
                            "maximum": 60000,
                            "minimum": 0,
                            "type": "number"
                          },
                          "url": {
                            "description": "URL associated with the resource.",
                            "type": "string"
                          },
                          "userAgent": {
                            "type": "string"
                          },
                          "website": {
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "type": {
                        "enum": [
                          "event",
                          "identify",
                          "performance"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "payload"
                    ],
                    "type": "object"
                  }
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "beep": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "beep"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "cache": {
                          "type": "string"
                        },
                        "sessionId": {
                          "description": "ID of the visitor session.",
                          "type": "string"
                        },
                        "visitId": {
                          "description": "ID of the visit.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "cache",
                        "sessionId",
                        "visitId"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "cache": {
                          "type": "string"
                        },
                        "eventId": {
                          "description": "ID of the event.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "issueId": {
                          "description": "ID of the error issue.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "ok": {
                          "const": true,
                          "description": "Whether the operation succeeded.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ok",
                        "eventId",
                        "issueId",
                        "cache"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "ok": {
                          "const": false,
                          "description": "Whether the operation succeeded.",
                          "type": "boolean"
                        },
                        "reason": {
                          "enum": [
                            "bot"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "ok",
                        "reason"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Invalid collection payload or session token."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Collection blocked."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Error payload exceeds 48,000 bytes."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Website error collection quota exceeded.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "def": {
                    "type": "string"
                  },
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Collection failed. Retry errors with the same occurrence ID."
          }
        },
        "security": [],
        "summary": "Send tracking data",
        "tags": [
          "Collection"
        ],
        "x-umami-audience": "collect",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/send/contract.ts"
      }
    },
    "/api/share": {
      "post": {
        "description": "Creates a named share for a website, board, link, or pixel with parameters and an optional custom slug.",
        "operationId": "createShare",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "entityId": {
                    "description": "ID of the resource being shared.",
                    "format": "uuid",
                    "type": "string"
                  },
                  "name": {
                    "description": "Display name of the resource.",
                    "maxLength": 200,
                    "type": "string"
                  },
                  "parameters": {
                    "additionalProperties": true,
                    "description": "Configuration parameters for the resource.",
                    "type": "object"
                  },
                  "shareType": {
                    "description": "Type of resource made available by the share.",
                    "type": "integer"
                  },
                  "slug": {
                    "description": "URL slug used to access the resource.",
                    "maxLength": 100,
                    "type": "string"
                  }
                },
                "required": [
                  "entityId",
                  "shareType",
                  "name",
                  "parameters"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "entityId": {
                      "description": "ID of the resource being shared.",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Display name of the resource.",
                      "type": "string"
                    },
                    "parameters": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "const": false
                        },
                        {
                          "const": true
                        },
                        {
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {},
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ]
                          },
                          "properties": {},
                          "type": "object"
                        },
                        {
                          "properties": {
                            "length": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "length"
                          ],
                          "type": "object"
                        }
                      ],
                      "description": "Configuration parameters for the resource."
                    },
                    "shareType": {
                      "description": "Type of resource made available by the share.",
                      "type": "number"
                    },
                    "slug": {
                      "description": "URL slug used to access the resource.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "name",
                    "slug",
                    "parameters",
                    "entityId",
                    "shareType"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "500": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "server-error",
                    "message": "Server error.",
                    "status": 500
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Server error."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a share",
        "tags": [
          "Shares"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/share/contract.generated.ts"
      }
    },
    "/api/share/{slug}": {
      "get": {
        "description": "Resolves a public share slug and returns its resource references, parameters, and an access token scoped to the shared resources.",
        "operationId": "getShareBySlug",
        "parameters": [
          {
            "description": "URL slug used to access the resource.",
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "properties": {},
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [],
        "summary": "Open a share by its slug",
        "tags": [
          "Shares"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/share/[slug]/contract.generated.ts"
      }
    },
    "/api/share/id/{shareId}": {
      "delete": {
        "description": "Deletes the specified share after checking permission to delete shares for its resource.",
        "operationId": "deleteShare",
        "parameters": [
          {
            "description": "Identifier used to access a shared resource.",
            "in": "path",
            "name": "shareId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "const": true,
                      "description": "Whether the operation succeeded."
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete a share",
        "tags": [
          "Shares"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/share/id/[shareId]/contract.generated.ts"
      },
      "get": {
        "description": "Returns a share's configuration by its ID after checking access to the shared resource.",
        "operationId": "getShare",
        "parameters": [
          {
            "description": "Identifier used to access a shared resource.",
            "in": "path",
            "name": "shareId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "entityId": {
                      "description": "ID of the resource being shared.",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Display name of the resource.",
                      "type": "string"
                    },
                    "parameters": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "const": false
                        },
                        {
                          "const": true
                        },
                        {
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {},
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ]
                          },
                          "properties": {},
                          "type": "object"
                        },
                        {
                          "properties": {
                            "length": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "length"
                          ],
                          "type": "object"
                        }
                      ],
                      "description": "Configuration parameters for the resource."
                    },
                    "shareType": {
                      "description": "Type of resource made available by the share.",
                      "type": "number"
                    },
                    "slug": {
                      "description": "URL slug used to access the resource.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "name",
                    "slug",
                    "parameters",
                    "entityId",
                    "shareType"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get a share",
        "tags": [
          "Shares"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/share/id/[shareId]/contract.generated.ts"
      },
      "post": {
        "description": "Updates the specified share's name, slug, and parameters.",
        "operationId": "updateShare",
        "parameters": [
          {
            "description": "Identifier used to access a shared resource.",
            "in": "path",
            "name": "shareId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "name": {
                    "description": "Display name of the resource.",
                    "maxLength": 200,
                    "type": "string"
                  },
                  "parameters": {
                    "additionalProperties": true,
                    "description": "Configuration parameters for the resource.",
                    "type": "object"
                  },
                  "slug": {
                    "description": "URL slug used to access the resource.",
                    "maxLength": 100,
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "slug",
                  "parameters"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "entityId": {
                      "description": "ID of the resource being shared.",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Display name of the resource.",
                      "type": "string"
                    },
                    "parameters": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "const": false
                        },
                        {
                          "const": true
                        },
                        {
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {},
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ]
                          },
                          "properties": {},
                          "type": "object"
                        },
                        {
                          "properties": {
                            "length": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "length"
                          ],
                          "type": "object"
                        }
                      ],
                      "description": "Configuration parameters for the resource."
                    },
                    "shareType": {
                      "description": "Type of resource made available by the share.",
                      "type": "number"
                    },
                    "slug": {
                      "description": "URL slug used to access the resource.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "name",
                    "slug",
                    "parameters",
                    "entityId",
                    "shareType"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          },
          "500": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "server-error",
                    "message": "Server error.",
                    "status": 500
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Server error."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update a share",
        "tags": [
          "Shares"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/share/id/[shareId]/contract.generated.ts"
      }
    },
    "/api/teams": {
      "get": {
        "description": "Returns a paginated list of teams the current user belongs to, with sorting options.",
        "operationId": "getTeams",
        "parameters": [
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Field to sort the results by.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether to sort results in descending order.",
            "in": "query",
            "name": "sortDescending",
            "required": false,
            "schema": {
              "enum": [
                "true",
                "false"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "allOf": [
                          {
                            "properties": {
                              "createdAt": {
                                "description": "Date and time the record was created.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "deletedAt": {
                                "description": "Date and time the record was deleted, if applicable.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "id": {
                                "description": "Unique identifier of the resource.",
                                "type": "string"
                              },
                              "logoUrl": {
                                "description": "URL of the logo image.",
                                "type": "string"
                              },
                              "name": {
                                "description": "Display name of the resource.",
                                "type": "string"
                              },
                              "twoFactorRequired": {
                                "description": "Whether two-factor authentication is required.",
                                "type": "boolean"
                              },
                              "updatedAt": {
                                "description": "Date and time the record was last updated.",
                                "format": "date-time",
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "createdAt",
                              "updatedAt",
                              "logoUrl",
                              "twoFactorRequired",
                              "deletedAt",
                              "name"
                            ],
                            "type": "object"
                          },
                          {
                            "properties": {
                              "accessCode": {
                                "description": "Code used to join the team.",
                                "type": "string"
                              }
                            },
                            "type": "object"
                          }
                        ]
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List my teams",
        "tags": [
          "Teams"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/teams/contract.generated.ts"
      },
      "post": {
        "description": "Creates a team with an access code and an owner. Administrators can specify a different user as the owner.",
        "operationId": "createTeam",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "name": {
                    "description": "Display name of the resource.",
                    "maxLength": 50,
                    "type": "string"
                  },
                  "ownerId": {
                    "format": "uuid",
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "maxItems": 2,
                  "minItems": 2,
                  "prefixItems": [
                    {
                      "properties": {
                        "accessCode": {
                          "description": "Code used to join the team.",
                          "type": "string"
                        },
                        "createdAt": {
                          "description": "Date and time the record was created.",
                          "format": "date-time",
                          "type": "string"
                        },
                        "deletedAt": {
                          "description": "Date and time the record was deleted, if applicable.",
                          "format": "date-time",
                          "type": "string"
                        },
                        "id": {
                          "description": "Unique identifier of the resource.",
                          "type": "string"
                        },
                        "logoUrl": {
                          "description": "URL of the logo image.",
                          "type": "string"
                        },
                        "name": {
                          "description": "Display name of the resource.",
                          "type": "string"
                        },
                        "twoFactorRequired": {
                          "description": "Whether two-factor authentication is required.",
                          "type": "boolean"
                        },
                        "updatedAt": {
                          "description": "Date and time the record was last updated.",
                          "format": "date-time",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "createdAt",
                        "updatedAt",
                        "logoUrl",
                        "twoFactorRequired",
                        "deletedAt",
                        "name",
                        "accessCode"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "createdAt": {
                          "description": "Date and time the record was created.",
                          "format": "date-time",
                          "type": "string"
                        },
                        "id": {
                          "description": "Unique identifier of the resource.",
                          "type": "string"
                        },
                        "role": {
                          "description": "Permission role assigned to the user.",
                          "type": "string"
                        },
                        "teamId": {
                          "description": "ID of the associated team.",
                          "type": "string"
                        },
                        "updatedAt": {
                          "description": "Date and time the record was last updated.",
                          "format": "date-time",
                          "type": "string"
                        },
                        "userId": {
                          "description": "ID of the associated user.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "userId",
                        "createdAt",
                        "updatedAt",
                        "role",
                        "teamId"
                      ],
                      "type": "object"
                    }
                  ],
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a team",
        "tags": [
          "Teams"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/teams/contract.generated.ts"
      }
    },
    "/api/teams/{teamId}": {
      "delete": {
        "description": "Deletes the specified team after checking the caller's permission to remove it.",
        "operationId": "deleteTeam",
        "parameters": [
          {
            "description": "ID of the associated team.",
            "in": "path",
            "name": "teamId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "const": true,
                      "description": "Whether the operation succeeded."
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete a team",
        "tags": [
          "Teams"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/teams/[teamId]/contract.generated.ts"
      },
      "get": {
        "description": "Returns the specified team's details, including its members.",
        "operationId": "getTeam",
        "parameters": [
          {
            "description": "ID of the associated team.",
            "in": "path",
            "name": "teamId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "createdAt": {
                          "description": "Date and time the record was created.",
                          "format": "date-time",
                          "type": "string"
                        },
                        "deletedAt": {
                          "description": "Date and time the record was deleted, if applicable.",
                          "format": "date-time",
                          "type": "string"
                        },
                        "id": {
                          "description": "Unique identifier of the resource.",
                          "type": "string"
                        },
                        "logoUrl": {
                          "description": "URL of the logo image.",
                          "type": "string"
                        },
                        "name": {
                          "description": "Display name of the resource.",
                          "type": "string"
                        },
                        "twoFactorRequired": {
                          "description": "Whether two-factor authentication is required.",
                          "type": "boolean"
                        },
                        "updatedAt": {
                          "description": "Date and time the record was last updated.",
                          "format": "date-time",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "createdAt",
                        "updatedAt",
                        "logoUrl",
                        "twoFactorRequired",
                        "deletedAt",
                        "name"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "accessCode": {
                          "description": "Code used to join the team.",
                          "type": "string"
                        },
                        "createdAt": {
                          "description": "Date and time the record was created.",
                          "format": "date-time",
                          "type": "string"
                        },
                        "deletedAt": {
                          "description": "Date and time the record was deleted, if applicable.",
                          "format": "date-time",
                          "type": "string"
                        },
                        "id": {
                          "description": "Unique identifier of the resource.",
                          "type": "string"
                        },
                        "logoUrl": {
                          "description": "URL of the logo image.",
                          "type": "string"
                        },
                        "name": {
                          "description": "Display name of the resource.",
                          "type": "string"
                        },
                        "twoFactorRequired": {
                          "description": "Whether two-factor authentication is required.",
                          "type": "boolean"
                        },
                        "updatedAt": {
                          "description": "Date and time the record was last updated.",
                          "format": "date-time",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "createdAt",
                        "updatedAt",
                        "logoUrl",
                        "twoFactorRequired",
                        "deletedAt",
                        "name",
                        "accessCode"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get a team",
        "tags": [
          "Teams"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/teams/[teamId]/contract.generated.ts"
      },
      "post": {
        "description": "Updates the specified team's name or access code.",
        "operationId": "updateTeam",
        "parameters": [
          {
            "description": "ID of the associated team.",
            "in": "path",
            "name": "teamId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "accessCode": {
                    "description": "Code used to join the team.",
                    "maxLength": 50,
                    "type": "string"
                  },
                  "name": {
                    "description": "Display name of the resource.",
                    "maxLength": 50,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "accessCode": {
                      "description": "Code used to join the team.",
                      "type": "string"
                    },
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "deletedAt": {
                      "description": "Date and time the record was deleted, if applicable.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "logoUrl": {
                      "description": "URL of the logo image.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Display name of the resource.",
                      "type": "string"
                    },
                    "twoFactorRequired": {
                      "description": "Whether two-factor authentication is required.",
                      "type": "boolean"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "logoUrl",
                    "twoFactorRequired",
                    "deletedAt",
                    "name",
                    "accessCode"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update a team",
        "tags": [
          "Teams"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/teams/[teamId]/contract.generated.ts"
      }
    },
    "/api/teams/{teamId}/boards": {
      "get": {
        "description": "Returns a paginated list of boards belonging to the specified team, with search and sorting options.",
        "operationId": "getTeamBoards",
        "parameters": [
          {
            "description": "ID of the associated team.",
            "in": "path",
            "name": "teamId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Field to sort the results by.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether to sort results in descending order.",
            "in": "query",
            "name": "sortDescending",
            "required": false,
            "schema": {
              "enum": [
                "true",
                "false"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "properties": {
                          "createdAt": {
                            "description": "Date and time the record was created.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "description": {
                            "description": "Description of the resource.",
                            "type": "string"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "parameters": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {
                                "additionalProperties": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "const": false
                                    },
                                    {
                                      "const": true
                                    },
                                    {},
                                    {
                                      "properties": {
                                        "length": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "length"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "properties": {},
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ],
                            "description": "Configuration parameters for the resource."
                          },
                          "teamId": {
                            "description": "ID of the associated team.",
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "Date and time the record was last updated.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "userId": {
                            "description": "ID of the associated user.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "userId",
                          "createdAt",
                          "updatedAt",
                          "name",
                          "teamId",
                          "type",
                          "description",
                          "parameters"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List a team's boards",
        "tags": [
          "Teams"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/teams/[teamId]/boards/contract.generated.ts"
      }
    },
    "/api/teams/{teamId}/links": {
      "get": {
        "description": "Returns a paginated list of tracked links belonging to the specified team, with search and sorting options.",
        "operationId": "getTeamLinks",
        "parameters": [
          {
            "description": "ID of the associated team.",
            "in": "path",
            "name": "teamId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Field to sort the results by.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether to sort results in descending order.",
            "in": "query",
            "name": "sortDescending",
            "required": false,
            "schema": {
              "enum": [
                "true",
                "false"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "properties": {
                          "createdAt": {
                            "description": "Date and time the record was created.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "deletedAt": {
                            "description": "Date and time the record was deleted, if applicable.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "slug": {
                            "description": "URL slug used to access the resource.",
                            "type": "string"
                          },
                          "teamId": {
                            "description": "ID of the associated team.",
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "Date and time the record was last updated.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "url": {
                            "description": "URL associated with the resource.",
                            "type": "string"
                          },
                          "userId": {
                            "description": "ID of the associated user.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "userId",
                          "createdAt",
                          "updatedAt",
                          "deletedAt",
                          "name",
                          "teamId",
                          "url",
                          "slug"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List a team's links",
        "tags": [
          "Teams"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/teams/[teamId]/links/contract.generated.ts"
      }
    },
    "/api/teams/{teamId}/pixels": {
      "get": {
        "description": "Returns a paginated list of tracking pixels belonging to the specified team, with search and sorting options.",
        "operationId": "getTeamPixels",
        "parameters": [
          {
            "description": "ID of the associated team.",
            "in": "path",
            "name": "teamId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Field to sort the results by.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether to sort results in descending order.",
            "in": "query",
            "name": "sortDescending",
            "required": false,
            "schema": {
              "enum": [
                "true",
                "false"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "properties": {
                          "createdAt": {
                            "description": "Date and time the record was created.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "deletedAt": {
                            "description": "Date and time the record was deleted, if applicable.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "slug": {
                            "description": "URL slug used to access the resource.",
                            "type": "string"
                          },
                          "teamId": {
                            "description": "ID of the associated team.",
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "Date and time the record was last updated.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "userId": {
                            "description": "ID of the associated user.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "userId",
                          "createdAt",
                          "updatedAt",
                          "deletedAt",
                          "name",
                          "teamId",
                          "slug"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List a team's tracking pixels",
        "tags": [
          "Teams"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/teams/[teamId]/pixels/contract.generated.ts"
      }
    },
    "/api/teams/{teamId}/users": {
      "get": {
        "description": "Returns a paginated list of members of the specified team, including usernames and membership details.",
        "operationId": "getTeamUsers",
        "parameters": [
          {
            "description": "ID of the associated team.",
            "in": "path",
            "name": "teamId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "allOf": [
                          {
                            "properties": {
                              "createdAt": {
                                "description": "Date and time the record was created.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "id": {
                                "description": "Unique identifier of the resource.",
                                "type": "string"
                              },
                              "role": {
                                "description": "Permission role assigned to the user.",
                                "type": "string"
                              },
                              "teamId": {
                                "description": "ID of the associated team.",
                                "type": "string"
                              },
                              "updatedAt": {
                                "description": "Date and time the record was last updated.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "userId": {
                                "description": "ID of the associated user.",
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "userId",
                              "createdAt",
                              "updatedAt",
                              "role",
                              "teamId"
                            ],
                            "type": "object"
                          },
                          {
                            "properties": {
                              "user": {
                                "description": "User associated with the resource.",
                                "properties": {
                                  "id": {
                                    "description": "Unique identifier of the resource.",
                                    "type": "string"
                                  },
                                  "username": {
                                    "description": "Username of the account.",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "username"
                                ],
                                "type": "object"
                              }
                            },
                            "type": "object"
                          }
                        ]
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List team members",
        "tags": [
          "Teams"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/teams/[teamId]/users/contract.generated.ts"
      },
      "post": {
        "description": "Adds an existing user to the specified team with the supplied team role.",
        "operationId": "createTeamUser",
        "parameters": [
          {
            "description": "ID of the associated team.",
            "in": "path",
            "name": "teamId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "role": {
                    "description": "Permission role assigned to the user.",
                    "enum": [
                      "team-member",
                      "team-view-only",
                      "team-manager"
                    ],
                    "type": "string"
                  },
                  "userId": {
                    "description": "ID of the associated user.",
                    "format": "uuid",
                    "type": "string"
                  }
                },
                "required": [
                  "userId",
                  "role"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "role": {
                      "description": "Permission role assigned to the user.",
                      "type": "string"
                    },
                    "teamId": {
                      "description": "ID of the associated team.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "userId": {
                      "description": "ID of the associated user.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "userId",
                    "createdAt",
                    "updatedAt",
                    "role",
                    "teamId"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Add a team member",
        "tags": [
          "Teams"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/teams/[teamId]/users/contract.generated.ts"
      }
    },
    "/api/teams/{teamId}/users/{userId}": {
      "delete": {
        "description": "Removes a user's membership from the specified team, subject to team role and ownership restrictions.",
        "operationId": "deleteTeamUser",
        "parameters": [
          {
            "description": "ID of the associated team.",
            "in": "path",
            "name": "teamId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of the associated user.",
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "const": true,
                      "description": "Whether the operation succeeded."
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Remove a team member",
        "tags": [
          "Teams"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/teams/[teamId]/users/[userId]/contract.generated.ts"
      },
      "get": {
        "description": "Returns the specified user's membership details for a team.",
        "operationId": "getTeamUser",
        "parameters": [
          {
            "description": "ID of the associated team.",
            "in": "path",
            "name": "teamId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of the associated user.",
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "role": {
                      "description": "Permission role assigned to the user.",
                      "type": "string"
                    },
                    "teamId": {
                      "description": "ID of the associated team.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "userId": {
                      "description": "ID of the associated user.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "userId",
                    "createdAt",
                    "updatedAt",
                    "role",
                    "teamId"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a team member",
        "tags": [
          "Teams"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/teams/[teamId]/users/[userId]/contract.generated.ts"
      },
      "post": {
        "description": "Updates a user's role in the specified team, subject to the caller's role and permissions.",
        "operationId": "updateTeamUser",
        "parameters": [
          {
            "description": "ID of the associated team.",
            "in": "path",
            "name": "teamId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of the associated user.",
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "role": {
                    "description": "Permission role assigned to the user.",
                    "enum": [
                      "team-member",
                      "team-view-only",
                      "team-manager"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "role"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "role": {
                      "description": "Permission role assigned to the user.",
                      "type": "string"
                    },
                    "teamId": {
                      "description": "ID of the associated team.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "userId": {
                      "description": "ID of the associated user.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "userId",
                    "createdAt",
                    "updatedAt",
                    "role",
                    "teamId"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Change a team member's role",
        "tags": [
          "Teams"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/teams/[teamId]/users/[userId]/contract.generated.ts"
      }
    },
    "/api/teams/{teamId}/websites": {
      "get": {
        "description": "Returns a paginated list of websites belonging to the specified team, with search and sorting options.",
        "operationId": "getTeamWebsites",
        "parameters": [
          {
            "description": "ID of the associated team.",
            "in": "path",
            "name": "teamId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Field to sort the results by.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether to sort results in descending order.",
            "in": "query",
            "name": "sortDescending",
            "required": false,
            "schema": {
              "enum": [
                "true",
                "false"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "allOf": [
                          {
                            "properties": {
                              "createdAt": {
                                "description": "Date and time the record was created.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "createdBy": {
                                "description": "ID of the user who created the resource.",
                                "type": "string"
                              },
                              "deletedAt": {
                                "description": "Date and time the record was deleted, if applicable.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "domain": {
                                "description": "Domain name associated with the resource.",
                                "type": "string"
                              },
                              "id": {
                                "description": "Unique identifier of the resource.",
                                "type": "string"
                              },
                              "name": {
                                "description": "Display name of the resource.",
                                "type": "string"
                              },
                              "recorderEnabled": {
                                "description": "Whether recording is enabled for the website.",
                                "type": "boolean"
                              },
                              "replayConfig": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "const": false
                                  },
                                  {
                                    "const": true
                                  },
                                  {
                                    "additionalProperties": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "const": false
                                        },
                                        {
                                          "const": true
                                        },
                                        {},
                                        {
                                          "properties": {
                                            "length": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "length"
                                          ],
                                          "type": "object"
                                        }
                                      ]
                                    },
                                    "properties": {},
                                    "type": "object"
                                  },
                                  {
                                    "properties": {
                                      "length": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "length"
                                    ],
                                    "type": "object"
                                  }
                                ],
                                "description": "Session replay and heatmap recording configuration."
                              },
                              "resetAt": {
                                "description": "Date and time the website analytics were last reset.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "teamId": {
                                "description": "ID of the associated team.",
                                "type": "string"
                              },
                              "updatedAt": {
                                "description": "Date and time the record was last updated.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "userId": {
                                "description": "ID of the associated user.",
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "userId",
                              "createdAt",
                              "updatedAt",
                              "deletedAt",
                              "createdBy",
                              "name",
                              "domain",
                              "resetAt",
                              "teamId",
                              "recorderEnabled",
                              "replayConfig"
                            ],
                            "type": "object"
                          },
                          {
                            "properties": {
                              "createUser": {
                                "description": "User who created the resource.",
                                "properties": {
                                  "id": {
                                    "description": "Unique identifier of the resource.",
                                    "type": "string"
                                  },
                                  "username": {
                                    "description": "Username of the account.",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "username"
                                ],
                                "type": "object"
                              },
                              "shareId": {
                                "description": "Identifier used to access a shared resource.",
                                "type": "string"
                              },
                              "team": {
                                "description": "Team associated with the resource.",
                                "properties": {
                                  "members": {
                                    "description": "Members of the team.",
                                    "items": {
                                      "properties": {
                                        "role": {
                                          "description": "Permission role assigned to the user.",
                                          "type": "string"
                                        },
                                        "userId": {
                                          "description": "ID of the associated user.",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "userId",
                                        "role"
                                      ],
                                      "type": "object"
                                    },
                                    "type": "array"
                                  }
                                },
                                "required": [
                                  "members"
                                ],
                                "type": "object"
                              },
                              "user": {
                                "description": "User associated with the resource.",
                                "properties": {
                                  "id": {
                                    "description": "Unique identifier of the resource.",
                                    "type": "string"
                                  },
                                  "username": {
                                    "description": "Username of the account.",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "username"
                                ],
                                "type": "object"
                              }
                            },
                            "required": [
                              "shareId"
                            ],
                            "type": "object"
                          }
                        ]
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List a team's websites",
        "tags": [
          "Teams"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/teams/[teamId]/websites/contract.generated.ts"
      }
    },
    "/api/teams/join": {
      "post": {
        "description": "Adds the current user to a team as a member using the team's access code.",
        "operationId": "joinTeam",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "accessCode": {
                    "description": "Code used to join the team.",
                    "maxLength": 50,
                    "type": "string"
                  }
                },
                "required": [
                  "accessCode"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "role": {
                      "description": "Permission role assigned to the user.",
                      "type": "string"
                    },
                    "teamId": {
                      "description": "ID of the associated team.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "userId": {
                      "description": "ID of the associated user.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "userId",
                    "createdAt",
                    "updatedAt",
                    "role",
                    "teamId"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Join a team",
        "tags": [
          "Teams"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/teams/join/contract.generated.ts"
      }
    },
    "/api/users": {
      "post": {
        "description": "Creates a user account with the supplied username, password, and role.",
        "operationId": "createUser",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "description": "Unique identifier of the resource.",
                    "format": "uuid",
                    "type": "string"
                  },
                  "password": {
                    "description": "Password used to authenticate the account.",
                    "maxLength": 255,
                    "minLength": 8,
                    "type": "string"
                  },
                  "role": {
                    "description": "Permission role assigned to the user.",
                    "enum": [
                      "admin",
                      "user",
                      "view-only"
                    ],
                    "type": "string"
                  },
                  "username": {
                    "description": "Username of the account.",
                    "maxLength": 255,
                    "type": "string"
                  }
                },
                "required": [
                  "username",
                  "password",
                  "role"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "role": {
                      "description": "Permission role assigned to the user.",
                      "type": "string"
                    },
                    "username": {
                      "description": "Username of the account.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "username",
                    "role"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a user",
        "tags": [
          "Users"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/users/contract.generated.ts"
      }
    },
    "/api/users/{userId}": {
      "delete": {
        "description": "Deletes the specified user account. The current user cannot delete their own account through this operation.",
        "operationId": "deleteUser",
        "parameters": [
          {
            "description": "ID of the associated user.",
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "const": true,
                      "description": "Whether the operation succeeded."
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete a user",
        "tags": [
          "Users"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/users/[userId]/contract.generated.ts"
      },
      "get": {
        "description": "Returns details for the specified user account when the caller has permission to view it.",
        "operationId": "getUser",
        "parameters": [
          {
            "description": "ID of the associated user.",
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "_count": {
                      "properties": {
                        "apiKeys": {
                          "description": "API keys associated with the user.",
                          "type": "number"
                        },
                        "boards": {
                          "description": "Boards associated with the user.",
                          "type": "number"
                        },
                        "createdBy": {
                          "description": "ID of the user who created the resource.",
                          "type": "number"
                        },
                        "links": {
                          "description": "Tracked links associated with the user.",
                          "type": "number"
                        },
                        "pixels": {
                          "description": "Tracking pixels associated with the user.",
                          "type": "number"
                        },
                        "reports": {
                          "description": "Saved reports associated with the user.",
                          "type": "number"
                        },
                        "teams": {
                          "description": "Teams associated with the user.",
                          "type": "number"
                        },
                        "twoFactorAuth": {
                          "type": "number"
                        },
                        "twoFactorBackupCodes": {
                          "type": "number"
                        },
                        "twoFactorOtpUseds": {
                          "type": "number"
                        },
                        "twoFactorRateLimit": {
                          "type": "number"
                        },
                        "websites": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "websites",
                        "createdBy",
                        "links",
                        "pixels",
                        "teams",
                        "reports",
                        "boards",
                        "twoFactorAuth",
                        "twoFactorBackupCodes",
                        "twoFactorOtpUseds",
                        "twoFactorRateLimit",
                        "apiKeys"
                      ],
                      "type": "object"
                    },
                    "apiKeys": {
                      "description": "API keys associated with the user.",
                      "items": {
                        "properties": {
                          "createdAt": {
                            "description": "Date and time the record was created.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "keyHash": {
                            "type": "string"
                          },
                          "keyPrefix": {
                            "description": "Visible prefix used to identify an API key.",
                            "type": "string"
                          },
                          "lastUsedAt": {
                            "description": "Date and time the credential was last used.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "userId": {
                            "description": "ID of the associated user.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "userId",
                          "createdAt",
                          "name",
                          "keyHash",
                          "keyPrefix",
                          "lastUsedAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "boards": {
                      "description": "Boards associated with the user.",
                      "items": {
                        "properties": {
                          "createdAt": {
                            "description": "Date and time the record was created.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "description": {
                            "description": "Description of the resource.",
                            "type": "string"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "parameters": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {
                                "additionalProperties": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "const": false
                                    },
                                    {
                                      "const": true
                                    },
                                    {},
                                    {
                                      "properties": {
                                        "length": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "length"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "properties": {},
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ],
                            "description": "Configuration parameters for the resource."
                          },
                          "teamId": {
                            "description": "ID of the associated team.",
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "Date and time the record was last updated.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "userId": {
                            "description": "ID of the associated user.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "userId",
                          "createdAt",
                          "updatedAt",
                          "name",
                          "teamId",
                          "type",
                          "description",
                          "parameters"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "createdBy": {
                      "description": "ID of the user who created the resource.",
                      "items": {
                        "properties": {
                          "createdAt": {
                            "description": "Date and time the record was created.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "createdBy": {
                            "description": "ID of the user who created the resource.",
                            "type": "string"
                          },
                          "deletedAt": {
                            "description": "Date and time the record was deleted, if applicable.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "domain": {
                            "description": "Domain name associated with the resource.",
                            "type": "string"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "recorderEnabled": {
                            "description": "Whether recording is enabled for the website.",
                            "type": "boolean"
                          },
                          "replayConfig": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {
                                "additionalProperties": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "const": false
                                    },
                                    {
                                      "const": true
                                    },
                                    {},
                                    {
                                      "properties": {
                                        "length": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "length"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "properties": {},
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ],
                            "description": "Session replay and heatmap recording configuration."
                          },
                          "resetAt": {
                            "description": "Date and time the website analytics were last reset.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "teamId": {
                            "description": "ID of the associated team.",
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "Date and time the record was last updated.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "userId": {
                            "description": "ID of the associated user.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "userId",
                          "createdAt",
                          "updatedAt",
                          "deletedAt",
                          "createdBy",
                          "name",
                          "domain",
                          "resetAt",
                          "teamId",
                          "recorderEnabled",
                          "replayConfig"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "links": {
                      "description": "Tracked links associated with the user.",
                      "items": {
                        "properties": {
                          "createdAt": {
                            "description": "Date and time the record was created.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "deletedAt": {
                            "description": "Date and time the record was deleted, if applicable.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "slug": {
                            "description": "URL slug used to access the resource.",
                            "type": "string"
                          },
                          "teamId": {
                            "description": "ID of the associated team.",
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "Date and time the record was last updated.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "url": {
                            "description": "URL associated with the resource.",
                            "type": "string"
                          },
                          "userId": {
                            "description": "ID of the associated user.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "userId",
                          "createdAt",
                          "updatedAt",
                          "deletedAt",
                          "name",
                          "teamId",
                          "url",
                          "slug"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "password": {
                      "description": "Password used to authenticate the account.",
                      "type": "string"
                    },
                    "pixels": {
                      "description": "Tracking pixels associated with the user.",
                      "items": {
                        "properties": {
                          "createdAt": {
                            "description": "Date and time the record was created.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "deletedAt": {
                            "description": "Date and time the record was deleted, if applicable.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "slug": {
                            "description": "URL slug used to access the resource.",
                            "type": "string"
                          },
                          "teamId": {
                            "description": "ID of the associated team.",
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "Date and time the record was last updated.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "userId": {
                            "description": "ID of the associated user.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "userId",
                          "createdAt",
                          "updatedAt",
                          "deletedAt",
                          "name",
                          "teamId",
                          "slug"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "reports": {
                      "description": "Saved reports associated with the user.",
                      "items": {
                        "properties": {
                          "createdAt": {
                            "description": "Date and time the record was created.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "description": {
                            "description": "Description of the resource.",
                            "type": "string"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "parameters": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {
                                "additionalProperties": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "const": false
                                    },
                                    {
                                      "const": true
                                    },
                                    {},
                                    {
                                      "properties": {
                                        "length": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "length"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "properties": {},
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ],
                            "description": "Configuration parameters for the resource."
                          },
                          "type": {
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "Date and time the record was last updated.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "userId": {
                            "description": "ID of the associated user.",
                            "type": "string"
                          },
                          "websiteId": {
                            "description": "ID of the website.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "userId",
                          "createdAt",
                          "updatedAt",
                          "name",
                          "type",
                          "description",
                          "parameters",
                          "websiteId"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "role": {
                      "description": "Permission role assigned to the user.",
                      "type": "string"
                    },
                    "teams": {
                      "description": "Teams associated with the user.",
                      "items": {
                        "properties": {
                          "createdAt": {
                            "description": "Date and time the record was created.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "role": {
                            "description": "Permission role assigned to the user.",
                            "type": "string"
                          },
                          "teamId": {
                            "description": "ID of the associated team.",
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "Date and time the record was last updated.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "userId": {
                            "description": "ID of the associated user.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "userId",
                          "createdAt",
                          "updatedAt",
                          "role",
                          "teamId"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "twoFactorAuth": {
                      "properties": {
                        "createdAt": {
                          "description": "Date and time the record was created.",
                          "format": "date-time",
                          "type": "string"
                        },
                        "id": {
                          "description": "Unique identifier of the resource.",
                          "type": "string"
                        },
                        "isEnabled": {
                          "description": "Whether two-factor authentication is enabled.",
                          "type": "boolean"
                        },
                        "secret": {
                          "type": "string"
                        },
                        "updatedAt": {
                          "description": "Date and time the record was last updated.",
                          "format": "date-time",
                          "type": "string"
                        },
                        "userId": {
                          "description": "ID of the associated user.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "isEnabled",
                        "id",
                        "userId",
                        "secret",
                        "createdAt",
                        "updatedAt"
                      ],
                      "type": "object"
                    },
                    "twoFactorBackupCodes": {
                      "items": {
                        "properties": {
                          "codeHash": {
                            "type": "string"
                          },
                          "createdAt": {
                            "description": "Date and time the record was created.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "used": {
                            "type": "boolean"
                          },
                          "userId": {
                            "description": "ID of the associated user.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "userId",
                          "createdAt",
                          "codeHash",
                          "used"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "twoFactorOtpUseds": {
                      "items": {
                        "properties": {
                          "expiresAt": {
                            "description": "Date and time the credential expires.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "otp": {
                            "type": "string"
                          },
                          "userId": {
                            "description": "ID of the associated user.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "userId",
                          "otp",
                          "expiresAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "twoFactorRateLimit": {
                      "properties": {
                        "attempts": {
                          "type": "number"
                        },
                        "id": {
                          "description": "Unique identifier of the resource.",
                          "type": "string"
                        },
                        "lockedUntil": {
                          "description": "Time until which further authentication attempts are blocked.",
                          "format": "date-time",
                          "type": "string"
                        },
                        "updatedAt": {
                          "description": "Date and time the record was last updated.",
                          "format": "date-time",
                          "type": "string"
                        },
                        "userId": {
                          "description": "ID of the associated user.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "userId",
                        "updatedAt",
                        "attempts",
                        "lockedUntil"
                      ],
                      "type": "object"
                    },
                    "twoFactorRequired": {
                      "description": "Whether two-factor authentication is required.",
                      "type": "boolean"
                    },
                    "username": {
                      "description": "Username of the account.",
                      "type": "string"
                    },
                    "websites": {
                      "items": {
                        "properties": {
                          "createdAt": {
                            "description": "Date and time the record was created.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "createdBy": {
                            "description": "ID of the user who created the resource.",
                            "type": "string"
                          },
                          "deletedAt": {
                            "description": "Date and time the record was deleted, if applicable.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "domain": {
                            "description": "Domain name associated with the resource.",
                            "type": "string"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "recorderEnabled": {
                            "description": "Whether recording is enabled for the website.",
                            "type": "boolean"
                          },
                          "replayConfig": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {
                                "additionalProperties": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "const": false
                                    },
                                    {
                                      "const": true
                                    },
                                    {},
                                    {
                                      "properties": {
                                        "length": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "length"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "properties": {},
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ],
                            "description": "Session replay and heatmap recording configuration."
                          },
                          "resetAt": {
                            "description": "Date and time the website analytics were last reset.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "teamId": {
                            "description": "ID of the associated team.",
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "Date and time the record was last updated.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "userId": {
                            "description": "ID of the associated user.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "userId",
                          "createdAt",
                          "updatedAt",
                          "deletedAt",
                          "createdBy",
                          "name",
                          "domain",
                          "resetAt",
                          "teamId",
                          "recorderEnabled",
                          "replayConfig"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "twoFactorAuth",
                    "twoFactorRateLimit",
                    "id",
                    "createdAt",
                    "username",
                    "password",
                    "role",
                    "twoFactorRequired",
                    "websites",
                    "createdBy",
                    "links",
                    "pixels",
                    "teams",
                    "reports",
                    "boards",
                    "twoFactorBackupCodes",
                    "twoFactorOtpUseds",
                    "apiKeys",
                    "_count"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get a user",
        "tags": [
          "Users"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/users/[userId]/contract.generated.ts"
      },
      "post": {
        "description": "Updates a user's password. Administrators can also change the username and role.",
        "operationId": "updateUser",
        "parameters": [
          {
            "description": "ID of the associated user.",
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "password": {
                    "description": "Password used to authenticate the account.",
                    "maxLength": 255,
                    "minLength": 8,
                    "type": "string"
                  },
                  "role": {
                    "description": "Permission role assigned to the user.",
                    "enum": [
                      "admin",
                      "user",
                      "view-only"
                    ],
                    "type": "string"
                  },
                  "username": {
                    "description": "Username of the account.",
                    "maxLength": 255,
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "role": {
                      "description": "Permission role assigned to the user.",
                      "type": "string"
                    },
                    "username": {
                      "description": "Username of the account.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "username",
                    "role"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update a user",
        "tags": [
          "Users"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/users/[userId]/contract.generated.ts"
      }
    },
    "/api/users/{userId}/teams": {
      "get": {
        "description": "Returns a paginated list of teams for the specified user. Available to that user and administrators.",
        "operationId": "getUserTeams",
        "parameters": [
          {
            "description": "ID of the associated user.",
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Field to sort the results by.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether to sort results in descending order.",
            "in": "query",
            "name": "sortDescending",
            "required": false,
            "schema": {
              "enum": [
                "true",
                "false"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "allOf": [
                          {
                            "properties": {
                              "createdAt": {
                                "description": "Date and time the record was created.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "deletedAt": {
                                "description": "Date and time the record was deleted, if applicable.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "id": {
                                "description": "Unique identifier of the resource.",
                                "type": "string"
                              },
                              "logoUrl": {
                                "description": "URL of the logo image.",
                                "type": "string"
                              },
                              "name": {
                                "description": "Display name of the resource.",
                                "type": "string"
                              },
                              "twoFactorRequired": {
                                "description": "Whether two-factor authentication is required.",
                                "type": "boolean"
                              },
                              "updatedAt": {
                                "description": "Date and time the record was last updated.",
                                "format": "date-time",
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "createdAt",
                              "updatedAt",
                              "logoUrl",
                              "twoFactorRequired",
                              "deletedAt",
                              "name"
                            ],
                            "type": "object"
                          },
                          {
                            "properties": {
                              "accessCode": {
                                "description": "Code used to join the team.",
                                "type": "string"
                              }
                            },
                            "type": "object"
                          }
                        ]
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List a user's teams",
        "tags": [
          "Users"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/users/[userId]/teams/contract.generated.ts"
      }
    },
    "/api/users/{userId}/websites": {
      "get": {
        "description": "Returns a paginated list of the specified user's websites, optionally including team access. Available to that user and administrators.",
        "operationId": "getUserWebsites",
        "parameters": [
          {
            "description": "ID of the associated user.",
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Field to sort the results by.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether to sort results in descending order.",
            "in": "query",
            "name": "sortDescending",
            "required": false,
            "schema": {
              "enum": [
                "true",
                "false"
              ],
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to include websites accessible through team membership.",
            "in": "query",
            "name": "includeTeams",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "allOf": [
                          {
                            "properties": {
                              "createdAt": {
                                "description": "Date and time the record was created.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "createdBy": {
                                "description": "ID of the user who created the resource.",
                                "type": "string"
                              },
                              "deletedAt": {
                                "description": "Date and time the record was deleted, if applicable.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "domain": {
                                "description": "Domain name associated with the resource.",
                                "type": "string"
                              },
                              "id": {
                                "description": "Unique identifier of the resource.",
                                "type": "string"
                              },
                              "name": {
                                "description": "Display name of the resource.",
                                "type": "string"
                              },
                              "recorderEnabled": {
                                "description": "Whether recording is enabled for the website.",
                                "type": "boolean"
                              },
                              "replayConfig": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "const": false
                                  },
                                  {
                                    "const": true
                                  },
                                  {
                                    "additionalProperties": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "const": false
                                        },
                                        {
                                          "const": true
                                        },
                                        {},
                                        {
                                          "properties": {
                                            "length": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "length"
                                          ],
                                          "type": "object"
                                        }
                                      ]
                                    },
                                    "properties": {},
                                    "type": "object"
                                  },
                                  {
                                    "properties": {
                                      "length": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "length"
                                    ],
                                    "type": "object"
                                  }
                                ],
                                "description": "Session replay and heatmap recording configuration."
                              },
                              "resetAt": {
                                "description": "Date and time the website analytics were last reset.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "teamId": {
                                "description": "ID of the associated team.",
                                "type": "string"
                              },
                              "updatedAt": {
                                "description": "Date and time the record was last updated.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "userId": {
                                "description": "ID of the associated user.",
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "userId",
                              "createdAt",
                              "updatedAt",
                              "deletedAt",
                              "createdBy",
                              "name",
                              "domain",
                              "resetAt",
                              "teamId",
                              "recorderEnabled",
                              "replayConfig"
                            ],
                            "type": "object"
                          },
                          {
                            "properties": {
                              "createUser": {
                                "description": "User who created the resource.",
                                "properties": {
                                  "id": {
                                    "description": "Unique identifier of the resource.",
                                    "type": "string"
                                  },
                                  "username": {
                                    "description": "Username of the account.",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "username"
                                ],
                                "type": "object"
                              },
                              "shareId": {
                                "description": "Identifier used to access a shared resource.",
                                "type": "string"
                              },
                              "team": {
                                "description": "Team associated with the resource.",
                                "properties": {
                                  "members": {
                                    "description": "Members of the team.",
                                    "items": {
                                      "properties": {
                                        "role": {
                                          "description": "Permission role assigned to the user.",
                                          "type": "string"
                                        },
                                        "userId": {
                                          "description": "ID of the associated user.",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "userId",
                                        "role"
                                      ],
                                      "type": "object"
                                    },
                                    "type": "array"
                                  }
                                },
                                "required": [
                                  "members"
                                ],
                                "type": "object"
                              },
                              "user": {
                                "description": "User associated with the resource.",
                                "properties": {
                                  "id": {
                                    "description": "Unique identifier of the resource.",
                                    "type": "string"
                                  },
                                  "username": {
                                    "description": "Username of the account.",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "username"
                                ],
                                "type": "object"
                              }
                            },
                            "required": [
                              "shareId"
                            ],
                            "type": "object"
                          }
                        ]
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List a user's websites",
        "tags": [
          "Users"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/users/[userId]/websites/contract.generated.ts"
      }
    },
    "/api/websites": {
      "get": {
        "description": "Returns a paginated list of the current user's websites, optionally including websites accessible through team membership.",
        "operationId": "listWebsites",
        "parameters": [
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Field to sort the results by.",
            "in": "query",
            "name": "orderBy",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether to sort results in descending order.",
            "in": "query",
            "name": "sortDescending",
            "schema": {
              "enum": [
                "true",
                "false"
              ],
              "type": "string"
            }
          },
          {
            "description": "When present, include websites accessible through team membership.",
            "in": "query",
            "name": "includeTeams",
            "schema": {
              "description": "When present, include websites accessible through team membership.",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebsitePage"
                }
              }
            },
            "description": "A page of websites."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List websites",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/contract.ts"
      },
      "post": {
        "description": "Creates a website with a name and domain, optionally assigning it to a team and creating a share.",
        "operationId": "createWebsite",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWebsiteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Website"
                }
              }
            },
            "description": "Website created."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a website",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/contract.ts"
      }
    },
    "/api/websites/{websiteId}": {
      "delete": {
        "description": "Deletes the specified website after checking the caller's permission to remove it.",
        "operationId": "deleteWebsite",
        "parameters": [
          {
            "description": "Website ID.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "description": "Website ID.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ok"
                }
              }
            },
            "description": "Website deleted."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete a website",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/contract.ts"
      },
      "get": {
        "description": "Returns the specified website's details and configuration.",
        "operationId": "getWebsite",
        "parameters": [
          {
            "description": "Website ID.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "description": "Website ID.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Website"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              }
            },
            "description": "Website details, or null if it does not exist."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get a website",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/contract.ts"
      },
      "post": {
        "description": "Updates a website's name, domain, sharing settings, or recording configuration.",
        "operationId": "updateWebsite",
        "parameters": [
          {
            "description": "Website ID.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "description": "Website ID.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWebsiteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Website"
                }
              }
            },
            "description": "Website updated."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "500": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "server-error",
                    "message": "Server error.",
                    "status": 500
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Server error."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update a website",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/contract.ts"
      }
    },
    "/api/websites/{websiteId}/active": {
      "get": {
        "description": "Returns the number of visitors active on the website in the last few minutes.",
        "operationId": "getWebsiteActive",
        "parameters": [
          {
            "description": "Website ID.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "description": "Website ID.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActiveVisitors"
                }
              }
            },
            "description": "Active visitor count."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get active website visitors",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/active/contract.ts"
      }
    },
    "/api/websites/{websiteId}/annotations": {
      "get": {
        "description": "Returns a paginated list of dated notes for the website, optionally filtered by date range or search text.",
        "operationId": "getWebsiteAnnotations",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "properties": {
                          "allDay": {
                            "description": "Whether the annotation applies to the entire day.",
                            "type": "boolean"
                          },
                          "createdAt": {
                            "description": "Date and time the record was created.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "date": {
                            "format": "date-time",
                            "type": "string"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "note": {
                            "description": "Text of the annotation.",
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "Date and time the record was last updated.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "userId": {
                            "description": "ID of the associated user.",
                            "type": "string"
                          },
                          "websiteId": {
                            "description": "ID of the website.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "userId",
                          "createdAt",
                          "updatedAt",
                          "websiteId",
                          "date",
                          "allDay",
                          "note"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List website annotations",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/annotations/contract.generated.ts"
      },
      "post": {
        "description": "Adds a dated note to the website, optionally marking it as an all-day annotation.",
        "operationId": "createWebsiteAnnotation",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "allDay": {
                    "description": "Whether the annotation applies to the entire day.",
                    "type": "boolean"
                  },
                  "date": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "note": {
                    "description": "Text of the annotation.",
                    "maxLength": 500,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "date",
                  "note"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "allDay": {
                      "description": "Whether the annotation applies to the entire day.",
                      "type": "boolean"
                    },
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "date": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "note": {
                      "description": "Text of the annotation.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "userId": {
                      "description": "ID of the associated user.",
                      "type": "string"
                    },
                    "websiteId": {
                      "description": "ID of the website.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "userId",
                    "createdAt",
                    "updatedAt",
                    "websiteId",
                    "date",
                    "allDay",
                    "note"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a website annotation",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/annotations/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/annotations/{annotationId}": {
      "delete": {
        "description": "Deletes the specified dated note from the website.",
        "operationId": "deleteWebsiteAnnotation",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of the annotation.",
            "in": "path",
            "name": "annotationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "const": true,
                      "description": "Whether the operation succeeded."
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete a website annotation",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/annotations/[annotationId]/contract.generated.ts"
      },
      "get": {
        "description": "Returns the date, all-day setting, and note for a specific website annotation.",
        "operationId": "getWebsiteAnnotation",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of the annotation.",
            "in": "path",
            "name": "annotationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "allDay": {
                      "description": "Whether the annotation applies to the entire day.",
                      "type": "boolean"
                    },
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "date": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "note": {
                      "description": "Text of the annotation.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "userId": {
                      "description": "ID of the associated user.",
                      "type": "string"
                    },
                    "websiteId": {
                      "description": "ID of the website.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "userId",
                    "createdAt",
                    "updatedAt",
                    "websiteId",
                    "date",
                    "allDay",
                    "note"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get a website annotation",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/annotations/[annotationId]/contract.generated.ts"
      },
      "post": {
        "description": "Changes the date, all-day setting, and note for a website annotation.",
        "operationId": "updateWebsiteAnnotation",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of the annotation.",
            "in": "path",
            "name": "annotationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "allDay": {
                    "description": "Whether the annotation applies to the entire day.",
                    "type": "boolean"
                  },
                  "date": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "note": {
                    "description": "Text of the annotation.",
                    "maxLength": 500,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "date",
                  "note"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "allDay": {
                      "description": "Whether the annotation applies to the entire day.",
                      "type": "boolean"
                    },
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "date": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "note": {
                      "description": "Text of the annotation.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "userId": {
                      "description": "ID of the associated user.",
                      "type": "string"
                    },
                    "websiteId": {
                      "description": "ID of the website.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "userId",
                    "createdAt",
                    "updatedAt",
                    "websiteId",
                    "date",
                    "allDay",
                    "note"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update a website annotation",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/annotations/[annotationId]/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/attribution": {
      "get": {
        "description": "Attributes conversions for a page path or custom event to referrers, paid ads, and UTM parameters using a first-click or last-click model.",
        "operationId": "getWebsiteAttribution",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": true,
            "schema": {
              "maximum": 8640000000000000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": true,
            "schema": {
              "maximum": 8640000000000000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "model",
            "required": true,
            "schema": {
              "enum": [
                "first-click",
                "last-click"
              ],
              "type": "string"
            }
          },
          {
            "description": "Type of resource or analytics dimension to return.",
            "in": "query",
            "name": "type",
            "required": true,
            "schema": {
              "enum": [
                "path",
                "event"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "step",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Currency code used for revenue values.",
            "in": "query",
            "name": "currency",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "paidAds": {
                      "items": {
                        "properties": {
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "value": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "referrer": {
                      "description": "URL of the referring page.",
                      "items": {
                        "properties": {
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "value": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "total": {
                      "properties": {
                        "pageviews": {
                          "description": "Pageview counts for the selected period.",
                          "type": "number"
                        },
                        "visitors": {
                          "description": "Unique visitor counts for the selected period.",
                          "type": "number"
                        },
                        "visits": {
                          "description": "Visit counts for the selected period.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "pageviews",
                        "visitors",
                        "visits"
                      ],
                      "type": "object"
                    },
                    "utm_campaign": {
                      "items": {
                        "properties": {
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "value": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "utm_content": {
                      "items": {
                        "properties": {
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "value": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "utm_medium": {
                      "items": {
                        "properties": {
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "value": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "utm_source": {
                      "items": {
                        "properties": {
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "value": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "utm_term": {
                      "items": {
                        "properties": {
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "value": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "referrer",
                    "paidAds",
                    "utm_source",
                    "utm_medium",
                    "utm_campaign",
                    "utm_content",
                    "utm_term",
                    "total"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get website attribution",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/attribution/contract.ts"
      }
    },
    "/api/websites/{websiteId}/breakdown": {
      "get": {
        "description": "Returns pageviews, visitors, visits, bounces, and total time for the website, grouped by the requested fields, over the date range.",
        "operationId": "getWebsiteBreakdown",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": true,
            "schema": {
              "maximum": 8640000000000000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": true,
            "schema": {
              "maximum": 8640000000000000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "fields",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        }
                      ]
                    },
                    "properties": {
                      "bounces": {
                        "description": "Number of visits with only one pageview.",
                        "type": "number"
                      },
                      "totaltime": {
                        "description": "Total visit duration in seconds.",
                        "type": "number"
                      },
                      "views": {
                        "description": "Pageview counts for the selected period.",
                        "type": "number"
                      },
                      "visitors": {
                        "description": "Unique visitor counts for the selected period.",
                        "type": "number"
                      },
                      "visits": {
                        "description": "Visit counts for the selected period.",
                        "type": "number"
                      }
                    },
                    "required": [
                      "views",
                      "visitors",
                      "visits",
                      "bounces",
                      "totaltime"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get website breakdown",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/breakdown/contract.ts"
      }
    },
    "/api/websites/{websiteId}/daterange": {
      "get": {
        "description": "Returns the earliest and latest recorded event dates for the website.",
        "operationId": "getWebsiteDateRange",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "endDate": {
                      "description": "End of the date range as an ISO 8601 date or date-time.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "startDate": {
                      "description": "Start of the date range as an ISO 8601 date or date-time.",
                      "format": "date-time",
                      "type": "string"
                    }
                  },
                  "required": [
                    "startDate",
                    "endDate"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get the website's available date range",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/daterange/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/errors": {
      "get": {
        "description": "Returns a paginated list of error issues for the website, with occurrence and affected visit counts for the selected date range.",
        "operationId": "getWebsiteErrors",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": true,
            "schema": {
              "maximum": 4102444800000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": true,
            "schema": {
              "maximum": 4102444800000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Filter by issue status: `unresolved`, `resolved`, or `ignored`.",
            "in": "query",
            "name": "status",
            "schema": {
              "description": "Filter by issue status: `unresolved`, `resolved`, or `ignored`.",
              "enum": [
                "unresolved",
                "resolved",
                "ignored"
              ],
              "type": "string"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "schema": {
              "maxLength": 200,
              "type": "string"
            }
          },
          {
            "description": "Filter by release, as set with `data-release` or `captureException`.",
            "in": "query",
            "name": "release",
            "schema": {
              "description": "Filter by release, as set with `data-release` or `captureException`.",
              "maxLength": 100,
              "type": "string"
            }
          },
          {
            "description": "Filter by environment, as set with `data-environment` or `captureException`.",
            "in": "query",
            "name": "environment",
            "schema": {
              "description": "Filter by environment, as set with `data-environment` or `captureException`.",
              "maxLength": 50,
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "schema": {
              "maxLength": 50,
              "type": "string"
            }
          },
          {
            "description": "Filter by the page path on which the error occurred.",
            "in": "query",
            "name": "urlPath",
            "schema": {
              "description": "Filter by the page path on which the error occurred.",
              "maxLength": 500,
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "schema": {
              "default": 25,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "createdAt": {
                            "description": "Date and time the record was created.",
                            "type": "string"
                          },
                          "fingerprint": {
                            "type": "string"
                          },
                          "firstSeen": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "groupingVersion": {
                            "type": "number"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "lastSeen": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "occurrences": {
                            "type": "number"
                          },
                          "resolvedAt": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "status": {
                            "enum": [
                              "unresolved",
                              "resolved",
                              "ignored"
                            ],
                            "type": "string"
                          },
                          "title": {
                            "description": "Title of the page.",
                            "type": "string"
                          },
                          "visits": {
                            "description": "Visit counts for the selected period.",
                            "type": "number"
                          },
                          "websiteId": {
                            "description": "ID of the website.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "websiteId",
                          "fingerprint",
                          "groupingVersion",
                          "title",
                          "status",
                          "resolvedAt",
                          "createdAt",
                          "occurrences",
                          "visits",
                          "firstSeen",
                          "lastSeen"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Invalid request."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Authenticated website access required."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Website, issue, or occurrence not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List error issues",
        "tags": [
          "Errors"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/errors/contract.ts"
      }
    },
    "/api/websites/{websiteId}/errors/{issueId}": {
      "get": {
        "description": "Returns an error issue with its status, occurrence counts, and first and last seen times for the selected date range.",
        "operationId": "getWebsiteErrorIssue",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "ID of the error issue.",
            "in": "path",
            "name": "issueId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": true,
            "schema": {
              "maximum": 4102444800000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": true,
            "schema": {
              "maximum": 4102444800000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Filter by issue status: `unresolved`, `resolved`, or `ignored`.",
            "in": "query",
            "name": "status",
            "schema": {
              "description": "Filter by issue status: `unresolved`, `resolved`, or `ignored`.",
              "enum": [
                "unresolved",
                "resolved",
                "ignored"
              ],
              "type": "string"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "schema": {
              "maxLength": 200,
              "type": "string"
            }
          },
          {
            "description": "Filter by release, as set with `data-release` or `captureException`.",
            "in": "query",
            "name": "release",
            "schema": {
              "description": "Filter by release, as set with `data-release` or `captureException`.",
              "maxLength": 100,
              "type": "string"
            }
          },
          {
            "description": "Filter by environment, as set with `data-environment` or `captureException`.",
            "in": "query",
            "name": "environment",
            "schema": {
              "description": "Filter by environment, as set with `data-environment` or `captureException`.",
              "maxLength": 50,
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "schema": {
              "maxLength": 50,
              "type": "string"
            }
          },
          {
            "description": "Filter by the page path on which the error occurred.",
            "in": "query",
            "name": "urlPath",
            "schema": {
              "description": "Filter by the page path on which the error occurred.",
              "maxLength": 500,
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "schema": {
              "default": 25,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "canUpdate": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "type": "string"
                    },
                    "fingerprint": {
                      "type": "string"
                    },
                    "firstSeen": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "groupingVersion": {
                      "type": "number"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "type": "string"
                    },
                    "issues": {
                      "type": "number"
                    },
                    "lastSeen": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "occurrences": {
                      "type": "number"
                    },
                    "resolvedAt": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "series": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "date": {
                            "type": "string"
                          },
                          "occurrences": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "date",
                          "occurrences"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "status": {
                      "enum": [
                        "unresolved",
                        "resolved",
                        "ignored"
                      ],
                      "type": "string"
                    },
                    "title": {
                      "description": "Title of the page.",
                      "type": "string"
                    },
                    "visits": {
                      "description": "Visit counts for the selected period.",
                      "type": "number"
                    },
                    "websiteId": {
                      "description": "ID of the website.",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "websiteId",
                    "fingerprint",
                    "groupingVersion",
                    "title",
                    "status",
                    "resolvedAt",
                    "createdAt",
                    "occurrences",
                    "visits",
                    "firstSeen",
                    "lastSeen",
                    "issues",
                    "series",
                    "canUpdate"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Invalid request."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Authenticated website access required."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Website, issue, or occurrence not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get an error issue",
        "tags": [
          "Errors"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/errors/[issueId]/contract.ts"
      },
      "patch": {
        "description": "Changes the status of an error issue to unresolved, resolved, or ignored. Changing the status does not discard new occurrences.",
        "operationId": "updateWebsiteErrorIssue",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "ID of the error issue.",
            "in": "path",
            "name": "issueId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "status": {
                    "description": "New status of the issue.",
                    "enum": [
                      "unresolved",
                      "resolved",
                      "ignored"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "status"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ok"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Invalid request."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Authenticated website access required."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Website, issue, or occurrence not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update an error issue status",
        "tags": [
          "Errors"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/errors/[issueId]/contract.ts"
      }
    },
    "/api/websites/{websiteId}/errors/{issueId}/events": {
      "get": {
        "description": "Returns a paginated list of occurrences for an error issue, newest first.",
        "operationId": "getWebsiteErrorEvents",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "ID of the error issue.",
            "in": "path",
            "name": "issueId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": true,
            "schema": {
              "maximum": 4102444800000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": true,
            "schema": {
              "maximum": 4102444800000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Filter by issue status: `unresolved`, `resolved`, or `ignored`.",
            "in": "query",
            "name": "status",
            "schema": {
              "description": "Filter by issue status: `unresolved`, `resolved`, or `ignored`.",
              "enum": [
                "unresolved",
                "resolved",
                "ignored"
              ],
              "type": "string"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "schema": {
              "maxLength": 200,
              "type": "string"
            }
          },
          {
            "description": "Filter by release, as set with `data-release` or `captureException`.",
            "in": "query",
            "name": "release",
            "schema": {
              "description": "Filter by release, as set with `data-release` or `captureException`.",
              "maxLength": 100,
              "type": "string"
            }
          },
          {
            "description": "Filter by environment, as set with `data-environment` or `captureException`.",
            "in": "query",
            "name": "environment",
            "schema": {
              "description": "Filter by environment, as set with `data-environment` or `captureException`.",
              "maxLength": 50,
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "schema": {
              "maxLength": 50,
              "type": "string"
            }
          },
          {
            "description": "Filter by the page path on which the error occurred.",
            "in": "query",
            "name": "urlPath",
            "schema": {
              "description": "Filter by the page path on which the error occurred.",
              "maxLength": 500,
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "schema": {
              "default": 25,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "browser": {
                            "description": "Browser used by the visitor.",
                            "type": "string"
                          },
                          "createdAt": {
                            "description": "Date and time the record was created.",
                            "type": "string"
                          },
                          "device": {
                            "description": "Device category used by the visitor.",
                            "type": "string"
                          },
                          "environment": {
                            "type": "string"
                          },
                          "handled": {
                            "type": "boolean"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "message": {
                            "description": "Human-readable explanation of the result.",
                            "type": "string"
                          },
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "os": {
                            "description": "Operating system used by the visitor.",
                            "type": "string"
                          },
                          "release": {
                            "type": "string"
                          },
                          "sessionId": {
                            "description": "ID of the visitor session.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          },
                          "urlPath": {
                            "description": "Path portion of the page URL.",
                            "type": "string"
                          },
                          "visitId": {
                            "description": "ID of the visit.",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "createdAt",
                          "name",
                          "message",
                          "handled",
                          "release",
                          "environment",
                          "browser",
                          "os",
                          "device",
                          "urlPath",
                          "sessionId",
                          "visitId"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Invalid request."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Authenticated website access required."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Website, issue, or occurrence not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List error occurrences",
        "tags": [
          "Errors"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/errors/[issueId]/events/contract.ts"
      }
    },
    "/api/websites/{websiteId}/errors/{issueId}/events/{eventId}": {
      "get": {
        "description": "Returns a single occurrence of an error issue, including its stack trace, tags, and session details.",
        "operationId": "getWebsiteErrorEvent",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "ID of the error issue.",
            "in": "path",
            "name": "issueId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "ID of the event.",
            "in": "path",
            "name": "eventId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "browser": {
                      "description": "Browser used by the visitor.",
                      "type": "string"
                    },
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "type": "string"
                    },
                    "device": {
                      "description": "Device category used by the visitor.",
                      "type": "string"
                    },
                    "environment": {
                      "type": "string"
                    },
                    "frames": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "column": {
                            "type": "number"
                          },
                          "filename": {
                            "type": "string"
                          },
                          "function": {
                            "type": "string"
                          },
                          "line": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "filename",
                          "function",
                          "line",
                          "column"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "handled": {
                      "type": "boolean"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "type": "string"
                    },
                    "message": {
                      "description": "Human-readable explanation of the result.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Display name of the resource.",
                      "type": "string"
                    },
                    "os": {
                      "description": "Operating system used by the visitor.",
                      "type": "string"
                    },
                    "release": {
                      "type": "string"
                    },
                    "replayId": {
                      "anyOf": [
                        {
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "ID of the session replay."
                    },
                    "sessionId": {
                      "description": "ID of the visitor session.",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "type": "string"
                    },
                    "stack": {
                      "type": "string"
                    },
                    "tags": {
                      "additionalProperties": {
                        "type": "string"
                      },
                      "propertyNames": {
                        "type": "string"
                      },
                      "type": "object"
                    },
                    "urlPath": {
                      "description": "Path portion of the page URL.",
                      "type": "string"
                    },
                    "visitId": {
                      "description": "ID of the visit.",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "name",
                    "message",
                    "handled",
                    "release",
                    "environment",
                    "browser",
                    "os",
                    "device",
                    "urlPath",
                    "sessionId",
                    "visitId",
                    "stack",
                    "frames",
                    "tags",
                    "replayId"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Invalid request."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Authenticated website access required."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Website, issue, or occurrence not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get an error occurrence",
        "tags": [
          "Errors"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/errors/[issueId]/events/[eventId]/contract.ts"
      }
    },
    "/api/websites/{websiteId}/errors/{issueId}/values": {
      "get": {
        "description": "Returns the distinct values and occurrence counts of an error field, such as release or browser, for one issue.",
        "operationId": "getWebsiteErrorIssueValues",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "ID of the error issue.",
            "in": "path",
            "name": "issueId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": true,
            "schema": {
              "maximum": 4102444800000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": true,
            "schema": {
              "maximum": 4102444800000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Filter by issue status: `unresolved`, `resolved`, or `ignored`.",
            "in": "query",
            "name": "status",
            "schema": {
              "description": "Filter by issue status: `unresolved`, `resolved`, or `ignored`.",
              "enum": [
                "unresolved",
                "resolved",
                "ignored"
              ],
              "type": "string"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "schema": {
              "maxLength": 200,
              "type": "string"
            }
          },
          {
            "description": "Filter by release, as set with `data-release` or `captureException`.",
            "in": "query",
            "name": "release",
            "schema": {
              "description": "Filter by release, as set with `data-release` or `captureException`.",
              "maxLength": 100,
              "type": "string"
            }
          },
          {
            "description": "Filter by environment, as set with `data-environment` or `captureException`.",
            "in": "query",
            "name": "environment",
            "schema": {
              "description": "Filter by environment, as set with `data-environment` or `captureException`.",
              "maxLength": 50,
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "schema": {
              "maxLength": 50,
              "type": "string"
            }
          },
          {
            "description": "Filter by the page path on which the error occurred.",
            "in": "query",
            "name": "urlPath",
            "schema": {
              "description": "Filter by the page path on which the error occurred.",
              "maxLength": 500,
              "type": "string"
            }
          },
          {
            "description": "Error field to return values for: `release`, `environment`, `browser`, or `urlPath`.",
            "in": "query",
            "name": "type",
            "required": true,
            "schema": {
              "description": "Error field to return values for: `release`, `environment`, `browser`, or `urlPath`.",
              "enum": [
                "release",
                "environment",
                "browser",
                "urlPath"
              ],
              "type": "string"
            }
          },
          {
            "description": "Search text used to filter the returned values.",
            "in": "query",
            "name": "value",
            "schema": {
              "description": "Search text used to filter the returned values.",
              "maxLength": 500,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "count": {
                        "description": "Number of matching records.",
                        "type": "number"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "value",
                      "count"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Invalid request."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Authenticated website access required."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Website, issue, or occurrence not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get error issue filter values",
        "tags": [
          "Errors"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/errors/[issueId]/values/contract.ts"
      }
    },
    "/api/websites/{websiteId}/errors/stats": {
      "get": {
        "description": "Returns the total number of error occurrences, issues, and affected visits for the selected date range, with a daily trend in UTC.",
        "operationId": "getWebsiteErrorStats",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": true,
            "schema": {
              "maximum": 4102444800000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": true,
            "schema": {
              "maximum": 4102444800000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Filter by issue status: `unresolved`, `resolved`, or `ignored`.",
            "in": "query",
            "name": "status",
            "schema": {
              "description": "Filter by issue status: `unresolved`, `resolved`, or `ignored`.",
              "enum": [
                "unresolved",
                "resolved",
                "ignored"
              ],
              "type": "string"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "schema": {
              "maxLength": 200,
              "type": "string"
            }
          },
          {
            "description": "Filter by release, as set with `data-release` or `captureException`.",
            "in": "query",
            "name": "release",
            "schema": {
              "description": "Filter by release, as set with `data-release` or `captureException`.",
              "maxLength": 100,
              "type": "string"
            }
          },
          {
            "description": "Filter by environment, as set with `data-environment` or `captureException`.",
            "in": "query",
            "name": "environment",
            "schema": {
              "description": "Filter by environment, as set with `data-environment` or `captureException`.",
              "maxLength": 50,
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "schema": {
              "maxLength": 50,
              "type": "string"
            }
          },
          {
            "description": "Filter by the page path on which the error occurred.",
            "in": "query",
            "name": "urlPath",
            "schema": {
              "description": "Filter by the page path on which the error occurred.",
              "maxLength": 500,
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "maximum": 10000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "schema": {
              "default": 25,
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "firstSeen": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "issues": {
                      "type": "number"
                    },
                    "lastSeen": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "occurrences": {
                      "type": "number"
                    },
                    "series": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "date": {
                            "type": "string"
                          },
                          "occurrences": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "date",
                          "occurrences"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "visits": {
                      "description": "Visit counts for the selected period.",
                      "type": "number"
                    }
                  },
                  "required": [
                    "occurrences",
                    "visits",
                    "issues",
                    "firstSeen",
                    "lastSeen",
                    "series"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Invalid request."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Authenticated website access required."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Website, issue, or occurrence not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get error stats",
        "tags": [
          "Errors"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/errors/stats/contract.ts"
      }
    },
    "/api/websites/{websiteId}/errors/values": {
      "get": {
        "description": "Returns the distinct values and occurrence counts of an error field, such as release or browser, across all issues.",
        "operationId": "getWebsiteErrorValues",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": true,
            "schema": {
              "maximum": 4102444800000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": true,
            "schema": {
              "maximum": 4102444800000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Filter by issue status: `unresolved`, `resolved`, or `ignored`.",
            "in": "query",
            "name": "status",
            "schema": {
              "description": "Filter by issue status: `unresolved`, `resolved`, or `ignored`.",
              "enum": [
                "unresolved",
                "resolved",
                "ignored"
              ],
              "type": "string"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "schema": {
              "maxLength": 200,
              "type": "string"
            }
          },
          {
            "description": "Filter by release, as set with `data-release` or `captureException`.",
            "in": "query",
            "name": "release",
            "schema": {
              "description": "Filter by release, as set with `data-release` or `captureException`.",
              "maxLength": 100,
              "type": "string"
            }
          },
          {
            "description": "Filter by environment, as set with `data-environment` or `captureException`.",
            "in": "query",
            "name": "environment",
            "schema": {
              "description": "Filter by environment, as set with `data-environment` or `captureException`.",
              "maxLength": 50,
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "schema": {
              "maxLength": 50,
              "type": "string"
            }
          },
          {
            "description": "Filter by the page path on which the error occurred.",
            "in": "query",
            "name": "urlPath",
            "schema": {
              "description": "Filter by the page path on which the error occurred.",
              "maxLength": 500,
              "type": "string"
            }
          },
          {
            "description": "Error field to return values for: `release`, `environment`, `browser`, or `urlPath`.",
            "in": "query",
            "name": "type",
            "required": true,
            "schema": {
              "description": "Error field to return values for: `release`, `environment`, `browser`, or `urlPath`.",
              "enum": [
                "release",
                "environment",
                "browser",
                "urlPath"
              ],
              "type": "string"
            }
          },
          {
            "description": "Search text used to filter the returned values.",
            "in": "query",
            "name": "value",
            "schema": {
              "description": "Search text used to filter the returned values.",
              "maxLength": 500,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "count": {
                        "description": "Number of matching records.",
                        "type": "number"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "value",
                      "count"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Successful response."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Invalid request."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Authenticated website access required."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Website, issue, or occurrence not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get error filter values",
        "tags": [
          "Errors"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/errors/values/contract.ts"
      }
    },
    "/api/websites/{websiteId}/event-data": {
      "get": {
        "description": "Returns a page of events in the selected date range, grouping each event's custom property records together.",
        "operationId": "getEventData",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "properties": {
                          "eventId": {
                            "description": "ID of the event.",
                            "type": "string"
                          },
                          "eventName": {
                            "description": "Name of the custom event.",
                            "type": "string"
                          },
                          "eventProperties": {
                            "description": "Custom properties recorded with the event.",
                            "items": {
                              "properties": {
                                "createdAt": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "format": "date-time",
                                      "type": "string"
                                    }
                                  ],
                                  "description": "Date and time the record was created."
                                },
                                "dataKey": {
                                  "description": "Name of the custom property.",
                                  "type": "string"
                                },
                                "dataType": {
                                  "description": "Data type of the custom property.",
                                  "type": "number"
                                },
                                "dateValue": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "format": "date-time",
                                      "type": "string"
                                    }
                                  ],
                                  "description": "Custom property value stored as a date-time."
                                },
                                "numberValue": {
                                  "description": "Custom property value stored as a number.",
                                  "type": "number"
                                },
                                "stringValue": {
                                  "description": "Custom property value stored as a string.",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "createdAt",
                                "dataKey",
                                "stringValue",
                                "numberValue",
                                "dateValue",
                                "dataType"
                              ],
                              "type": "object"
                            },
                            "type": "array"
                          },
                          "websiteId": {
                            "description": "ID of the website.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "websiteId",
                          "eventId",
                          "eventName",
                          "eventProperties"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List events with custom properties",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/event-data/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/event-data-pivot": {
      "get": {
        "description": "Returns a page of occurrences of the specified event, with event details and property keys and values grouped into one row per occurrence.",
        "operationId": "getEventDataPivot",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Name of the custom event.",
            "in": "query",
            "name": "eventName",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "properties": {
                          "createdAt": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "format": "date-time",
                                "type": "string"
                              }
                            ],
                            "description": "Date and time the record was created."
                          },
                          "eventId": {
                            "description": "ID of the event.",
                            "type": "string"
                          },
                          "eventName": {
                            "description": "Name of the custom event.",
                            "type": "string"
                          },
                          "propertyKeys": {
                            "description": "Names of the custom properties.",
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "propertyValues": {
                            "description": "Values of the custom properties.",
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "sessionId": {
                            "description": "ID of the visitor session.",
                            "type": "string"
                          },
                          "urlPath": {
                            "description": "Path portion of the page URL.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "eventId",
                          "sessionId",
                          "eventName",
                          "urlPath",
                          "createdAt",
                          "propertyKeys",
                          "propertyValues"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List event properties in table form",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/event-data-pivot/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/event-data-pivot/array-series": {
      "get": {
        "description": "Counts individual values in an array property for the specified event, grouped by value and time interval.",
        "operationId": "getEventDataArraySeries",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Name of the custom event.",
            "in": "query",
            "name": "eventName",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Name of the custom event or session property.",
            "in": "query",
            "name": "propertyName",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "t": {
                        "type": "string"
                      },
                      "x": {
                        "type": "string"
                      },
                      "y": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "x",
                      "t",
                      "y"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get event array values over time",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/event-data-pivot/array-series/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/event-data-pivot/date-series": {
      "get": {
        "description": "Counts occurrences of dates stored in the specified event property, grouping by the property's date value within the selected event date range.",
        "operationId": "getEventDataDateSeries",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Name of the custom event.",
            "in": "query",
            "name": "eventName",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Name of the custom event or session property.",
            "in": "query",
            "name": "propertyName",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "t": {
                        "type": "string"
                      },
                      "y": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "t",
                      "y"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get the distribution of event date values",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/event-data-pivot/date-series/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/event-data-pivot/numeric-series": {
      "get": {
        "description": "Returns the sum, average, or count of a numeric property for the specified event, grouped by time interval.",
        "operationId": "getEventDataNumericSeries",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Name of the custom event.",
            "in": "query",
            "name": "eventName",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Name of the custom event or session property.",
            "in": "query",
            "name": "propertyName",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Numeric aggregation to calculate for the selected property.",
            "in": "query",
            "name": "metric",
            "required": false,
            "schema": {
              "enum": [
                "sum",
                "avg",
                "count"
              ],
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "t": {
                        "type": "string"
                      },
                      "y": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "t",
                      "y"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get numeric event properties over time",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/event-data-pivot/numeric-series/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/event-data-pivot/numeric-stats": {
      "get": {
        "description": "Returns the total, average, median, minimum, and maximum of the specified numeric event property for the selected date range and filters.",
        "operationId": "getEventDataNumericStats",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Name of the custom event.",
            "in": "query",
            "name": "eventName",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Name of the custom event or session property.",
            "in": "query",
            "name": "propertyName",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "average": {
                      "description": "Arithmetic mean of the numeric property values.",
                      "type": "number"
                    },
                    "max": {
                      "description": "Maximum numeric property value.",
                      "type": "number"
                    },
                    "median": {
                      "description": "Median of the numeric property values.",
                      "type": "number"
                    },
                    "min": {
                      "description": "Minimum numeric property value.",
                      "type": "number"
                    },
                    "total": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "total",
                    "average",
                    "median",
                    "max",
                    "min"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get numeric event property statistics",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/event-data-pivot/numeric-stats/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/event-data-pivot/property-series": {
      "get": {
        "description": "Counts occurrences of string values in the specified event property, grouped by value and time interval.",
        "operationId": "getEventDataPropertySeries",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Name of the custom event.",
            "in": "query",
            "name": "eventName",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Name of the custom event or session property.",
            "in": "query",
            "name": "propertyName",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "t": {
                        "type": "string"
                      },
                      "x": {
                        "type": "string"
                      },
                      "y": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "x",
                      "t",
                      "y"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get event property values over time",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/event-data-pivot/property-series/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/event-data/{eventId}": {
      "get": {
        "description": "Returns the custom property records, data types, and values attached to a specific event.",
        "operationId": "getEventDataById",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of the event.",
            "in": "path",
            "name": "eventId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "createdAt": {
                        "description": "Date and time the record was created.",
                        "format": "date-time",
                        "type": "string"
                      },
                      "dataKey": {
                        "description": "Name of the custom property.",
                        "type": "string"
                      },
                      "dataType": {
                        "description": "Data type of the custom property.",
                        "type": "number"
                      },
                      "dateValue": {
                        "description": "Custom property value stored as a date-time.",
                        "format": "date-time",
                        "type": "string"
                      },
                      "id": {
                        "description": "Unique identifier of the resource.",
                        "type": "string"
                      },
                      "numberValue": {
                        "description": "Custom property value stored as a number.",
                        "properties": {
                          "d": {
                            "items": {
                              "type": "number"
                            },
                            "type": "array"
                          },
                          "e": {
                            "type": "number"
                          },
                          "s": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "d",
                          "e",
                          "s"
                        ],
                        "type": "object"
                      },
                      "stringValue": {
                        "description": "Custom property value stored as a string.",
                        "type": "string"
                      },
                      "websiteEventId": {
                        "description": "ID of the website event.",
                        "type": "string"
                      },
                      "websiteId": {
                        "description": "ID of the website.",
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "createdAt",
                      "websiteId",
                      "websiteEventId",
                      "dataKey",
                      "stringValue",
                      "numberValue",
                      "dateValue",
                      "dataType"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get an event's custom properties",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/event-data/[eventId]/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/event-data/events": {
      "get": {
        "description": "Returns property names, types, and counts grouped by event name. When an event is specified, also groups by property value.",
        "operationId": "getEventDataEvents",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "dataType": {
                        "description": "Data type of the custom property.",
                        "type": "number"
                      },
                      "eventName": {
                        "description": "Name of the custom event.",
                        "type": "string"
                      },
                      "propertyName": {
                        "description": "Name of the custom event or session property.",
                        "type": "string"
                      },
                      "propertyValue": {
                        "description": "Value of the custom property.",
                        "type": "string"
                      },
                      "total": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "propertyName",
                      "dataType",
                      "total"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Summarize properties by event",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/event-data/events/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/event-data/fields": {
      "get": {
        "description": "Returns property names, data types, and counts for the selected date range, optionally restricted to an event name.",
        "operationId": "getEventDataFields",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Name of the custom event.",
            "in": "query",
            "name": "eventName",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "dataType": {
                        "description": "Data type of the custom property.",
                        "type": "number"
                      },
                      "propertyName": {
                        "description": "Name of the custom event or session property.",
                        "type": "string"
                      },
                      "total": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "propertyName",
                      "dataType",
                      "total"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List event property fields",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/event-data/fields/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/event-data/properties": {
      "get": {
        "description": "Returns event names and their custom property names, data types, and record counts for the selected date range and filters.",
        "operationId": "getEventDataProperties",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "dataType": {
                        "description": "Data type of the custom property.",
                        "type": "number"
                      },
                      "eventName": {
                        "description": "Name of the custom event.",
                        "type": "string"
                      },
                      "propertyName": {
                        "description": "Name of the custom event or session property.",
                        "type": "string"
                      },
                      "total": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "eventName",
                      "propertyName",
                      "dataType",
                      "total"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List event property usage",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/event-data/properties/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/event-data/stats": {
      "get": {
        "description": "Returns counts of events with custom data, distinct property names, and property records for the selected date range and filters.",
        "operationId": "getEventDataStats",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "events": {
                      "type": "number"
                    },
                    "properties": {
                      "type": "number"
                    },
                    "records": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "events",
                    "properties",
                    "records"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get event property totals",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/event-data/stats/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/event-data/values": {
      "get": {
        "description": "Returns values and their occurrence counts for a custom event property, optionally restricted by event name and data type.",
        "operationId": "getEventDataValues",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Name of the custom event.",
            "in": "query",
            "name": "eventName",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Name of the custom event or session property.",
            "in": "query",
            "name": "propertyName",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Data type of the custom property.",
            "in": "query",
            "name": "dataType",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "total": {
                        "type": "number"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "value",
                      "total"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List event property values",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/event-data/values/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/events": {
      "get": {
        "description": "Returns a page of pageviews and custom events in the date range, newest first. Supports filtering by event name and searching event details.",
        "operationId": "getWebsiteEvents",
        "parameters": [
          {
            "description": "Website ID.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "description": "Website ID.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Start of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "startDate",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "End of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "endDate",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Comparison period: prev for the previous period or yoy for the same period last year.",
            "in": "query",
            "name": "compare",
            "schema": {
              "enum": [
                "prev",
                "yoy"
              ],
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebsiteEventPage"
                }
              }
            },
            "description": "A page of events."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List tracked events",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/events/contract.ts"
      }
    },
    "/api/websites/{websiteId}/events/series": {
      "get": {
        "description": "Returns counts grouped by event name and time interval, optionally limited to the most frequent event names.",
        "operationId": "getWebsiteEventSeries",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Maximum number of rows to return.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "t": {
                        "type": "string"
                      },
                      "x": {
                        "type": "string"
                      },
                      "y": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "x",
                      "t",
                      "y"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get custom event counts over time",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/events/series/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/events/stats": {
      "get": {
        "description": "Returns website event totals for the selected date range and filters, including totals for the comparison period.",
        "operationId": "getWebsiteEventStats",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Start of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "startDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "End of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "endDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Comparison period: prev for the previous period or yoy for the same period last year.",
            "in": "query",
            "name": "compare",
            "required": false,
            "schema": {
              "enum": [
                "prev",
                "yoy"
              ],
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Data returned by the operation.",
                      "properties": {
                        "comparison": {
                          "description": "Analytics for the comparison period.",
                          "items": {
                            "properties": {
                              "events": {
                                "type": "number"
                              },
                              "uniqueEvents": {
                                "description": "Number of unique events.",
                                "type": "number"
                              },
                              "visitors": {
                                "description": "Unique visitor counts for the selected period.",
                                "type": "number"
                              },
                              "visits": {
                                "description": "Visit counts for the selected period.",
                                "type": "number"
                              }
                            },
                            "required": [
                              "events",
                              "visitors",
                              "visits",
                              "uniqueEvents"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "length": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "comparison",
                        "length"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get website event statistics",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/events/stats/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/export": {
      "get": {
        "description": "Returns a base64-encoded ZIP archive containing CSV exports of events, pages, referrers, browsers, operating systems, devices, and countries.",
        "operationId": "exportWebsite",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Start of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "startDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "End of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "endDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Comparison period: prev for the previous period or yoy for the same period last year.",
            "in": "query",
            "name": "compare",
            "required": false,
            "schema": {
              "enum": [
                "prev",
                "yoy"
              ],
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "zip": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "zip"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "function toString() { [native code] }": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful response. The response shape is inferred as free-form because the handler does not expose a reusable response schema."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Export website analytics",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/export/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/funnels": {
      "get": {
        "description": "Returns a paginated list of the saved funnels for the website, optionally filtered by search text.",
        "operationId": "getWebsiteFunnels",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "allOf": [
                          {
                            "properties": {
                              "createdAt": {
                                "description": "Date and time the record was created.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "description": {
                                "description": "Description of the resource.",
                                "type": "string"
                              },
                              "id": {
                                "description": "Unique identifier of the resource.",
                                "type": "string"
                              },
                              "name": {
                                "description": "Display name of the resource.",
                                "type": "string"
                              },
                              "parameters": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "const": false
                                  },
                                  {
                                    "const": true
                                  },
                                  {
                                    "additionalProperties": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "const": false
                                        },
                                        {
                                          "const": true
                                        },
                                        {},
                                        {
                                          "properties": {
                                            "length": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "length"
                                          ],
                                          "type": "object"
                                        }
                                      ]
                                    },
                                    "properties": {},
                                    "type": "object"
                                  },
                                  {
                                    "properties": {
                                      "length": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "length"
                                    ],
                                    "type": "object"
                                  }
                                ],
                                "description": "Configuration parameters for the resource."
                              },
                              "type": {
                                "type": "string"
                              },
                              "updatedAt": {
                                "description": "Date and time the record was last updated.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "userId": {
                                "description": "ID of the associated user.",
                                "type": "string"
                              },
                              "websiteId": {
                                "description": "ID of the website.",
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "userId",
                              "createdAt",
                              "updatedAt",
                              "name",
                              "type",
                              "description",
                              "parameters",
                              "websiteId"
                            ],
                            "type": "object"
                          },
                          {
                            "properties": {
                              "website": {
                                "properties": {
                                  "domain": {
                                    "description": "Domain name associated with the resource.",
                                    "type": "string"
                                  },
                                  "userId": {
                                    "description": "ID of the associated user.",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "domain",
                                  "userId"
                                ],
                                "type": "object"
                              }
                            },
                            "type": "object"
                          }
                        ]
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get website funnels",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/funnels/contract.ts"
      },
      "post": {
        "description": "Saves a named funnel for the website with an optional description, its ordered steps, and the conversion window.",
        "operationId": "createWebsiteFunnel",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "description": {
                    "description": "Description of the resource.",
                    "maxLength": 500,
                    "type": "string"
                  },
                  "name": {
                    "description": "Display name of the resource.",
                    "maxLength": 200,
                    "minLength": 1,
                    "type": "string"
                  },
                  "parameters": {
                    "description": "Configuration parameters for the resource.",
                    "properties": {
                      "steps": {
                        "items": {
                          "properties": {
                            "filters": {
                              "description": "Filters applied to the analytics data.",
                              "items": {
                                "properties": {
                                  "operator": {
                                    "enum": [
                                      "eq",
                                      "neq",
                                      "c",
                                      "dnc"
                                    ],
                                    "type": "string"
                                  },
                                  "property": {
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "property",
                                  "operator",
                                  "value"
                                ],
                                "type": "object"
                              },
                              "type": "array"
                            },
                            "type": {
                              "enum": [
                                "path",
                                "event"
                              ],
                              "type": "string"
                            },
                            "value": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "value"
                          ],
                          "type": "object"
                        },
                        "maxItems": 8,
                        "minItems": 2,
                        "type": "array"
                      },
                      "window": {
                        "exclusiveMinimum": 0,
                        "type": "number"
                      }
                    },
                    "required": [
                      "window",
                      "steps"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "name",
                  "parameters"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "const": true,
                      "description": "Whether the operation succeeded."
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a website funnel",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/funnels/contract.ts"
      }
    },
    "/api/websites/{websiteId}/funnels/{funnelId}": {
      "delete": {
        "description": "Deletes the specified saved funnel from the website after checking the caller's permissions.",
        "operationId": "deleteWebsiteFunnel",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "funnelId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ok"
                }
              }
            },
            "description": "Deleted successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete a website funnel",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/funnels/[funnelId]/contract.ts"
      },
      "get": {
        "description": "Returns a saved funnel for the website, including its name, description, steps, and conversion window.",
        "operationId": "getWebsiteFunnel",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "funnelId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "const": true,
                      "description": "Whether the operation succeeded."
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get a website funnel",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/funnels/[funnelId]/contract.ts"
      },
      "post": {
        "description": "Updates the name, description, steps, or conversion window of a saved funnel for the website.",
        "operationId": "updateWebsiteFunnel",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "funnelId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "description": {
                    "description": "Description of the resource.",
                    "maxLength": 500,
                    "type": "string"
                  },
                  "name": {
                    "description": "Display name of the resource.",
                    "maxLength": 200,
                    "minLength": 1,
                    "type": "string"
                  },
                  "parameters": {
                    "description": "Configuration parameters for the resource.",
                    "properties": {
                      "steps": {
                        "items": {
                          "properties": {
                            "filters": {
                              "description": "Filters applied to the analytics data.",
                              "items": {
                                "properties": {
                                  "operator": {
                                    "enum": [
                                      "eq",
                                      "neq",
                                      "c",
                                      "dnc"
                                    ],
                                    "type": "string"
                                  },
                                  "property": {
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "property",
                                  "operator",
                                  "value"
                                ],
                                "type": "object"
                              },
                              "type": "array"
                            },
                            "type": {
                              "enum": [
                                "path",
                                "event"
                              ],
                              "type": "string"
                            },
                            "value": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "value"
                          ],
                          "type": "object"
                        },
                        "maxItems": 8,
                        "minItems": 2,
                        "type": "array"
                      },
                      "window": {
                        "exclusiveMinimum": 0,
                        "type": "number"
                      }
                    },
                    "required": [
                      "window",
                      "steps"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "name",
                  "parameters"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "const": true,
                      "description": "Whether the operation succeeded."
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update a website funnel",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/funnels/[funnelId]/contract.ts"
      }
    },
    "/api/websites/{websiteId}/funnels/{funnelId}/stats": {
      "get": {
        "description": "Returns visitor counts and drop-off for each step of a saved funnel over the selected date range, with optional filters.",
        "operationId": "getWebsiteSavedFunnelStats",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "funnelId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": true,
            "schema": {
              "maximum": 8640000000000000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": true,
            "schema": {
              "maximum": 8640000000000000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "dropoff": {
                        "type": "number"
                      },
                      "dropped": {
                        "type": "number"
                      },
                      "filters": {
                        "description": "Filters applied to the analytics data.",
                        "items": {
                          "properties": {
                            "operator": {
                              "type": "string"
                            },
                            "property": {
                              "type": "string"
                            },
                            "value": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "property",
                            "operator",
                            "value"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      },
                      "previous": {
                        "type": "number"
                      },
                      "remaining": {
                        "type": "number"
                      },
                      "type": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      },
                      "visitors": {
                        "description": "Unique visitor counts for the selected period.",
                        "type": "number"
                      }
                    },
                    "required": [
                      "visitors",
                      "previous",
                      "dropped",
                      "dropoff",
                      "remaining",
                      "type",
                      "value"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get website saved funnel stats",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/funnels/[funnelId]/stats/contract.ts"
      }
    },
    "/api/websites/{websiteId}/funnels/stats": {
      "get": {
        "description": "Returns visitor counts and drop-off for each step of an ad-hoc funnel, given its steps and conversion window, over the date range.",
        "operationId": "getWebsiteFunnelStats",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": true,
            "schema": {
              "maximum": 8640000000000000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": true,
            "schema": {
              "maximum": 8640000000000000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "window",
            "required": true,
            "schema": {
              "exclusiveMinimum": 0,
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "steps",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "dropoff": {
                        "type": "number"
                      },
                      "dropped": {
                        "type": "number"
                      },
                      "filters": {
                        "description": "Filters applied to the analytics data.",
                        "items": {
                          "properties": {
                            "operator": {
                              "type": "string"
                            },
                            "property": {
                              "type": "string"
                            },
                            "value": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "property",
                            "operator",
                            "value"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      },
                      "previous": {
                        "type": "number"
                      },
                      "remaining": {
                        "type": "number"
                      },
                      "type": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      },
                      "visitors": {
                        "description": "Unique visitor counts for the selected period.",
                        "type": "number"
                      }
                    },
                    "required": [
                      "visitors",
                      "previous",
                      "dropped",
                      "dropoff",
                      "remaining",
                      "type",
                      "value"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get website funnel stats",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/funnels/stats/contract.ts"
      }
    },
    "/api/websites/{websiteId}/goals": {
      "get": {
        "description": "Returns a paginated list of the saved goals for the website, optionally filtered by search text.",
        "operationId": "getWebsiteGoals",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "allOf": [
                          {
                            "properties": {
                              "createdAt": {
                                "description": "Date and time the record was created.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "description": {
                                "description": "Description of the resource.",
                                "type": "string"
                              },
                              "id": {
                                "description": "Unique identifier of the resource.",
                                "type": "string"
                              },
                              "name": {
                                "description": "Display name of the resource.",
                                "type": "string"
                              },
                              "parameters": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "const": false
                                  },
                                  {
                                    "const": true
                                  },
                                  {
                                    "additionalProperties": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "const": false
                                        },
                                        {
                                          "const": true
                                        },
                                        {},
                                        {
                                          "properties": {
                                            "length": {
                                              "type": "number"
                                            }
                                          },
                                          "required": [
                                            "length"
                                          ],
                                          "type": "object"
                                        }
                                      ]
                                    },
                                    "properties": {},
                                    "type": "object"
                                  },
                                  {
                                    "properties": {
                                      "length": {
                                        "type": "number"
                                      }
                                    },
                                    "required": [
                                      "length"
                                    ],
                                    "type": "object"
                                  }
                                ],
                                "description": "Configuration parameters for the resource."
                              },
                              "type": {
                                "type": "string"
                              },
                              "updatedAt": {
                                "description": "Date and time the record was last updated.",
                                "format": "date-time",
                                "type": "string"
                              },
                              "userId": {
                                "description": "ID of the associated user.",
                                "type": "string"
                              },
                              "websiteId": {
                                "description": "ID of the website.",
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "userId",
                              "createdAt",
                              "updatedAt",
                              "name",
                              "type",
                              "description",
                              "parameters",
                              "websiteId"
                            ],
                            "type": "object"
                          },
                          {
                            "properties": {
                              "website": {
                                "properties": {
                                  "domain": {
                                    "description": "Domain name associated with the resource.",
                                    "type": "string"
                                  },
                                  "userId": {
                                    "description": "ID of the associated user.",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "domain",
                                  "userId"
                                ],
                                "type": "object"
                              }
                            },
                            "type": "object"
                          }
                        ]
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get website goals",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/goals/contract.ts"
      },
      "post": {
        "description": "Saves a named goal for the website with an optional description and the goal type and value to track.",
        "operationId": "createWebsiteGoal",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "description": {
                    "description": "Description of the resource.",
                    "maxLength": 500,
                    "type": "string"
                  },
                  "name": {
                    "description": "Display name of the resource.",
                    "maxLength": 200,
                    "minLength": 1,
                    "type": "string"
                  },
                  "parameters": {
                    "description": "Configuration parameters for the resource.",
                    "properties": {
                      "type": {
                        "enum": [
                          "path",
                          "event"
                        ],
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "value"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "name",
                  "parameters"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "const": true,
                      "description": "Whether the operation succeeded."
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a website goal",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/goals/contract.ts"
      }
    },
    "/api/websites/{websiteId}/goals/{goalId}": {
      "delete": {
        "description": "Deletes the specified saved goal from the website after checking the caller's permissions.",
        "operationId": "deleteWebsiteGoal",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "goalId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ok"
                }
              }
            },
            "description": "Deleted successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete a website goal",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/goals/[goalId]/contract.ts"
      },
      "get": {
        "description": "Returns a saved goal for the website, including its name, description, and the type and value it tracks.",
        "operationId": "getWebsiteGoal",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "goalId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "const": true,
                      "description": "Whether the operation succeeded."
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get a website goal",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/goals/[goalId]/contract.ts"
      },
      "post": {
        "description": "Updates the name, description, or the type and value tracked by a saved goal for the website.",
        "operationId": "updateWebsiteGoal",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "goalId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "description": {
                    "description": "Description of the resource.",
                    "maxLength": 500,
                    "type": "string"
                  },
                  "name": {
                    "description": "Display name of the resource.",
                    "maxLength": 200,
                    "minLength": 1,
                    "type": "string"
                  },
                  "parameters": {
                    "description": "Configuration parameters for the resource.",
                    "properties": {
                      "type": {
                        "enum": [
                          "path",
                          "event"
                        ],
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "value"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "name",
                  "parameters"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "const": true,
                      "description": "Whether the operation succeeded."
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update a website goal",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/goals/[goalId]/contract.ts"
      }
    },
    "/api/websites/{websiteId}/goals/{goalId}/stats": {
      "get": {
        "description": "Returns the number of conversions and the total for a saved goal over the selected date range, with optional filters.",
        "operationId": "getWebsiteSavedGoalStats",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "goalId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": true,
            "schema": {
              "maximum": 8640000000000000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": true,
            "schema": {
              "maximum": 8640000000000000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "num": {
                      "type": "number"
                    },
                    "total": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "num",
                    "total"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get website saved goal stats",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/goals/[goalId]/stats/contract.ts"
      }
    },
    "/api/websites/{websiteId}/goals/stats": {
      "get": {
        "description": "Returns the number of conversions and the total for an ad-hoc goal, given its type and value, over the selected date range.",
        "operationId": "getWebsiteGoalStats",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": true,
            "schema": {
              "maximum": 8640000000000000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": true,
            "schema": {
              "maximum": 8640000000000000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Type of resource or analytics dimension to return.",
            "in": "query",
            "name": "type",
            "required": true,
            "schema": {
              "enum": [
                "path",
                "event"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "value",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "num": {
                      "type": "number"
                    },
                    "total": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "num",
                    "total"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get website goal stats",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/goals/stats/contract.ts"
      }
    },
    "/api/websites/{websiteId}/heatmaps": {
      "get": {
        "description": "Returns click or scroll heatmap data for the website, optionally for a single page path, along with the pages that have recorded data.",
        "operationId": "getWebsiteHeatmaps",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": true,
            "schema": {
              "maximum": 8640000000000000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": true,
            "schema": {
              "maximum": 8640000000000000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Path portion of the page URL.",
            "in": "query",
            "name": "urlPath",
            "schema": {
              "maxLength": 500,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "mode",
            "schema": {
              "enum": [
                "click",
                "scroll"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "mode": {
                      "anyOf": [
                        {
                          "const": "click"
                        },
                        {
                          "const": "scroll"
                        }
                      ]
                    },
                    "pages": {
                      "items": {
                        "properties": {
                          "count": {
                            "description": "Number of matching records.",
                            "type": "number"
                          },
                          "sessions": {
                            "type": "number"
                          },
                          "urlPath": {
                            "description": "Path portion of the page URL.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "urlPath",
                          "count",
                          "sessions"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "points": {
                      "items": {
                        "properties": {
                          "count": {
                            "description": "Number of matching records.",
                            "type": "number"
                          },
                          "pageH": {
                            "description": "Page height in pixels.",
                            "type": "number"
                          },
                          "pageW": {
                            "description": "Page width in pixels.",
                            "type": "number"
                          },
                          "pageX": {
                            "description": "Horizontal position on the page in pixels.",
                            "type": "number"
                          },
                          "pageY": {
                            "description": "Vertical position on the page in pixels.",
                            "type": "number"
                          },
                          "viewportH": {
                            "description": "Viewport height in pixels.",
                            "type": "number"
                          },
                          "viewportW": {
                            "description": "Viewport width in pixels.",
                            "type": "number"
                          },
                          "x": {
                            "type": "number"
                          },
                          "y": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "x",
                          "y",
                          "pageX",
                          "pageY",
                          "pageW",
                          "pageH",
                          "viewportW",
                          "viewportH",
                          "count"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "scroll": {
                      "properties": {
                        "buckets": {
                          "items": {
                            "properties": {
                              "depth": {
                                "type": "number"
                              },
                              "pageH": {
                                "description": "Page height in pixels.",
                                "type": "number"
                              },
                              "pageW": {
                                "description": "Page width in pixels.",
                                "type": "number"
                              },
                              "sessions": {
                                "type": "number"
                              },
                              "viewportH": {
                                "description": "Viewport height in pixels.",
                                "type": "number"
                              },
                              "viewportW": {
                                "description": "Viewport width in pixels.",
                                "type": "number"
                              }
                            },
                            "required": [
                              "depth",
                              "sessions",
                              "pageW",
                              "pageH",
                              "viewportW",
                              "viewportH"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "pageH": {
                          "description": "Page height in pixels.",
                          "type": "number"
                        },
                        "pageW": {
                          "description": "Page width in pixels.",
                          "type": "number"
                        },
                        "totalSessions": {
                          "type": "number"
                        },
                        "viewportH": {
                          "description": "Viewport height in pixels.",
                          "type": "number"
                        },
                        "viewportW": {
                          "description": "Viewport width in pixels.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "buckets",
                        "totalSessions",
                        "pageW",
                        "pageH",
                        "viewportW",
                        "viewportH"
                      ],
                      "type": "object"
                    },
                    "snapshot": {
                      "properties": {
                        "id": {
                          "description": "Unique identifier of the resource.",
                          "type": "string"
                        },
                        "kind": {
                          "const": "iframe"
                        },
                        "pageH": {
                          "description": "Page height in pixels.",
                          "type": "number"
                        },
                        "pageW": {
                          "description": "Page width in pixels.",
                          "type": "number"
                        },
                        "url": {
                          "description": "URL associated with the resource.",
                          "type": "string"
                        },
                        "viewportH": {
                          "description": "Viewport height in pixels.",
                          "type": "number"
                        },
                        "viewportW": {
                          "description": "Viewport width in pixels.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "kind",
                        "id",
                        "url",
                        "pageW",
                        "pageH",
                        "viewportW",
                        "viewportH"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "mode",
                    "pages",
                    "points",
                    "snapshot",
                    "scroll"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get website heatmaps",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/heatmaps/contract.ts"
      }
    },
    "/api/websites/{websiteId}/journeys": {
      "get": {
        "description": "Returns the most common paths visitors take through the website, between 2 and 7 steps long, with optional start and end steps.",
        "operationId": "getWebsiteJourneys",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": true,
            "schema": {
              "maximum": 8640000000000000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": true,
            "schema": {
              "maximum": 8640000000000000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "steps",
            "required": true,
            "schema": {
              "maximum": 7,
              "minimum": 2,
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "startStep",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "endStep",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "count": {
                        "description": "Number of matching records.",
                        "type": "number"
                      },
                      "items": {
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "items",
                      "count"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Analytics results."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get website journeys",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/journeys/contract.ts"
      }
    },
    "/api/websites/{websiteId}/metrics": {
      "get": {
        "description": "Returns the most frequent values for a dimension such as pages, referrers, countries, browsers, campaigns, or events. Counts pageviews or events for activity dimensions and unique visitors for visitor dimensions.",
        "operationId": "getWebsiteMetrics",
        "parameters": [
          {
            "description": "Website ID.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "description": "Website ID.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Start of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "startDate",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "End of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "endDate",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Comparison period: prev for the previous period or yoy for the same period last year.",
            "in": "query",
            "name": "compare",
            "schema": {
              "enum": [
                "prev",
                "yoy"
              ],
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          },
          {
            "description": "Dimension to rank: path, entry, exit, title, query, hostname, referrer, domain, channel, event, tag, browser, os, device, screen, language, country, region, city, distinctId, utmSource, utmMedium, utmCampaign, utmContent, utmTerm.",
            "in": "query",
            "name": "type",
            "required": true,
            "schema": {
              "description": "Dimension to rank: path, entry, exit, title, query, hostname, referrer, domain, channel, event, tag, browser, os, device, screen, language, country, region, city, distinctId, utmSource, utmMedium, utmCampaign, utmContent, utmTerm.",
              "type": "string"
            }
          },
          {
            "description": "Maximum number of rows to return.",
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Number of rows to skip before returning results.",
            "in": "query",
            "name": "offset",
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetricRows"
                }
              }
            },
            "description": "Ranked rows."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get ranked website metrics",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/metrics/contract.ts"
      }
    },
    "/api/websites/{websiteId}/metrics/expanded": {
      "get": {
        "description": "Returns additional analytics for the selected page, event, visitor, or channel dimension, using the supplied date range and filters.",
        "operationId": "getWebsiteExpandedMetrics",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Start of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "startDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "End of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "endDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Comparison period: prev for the previous period or yoy for the same period last year.",
            "in": "query",
            "name": "compare",
            "required": false,
            "schema": {
              "enum": [
                "prev",
                "yoy"
              ],
              "type": "string"
            }
          },
          {
            "description": "Type of resource or analytics dimension to return.",
            "in": "query",
            "name": "type",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Maximum number of rows to return.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Number of rows to skip before returning results.",
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "bounces": {
                        "description": "Number of visits with only one pageview.",
                        "type": "number"
                      },
                      "name": {
                        "description": "Display name of the resource.",
                        "type": "string"
                      },
                      "pageviews": {
                        "description": "Pageview counts for the selected period.",
                        "type": "number"
                      },
                      "totaltime": {
                        "description": "Total visit duration in seconds.",
                        "type": "number"
                      },
                      "visitors": {
                        "description": "Unique visitor counts for the selected period.",
                        "type": "number"
                      },
                      "visits": {
                        "description": "Visit counts for the selected period.",
                        "type": "number"
                      }
                    },
                    "required": [
                      "name",
                      "pageviews",
                      "visitors",
                      "visits",
                      "bounces",
                      "totaltime"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get detailed website metrics",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/metrics/expanded/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/pageviews": {
      "get": {
        "description": "Returns pageviews and sessions grouped by the requested time interval and timezone, including a comparison period when requested.",
        "operationId": "getWebsitePageviews",
        "parameters": [
          {
            "description": "Website ID.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "description": "Website ID.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Start of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "startDate",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "End of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "endDate",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Comparison period: prev for the previous period or yoy for the same period last year.",
            "in": "query",
            "name": "compare",
            "schema": {
              "enum": [
                "prev",
                "yoy"
              ],
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebsitePageviews"
                }
              }
            },
            "description": "Time series."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get pageviews and sessions over time",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/pageviews/contract.ts"
      }
    },
    "/api/websites/{websiteId}/performance/chart": {
      "get": {
        "description": "Returns p50, p75, and p95 values over time for a Core Web Vitals metric such as LCP, INP, CLS, FCP, or TTFB.",
        "operationId": "getWebsitePerformanceChart",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": true,
            "schema": {
              "maximum": 8640000000000000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": true,
            "schema": {
              "maximum": 8640000000000000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Numeric aggregation to calculate for the selected property.",
            "in": "query",
            "name": "metric",
            "schema": {
              "enum": [
                "lcp",
                "inp",
                "cls",
                "fcp",
                "ttfb"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "chart": {
                      "items": {
                        "properties": {
                          "p50": {
                            "type": "number"
                          },
                          "p75": {
                            "type": "number"
                          },
                          "p95": {
                            "type": "number"
                          },
                          "t": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "t",
                          "p50",
                          "p75",
                          "p95"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "chart"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Analytics results."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get website performance chart",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/performance/chart/contract.ts"
      }
    },
    "/api/websites/{websiteId}/performance/metrics": {
      "get": {
        "description": "Ranks pages, titles, devices, or browsers by a Core Web Vitals metric, with p50, p75, and p95 values and a measurement count.",
        "operationId": "getWebsitePerformanceMetrics",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": true,
            "schema": {
              "maximum": 8640000000000000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": true,
            "schema": {
              "maximum": 8640000000000000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Numeric aggregation to calculate for the selected property.",
            "in": "query",
            "name": "metric",
            "schema": {
              "enum": [
                "lcp",
                "inp",
                "cls",
                "fcp",
                "ttfb"
              ],
              "type": "string"
            }
          },
          {
            "description": "Type of resource or analytics dimension to return.",
            "in": "query",
            "name": "type",
            "required": true,
            "schema": {
              "enum": [
                "path",
                "title",
                "device",
                "browser"
              ],
              "type": "string"
            }
          },
          {
            "description": "Maximum number of rows to return.",
            "in": "query",
            "name": "limit",
            "schema": {
              "maximum": 500,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "count": {
                        "description": "Number of matching records.",
                        "type": "number"
                      },
                      "name": {
                        "description": "Display name of the resource.",
                        "type": "string"
                      },
                      "p50": {
                        "type": "number"
                      },
                      "p75": {
                        "type": "number"
                      },
                      "p95": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "name",
                      "p50",
                      "p75",
                      "p95",
                      "count"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Analytics results."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get website performance metrics",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/performance/metrics/contract.ts"
      }
    },
    "/api/websites/{websiteId}/performance/stats": {
      "get": {
        "description": "Returns p50, p75, and p95 values for LCP, INP, CLS, FCP, and TTFB and the number of measurements in the date range.",
        "operationId": "getWebsitePerformanceStats",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": true,
            "schema": {
              "maximum": 8640000000000000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": true,
            "schema": {
              "maximum": 8640000000000000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "cls": {
                      "properties": {
                        "p50": {
                          "type": "number"
                        },
                        "p75": {
                          "type": "number"
                        },
                        "p95": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "p50",
                        "p75",
                        "p95"
                      ],
                      "type": "object"
                    },
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "fcp": {
                      "properties": {
                        "p50": {
                          "type": "number"
                        },
                        "p75": {
                          "type": "number"
                        },
                        "p95": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "p50",
                        "p75",
                        "p95"
                      ],
                      "type": "object"
                    },
                    "inp": {
                      "properties": {
                        "p50": {
                          "type": "number"
                        },
                        "p75": {
                          "type": "number"
                        },
                        "p95": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "p50",
                        "p75",
                        "p95"
                      ],
                      "type": "object"
                    },
                    "lcp": {
                      "properties": {
                        "p50": {
                          "type": "number"
                        },
                        "p75": {
                          "type": "number"
                        },
                        "p95": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "p50",
                        "p75",
                        "p95"
                      ],
                      "type": "object"
                    },
                    "ttfb": {
                      "properties": {
                        "p50": {
                          "type": "number"
                        },
                        "p75": {
                          "type": "number"
                        },
                        "p95": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "p50",
                        "p75",
                        "p95"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "lcp",
                    "inp",
                    "cls",
                    "fcp",
                    "ttfb",
                    "count"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Analytics results."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get website performance stats",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/performance/stats/contract.ts"
      }
    },
    "/api/websites/{websiteId}/recorder": {
      "get": {
        "description": "Returns public replay and heatmap settings, including sampling, masking, and duration limits. Returns disabled status when recording is unavailable.",
        "operationId": "getWebsiteRecorderConfig",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "enabled"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "blockSelector": {
                          "description": "CSS selector for elements excluded from recordings.",
                          "type": "string"
                        },
                        "enabled": {
                          "type": "boolean"
                        },
                        "heatmapEnabled": {
                          "description": "Whether heatmap recording is enabled.",
                          "type": "boolean"
                        },
                        "heatmapSampleRate": {
                          "description": "Fraction of sessions to record for heatmaps, from 0 to 1.",
                          "type": "number"
                        },
                        "maskLevel": {
                          "anyOf": [
                            {
                              "const": "strict"
                            },
                            {
                              "const": "moderate"
                            }
                          ],
                          "description": "Privacy masking level used by the recorder: strict or moderate."
                        },
                        "maxDuration": {
                          "type": "number"
                        },
                        "replayEnabled": {
                          "description": "Whether session replay recording is enabled.",
                          "type": "boolean"
                        },
                        "sampleRate": {
                          "description": "Fraction of sessions to record for replay, from 0 to 1.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "enabled",
                        "replayEnabled",
                        "heatmapEnabled",
                        "sampleRate",
                        "heatmapSampleRate",
                        "maskLevel",
                        "maxDuration",
                        "blockSelector"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The operation completed successfully."
          }
        },
        "security": [],
        "summary": "Get website recording settings",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "collect",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/recorder/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/replays": {
      "get": {
        "description": "Returns a paginated list of recorded sessions for the website, applying date, replay, and search filters.",
        "operationId": "getWebsiteReplays",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Start of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "startDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "End of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "endDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Comparison period: prev for the previous period or yoy for the same period last year.",
            "in": "query",
            "name": "compare",
            "required": false,
            "schema": {
              "enum": [
                "prev",
                "yoy"
              ],
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Minimum replay duration in seconds.",
            "in": "query",
            "name": "minDuration",
            "required": false,
            "schema": {
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "properties": {
                          "browser": {
                            "description": "Browser used by the visitor.",
                            "type": "string"
                          },
                          "chunkCount": {
                            "description": "Number of stored recording chunks.",
                            "type": "number"
                          },
                          "city": {
                            "description": "City of the visitor.",
                            "type": "string"
                          },
                          "country": {
                            "description": "Country code of the visitor.",
                            "type": "string"
                          },
                          "createdAt": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "format": "date-time",
                                "type": "string"
                              }
                            ],
                            "description": "Date and time the record was created."
                          },
                          "device": {
                            "description": "Device category used by the visitor.",
                            "type": "string"
                          },
                          "distinctIds": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "duration": {
                            "description": "Replay duration in milliseconds.",
                            "type": "number"
                          },
                          "endedAt": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "format": "date-time",
                                "type": "string"
                              }
                            ],
                            "description": "Date and time the recording ended."
                          },
                          "eventCount": {
                            "description": "Number of recorded replay events.",
                            "type": "number"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "os": {
                            "description": "Operating system used by the visitor.",
                            "type": "string"
                          },
                          "sessionId": {
                            "description": "ID of the visitor session.",
                            "type": "string"
                          },
                          "startedAt": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "format": "date-time",
                                "type": "string"
                              }
                            ],
                            "description": "Date and time the recording started."
                          },
                          "websiteId": {
                            "description": "ID of the website.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "distinctIds",
                          "id",
                          "sessionId",
                          "websiteId",
                          "browser",
                          "os",
                          "device",
                          "country",
                          "city",
                          "eventCount",
                          "chunkCount",
                          "startedAt",
                          "endedAt",
                          "duration",
                          "createdAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List website session replays",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/replays/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/replays/{replayId}": {
      "get": {
        "description": "Returns the merged recording events, session details, and event and chunk counts for a replay, with optional stopping points by timestamp, chunk, or event index.",
        "operationId": "getWebsiteReplay",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of the session replay.",
            "in": "path",
            "name": "replayId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "chunkCount": {
                      "description": "Number of stored recording chunks.",
                      "type": "number"
                    },
                    "endedAt": {
                      "description": "Date and time the recording ended.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "eventCount": {
                      "description": "Number of recorded replay events.",
                      "type": "number"
                    },
                    "events": {
                      "items": {},
                      "type": "array"
                    },
                    "sessionId": {
                      "description": "ID of the visitor session.",
                      "type": "string"
                    },
                    "startedAt": {
                      "description": "Date and time the recording started.",
                      "format": "date-time",
                      "type": "string"
                    }
                  },
                  "required": [
                    "sessionId",
                    "events",
                    "startedAt",
                    "endedAt",
                    "eventCount",
                    "chunkCount"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get a session replay recording",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/replays/[replayId]/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/replays/saved": {
      "get": {
        "description": "Returns a paginated, searchable list of replays saved for the website.",
        "operationId": "getWebsiteSavedReplays",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "properties": {
                          "createdAt": {
                            "description": "Date and time the record was created.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "distinctIds": {
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "Date and time the record was last updated.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "visitId": {
                            "description": "ID of the visit.",
                            "type": "string"
                          },
                          "websiteId": {
                            "description": "ID of the website.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "distinctIds",
                          "id",
                          "createdAt",
                          "updatedAt",
                          "name",
                          "websiteId",
                          "visitId"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List saved session replays",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/replays/saved/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/replays/saved/{replayId}": {
      "get": {
        "description": "Returns whether the specified replay is in the website's saved replays.",
        "operationId": "getWebsiteReplaySaved",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of the session replay.",
            "in": "path",
            "name": "replayId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "isSaved": {
                      "description": "Whether the replay has been saved.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "isSaved"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Check whether a replay is saved",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/replays/saved/[replayId]/contract.generated.ts"
      },
      "post": {
        "description": "Adds a replay to the website's saved replays with an optional name, or removes it when isSaved is false.",
        "operationId": "saveWebsiteReplay",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of the session replay.",
            "in": "path",
            "name": "replayId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "isSaved": {
                    "description": "Whether the replay has been saved.",
                    "type": "boolean"
                  },
                  "name": {
                    "description": "Display name of the resource.",
                    "maxLength": 100,
                    "type": "string"
                  }
                },
                "required": [
                  "isSaved"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "description": "Whether the operation succeeded.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Save or unsave a session replay",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/replays/saved/[replayId]/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/reset": {
      "post": {
        "description": "Clears the website's collected analytics data while keeping the website configuration.",
        "operationId": "resetWebsite",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "const": true,
                      "description": "Whether the operation succeeded."
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Reset website analytics",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/reset/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/retention": {
      "get": {
        "description": "Returns daily retention for the website: for each first-visit date, how many visitors returned on later days and the percentage.",
        "operationId": "getWebsiteRetention",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": true,
            "schema": {
              "maximum": 8640000000000000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": true,
            "schema": {
              "maximum": 8640000000000000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "date": {
                        "type": "string"
                      },
                      "day": {
                        "type": "number"
                      },
                      "percentage": {
                        "type": "number"
                      },
                      "returnVisitors": {
                        "type": "number"
                      },
                      "visitors": {
                        "description": "Unique visitor counts for the selected period.",
                        "type": "number"
                      }
                    },
                    "required": [
                      "date",
                      "day",
                      "visitors",
                      "returnVisitors",
                      "percentage"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get website retention",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/retention/contract.ts"
      }
    },
    "/api/websites/{websiteId}/revenue/chart": {
      "get": {
        "description": "Returns revenue chart data for the selected currency, date range, and website filters.",
        "operationId": "getWebsiteRevenueChart",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Start of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "startDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "End of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "endDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Comparison period: prev for the previous period or yoy for the same period last year.",
            "in": "query",
            "name": "compare",
            "required": false,
            "schema": {
              "enum": [
                "prev",
                "yoy"
              ],
              "type": "string"
            }
          },
          {
            "description": "Currency code used for revenue values.",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "chart": {
                      "items": {
                        "properties": {
                          "count": {
                            "description": "Number of matching records.",
                            "type": "number"
                          },
                          "t": {
                            "type": "string"
                          },
                          "x": {
                            "type": "string"
                          },
                          "y": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "x",
                          "t",
                          "y",
                          "count"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "chart"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get website revenue over time",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/revenue/chart/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/revenue/metrics": {
      "get": {
        "description": "Returns revenue grouped by the requested dimension, such as country or referrer, for the selected currency and date range.",
        "operationId": "getWebsiteRevenueMetrics",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Start of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "startDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "End of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "endDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Comparison period: prev for the previous period or yoy for the same period last year.",
            "in": "query",
            "name": "compare",
            "required": false,
            "schema": {
              "enum": [
                "prev",
                "yoy"
              ],
              "type": "string"
            }
          },
          {
            "description": "Type of resource or analytics dimension to return.",
            "in": "query",
            "name": "type",
            "required": true,
            "schema": {
              "enum": [
                "country",
                "region",
                "referrer",
                "channel"
              ],
              "type": "string"
            }
          },
          {
            "description": "Currency code used for revenue values.",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "items": {
                        "properties": {
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "value": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    {
                      "items": {
                        "properties": {
                          "country": {
                            "description": "Country code of the visitor.",
                            "type": "string"
                          },
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "value": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "name",
                          "value",
                          "country"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  ]
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get website revenue by dimension",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/revenue/metrics/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/revenue/sessions": {
      "get": {
        "description": "Returns a paginated list of sessions with revenue in the selected currency and date range, applying website and search filters.",
        "operationId": "getWebsiteRevenueSessions",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Start of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "startDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "End of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "endDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Comparison period: prev for the previous period or yoy for the same period last year.",
            "in": "query",
            "name": "compare",
            "required": false,
            "schema": {
              "enum": [
                "prev",
                "yoy"
              ],
              "type": "string"
            }
          },
          {
            "description": "Currency code used for revenue values.",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "properties": {
                          "browser": {
                            "description": "Browser used by the visitor.",
                            "type": "string"
                          },
                          "city": {
                            "description": "City of the visitor.",
                            "type": "string"
                          },
                          "country": {
                            "description": "Country code of the visitor.",
                            "type": "string"
                          },
                          "createdAt": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "format": "date-time",
                                "type": "string"
                              }
                            ],
                            "description": "Date and time the record was created."
                          },
                          "device": {
                            "description": "Device category used by the visitor.",
                            "type": "string"
                          },
                          "events": {
                            "type": "number"
                          },
                          "firstAt": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "format": "date-time",
                                "type": "string"
                              }
                            ],
                            "description": "Date and time of the first recorded activity."
                          },
                          "hostname": {
                            "description": "Hostname on which the activity occurred.",
                            "type": "string"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "language": {
                            "description": "Preferred language reported by the visitor browser.",
                            "type": "string"
                          },
                          "lastAt": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "format": "date-time",
                                "type": "string"
                              }
                            ],
                            "description": "Date and time of the most recent recorded activity."
                          },
                          "os": {
                            "description": "Operating system used by the visitor.",
                            "type": "string"
                          },
                          "referrerDomain": {
                            "description": "Domain of the referring page.",
                            "type": "string"
                          },
                          "region": {
                            "description": "Region or subdivision of the visitor.",
                            "type": "string"
                          },
                          "screen": {
                            "description": "Screen resolution of the visitor device.",
                            "type": "string"
                          },
                          "views": {
                            "description": "Pageview counts for the selected period.",
                            "type": "number"
                          },
                          "visits": {
                            "description": "Visit counts for the selected period.",
                            "type": "number"
                          },
                          "websiteId": {
                            "description": "ID of the website.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "websiteId",
                          "hostname",
                          "browser",
                          "os",
                          "device",
                          "screen",
                          "language",
                          "country",
                          "region",
                          "city",
                          "referrerDomain",
                          "firstAt",
                          "lastAt",
                          "visits",
                          "views",
                          "events",
                          "createdAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List sessions with revenue",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/revenue/sessions/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/revenue/stats": {
      "get": {
        "description": "Returns revenue summary statistics for the selected currency and date range, including totals for the comparison period.",
        "operationId": "getWebsiteRevenueStats",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Start of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "startDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "End of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "endDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Comparison period: prev for the previous period or yoy for the same period last year.",
            "in": "query",
            "name": "compare",
            "required": false,
            "schema": {
              "enum": [
                "prev",
                "yoy"
              ],
              "type": "string"
            }
          },
          {
            "description": "Currency code used for revenue values.",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "comparison": {
                      "description": "Analytics for the comparison period."
                    }
                  },
                  "required": [
                    "comparison"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get website revenue totals",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/revenue/stats/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/segments": {
      "get": {
        "description": "Returns saved segments or cohorts for the website, filtered by the requested type and search text.",
        "operationId": "getWebsiteSegments",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Type of resource or analytics dimension to return.",
            "in": "query",
            "name": "type",
            "required": true,
            "schema": {
              "enum": [
                "segment",
                "cohort"
              ],
              "type": "string"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "properties": {
                          "createdAt": {
                            "description": "Date and time the record was created.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "parameters": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {
                                "additionalProperties": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "const": false
                                    },
                                    {
                                      "const": true
                                    },
                                    {},
                                    {
                                      "properties": {
                                        "length": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "length"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "properties": {},
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ],
                            "description": "Configuration parameters for the resource."
                          },
                          "type": {
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "Date and time the record was last updated.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "websiteId": {
                            "description": "ID of the website.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "createdAt",
                          "updatedAt",
                          "name",
                          "type",
                          "parameters",
                          "websiteId"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List website segments and cohorts",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/segments/contract.generated.ts"
      },
      "post": {
        "description": "Saves a named segment or cohort with its type and filter parameters for the website.",
        "operationId": "createWebsiteSegment",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "name": {
                    "description": "Display name of the resource.",
                    "maxLength": 200,
                    "minLength": 1,
                    "type": "string"
                  },
                  "parameters": {
                    "description": "Configuration parameters for the resource.",
                    "properties": {
                      "action": {
                        "properties": {
                          "type": {
                            "type": "string"
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "value"
                        ],
                        "type": "object"
                      },
                      "dateRange": {
                        "type": "string"
                      },
                      "filters": {
                        "description": "Filters applied to the analytics data.",
                        "items": {
                          "additionalProperties": true,
                          "type": "object"
                        },
                        "type": "array"
                      },
                      "match": {
                        "description": "Whether records must match all filters or any filter.",
                        "enum": [
                          "all",
                          "any"
                        ],
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "type": {
                    "enum": [
                      "segment",
                      "cohort"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "name",
                  "parameters"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Display name of the resource.",
                      "type": "string"
                    },
                    "parameters": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "const": false
                        },
                        {
                          "const": true
                        },
                        {
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {},
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ]
                          },
                          "properties": {},
                          "type": "object"
                        },
                        {
                          "properties": {
                            "length": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "length"
                          ],
                          "type": "object"
                        }
                      ],
                      "description": "Configuration parameters for the resource."
                    },
                    "type": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "websiteId": {
                      "description": "ID of the website.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "name",
                    "type",
                    "parameters",
                    "websiteId"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a website segment or cohort",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/segments/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/segments/{segmentId}": {
      "delete": {
        "description": "Deletes the specified saved segment or cohort from the website.",
        "operationId": "deleteWebsiteSegment",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of the saved segment or cohort.",
            "in": "path",
            "name": "segmentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "const": true,
                      "description": "Whether the operation succeeded."
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete a website segment or cohort",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/segments/[segmentId]/contract.generated.ts"
      },
      "get": {
        "description": "Returns a saved segment or cohort and its filter parameters for the website.",
        "operationId": "getWebsiteSegment",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of the saved segment or cohort.",
            "in": "path",
            "name": "segmentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Display name of the resource.",
                      "type": "string"
                    },
                    "parameters": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "const": false
                        },
                        {
                          "const": true
                        },
                        {
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {},
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ]
                          },
                          "properties": {},
                          "type": "object"
                        },
                        {
                          "properties": {
                            "length": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "length"
                          ],
                          "type": "object"
                        }
                      ],
                      "description": "Configuration parameters for the resource."
                    },
                    "type": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "websiteId": {
                      "description": "ID of the website.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "name",
                    "type",
                    "parameters",
                    "websiteId"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get a website segment or cohort",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/segments/[segmentId]/contract.generated.ts"
      },
      "post": {
        "description": "Updates a saved segment or cohort's type, name, and filter parameters.",
        "operationId": "updateWebsiteSegment",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of the saved segment or cohort.",
            "in": "path",
            "name": "segmentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "name": {
                    "description": "Display name of the resource.",
                    "maxLength": 200,
                    "minLength": 1,
                    "type": "string"
                  },
                  "parameters": {
                    "description": "Configuration parameters for the resource.",
                    "properties": {
                      "action": {
                        "properties": {
                          "type": {
                            "type": "string"
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "value"
                        ],
                        "type": "object"
                      },
                      "dateRange": {
                        "type": "string"
                      },
                      "filters": {
                        "description": "Filters applied to the analytics data.",
                        "items": {
                          "additionalProperties": true,
                          "type": "object"
                        },
                        "type": "array"
                      },
                      "match": {
                        "description": "Whether records must match all filters or any filter.",
                        "enum": [
                          "all",
                          "any"
                        ],
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "type": {
                    "enum": [
                      "segment",
                      "cohort"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "name",
                  "parameters"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Display name of the resource.",
                      "type": "string"
                    },
                    "parameters": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "const": false
                        },
                        {
                          "const": true
                        },
                        {
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {},
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ]
                          },
                          "properties": {},
                          "type": "object"
                        },
                        {
                          "properties": {
                            "length": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "length"
                          ],
                          "type": "object"
                        }
                      ],
                      "description": "Configuration parameters for the resource."
                    },
                    "type": {
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "websiteId": {
                      "description": "ID of the website.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "name",
                    "type",
                    "parameters",
                    "websiteId"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update a website segment or cohort",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/segments/[segmentId]/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/session-data-pivot": {
      "get": {
        "description": "Returns a page of sessions matching the selected property and filters, with the latest property keys and values grouped into one row per session.",
        "operationId": "getSessionDataPivot",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Name of the custom event or session property.",
            "in": "query",
            "name": "propertyName",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "properties": {
                          "createdAt": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "format": "date-time",
                                "type": "string"
                              }
                            ],
                            "description": "Date and time the record was created."
                          },
                          "distinctId": {
                            "description": "Custom identifier assigned to the visitor.",
                            "type": "string"
                          },
                          "propertyKeys": {
                            "description": "Names of the custom properties.",
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "propertyValues": {
                            "description": "Values of the custom properties.",
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "sessionId": {
                            "description": "ID of the visitor session.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "sessionId",
                          "distinctId",
                          "createdAt",
                          "propertyKeys",
                          "propertyValues"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List session properties in table form",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/session-data-pivot/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/session-data/array-series": {
      "get": {
        "description": "Counts distinct sessions for individual values in an array property, grouped by value and time interval.",
        "operationId": "getSessionDataArraySeries",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Name of the custom event or session property.",
            "in": "query",
            "name": "propertyName",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "t": {
                        "type": "string"
                      },
                      "x": {
                        "type": "string"
                      },
                      "y": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "x",
                      "t",
                      "y"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get session array values over time",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/session-data/array-series/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/session-data/date-series": {
      "get": {
        "description": "Counts distinct sessions by dates stored in the specified custom property, using the selected date range and filters.",
        "operationId": "getSessionDataDateSeries",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Name of the custom event or session property.",
            "in": "query",
            "name": "propertyName",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "t": {
                        "type": "string"
                      },
                      "y": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "t",
                      "y"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get the distribution of session date values",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/session-data/date-series/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/session-data/numeric-series": {
      "get": {
        "description": "Returns the sum, average, or count of a numeric session property, grouped by time interval for the selected date range and filters.",
        "operationId": "getSessionDataNumericSeries",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Name of the custom event or session property.",
            "in": "query",
            "name": "propertyName",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Numeric aggregation to calculate for the selected property.",
            "in": "query",
            "name": "metric",
            "required": false,
            "schema": {
              "enum": [
                "sum",
                "avg",
                "count"
              ],
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "t": {
                        "type": "string"
                      },
                      "y": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "t",
                      "y"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get numeric session properties over time",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/session-data/numeric-series/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/session-data/numeric-stats": {
      "get": {
        "description": "Returns the total, average, median, minimum, and maximum of the specified numeric session property for the selected date range and filters.",
        "operationId": "getSessionDataNumericStats",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Name of the custom event or session property.",
            "in": "query",
            "name": "propertyName",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "average": {
                      "description": "Arithmetic mean of the numeric property values.",
                      "type": "number"
                    },
                    "max": {
                      "description": "Maximum numeric property value.",
                      "type": "number"
                    },
                    "median": {
                      "description": "Median of the numeric property values.",
                      "type": "number"
                    },
                    "min": {
                      "description": "Minimum numeric property value.",
                      "type": "number"
                    },
                    "total": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "total",
                    "average",
                    "median",
                    "max",
                    "min"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get numeric session property statistics",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/session-data/numeric-stats/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/session-data/properties": {
      "get": {
        "description": "Returns custom session property names, data types, and distinct session counts, optionally restricted to sessions with a selected property.",
        "operationId": "getSessionDataProperties",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Name of the custom event or session property.",
            "in": "query",
            "name": "propertyName",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "dataType": {
                        "description": "Data type of the custom property.",
                        "type": "number"
                      },
                      "propertyName": {
                        "description": "Name of the custom event or session property.",
                        "type": "string"
                      },
                      "total": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "propertyName",
                      "dataType",
                      "total"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List session property usage",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/session-data/properties/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/session-data/property-series": {
      "get": {
        "description": "Counts distinct sessions for string values in a custom property, grouped by value and time interval.",
        "operationId": "getSessionDataPropertySeries",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Name of the custom event or session property.",
            "in": "query",
            "name": "propertyName",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "t": {
                        "type": "string"
                      },
                      "x": {
                        "type": "string"
                      },
                      "y": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "x",
                      "t",
                      "y"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get session property values over time",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/session-data/property-series/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/session-data/stats": {
      "get": {
        "description": "Returns session, visit, pageview, event, and total activity counts grouped by values of the specified session property.",
        "operationId": "getSessionDataStats",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Name of the custom event or session property.",
            "in": "query",
            "name": "propertyName",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "activity": {
                        "type": "number"
                      },
                      "events": {
                        "type": "number"
                      },
                      "label": {
                        "type": "string"
                      },
                      "sessions": {
                        "type": "number"
                      },
                      "views": {
                        "description": "Pageview counts for the selected period.",
                        "type": "number"
                      },
                      "visits": {
                        "description": "Visit counts for the selected period.",
                        "type": "number"
                      }
                    },
                    "required": [
                      "label",
                      "activity",
                      "sessions",
                      "visits",
                      "views",
                      "events"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get activity by session property",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/session-data/stats/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/session-data/values": {
      "get": {
        "description": "Returns custom session property values and their occurrence counts, optionally filtered by property name and data type.",
        "operationId": "getSessionDataValues",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Name of the custom event or session property.",
            "in": "query",
            "name": "propertyName",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Data type of the custom property.",
            "in": "query",
            "name": "dataType",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "total": {
                        "type": "number"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "value",
                      "total"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List session property values",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/session-data/values/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/sessions": {
      "get": {
        "description": "Returns a page of visitor sessions in the date range, newest first. Search matches distinct ID, city, browser, operating system, or device.",
        "operationId": "getWebsiteSessions",
        "parameters": [
          {
            "description": "Website ID.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "description": "Website ID.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Start of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "startDate",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "End of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "endDate",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Comparison period: prev for the previous period or yoy for the same period last year.",
            "in": "query",
            "name": "compare",
            "schema": {
              "enum": [
                "prev",
                "yoy"
              ],
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebsiteSessionPage"
                }
              }
            },
            "description": "A page of sessions."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List visitor sessions",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/sessions/contract.ts"
      }
    },
    "/api/websites/{websiteId}/sessions/{sessionId}": {
      "delete": {
        "description": "Deletes the specified session and its associated analytics data. Available on installations using only a relational database.",
        "operationId": "deleteWebsiteSession",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "ID of the visitor session.",
            "in": "path",
            "name": "sessionId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ok"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete a visitor session",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/sessions/[sessionId]/contract.ts"
      },
      "get": {
        "description": "Returns details for a website session, including linked visitor identities and whether session deletion is available to the caller.",
        "operationId": "getWebsiteSession",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "ID of the visitor session.",
            "in": "path",
            "name": "sessionId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {},
                  "properties": {
                    "browser": {
                      "description": "Browser used by the visitor.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "canDelete": {
                      "description": "Whether the caller can delete this session.",
                      "type": "boolean"
                    },
                    "city": {
                      "description": "City of the visitor.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "country": {
                      "description": "Country code of the visitor.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "device": {
                      "description": "Device category used by the visitor.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "distinctId": {
                      "description": "Distinct ID of the session. Omitted unless exactly one distinct ID is linked.",
                      "type": "string"
                    },
                    "distinctIds": {
                      "description": "Distinct IDs linked to the session.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "events": {
                      "type": "number"
                    },
                    "firstAt": {
                      "description": "Date and time of the first recorded activity.",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "type": "string"
                    },
                    "language": {
                      "description": "Preferred language reported by the visitor browser.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "lastAt": {
                      "description": "Date and time of the most recent recorded activity.",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "type": "string"
                    },
                    "os": {
                      "description": "Operating system used by the visitor.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "referrerDomain": {
                      "description": "Domain of the session's first external referrer.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "region": {
                      "description": "Region or subdivision of the visitor.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "screen": {
                      "description": "Screen resolution of the visitor device.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "stitchedSessionCount": {
                      "description": "Number of sessions merged through the distinct ID, including this one.",
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "totaltime": {
                      "description": "Total visit duration in seconds.",
                      "type": "number"
                    },
                    "views": {
                      "description": "Pageview counts for the selected period.",
                      "type": "number"
                    },
                    "visits": {
                      "description": "Visit counts for the selected period.",
                      "type": "number"
                    },
                    "websiteId": {
                      "description": "ID of the website.",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "websiteId",
                    "browser",
                    "os",
                    "device",
                    "screen",
                    "language",
                    "country",
                    "region",
                    "city",
                    "referrerDomain",
                    "firstAt",
                    "lastAt",
                    "visits",
                    "views",
                    "events",
                    "totaltime",
                    "canDelete",
                    "distinctIds",
                    "stitchedSessionCount"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get a visitor session",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/sessions/[sessionId]/contract.ts"
      }
    },
    "/api/websites/{websiteId}/sessions/{sessionId}/activity": {
      "get": {
        "description": "Returns activity for the specified session and sessions linked by visitor identity, using the requested date range and optional distinct ID.",
        "operationId": "getWebsiteSessionActivity",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of the visitor session.",
            "in": "path",
            "name": "sessionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "createdAt": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "format": "date-time",
                            "type": "string"
                          }
                        ],
                        "description": "Date and time the record was created."
                      },
                      "eventId": {
                        "description": "ID of the event.",
                        "type": "string"
                      },
                      "eventName": {
                        "description": "Name of the custom event.",
                        "type": "string"
                      },
                      "eventType": {
                        "description": "Event type: 1 for a pageview or 2 for a custom event.",
                        "type": "number"
                      },
                      "hasData": {
                        "type": "boolean"
                      },
                      "hostname": {
                        "description": "Hostname on which the activity occurred.",
                        "type": "string"
                      },
                      "referrerDomain": {
                        "description": "Domain of the referring page.",
                        "type": "string"
                      },
                      "urlPath": {
                        "description": "Path portion of the page URL.",
                        "type": "string"
                      },
                      "urlQuery": {
                        "description": "Query string portion of the page URL.",
                        "type": "string"
                      },
                      "visitId": {
                        "description": "ID of the visit.",
                        "type": "string"
                      }
                    },
                    "required": [
                      "createdAt",
                      "urlPath",
                      "urlQuery",
                      "referrerDomain",
                      "eventId",
                      "eventType",
                      "eventName",
                      "visitId",
                      "hostname",
                      "hasData"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get a visitor's session activity",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/sessions/[sessionId]/activity/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/sessions/{sessionId}/properties": {
      "get": {
        "description": "Returns custom property records, data types, and values for the specified website session.",
        "operationId": "getWebsiteSessionProperties",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of the visitor session.",
            "in": "path",
            "name": "sessionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "createdAt": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "format": "date-time",
                            "type": "string"
                          }
                        ],
                        "description": "Date and time the record was created."
                      },
                      "dataKey": {
                        "description": "Name of the custom property.",
                        "type": "string"
                      },
                      "dataType": {
                        "description": "Data type of the custom property.",
                        "type": "number"
                      },
                      "dateValue": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "format": "date-time",
                            "type": "string"
                          }
                        ],
                        "description": "Custom property value stored as a date-time."
                      },
                      "numberValue": {
                        "description": "Custom property value stored as a number.",
                        "type": "number"
                      },
                      "sessionId": {
                        "description": "ID of the visitor session.",
                        "type": "string"
                      },
                      "stringValue": {
                        "description": "Custom property value stored as a string.",
                        "type": "string"
                      },
                      "websiteId": {
                        "description": "ID of the website.",
                        "type": "string"
                      }
                    },
                    "required": [
                      "websiteId",
                      "sessionId",
                      "dataKey",
                      "dataType",
                      "stringValue",
                      "numberValue",
                      "dateValue",
                      "createdAt"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get a session's custom properties",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/sessions/[sessionId]/properties/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/sessions/{sessionId}/replays": {
      "get": {
        "description": "Returns a paginated, searchable list of recordings for the specified website session.",
        "operationId": "getWebsiteSessionReplays",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of the visitor session.",
            "in": "path",
            "name": "sessionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Start of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "startDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "End of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "endDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Comparison period: prev for the previous period or yoy for the same period last year.",
            "in": "query",
            "name": "compare",
            "required": false,
            "schema": {
              "enum": [
                "prev",
                "yoy"
              ],
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "properties": {
                          "browser": {
                            "description": "Browser used by the visitor.",
                            "type": "string"
                          },
                          "chunkCount": {
                            "description": "Number of stored recording chunks.",
                            "type": "number"
                          },
                          "city": {
                            "description": "City of the visitor.",
                            "type": "string"
                          },
                          "country": {
                            "description": "Country code of the visitor.",
                            "type": "string"
                          },
                          "createdAt": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "format": "date-time",
                                "type": "string"
                              }
                            ],
                            "description": "Date and time the record was created."
                          },
                          "device": {
                            "description": "Device category used by the visitor.",
                            "type": "string"
                          },
                          "duration": {
                            "description": "Replay duration in milliseconds.",
                            "type": "number"
                          },
                          "endedAt": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "format": "date-time",
                                "type": "string"
                              }
                            ],
                            "description": "Date and time the recording ended."
                          },
                          "eventCount": {
                            "description": "Number of recorded replay events.",
                            "type": "number"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "os": {
                            "description": "Operating system used by the visitor.",
                            "type": "string"
                          },
                          "sessionId": {
                            "description": "ID of the visitor session.",
                            "type": "string"
                          },
                          "startedAt": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "format": "date-time",
                                "type": "string"
                              }
                            ],
                            "description": "Date and time the recording started."
                          },
                          "websiteId": {
                            "description": "ID of the website.",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "sessionId",
                          "websiteId",
                          "browser",
                          "os",
                          "device",
                          "country",
                          "city",
                          "eventCount",
                          "chunkCount",
                          "startedAt",
                          "endedAt",
                          "duration",
                          "createdAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List a visitor's session replays",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/sessions/[sessionId]/replays/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/sessions/stats": {
      "get": {
        "description": "Returns aggregate session metrics for the website over the selected date range and filters.",
        "operationId": "getWebsiteSessionStats",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {},
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get visitor session statistics",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/sessions/stats/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/sessions/weekly": {
      "get": {
        "description": "Returns distinct visitor counts grouped by day of the week and hour in the selected timezone and date range.",
        "operationId": "getWebsiteSessionsWeekly",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "items": {
                      "type": "number"
                    },
                    "type": "array"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get traffic by weekday and hour",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/sessions/weekly/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/shares": {
      "get": {
        "description": "Returns a paginated list of shares for the specified website.",
        "operationId": "getWebsiteShares",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1.",
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Number of results per page.",
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Maximum number of results to include.",
            "in": "query",
            "name": "maxResults",
            "required": false,
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "count": {
                      "description": "Number of matching records.",
                      "type": "number"
                    },
                    "data": {
                      "description": "Data returned by the operation.",
                      "items": {
                        "properties": {
                          "createdAt": {
                            "description": "Date and time the record was created.",
                            "format": "date-time",
                            "type": "string"
                          },
                          "entityId": {
                            "description": "ID of the resource being shared.",
                            "type": "string"
                          },
                          "id": {
                            "description": "Unique identifier of the resource.",
                            "type": "string"
                          },
                          "name": {
                            "description": "Display name of the resource.",
                            "type": "string"
                          },
                          "parameters": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {
                                "additionalProperties": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "const": false
                                    },
                                    {
                                      "const": true
                                    },
                                    {},
                                    {
                                      "properties": {
                                        "length": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "length"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "properties": {},
                                "type": "object"
                              },
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ],
                            "description": "Configuration parameters for the resource."
                          },
                          "shareType": {
                            "description": "Type of resource made available by the share.",
                            "type": "number"
                          },
                          "slug": {
                            "description": "URL slug used to access the resource.",
                            "type": "string"
                          },
                          "updatedAt": {
                            "description": "Date and time the record was last updated.",
                            "format": "date-time",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "createdAt",
                          "updatedAt",
                          "name",
                          "slug",
                          "parameters",
                          "entityId",
                          "shareType"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "isCapped": {
                      "description": "Whether the results were truncated by the maximum result limit.",
                      "type": "boolean"
                    },
                    "orderBy": {
                      "description": "Field to sort the results by.",
                      "type": "string"
                    },
                    "page": {
                      "description": "Page number, starting at 1.",
                      "type": "number"
                    },
                    "pageSize": {
                      "description": "Number of results per page.",
                      "type": "number"
                    },
                    "search": {
                      "description": "Search text used to filter results.",
                      "type": "string"
                    },
                    "sortDescending": {
                      "description": "Whether to sort results in descending order.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "data",
                    "count",
                    "page",
                    "pageSize"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List shares for a website",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/shares/contract.generated.ts"
      },
      "post": {
        "description": "Creates a named share for the specified website with optional parameters.",
        "operationId": "createWebsiteShare",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "name": {
                    "description": "Display name of the resource.",
                    "maxLength": 200,
                    "type": "string"
                  },
                  "parameters": {
                    "additionalProperties": true,
                    "description": "Configuration parameters for the resource.",
                    "type": "object"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "entityId": {
                      "description": "ID of the resource being shared.",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Display name of the resource.",
                      "type": "string"
                    },
                    "parameters": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "const": false
                        },
                        {
                          "const": true
                        },
                        {
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {},
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ]
                          },
                          "properties": {},
                          "type": "object"
                        },
                        {
                          "properties": {
                            "length": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "length"
                          ],
                          "type": "object"
                        }
                      ],
                      "description": "Configuration parameters for the resource."
                    },
                    "shareType": {
                      "description": "Type of resource made available by the share.",
                      "type": "number"
                    },
                    "slug": {
                      "description": "URL slug used to access the resource.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "updatedAt",
                    "name",
                    "slug",
                    "parameters",
                    "entityId",
                    "shareType"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a share for a website",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/shares/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/stats": {
      "get": {
        "description": "Returns pageviews, unique visitors, visits, bounces, and total time on site for the selected date range and comparison period.",
        "operationId": "getWebsiteStats",
        "parameters": [
          {
            "description": "Website ID.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "description": "Website ID.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Start of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "startDate",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "End of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "endDate",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Comparison period: prev for the previous period or yoy for the same period last year.",
            "in": "query",
            "name": "compare",
            "schema": {
              "enum": [
                "prev",
                "yoy"
              ],
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebsiteStats"
                }
              }
            },
            "description": "Summary stats with comparison."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get website summary statistics",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/stats/contract.ts"
      }
    },
    "/api/websites/{websiteId}/transfer": {
      "post": {
        "description": "Transfers the specified website to another user or team after checking permission for the destination.",
        "operationId": "transferWebsite",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "teamId": {
                    "description": "ID of the associated team.",
                    "format": "uuid",
                    "type": "string"
                  },
                  "userId": {
                    "description": "ID of the associated user.",
                    "format": "uuid",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "createdAt": {
                      "description": "Date and time the record was created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "createdBy": {
                      "description": "ID of the user who created the resource.",
                      "type": "string"
                    },
                    "deletedAt": {
                      "description": "Date and time the record was deleted, if applicable.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "domain": {
                      "description": "Domain name associated with the resource.",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Display name of the resource.",
                      "type": "string"
                    },
                    "recorderEnabled": {
                      "description": "Whether recording is enabled for the website.",
                      "type": "boolean"
                    },
                    "replayConfig": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "const": false
                        },
                        {
                          "const": true
                        },
                        {
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "const": false
                              },
                              {
                                "const": true
                              },
                              {},
                              {
                                "properties": {
                                  "length": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "length"
                                ],
                                "type": "object"
                              }
                            ]
                          },
                          "properties": {},
                          "type": "object"
                        },
                        {
                          "properties": {
                            "length": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "length"
                          ],
                          "type": "object"
                        }
                      ],
                      "description": "Session replay and heatmap recording configuration."
                    },
                    "resetAt": {
                      "description": "Date and time the website analytics were last reset.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "teamId": {
                      "description": "ID of the associated team.",
                      "type": "string"
                    },
                    "updatedAt": {
                      "description": "Date and time the record was last updated.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "userId": {
                      "description": "ID of the associated user.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "userId",
                    "createdAt",
                    "updatedAt",
                    "deletedAt",
                    "createdBy",
                    "name",
                    "domain",
                    "resetAt",
                    "teamId",
                    "recorderEnabled",
                    "replayConfig"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Transfer website ownership",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/transfer/contract.generated.ts"
      }
    },
    "/api/websites/{websiteId}/utm/metrics": {
      "get": {
        "description": "Returns pageview counts grouped by a UTM parameter, such as source, medium, campaign, term, or content, for the selected date range.",
        "operationId": "getWebsiteUtmMetrics",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL path.",
            "in": "query",
            "name": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by referring URL.",
            "in": "query",
            "name": "referrer",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page title.",
            "in": "query",
            "name": "title",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by page URL query string.",
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Operating system used by the visitor.",
            "in": "query",
            "name": "os",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Browser used by the visitor.",
            "in": "query",
            "name": "browser",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Device category used by the visitor.",
            "in": "query",
            "name": "device",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Country code of the visitor.",
            "in": "query",
            "name": "country",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Region or subdivision of the visitor.",
            "in": "query",
            "name": "region",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "City of the visitor.",
            "in": "query",
            "name": "city",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Tag attached to the tracked activity.",
            "in": "query",
            "name": "tag",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hostname on which the activity occurred.",
            "in": "query",
            "name": "hostname",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Custom identifier assigned to the visitor.",
            "in": "query",
            "name": "distinctId",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Preferred language reported by the visitor browser.",
            "in": "query",
            "name": "language",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Filter by custom event name.",
            "in": "query",
            "name": "event",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign source.",
            "in": "query",
            "name": "utmSource",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign medium.",
            "in": "query",
            "name": "utmMedium",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign name.",
            "in": "query",
            "name": "utmCampaign",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign content.",
            "in": "query",
            "name": "utmContent",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "UTM campaign search term.",
            "in": "query",
            "name": "utmTerm",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of a saved segment used to filter results.",
            "in": "query",
            "name": "segment",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "ID of a saved cohort used to filter visitors.",
            "in": "query",
            "name": "cohort",
            "schema": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            }
          },
          {
            "description": "Event type: 1 for a pageview or 2 for a custom event.",
            "in": "query",
            "name": "eventType",
            "schema": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          {
            "description": "Set a non-empty value to exclude visits with only one pageview.",
            "in": "query",
            "name": "excludeBounce",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Whether records must match all filters or any filter.",
            "in": "query",
            "name": "match",
            "schema": {
              "enum": [
                "all",
                "any"
              ],
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": true,
            "schema": {
              "maximum": 8640000000000000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": true,
            "schema": {
              "maximum": 8640000000000000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Type of resource or analytics dimension to return.",
            "in": "query",
            "name": "type",
            "required": true,
            "schema": {
              "enum": [
                "utm_source",
                "utm_medium",
                "utm_campaign",
                "utm_term",
                "utm_content"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "properties": {
                      "utm": {
                        "type": "string"
                      },
                      "views": {
                        "description": "Pageview counts for the selected period.",
                        "type": "number"
                      }
                    },
                    "required": [
                      "utm",
                      "views"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Analytics results."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          },
          "404": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "not-found",
                    "message": "Not found.",
                    "status": 404
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Not found."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get website UTM metrics",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/utm/metrics/contract.ts"
      }
    },
    "/api/websites/{websiteId}/values": {
      "get": {
        "description": "Returns available values for a website filter, including saved segments or cohorts when requested, to populate filter choices.",
        "operationId": "getWebsiteValues",
        "parameters": [
          {
            "description": "ID of the website.",
            "in": "path",
            "name": "websiteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Start of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "startDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "End of the date range as an ISO 8601 date or date-time.",
            "in": "query",
            "name": "endDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Time interval used to group results: minute, hour, day, month, or year.",
            "in": "query",
            "name": "unit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Comparison period: prev for the previous period or yoy for the same period last year.",
            "in": "query",
            "name": "compare",
            "required": false,
            "schema": {
              "enum": [
                "prev",
                "yoy"
              ],
              "type": "string"
            }
          },
          {
            "description": "Type of resource or analytics dimension to return.",
            "in": "query",
            "name": "type",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Search text used to filter results.",
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {},
                  "type": "array"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "List website filter values",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/[websiteId]/values/contract.generated.ts"
      }
    },
    "/api/websites/charts": {
      "get": {
        "description": "Returns visitor totals and chart data for the requested websites the caller can view, within the selected date range.",
        "operationId": "getWebsitesCharts",
        "parameters": [
          {
            "description": "Comma-separated resource IDs. Provide between 1 and 20 IDs.",
            "in": "query",
            "name": "ids",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Start of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "startAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "End of the date range as a Unix timestamp in milliseconds.",
            "in": "query",
            "name": "endAt",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "IANA time zone used to interpret dates and group results, for example America/New_York.",
            "in": "query",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Relative date range, for example 7d or 30day, used instead of an explicit startAt/endAt range.",
            "in": "query",
            "name": "period",
            "required": false,
            "schema": {
              "enum": [
                "today",
                "24h",
                "7d",
                "30d",
                "0day",
                "24hour",
                "0week",
                "7day",
                "0month",
                "30day",
                "90day",
                "0year",
                "6month",
                "12month"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "additionalProperties": {
                        "properties": {
                          "total": {
                            "type": "number"
                          },
                          "values": {
                            "items": {
                              "type": "number"
                            },
                            "type": "array"
                          }
                        },
                        "required": [
                          "values",
                          "total"
                        ],
                        "type": "object"
                      },
                      "description": "Data returned by the operation.",
                      "properties": {},
                      "type": "object"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The operation completed successfully."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "bad-request",
                    "message": "Bad request.",
                    "status": 400
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Bad request."
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Unauthorized.",
                    "status": 401
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            },
            "description": "Unauthorized."
          }
        },
        "security": [
          {
            "bearerAuth": []
          },
          {
            "shareContext": [],
            "shareToken": []
          }
        ],
        "summary": "Get visitor charts for websites",
        "tags": [
          "Websites"
        ],
        "x-umami-audience": "public",
        "x-umami-contract": "explicit",
        "x-umami-source": "src/app/api/websites/charts/contract.generated.ts"
      }
    }
  },
  "tags": [
    {
      "name": "Account"
    },
    {
      "name": "Administration"
    },
    {
      "name": "Authentication"
    },
    {
      "name": "Boards"
    },
    {
      "name": "Collection"
    },
    {
      "name": "Dashboard"
    },
    {
      "name": "Errors"
    },
    {
      "name": "Links"
    },
    {
      "name": "Pixels"
    },
    {
      "name": "Realtime"
    },
    {
      "name": "Scripts"
    },
    {
      "name": "Shares"
    },
    {
      "name": "System"
    },
    {
      "name": "Teams"
    },
    {
      "name": "Two-factor authentication"
    },
    {
      "name": "Users"
    },
    {
      "name": "Websites"
    }
  ]
}
