{
  "openapi": "3.0.1",
  "info": {
    "title": "BandBrief.Api",
    "version": "1.0"
  },
  "paths": {
    "/api/account": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "Get current user's account information",
        "description": "Returns detailed account information for the authenticated user.",
        "operationId": "GetAccountInfo",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Account"
        ],
        "summary": "Delete current user's account",
        "description": "Permanently deletes the authenticated user's account and all associated data.",
        "operationId": "DeleteAccount",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteAccountRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/account/resend-verification": {
      "post": {
        "tags": [
          "Account"
        ],
        "summary": "Resend email verification",
        "description": "Sends a verification email to the authenticated user's email address.",
        "operationId": "AccountResendVerificationEmail",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/account/change-password": {
      "post": {
        "tags": [
          "Account"
        ],
        "summary": "Send a password reset email",
        "description": "Initiates Auth0's hosted password-reset flow by emailing a reset link to the authenticated database-connection user (#572). The user completes the change on Auth0's hosted page from the email link. Social identities are managed by their provider.",
        "operationId": "AccountChangePassword",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/account/onboarding": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "Get the current user's onboarding status",
        "description": "Indicates whether the authenticated user must complete first-login onboarding.",
        "operationId": "GetOnboardingStatus",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "Account"
        ],
        "summary": "Complete first-login onboarding",
        "description": "Captures the user's name and workspace name that Auth0 hosted sign-up does not collect.",
        "operationId": "CompleteOnboarding",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteOnboardingRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/account/name": {
      "post": {
        "tags": [
          "Account"
        ],
        "summary": "One-time canonical name capture",
        "description": "Sets the user's write-once canonical name (first + last). 400 once set (#227).",
        "operationId": "SetCanonicalName",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetNameRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/account/storage-usage": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "Get current tenant's storage usage vs quota",
        "description": "Returns metered usage against the tenant's tier quota (071).",
        "operationId": "GetStorageUsage",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/account/attribution": {
      "post": {
        "tags": [
          "Account"
        ],
        "summary": "Persist first-touch marketing attribution (098)",
        "description": "Stores the marketing site's bb_attribution payload on the tenant, once and idempotently. Later calls are accepted but ignored.",
        "operationId": "SetAcquisitionAttribution",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AttributionPayload"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/users": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "List all users (paginated, sortable, searchable)",
        "operationId": "AdminListUsers",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 25
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "createdAt"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "desc"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/users/{userId}": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Get full user detail",
        "operationId": "AdminGetUserDetail",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Update user profile fields",
        "operationId": "AdminUpdateUser",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAdminUserRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Admin"
        ],
        "summary": "Permanently delete a user",
        "operationId": "AdminDeleteUser",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/users/{userId}/delete-preview": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Preview what will happen when a user is deleted",
        "operationId": "AdminDeletePreview",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/users/{userId}/enable": {
      "post": {
        "tags": [
          "Admin"
        ],
        "summary": "Enable a disabled user account",
        "operationId": "AdminEnableUser",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/users/{userId}/disable": {
      "post": {
        "tags": [
          "Admin"
        ],
        "summary": "Disable a user account",
        "operationId": "AdminDisableUser",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/users/{userId}/bands/{bandId}": {
      "delete": {
        "tags": [
          "Admin"
        ],
        "summary": "Delete a band owned by a user",
        "operationId": "AdminDeleteUserBand",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/users/{userId}/memberships/{membershipId}": {
      "delete": {
        "tags": [
          "Admin"
        ],
        "summary": "Remove a user's band membership",
        "operationId": "AdminRemoveUserMembership",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "membershipId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/activity-log": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Query the cross-tenant activity history (filterable, chronologically sortable)",
        "operationId": "AdminQueryActivityLog",
        "parameters": [
          {
            "name": "tenantId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "bandId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "excludeEventTypes",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/activity-log/filters": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Distinct tenant/band/user filter values present in the activity history",
        "operationId": "AdminActivityLogFilterOptions",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/tenants": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "List tenants with their subscription summary (searchable, paginated)",
        "operationId": "AdminListTenants",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 25
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/tenants/{id}": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Get one tenant with its restriction state",
        "operationId": "AdminGetTenant",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/tenants/{id}/restrictions": {
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Apply or lift a per-tenant restriction (photo uploads / public pages)",
        "description": "Requires a reason when applying. Band rows are never modified; lifting restores each band's own public state.",
        "operationId": "AdminSetTenantRestriction",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetTenantRestrictionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/storage/orphans": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Scan for orphaned storage objects (read-only, paginated)",
        "operationId": "AdminScanOrphanedStorage",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          },
          {
            "name": "bucket",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/storage/orphans/delete": {
      "post": {
        "tags": [
          "Admin"
        ],
        "summary": "Delete selected (or all) orphaned storage objects",
        "operationId": "AdminDeleteOrphanedStorage",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteOrphansRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/storage/over-quota": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "List tenants continuously over quota beyond the fair-use window (071)",
        "operationId": "AdminListOverQuotaTenants",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/settings": {
      "get": {
        "tags": [
          "Admin"
        ],
        "summary": "Get system settings",
        "operationId": "AdminGetSettings",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Admin"
        ],
        "summary": "Update system settings",
        "operationId": "AdminUpdateSettings",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSystemSettingsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/reports": {
      "get": {
        "tags": [
          "Admin"
        ],
        "operationId": "ListBandReports",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/reports/{id}/dismiss": {
      "post": {
        "tags": [
          "Admin"
        ],
        "operationId": "DismissBandReport",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/reports/{id}/takedown": {
      "post": {
        "tags": [
          "Admin"
        ],
        "operationId": "TakedownBandReport",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/announcements": {
      "post": {
        "tags": [
          "Admin"
        ],
        "operationId": "AdminCreateAnnouncement",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAnnouncementRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/announcements/{id}": {
      "delete": {
        "tags": [
          "Admin"
        ],
        "operationId": "AdminDeleteAnnouncement",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/announcements": {
      "get": {
        "tags": [
          "Announcements"
        ],
        "operationId": "ListAnnouncements",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/announcements/public": {
      "get": {
        "tags": [
          "Announcements"
        ],
        "operationId": "ListPublicAnnouncements",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/announcements": {
      "get": {
        "tags": [
          "Announcements"
        ],
        "operationId": "ListBandAnnouncements",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "Announcements"
        ],
        "operationId": "CreateBandAnnouncement",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBandAnnouncementRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/announcements/{id}": {
      "delete": {
        "tags": [
          "Announcements"
        ],
        "operationId": "DeleteBandAnnouncement",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/auth/verify-email/{token}": {
      "get": {
        "tags": [
          "Authentication"
        ],
        "summary": "Validate email verification token",
        "description": "Validates an email verification token without using it.",
        "operationId": "ValidateEmailVerificationToken",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/auth/verify-email": {
      "post": {
        "tags": [
          "Authentication"
        ],
        "summary": "Verify email address",
        "description": "Verifies the user's email address using a valid token.",
        "operationId": "VerifyEmail",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyEmailRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/auth/resend-verification": {
      "post": {
        "tags": [
          "Authentication"
        ],
        "summary": "Resend verification email",
        "description": "Sends a new verification email to the user.",
        "operationId": "ResendVerificationEmail",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResendVerificationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/storage/private/{environment}/{key}": {
      "get": {
        "tags": [
          "BandBrief.Api"
        ],
        "parameters": [
          {
            "name": "environment",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "token",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/": {
      "get": {
        "tags": [
          "BandBrief.Api"
        ],
        "operationId": "HealthCheck",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands": {
      "post": {
        "tags": [
          "Bands"
        ],
        "summary": "Create a new band",
        "description": "Creates a new band with the authenticated user as the creator.",
        "operationId": "CreateBand",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBandRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{id}": {
      "get": {
        "tags": [
          "Bands"
        ],
        "summary": "Get band details",
        "description": "Returns band details. Members only (issue #370).",
        "operationId": "GetBand",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Bands"
        ],
        "summary": "Update band information",
        "description": "Updates band details. Only the creator can update.",
        "operationId": "UpdateBand",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateBandRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Bands"
        ],
        "summary": "Delete a band",
        "description": "Deletes a band. Only the creator can delete.",
        "operationId": "DeleteBand",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/my": {
      "get": {
        "tags": [
          "Bands"
        ],
        "summary": "Get user's bands",
        "description": "Returns all bands where the user is the creator or a member.",
        "operationId": "GetMyBands",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/genres": {
      "get": {
        "tags": [
          "Bands"
        ],
        "summary": "Get available genres",
        "description": "Returns the list of available music genres.",
        "operationId": "ListGenres",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{id}/image": {
      "post": {
        "tags": [
          "Bands"
        ],
        "summary": "Upload band image",
        "description": "Uploads a new image for the band. Only the creator can upload.",
        "operationId": "UploadBandImage",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Bands"
        ],
        "summary": "Delete band image",
        "description": "Deletes the band's image. Only the creator can delete.",
        "operationId": "DeleteBandImage",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{id}/banner": {
      "post": {
        "tags": [
          "Bands"
        ],
        "summary": "Upload Band Banner",
        "description": "Uploads a new Band Banner (wide masthead image). Only the creator can upload.",
        "operationId": "UploadBandBanner",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Bands"
        ],
        "summary": "Delete Band Banner",
        "description": "Deletes the band's Band Banner. Only the creator can delete.",
        "operationId": "DeleteBandBanner",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{id}/members": {
      "get": {
        "tags": [
          "Bands"
        ],
        "summary": "List band members",
        "description": "Returns the list of band members with their instruments.",
        "operationId": "ListBandMembers",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{id}/members/{userId}": {
      "delete": {
        "tags": [
          "Bands"
        ],
        "summary": "Remove a member from the band",
        "description": "Removes a member from the band. Only the creator can remove members.",
        "operationId": "RemoveBandMember",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{id}/leave": {
      "post": {
        "tags": [
          "Bands"
        ],
        "summary": "Leave a band voluntarily",
        "description": "Allows a non-creator member to leave the band. The band leader is notified.",
        "operationId": "LeaveBand",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{id}/slug": {
      "put": {
        "tags": [
          "Bands"
        ],
        "summary": "Update a band's slug",
        "description": "Updates the band's public page slug. Band leader only.",
        "operationId": "UpdateSlug",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSlugRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/by-slug/{slug}": {
      "get": {
        "tags": [
          "Bands"
        ],
        "operationId": "GetBandBySlug",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{id}/page-layout": {
      "get": {
        "tags": [
          "Bands"
        ],
        "summary": "Get the public band page layout (editor)",
        "operationId": "GetPageLayout",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Bands"
        ],
        "summary": "Save the public band page layout (Plus tier)",
        "operationId": "SavePageLayout",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SavePageLayoutRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/public-slugs": {
      "get": {
        "tags": [
          "Bands"
        ],
        "summary": "Get all public band slugs",
        "description": "Returns all slugs for public bands. Used for sitemap generation.",
        "operationId": "GetPublicSlugs",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 10000
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/social-links": {
      "get": {
        "tags": [
          "Bands"
        ],
        "summary": "List a band's social links",
        "description": "Returns the band's social links in display order. Band members only.",
        "operationId": "ListSocialLinks",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Bands"
        ],
        "summary": "Replace a band's social links",
        "description": "Replaces the band's entire social-link list in one transaction. Creator only. Max 8 links.",
        "operationId": "ReplaceSocialLinks",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplaceSocialLinksRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/billing/subscription": {
      "get": {
        "tags": [
          "Billing"
        ],
        "operationId": "GetSubscription",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/billing/checkout": {
      "post": {
        "tags": [
          "Billing"
        ],
        "operationId": "CreateBillingCheckout",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckoutRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/billing/plan": {
      "post": {
        "tags": [
          "Billing"
        ],
        "operationId": "ChangeBillingPlan",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlanChangeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/billing/plan/preview": {
      "post": {
        "tags": [
          "Billing"
        ],
        "operationId": "PreviewBillingPlanChange",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlanChangeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/billing/cancel": {
      "post": {
        "tags": [
          "Billing"
        ],
        "operationId": "CancelBillingSubscription",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/billing/comp": {
      "post": {
        "tags": [
          "Billing"
        ],
        "operationId": "GrantCompSubscription",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompGrantRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Billing"
        ],
        "operationId": "RevokeCompSubscription",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompRevokeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/events": {
      "get": {
        "tags": [
          "Calendar Events"
        ],
        "summary": "List all events for a band",
        "description": "Returns all events for the specified band within the given date range.",
        "operationId": "ListEvents",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "start",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "end",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/events/{eventId}": {
      "get": {
        "tags": [
          "Calendar Events"
        ],
        "summary": "Get event details",
        "description": "Returns details of a specific event. For a repeating series, ?date= resolves a specific occurrence (exception instances win); without it, the next occurrence from today is returned.",
        "operationId": "GetEvent",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "eventId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "date",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Calendar Events"
        ],
        "summary": "Update an event",
        "description": "Updates an existing event.",
        "operationId": "UpdateEvent",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "eventId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "updateScope",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/UpdateScope"
            }
          },
          {
            "name": "resetExceptions",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateEventRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Calendar Events"
        ],
        "summary": "Delete an event",
        "description": "Deletes an event from the calendar.",
        "operationId": "DeleteEvent",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "eventId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "deleteScope",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/DeleteScope"
            }
          },
          {
            "name": "instanceDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/events/{eventId}/occurrences": {
      "get": {
        "tags": [
          "Calendar Events"
        ],
        "summary": "Get the previous and next occurrence dates of a repeating event",
        "description": "Returns {previous, next} occurrence dates (yyyy-MM-dd) around the given date for a repeating series; nulls for non-recurring events.",
        "operationId": "GetEventOccurrences",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "eventId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "around",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "n",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/events/{eventId}/image": {
      "post": {
        "tags": [
          "Calendar Events"
        ],
        "summary": "Upload an image for an event",
        "description": "Uploads a promotional image for the event, preserving aspect ratio. Used for gig events.",
        "operationId": "UploadEventImage",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "eventId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Calendar Events"
        ],
        "summary": "Delete an event's image",
        "description": "Removes the promotional image associated with the event.",
        "operationId": "DeleteEventImage",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "eventId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/calendars/{calendarId}/events": {
      "post": {
        "tags": [
          "Calendar Events"
        ],
        "summary": "Create a new event",
        "description": "Creates a new event in the specified calendar.",
        "operationId": "CreateEvent",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "calendarId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateEventRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/feeds/{token}.ics": {
      "get": {
        "tags": [
          "Calendar Feed"
        ],
        "summary": "Serve iCal calendar feed",
        "description": "Serves an RFC 5545 iCal feed for the calendar associated with the given token. No JWT required; the token authenticates the request.",
        "operationId": "ServeCalendarFeed",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/calendars/{calendarId}/feed-token": {
      "post": {
        "tags": [
          "Calendar Feed"
        ],
        "summary": "Generate or retrieve existing feed token",
        "description": "Generates a subscription token for the authenticated user and the specified calendar. If an active token already exists, returns it (idempotent).",
        "operationId": "GenerateOrGetFeedToken",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "calendarId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Calendar Feed"
        ],
        "summary": "Regenerate feed token",
        "description": "Revokes the existing token and creates a new one. If no existing token, creates a new one.",
        "operationId": "RegenerateFeedToken",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "calendarId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/calendar-preferences": {
      "get": {
        "tags": [
          "Calendar Preferences"
        ],
        "summary": "Get calendar preferences",
        "description": "Returns the current user's calendar preferences for the specified band.",
        "operationId": "GetCalendarPreferences",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Calendar Preferences"
        ],
        "summary": "Update calendar preferences",
        "description": "Updates the current user's calendar preferences for the specified band.",
        "operationId": "UpdateCalendarPreferences",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCalendarPreferencesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/pending-rsvps": {
      "get": {
        "tags": [
          "Calendars"
        ],
        "operationId": "GetPendingRsvps",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/calendars": {
      "get": {
        "tags": [
          "Calendars"
        ],
        "summary": "List calendars for a band",
        "description": "Returns all calendars visible to the current user for the specified band.",
        "operationId": "ListCalendars",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "Calendars"
        ],
        "summary": "Create a new calendar",
        "description": "Creates a new calendar for the band. Only band leaders can create calendars.",
        "operationId": "CreateCalendar",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCalendarRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/calendars/{calendarId}": {
      "get": {
        "tags": [
          "Calendars"
        ],
        "summary": "Get calendar details",
        "description": "Returns details of a specific calendar.",
        "operationId": "GetCalendar",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "calendarId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Calendars"
        ],
        "summary": "Update a calendar",
        "description": "Updates calendar settings. Only band leaders can update calendars.",
        "operationId": "UpdateCalendar",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "calendarId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCalendarRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Calendars"
        ],
        "summary": "Delete a calendar",
        "description": "Deletes a calendar and all its events. Cannot delete the default calendar.",
        "operationId": "DeleteCalendar",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "calendarId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/upcoming-gigs": {
      "get": {
        "tags": [
          "Calendars"
        ],
        "summary": "Get upcoming gigs for a band",
        "description": "Returns upcoming publicly visible gig events from any of the band's public calendars (spec 093). Does not require authentication.",
        "operationId": "GetUpcomingGigs",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/events/{eventId}/availability/request": {
      "post": {
        "tags": [
          "Calendars"
        ],
        "operationId": "RequestEventAvailability",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "eventId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/events/{eventId}/availability": {
      "put": {
        "tags": [
          "Calendars"
        ],
        "operationId": "AnswerEventAvailability",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "eventId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "occurrenceDate",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AnswerAvailabilityRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "Calendars"
        ],
        "operationId": "GetEventAvailability",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "eventId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "occurrenceDate",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/events/{eventId}/availability/bulk": {
      "post": {
        "tags": [
          "Calendars"
        ],
        "operationId": "BulkAnswerEventAvailability",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "eventId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AnswerAvailabilityRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/devices": {
      "post": {
        "tags": [
          "Devices"
        ],
        "summary": "Register (or re-register) an Expo push token for this user",
        "operationId": "RegisterDevice",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterDeviceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Devices"
        ],
        "summary": "Clear one push token (by token) or all of this user's tokens",
        "operationId": "ClearDevice",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/discussions/{entityType}/{entityId}": {
      "get": {
        "tags": [
          "Discussions"
        ],
        "summary": "Get paginated discussion messages for an entity",
        "operationId": "GetDiscussionMessages",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "entityType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "entityId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "Discussions"
        ],
        "summary": "Send a new discussion message (root comment or reply)",
        "operationId": "SendDiscussionMessage",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "entityType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "entityId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendMessageRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/discussions/{entityType}/{entityId}/threads": {
      "get": {
        "tags": [
          "Discussions"
        ],
        "summary": "Get threads for a subject (roots by latest activity, each with its last 2 replies)",
        "operationId": "GetDiscussionThreads",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "entityType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "entityId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "occurrenceDate",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/discussions/{entityType}/{entityId}/threads/{rootId}/replies": {
      "get": {
        "tags": [
          "Discussions"
        ],
        "summary": "Get older replies of a thread",
        "operationId": "GetDiscussionReplies",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "entityType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "entityId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "rootId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/discussions/{entityType}/{entityId}/follow": {
      "put": {
        "tags": [
          "Discussions"
        ],
        "summary": "Follow (or unmute) a subject",
        "operationId": "FollowDiscussion",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "entityType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "entityId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "occurrenceDate",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Discussions"
        ],
        "summary": "Unfollow a subject (muted)",
        "operationId": "UnfollowDiscussion",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "entityType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "entityId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "occurrenceDate",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/discussions/{entityType}/{entityId}/read": {
      "post": {
        "tags": [
          "Discussions"
        ],
        "summary": "Mark a subject as read",
        "operationId": "MarkDiscussionRead",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "entityType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "entityId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "occurrenceDate",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/discussions/messages/{messageId}": {
      "patch": {
        "tags": [
          "Discussions"
        ],
        "summary": "Edit own message",
        "operationId": "EditDiscussionMessage",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "messageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EditMessageRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Discussions"
        ],
        "summary": "Delete own message (or any message as leader)",
        "operationId": "DeleteDiscussionMessage",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "messageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/discussions/messages/{messageId}/like": {
      "put": {
        "tags": [
          "Discussions"
        ],
        "summary": "Like a message",
        "operationId": "LikeDiscussionMessage",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "messageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Discussions"
        ],
        "summary": "Unlike a message",
        "operationId": "UnlikeDiscussionMessage",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "messageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/discussions/attachments": {
      "post": {
        "tags": [
          "Discussions"
        ],
        "summary": "Upload a file attachment (images, PDFs, audio; 10 MB max)",
        "operationId": "UploadDiscussionAttachment",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "file"
                ],
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "file": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/discussions/attachments/link": {
      "post": {
        "tags": [
          "Discussions"
        ],
        "summary": "Create a link attachment to an existing band object (song, set, event)",
        "operationId": "LinkDiscussionObject",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LinkAttachmentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/discussions/attachments/{attachmentId}/url": {
      "get": {
        "tags": [
          "Discussions"
        ],
        "summary": "Get a presigned download URL for a file attachment",
        "operationId": "GetDiscussionAttachmentUrl",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "attachmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/discussions/index": {
      "get": {
        "tags": [
          "Discussions"
        ],
        "summary": "Get Discussions index rows (one per subject; one per band-level thread)",
        "operationId": "GetDiscussionsIndex",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/discussions/unread-count": {
      "get": {
        "tags": [
          "Discussions"
        ],
        "summary": "Total unread comments for the current user across the band",
        "operationId": "GetDiscussionsUnreadCount",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/gallery/photos": {
      "get": {
        "tags": [
          "Gallery"
        ],
        "operationId": "GalleryListPhotos",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "Gallery"
        ],
        "operationId": "GalleryUploadPhotos",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/gallery/photos/{photoId}": {
      "put": {
        "tags": [
          "Gallery"
        ],
        "operationId": "GalleryUpdatePhoto",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "photoId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePhotoRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Gallery"
        ],
        "operationId": "GalleryDeletePhoto",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "photoId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/gallery/photos/bulk": {
      "post": {
        "tags": [
          "Gallery"
        ],
        "operationId": "GalleryBulkPhotos",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkPhotoRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/gallery/photos/download": {
      "post": {
        "tags": [
          "Gallery"
        ],
        "operationId": "GalleryDownloadPhotos",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DownloadPhotosRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/gallery/albums": {
      "get": {
        "tags": [
          "Gallery"
        ],
        "operationId": "GalleryListAlbums",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "Gallery"
        ],
        "operationId": "GalleryCreateAlbum",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AlbumRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/gallery/albums/unsorted/order": {
      "put": {
        "tags": [
          "Gallery"
        ],
        "operationId": "GalleryUpdateUnsortedOrder",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AlbumOrderRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/gallery/albums/{albumId}/order": {
      "put": {
        "tags": [
          "Gallery"
        ],
        "operationId": "GalleryUpdateAlbumOrder",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "albumId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AlbumOrderRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/gallery/albums/{albumId}": {
      "put": {
        "tags": [
          "Gallery"
        ],
        "operationId": "GalleryUpdateAlbum",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "albumId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AlbumRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Gallery"
        ],
        "operationId": "GalleryDeleteAlbum",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "albumId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/public/bands/{bandId}/gallery": {
      "get": {
        "tags": [
          "GalleryEndpoints"
        ],
        "operationId": "GalleryPublicList",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/public/bands/{bandId}/gallery/albums": {
      "get": {
        "tags": [
          "GalleryEndpoints"
        ],
        "operationId": "GalleryPublicAlbums",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/me/next-gig": {
      "get": {
        "tags": [
          "Home"
        ],
        "operationId": "GetMyNextGig",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/invitations/token/{token}": {
      "get": {
        "tags": [
          "Invitations"
        ],
        "summary": "Get invitation details by token",
        "operationId": "GetInvitationByToken",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/invitations": {
      "post": {
        "tags": [
          "Invitations"
        ],
        "summary": "Create a new invitation to join a band",
        "operationId": "CreateInvitation",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInvitationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/invitations/{id}/accept": {
      "post": {
        "tags": [
          "Invitations"
        ],
        "summary": "Accept an invitation to join a band",
        "operationId": "AcceptInvitation",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/invitations/{id}/decline": {
      "post": {
        "tags": [
          "Invitations"
        ],
        "summary": "Decline an invitation",
        "operationId": "DeclineInvitation",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/invitations/{id}": {
      "delete": {
        "tags": [
          "Invitations"
        ],
        "summary": "Revoke a pending invitation",
        "operationId": "RevokeInvitation",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/invitations/band/{bandId}": {
      "get": {
        "tags": [
          "Invitations"
        ],
        "summary": "Get all invitations for a band",
        "operationId": "GetBandInvitations",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/invitations/pending": {
      "get": {
        "tags": [
          "Invitations"
        ],
        "summary": "Get pending invitations for the current user's email",
        "operationId": "GetPendingInvitations",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/notification-preferences": {
      "get": {
        "tags": [
          "NotificationPreferences"
        ],
        "summary": "Get the current user's email notification preferences",
        "operationId": "GetNotificationPreferences",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "NotificationPreferences"
        ],
        "summary": "Save the current user's email notification preferences",
        "operationId": "UpdateNotificationPreferences",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateNotificationPreferencesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/notifications": {
      "get": {
        "tags": [
          "Notifications"
        ],
        "summary": "Get notifications for the current user",
        "operationId": "GetNotifications",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/notifications/unread-count": {
      "get": {
        "tags": [
          "Notifications"
        ],
        "summary": "Get unread notification count",
        "operationId": "GetUnreadCount",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/notifications/{id}/read": {
      "patch": {
        "tags": [
          "Notifications"
        ],
        "summary": "Mark a notification as read",
        "operationId": "MarkNotificationRead",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/notifications/read-all": {
      "patch": {
        "tags": [
          "Notifications"
        ],
        "summary": "Mark all notifications as read",
        "operationId": "MarkAllNotificationsRead",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/billing/webhook": {
      "post": {
        "tags": [
          "PaddleWebhookEndpoints"
        ],
        "operationId": "PaddleWebhook",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/member-availability": {
      "get": {
        "tags": [
          "Personal Calendar"
        ],
        "summary": "Check member availability conflicts",
        "description": "Returns band members who have conflicting personal events for the proposed time. Leader-only.",
        "operationId": "GetMemberAvailability",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/personal-calendar/events": {
      "get": {
        "tags": [
          "Personal Calendar"
        ],
        "summary": "List personal events",
        "description": "Returns personal events for the authenticated user within the given date range.",
        "operationId": "ListPersonalEvents",
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "Personal Calendar"
        ],
        "summary": "Create a personal event",
        "description": "Creates a new event on the user's personal calendar.",
        "operationId": "CreatePersonalEvent",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePersonalEventRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/personal-calendar/events/{eventId}": {
      "get": {
        "tags": [
          "Personal Calendar"
        ],
        "summary": "Get personal event details",
        "description": "Returns details of a specific personal event.",
        "operationId": "GetPersonalEvent",
        "parameters": [
          {
            "name": "eventId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Personal Calendar"
        ],
        "summary": "Update a personal event",
        "description": "Updates an existing personal event.",
        "operationId": "UpdatePersonalEvent",
        "parameters": [
          {
            "name": "eventId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "scope",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/PersonalEventUpdateScope"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePersonalEventRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Personal Calendar"
        ],
        "summary": "Delete a personal event",
        "description": "Deletes a personal event.",
        "operationId": "DeletePersonalEvent",
        "parameters": [
          {
            "name": "eventId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "scope",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/PersonalEventDeleteScope"
            }
          },
          {
            "name": "instanceDate",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/personal-calendar/overlay": {
      "get": {
        "tags": [
          "Personal Calendar"
        ],
        "summary": "Get band event overlay",
        "description": "Returns band calendar events from all bands the user is a member of, filtered by toggle preferences.",
        "operationId": "GetOverlayEvents",
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/personal-calendar/preferences": {
      "get": {
        "tags": [
          "Personal Calendar"
        ],
        "summary": "Get toggle preferences",
        "description": "Returns the user's band/calendar visibility toggle preferences.",
        "operationId": "GetPersonalCalendarPreferences",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Personal Calendar"
        ],
        "summary": "Update toggle preferences",
        "description": "Upserts the user's band/calendar visibility toggle preferences.",
        "operationId": "UpdatePersonalCalendarPreferences",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePersonalCalendarPreferencesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/public/pricing": {
      "get": {
        "tags": [
          "PricingEndpoints"
        ],
        "operationId": "GetPublicPricing",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/profile/{userId}": {
      "get": {
        "tags": [
          "Profile"
        ],
        "summary": "Get user's public profile",
        "description": "Returns a user's public profile information.",
        "operationId": "GetPublicProfile",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/profile": {
      "get": {
        "tags": [
          "Profile"
        ],
        "summary": "Get current user's profile",
        "description": "Returns the authenticated user's profile information.",
        "operationId": "GetProfile",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Profile"
        ],
        "summary": "Update current user's profile",
        "description": "Updates the authenticated user's profile information.",
        "operationId": "UpdateProfile",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProfileRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/profile/instruments": {
      "get": {
        "tags": [
          "Profile"
        ],
        "summary": "Get user's instruments",
        "description": "Returns the list of instruments the user plays.",
        "operationId": "GetProfileInstruments",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Profile"
        ],
        "summary": "Update user's instruments",
        "description": "Updates the list of instruments the user plays.",
        "operationId": "UpdateProfileInstruments",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateInstrumentsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/profile/bands": {
      "get": {
        "tags": [
          "Profile"
        ],
        "summary": "Get user's bands with visibility settings",
        "description": "Returns the user's bands and their public profile visibility settings.",
        "operationId": "GetProfileBands",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/profile/bands/{memberId}/visibility": {
      "put": {
        "tags": [
          "Profile"
        ],
        "summary": "Update band visibility on public profile",
        "description": "Updates whether a band is shown on the user's public profile.",
        "operationId": "UpdateBandVisibility",
        "parameters": [
          {
            "name": "memberId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateBandVisibilityRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/profile/photo": {
      "post": {
        "tags": [
          "Profile"
        ],
        "summary": "Upload profile photo",
        "description": "Uploads a new profile photo for the user.",
        "operationId": "UploadProfilePhoto",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/profile/available-instruments": {
      "get": {
        "tags": [
          "Profile"
        ],
        "summary": "Get list of available instruments",
        "description": "Returns the list of available instruments that can be selected.",
        "operationId": "GetAvailableInstruments",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/public/bands/{bandId}/report": {
      "post": {
        "tags": [
          "PublicReportEndpoints"
        ],
        "operationId": "ReportPublicBandPage",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitReportRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/sets": {
      "get": {
        "tags": [
          "Sets"
        ],
        "summary": "List sets for a band",
        "description": "Returns sets for the specified band. Leaders see all, members see published only.",
        "operationId": "ListSets",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tags",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "name"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "asc"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "Sets"
        ],
        "summary": "Create a new set",
        "description": "Creates a new set. Only band leaders can create sets.",
        "operationId": "CreateSet",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSetRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/sets/{setId}": {
      "get": {
        "tags": [
          "Sets"
        ],
        "summary": "Get set details",
        "description": "Returns full set details including ordered items with live-synced song data.",
        "operationId": "GetSet",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "setId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Sets"
        ],
        "summary": "Update a set",
        "description": "Full replacement of set metadata, items, and tags. Only band leaders can update sets.",
        "operationId": "UpdateSet",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "setId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSetRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Sets"
        ],
        "summary": "Delete a set",
        "description": "Deletes a set and all its items. Only band leaders can delete sets.",
        "operationId": "DeleteSet",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "setId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/sets/{setId}/duplicate": {
      "post": {
        "tags": [
          "Sets"
        ],
        "summary": "Duplicate a set",
        "description": "Creates a copy of the set with a new name. Only band leaders can duplicate sets.",
        "operationId": "DuplicateSet",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "setId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DuplicateSetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/sets/{setId}/pdf": {
      "get": {
        "tags": [
          "Sets"
        ],
        "summary": "Download set as PDF",
        "description": "Generates and downloads a print-ready PDF of the set list.",
        "operationId": "GetSetPdf",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "setId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/bands/{bandId}/songs/{songId}/parts": {
      "get": {
        "tags": [
          "Song Parts"
        ],
        "summary": "List parts for a song",
        "description": "Returns all additional parts for the specified song.",
        "operationId": "ListParts",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "songId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "Song Parts"
        ],
        "summary": "Create a new part",
        "description": "Creates a new part for a song. Only band creators can create parts.",
        "operationId": "CreatePart",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "songId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSongPartRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/songs/{songId}/parts/{partId}": {
      "get": {
        "tags": [
          "Song Parts"
        ],
        "summary": "Get part details",
        "description": "Returns full part details including content.",
        "operationId": "GetPart",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "songId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "partId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Song Parts"
        ],
        "summary": "Update a part",
        "description": "Updates part metadata and content. Only band creators can update parts.",
        "operationId": "UpdatePart",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "songId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "partId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSongPartRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Song Parts"
        ],
        "summary": "Delete a part",
        "description": "Deletes a part and cleans up documents. Only band creators can delete parts.",
        "operationId": "DeletePart",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "songId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "partId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/songs/{songId}/parts/{partId}/document": {
      "post": {
        "tags": [
          "Song Parts"
        ],
        "summary": "Upload a PDF document for a part",
        "description": "Uploads a PDF file and associates it with the part. Max 10 MB.",
        "operationId": "UploadPartDocument",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "songId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "partId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "Song Parts"
        ],
        "summary": "Get presigned URL for part document",
        "description": "Returns a temporary presigned URL to access the uploaded part PDF document.",
        "operationId": "GetPartDocumentUrl",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "songId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "partId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/songs": {
      "get": {
        "tags": [
          "Songs"
        ],
        "summary": "List songs for a band",
        "description": "Returns songs for the specified band. Creators see all, members see published only.",
        "operationId": "ListSongs",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tags",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "stages",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "title"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "asc"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "Songs"
        ],
        "summary": "Create a new song",
        "description": "Creates a new song in the band. Only band creators can create songs.",
        "operationId": "CreateSong",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSongRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/songs/{songId}": {
      "get": {
        "tags": [
          "Songs"
        ],
        "summary": "Get song details",
        "description": "Returns full song details including content.",
        "operationId": "GetSong",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "songId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Songs"
        ],
        "summary": "Update a song",
        "description": "Updates song metadata and content. Only band creators can update songs.",
        "operationId": "UpdateSong",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "songId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSongRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Songs"
        ],
        "summary": "Delete a song",
        "description": "Deletes a song and cleans up documents. Only band creators can delete songs.",
        "operationId": "DeleteSong",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "songId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/songs/{songId}/document": {
      "post": {
        "tags": [
          "Songs"
        ],
        "summary": "Upload a PDF document for a song",
        "description": "Uploads a PDF file and associates it with the song. Max 10 MB.",
        "operationId": "UploadSongDocument",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "songId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "Songs"
        ],
        "summary": "Get presigned URL for song document",
        "description": "Returns a temporary presigned URL to access the uploaded PDF document.",
        "operationId": "GetSongDocumentUrl",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "songId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/songs/{songId}/audio": {
      "post": {
        "tags": [
          "Songs"
        ],
        "summary": "Upload a reference audio track for a song",
        "description": "Uploads an MP3/M4A/WAV reference track and associates it with the song. Max 25 MB.",
        "operationId": "UploadSongAudio",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "songId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "Songs"
        ],
        "summary": "Get presigned URL for the song's reference audio",
        "description": "Returns a temporary presigned URL band members can use to play the reference track.",
        "operationId": "GetSongAudioUrl",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "songId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Songs"
        ],
        "summary": "Remove a song's reference audio track",
        "description": "Deletes the stored track and reclaims its quota bytes. Only band creators can delete.",
        "operationId": "DeleteSongAudio",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "songId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/support/requests": {
      "post": {
        "tags": [
          "SupportEndpoints"
        ],
        "summary": "Submit a Help & Support request (creates a Plain thread)",
        "operationId": "SubmitSupportRequest",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/SupportRequestForm"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/SupportRequestForm"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/support/status": {
      "get": {
        "tags": [
          "SupportEndpoints"
        ],
        "operationId": "GetSupportStatus",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/system-status": {
      "get": {
        "tags": [
          "System"
        ],
        "summary": "Get current system status (public)",
        "operationId": "GetSystemStatus",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/system/image-decode-check": {
      "get": {
        "tags": [
          "System"
        ],
        "operationId": "ImageDecodeCheck",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/tags": {
      "get": {
        "tags": [
          "Tags"
        ],
        "summary": "List tags for a band",
        "description": "Returns all tags for the specified band, optionally filtered by search text.",
        "operationId": "ListTags",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/my-tasks": {
      "get": {
        "tags": [
          "Tasks"
        ],
        "summary": "Open tasks assigned to me, overdue or due within 7 days",
        "operationId": "GetMyAssignedTasks",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/tasks": {
      "get": {
        "tags": [
          "Tasks"
        ],
        "summary": "List tasks for a band",
        "description": "Returns the band's task checklist. All members can read; ordering is done-last, then due date.",
        "operationId": "ListTasks",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "Tasks"
        ],
        "summary": "Create a band task",
        "description": "Creates a task with an optional assignee, due date, and a link to one event/song/set. Creator-only.",
        "operationId": "CreateTask",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTaskRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/tasks/{taskId}": {
      "put": {
        "tags": [
          "Tasks"
        ],
        "summary": "Update a band task",
        "description": "Replaces title, assignee, due date and link. Creator-only. Assignee changes notify the new assignee.",
        "operationId": "UpdateTask",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTaskRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Tasks"
        ],
        "summary": "Delete a band task",
        "description": "Deletes a task permanently. Creator-only; no notifications are sent.",
        "operationId": "DeleteTask",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/tasks/{taskId}/done": {
      "patch": {
        "tags": [
          "Tasks"
        ],
        "summary": "Toggle a task's done state",
        "description": "Marks the task done or open. Creator or current assignee only; sends no notification.",
        "operationId": "SetTaskDone",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetTaskDoneRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/tracking/pending-conversions": {
      "get": {
        "tags": [
          "Tracking"
        ],
        "summary": "Claim this tenant's pending browser conversions (098)",
        "description": "Returns and clears conversion flags set by tenant provisioning and the Paddle webhook. Exactly-once per flag. Also delivers not-yet-sent conversions to Meta's Conversions API when marketing consent is present (#630), returning the shared dedup event ids for the browser pixel.",
        "operationId": "GetPendingConversions",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/venues": {
      "get": {
        "tags": [
          "Venues"
        ],
        "summary": "List venues for the band's tenant",
        "description": "Returns the tenant's venue records shared across its bands, searchable by name.",
        "operationId": "ListVenues",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "Venues"
        ],
        "summary": "Create a venue",
        "description": "Creates a tenant-scoped venue. Any band member can create one (used inline when creating Gig events).",
        "operationId": "CreateVenue",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateVenueRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/venues/{venueId}": {
      "get": {
        "tags": [
          "Venues"
        ],
        "summary": "Get venue details",
        "operationId": "GetVenue",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "venueId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Venues"
        ],
        "summary": "Update a venue",
        "description": "Only band leaders (the band creator) can update venues.",
        "operationId": "UpdateVenue",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "venueId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVenueRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Venues"
        ],
        "summary": "Delete a venue",
        "description": "Deletes the venue; events keep their free-text location. Only band leaders can delete venues.",
        "operationId": "DeleteVenue",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "venueId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/venues/{venueId}/contacts": {
      "get": {
        "tags": [
          "Venues"
        ],
        "summary": "List a venue's contacts",
        "operationId": "ListVenueContacts",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "venueId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "Venues"
        ],
        "summary": "Add a contact to a venue",
        "description": "Name required; role, phone, email optional. Any band member can add contacts.",
        "operationId": "CreateVenueContact",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "venueId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateVenueContactRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/venues/{venueId}/contacts/{contactId}": {
      "put": {
        "tags": [
          "Venues"
        ],
        "summary": "Update a venue contact",
        "operationId": "UpdateVenueContact",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "venueId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVenueContactRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Venues"
        ],
        "summary": "Delete a venue contact",
        "operationId": "DeleteVenueContact",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "venueId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "contactId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/venues/{venueId}/notes": {
      "put": {
        "tags": [
          "Venues"
        ],
        "summary": "Replace a venue's notes",
        "description": "Free-form member notes (parking, load-in, sound restrictions). Hard-internal; never public.",
        "operationId": "UpdateVenueNotes",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "venueId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVenueNotesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/venues/{venueId}/favorite": {
      "put": {
        "tags": [
          "Venues"
        ],
        "summary": "Set a venue's tenant-wide favorite flag",
        "operationId": "SetVenueFavorite",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "venueId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetVenueFavoriteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/venues/{venueId}/hero-image": {
      "post": {
        "tags": [
          "Venues"
        ],
        "summary": "Upload or replace a venue's hero image",
        "description": "Metered against the tenant storage quota (VenueImages). Over-quota returns storage_quota_exceeded.",
        "operationId": "UploadVenueHeroImage",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "venueId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Venues"
        ],
        "summary": "Delete a venue's hero image",
        "operationId": "DeleteVenueHeroImage",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "venueId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/venues/tags": {
      "get": {
        "tags": [
          "Venues"
        ],
        "summary": "List the tenant's venue tags",
        "operationId": "ListVenueTags",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/bands/{bandId}/venues/{venueId}/tags": {
      "put": {
        "tags": [
          "Venues"
        ],
        "summary": "Replace a venue's tag set",
        "description": "Tag names are trimmed, deduplicated case-insensitively, and get-or-created in the tenant's venue-tag namespace.",
        "operationId": "SetVenueTags",
        "parameters": [
          {
            "name": "bandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "venueId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetVenueTagsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/public/welcome-cards": {
      "get": {
        "tags": [
          "WelcomeCards"
        ],
        "summary": "Active welcome carousel cards for a platform and app version (anonymous)",
        "operationId": "GetWelcomeCards",
        "parameters": [
          {
            "name": "platform",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "appVersion",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/welcome-cards": {
      "get": {
        "tags": [
          "WelcomeCards"
        ],
        "summary": "All welcome cards, including inactive (SystemAdmin)",
        "operationId": "AdminListWelcomeCards",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "WelcomeCards"
        ],
        "summary": "Create a welcome card (SystemAdmin)",
        "operationId": "AdminCreateWelcomeCard",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WelcomeCardRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/admin/welcome-cards/{id}": {
      "put": {
        "tags": [
          "WelcomeCards"
        ],
        "summary": "Update a welcome card, including activating/deactivating it (SystemAdmin)",
        "operationId": "AdminUpdateWelcomeCard",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WelcomeCardRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AlbumOrderRequest": {
        "type": "object",
        "properties": {
          "photoIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AlbumRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "membersOnly": {
            "type": "boolean"
          },
          "coverPhotoId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AnswerAvailabilityRequest": {
        "type": "object",
        "properties": {
          "response": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AttributionPayload": {
        "type": "object",
        "properties": {
          "first": {
            "$ref": "#/components/schemas/AttributionSnapshotDto"
          },
          "last": {
            "$ref": "#/components/schemas/AttributionSnapshotDto"
          }
        },
        "additionalProperties": false
      },
      "AttributionSnapshotDto": {
        "type": "object",
        "properties": {
          "utm_source": {
            "type": "string",
            "nullable": true
          },
          "utm_medium": {
            "type": "string",
            "nullable": true
          },
          "utm_campaign": {
            "type": "string",
            "nullable": true
          },
          "utm_content": {
            "type": "string",
            "nullable": true
          },
          "utm_term": {
            "type": "string",
            "nullable": true
          },
          "gclid": {
            "type": "string",
            "nullable": true
          },
          "gbraid": {
            "type": "string",
            "nullable": true
          },
          "wbraid": {
            "type": "string",
            "nullable": true
          },
          "fbclid": {
            "type": "string",
            "nullable": true
          },
          "referrer": {
            "type": "string",
            "nullable": true
          },
          "landing_path": {
            "type": "string",
            "nullable": true
          },
          "timestamp": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BillingInterval": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "format": "int32"
      },
      "BulkPhotoRequest": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "nullable": true
          },
          "photoIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "albumId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CalendarEventType": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "CheckoutRequest": {
        "type": "object",
        "properties": {
          "tier": {
            "$ref": "#/components/schemas/Tier"
          },
          "interval": {
            "$ref": "#/components/schemas/BillingInterval"
          }
        },
        "additionalProperties": false
      },
      "CompGrantRequest": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uuid"
          },
          "tier": {
            "$ref": "#/components/schemas/Tier"
          }
        },
        "additionalProperties": false
      },
      "CompRevokeRequest": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "CompleteOnboardingRequest": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "organizationName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateAnnouncementRequest": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "nullable": true
          },
          "body": {
            "type": "string",
            "nullable": true
          },
          "kind": {
            "type": "string",
            "nullable": true
          },
          "actionUrl": {
            "type": "string",
            "nullable": true
          },
          "effectiveFrom": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "showOnPublic": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CreateBandAnnouncementRequest": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "linkType": {
            "type": "string",
            "nullable": true
          },
          "externalUrl": {
            "type": "string",
            "nullable": true
          },
          "targetKind": {
            "type": "string",
            "nullable": true
          },
          "targetId": {
            "type": "string",
            "nullable": true
          },
          "targetTitle": {
            "type": "string",
            "nullable": true
          },
          "isPublic": {
            "type": "boolean"
          },
          "effectiveFrom": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "effectiveTo": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateBandRequest": {
        "required": [
          "genres",
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "maxLength": 2000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "genres": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "timezone": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateCalendarRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "color": {
            "type": "string",
            "nullable": true
          },
          "visibility": {
            "type": "string",
            "nullable": true
          },
          "addEventPermission": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateEventRequest": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "location": {
            "type": "string",
            "nullable": true
          },
          "startTime": {
            "type": "string",
            "format": "date-time"
          },
          "endTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isAllDay": {
            "type": "boolean"
          },
          "recurrencePattern": {
            "$ref": "#/components/schemas/RecurrencePatternDto"
          },
          "venueUrl": {
            "type": "string",
            "nullable": true
          },
          "eventType": {
            "$ref": "#/components/schemas/CalendarEventType"
          },
          "loadInAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "soundCheckAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "doorsOpenAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "performanceStartAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "loadOutAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "ticketUrl": {
            "type": "string",
            "nullable": true
          },
          "venueEventUrl": {
            "type": "string",
            "nullable": true
          },
          "venueId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "isPublic": {
            "type": "boolean"
          },
          "linkedSetIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "linkedSongIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateInvitationRequest": {
        "type": "object",
        "properties": {
          "bandId": {
            "type": "string",
            "format": "uuid"
          },
          "email": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreatePersonalEventRequest": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "location": {
            "type": "string",
            "nullable": true
          },
          "startTime": {
            "type": "string",
            "format": "date-time"
          },
          "endTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isAllDay": {
            "type": "boolean"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "recurrencePattern": {
            "$ref": "#/components/schemas/RecurrencePatternDto"
          }
        },
        "additionalProperties": false
      },
      "CreateSetRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SetItemInput"
            },
            "nullable": true
          },
          "tagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "newTags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateSongPartRequest": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "nullable": true
          },
          "iconKey": {
            "type": "string",
            "nullable": true
          },
          "iconManual": {
            "type": "boolean",
            "nullable": true
          },
          "contentType": {
            "type": "string",
            "nullable": true
          },
          "textContent": {
            "type": "string",
            "nullable": true
          },
          "linkUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateSongRequest": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "nullable": true
          },
          "contentType": {
            "type": "string",
            "nullable": true
          },
          "textContent": {
            "type": "string",
            "nullable": true
          },
          "linkUrl": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "learningStage": {
            "type": "string",
            "nullable": true
          },
          "durationSeconds": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "musicalKey": {
            "type": "string",
            "nullable": true
          },
          "tempoBpm": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "originalArtist": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "tagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "newTags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateTaskRequest": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "nullable": true
          },
          "assigneeUserId": {
            "type": "string",
            "nullable": true
          },
          "dueDate": {
            "type": "string",
            "nullable": true
          },
          "linkKind": {
            "type": "string",
            "nullable": true
          },
          "linkId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "reminderLeadDays": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateVenueContactRequest": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "role": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "phone": {
            "maxLength": 50,
            "type": "string",
            "nullable": true
          },
          "email": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateVenueRequest": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string"
          },
          "address": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "websiteUrl": {
            "maxLength": 2048,
            "minLength": 0,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DeleteAccountRequest": {
        "type": "object",
        "properties": {
          "confirmEmail": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DeleteOrphansRequest": {
        "type": "object",
        "properties": {
          "keys": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "selectAll": {
            "type": "boolean"
          },
          "bucket": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DeleteScope": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "DownloadPhotosRequest": {
        "type": "object",
        "properties": {
          "photoIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DuplicateSetRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EditMessageRequest": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string",
            "nullable": true
          },
          "mentions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InstrumentRequest": {
        "type": "object",
        "properties": {
          "instrument": {
            "type": "string",
            "nullable": true
          },
          "customInstrumentName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LinkAttachmentRequest": {
        "type": "object",
        "properties": {
          "objectType": {
            "type": "string",
            "nullable": true
          },
          "objectId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "PageLayoutSection": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "visible": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "PersonalEventDeleteScope": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "PersonalEventUpdateScope": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "PlanChangeRequest": {
        "type": "object",
        "properties": {
          "tier": {
            "$ref": "#/components/schemas/Tier"
          },
          "interval": {
            "$ref": "#/components/schemas/BillingInterval"
          }
        },
        "additionalProperties": false
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": { }
      },
      "RecurrencePatternDto": {
        "type": "object",
        "properties": {
          "frequency": {
            "type": "string",
            "nullable": true
          },
          "interval": {
            "type": "integer",
            "format": "int32"
          },
          "byDay": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "byMonthDay": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "bySetPos": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "byMonth": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "count": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "until": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RegisterDeviceRequest": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "nullable": true
          },
          "platform": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ReplaceSocialLinksRequest": {
        "type": "object",
        "properties": {
          "links": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SocialLinkInput"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ResendVerificationRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SavePageLayoutRequest": {
        "type": "object",
        "properties": {
          "sections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PageLayoutSection"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SendMessageRequest": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string",
            "nullable": true
          },
          "mentions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "parentId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "occurrenceDate": {
            "type": "string",
            "nullable": true
          },
          "attachmentIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SetItemInput": {
        "type": "object",
        "properties": {
          "itemType": {
            "type": "string",
            "nullable": true
          },
          "songId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "durationSeconds": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SetNameRequest": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SetTaskDoneRequest": {
        "type": "object",
        "properties": {
          "isDone": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SetTenantRestrictionRequest": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "nullable": true
          },
          "disabled": {
            "type": "boolean"
          },
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SetVenueFavoriteRequest": {
        "type": "object",
        "properties": {
          "isFavorite": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SetVenueTagsRequest": {
        "type": "object",
        "properties": {
          "tagNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SocialLinkInput": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "SubmitReportRequest": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "nullable": true
          },
          "details": {
            "type": "string",
            "nullable": true
          },
          "reporterEmail": {
            "type": "string",
            "nullable": true
          },
          "pageUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SupportRequestForm": {
        "type": "object",
        "properties": {
          "branch": {
            "type": "string",
            "nullable": true
          },
          "topic": {
            "type": "string",
            "nullable": true
          },
          "bandId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "whatYouExpected": {
            "type": "string",
            "nullable": true
          },
          "pageUrl": {
            "type": "string",
            "nullable": true
          },
          "appVersion": {
            "type": "string",
            "nullable": true
          },
          "recentErrors": {
            "type": "string",
            "nullable": true
          },
          "screenshots": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "binary"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Tier": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "UpdateAdminUserRequest": {
        "type": "object",
        "properties": {
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateBandRequest": {
        "required": [
          "genres",
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "maxLength": 2000,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "genres": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "publicPageEnabled": {
            "type": "boolean"
          },
          "timezone": {
            "maxLength": 50,
            "minLength": 0,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateBandVisibilityRequest": {
        "type": "object",
        "properties": {
          "hideFromPublicProfile": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UpdateCalendarPreferencesRequest": {
        "type": "object",
        "properties": {
          "hiddenCalendarIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "defaultView": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateCalendarRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "color": {
            "type": "string",
            "nullable": true
          },
          "visibility": {
            "type": "string",
            "nullable": true
          },
          "addEventPermission": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateEventRequest": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "location": {
            "type": "string",
            "nullable": true
          },
          "startTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isAllDay": {
            "type": "boolean",
            "nullable": true
          },
          "recurrencePattern": {
            "$ref": "#/components/schemas/RecurrencePatternDto"
          },
          "calendarId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "instanceDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "venueUrl": {
            "type": "string",
            "nullable": true
          },
          "eventType": {
            "$ref": "#/components/schemas/CalendarEventType"
          },
          "isPublic": {
            "type": "boolean",
            "nullable": true
          },
          "loadInAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "soundCheckAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "doorsOpenAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "performanceStartAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "loadOutAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "ticketUrl": {
            "type": "string",
            "nullable": true
          },
          "venueEventUrl": {
            "type": "string",
            "nullable": true
          },
          "venueId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "linkedSetIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "linkedSongIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateInstrumentsRequest": {
        "type": "object",
        "properties": {
          "instruments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InstrumentRequest"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateNotificationPreferenceItem": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "nullable": true
          },
          "deliveryMethod": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateNotificationPreferencesRequest": {
        "type": "object",
        "properties": {
          "preferences": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UpdateNotificationPreferenceItem"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdatePersonalCalendarPreferencesRequest": {
        "type": "object",
        "properties": {
          "hiddenBandIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "hiddenCalendarIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdatePersonalEventRequest": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "location": {
            "type": "string",
            "nullable": true
          },
          "startTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isAllDay": {
            "type": "boolean",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "recurrencePattern": {
            "$ref": "#/components/schemas/RecurrencePatternDto"
          },
          "instanceDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdatePhotoRequest": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "nullable": true
          },
          "photoDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "visibility": {
            "type": "string",
            "nullable": true
          },
          "albumId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "sortOrder": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateProfileRequest": {
        "type": "object",
        "properties": {
          "bio": {
            "type": "string",
            "nullable": true
          },
          "hideBioFromPublic": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UpdateScope": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "UpdateSetRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SetItemInput"
            },
            "nullable": true
          },
          "tagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "newTags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateSlugRequest": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateSongPartRequest": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "nullable": true
          },
          "iconKey": {
            "type": "string",
            "nullable": true
          },
          "iconManual": {
            "type": "boolean",
            "nullable": true
          },
          "contentType": {
            "type": "string",
            "nullable": true
          },
          "textContent": {
            "type": "string",
            "nullable": true
          },
          "linkUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateSongRequest": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "nullable": true
          },
          "contentType": {
            "type": "string",
            "nullable": true
          },
          "learningStage": {
            "type": "string",
            "nullable": true
          },
          "textContent": {
            "type": "string",
            "nullable": true
          },
          "linkUrl": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "durationSeconds": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "musicalKey": {
            "type": "string",
            "nullable": true
          },
          "tempoBpm": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "originalArtist": {
            "type": "string",
            "nullable": true
          },
          "notes": {
            "type": "string",
            "nullable": true
          },
          "tagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "newTags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateSystemSettingsRequest": {
        "type": "object",
        "properties": {
          "registrationEnabled": {
            "type": "boolean",
            "nullable": true
          },
          "maintenanceModeEnabled": {
            "type": "boolean",
            "nullable": true
          },
          "registrationDisabledMessage": {
            "type": "string",
            "nullable": true
          },
          "maintenanceModeMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateTaskRequest": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "nullable": true
          },
          "assigneeUserId": {
            "type": "string",
            "nullable": true
          },
          "dueDate": {
            "type": "string",
            "nullable": true
          },
          "linkKind": {
            "type": "string",
            "nullable": true
          },
          "linkId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "reminderLeadDays": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateVenueContactRequest": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "role": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "phone": {
            "maxLength": 50,
            "type": "string",
            "nullable": true
          },
          "email": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateVenueNotesRequest": {
        "type": "object",
        "properties": {
          "notes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateVenueRequest": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string"
          },
          "address": {
            "maxLength": 500,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "websiteUrl": {
            "maxLength": 2048,
            "minLength": 0,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "VerifyEmailRequest": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WelcomeCardRequest": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "sortOrder": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isActive": {
            "type": "boolean",
            "nullable": true
          },
          "platforms": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "minAppVersion": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    }
  }
}