{
 "openapi": "3.1.0",
 "info": {
  "title": "LeadGen Platform",
  "description": "B2B lead generation and enrichment platform.\n\nCrawls company websites, extracts firmographics and contacts with Gemini structured output, verifies email deliverability over SMTP and scores every lead against an ideal customer profile.",
  "version": "0.1.0"
 },
 "paths": {
  "/health/live": {
   "get": {
    "tags": [
     "health"
    ],
    "summary": "Liveness probe",
    "description": "Is the process up? Never touches a dependency.\n\nA liveness probe that checks the database restarts healthy containers\nduring a database blip, turning a partial outage into a total one.",
    "operationId": "liveness_health_live_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HealthResponse"
        }
       }
      }
     }
    }
   }
  },
  "/health/ready": {
   "get": {
    "tags": [
     "health"
    ],
    "summary": "Readiness probe",
    "description": "Can this instance serve traffic? Checks Postgres and Redis.",
    "operationId": "readiness_health_ready_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HealthResponse"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/auth/register": {
   "post": {
    "tags": [
     "auth"
    ],
    "summary": "Create an account and its workspace",
    "description": "Create a user, a workspace with its own database, and sign in.\n\nThe workspace starts on the default plan (``DEFAULT_PLAN``, normally the\nfree tier) with its opening credits already granted.",
    "operationId": "register_api_v1_auth_register_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/UserRegister"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TokenResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/auth/login": {
   "post": {
    "tags": [
     "auth"
    ],
    "summary": "Sign in",
    "description": "Authenticate with email and password.\n\nThe failure message is identical for an unknown email and a wrong\npassword. Repeated failures lock the account for\n``LOGIN_LOCKOUT_MINUTES`` (error code ``account_locked``).",
    "operationId": "login_api_v1_auth_login_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/UserLogin"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TokenResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/auth/refresh": {
   "post": {
    "tags": [
     "auth"
    ],
    "summary": "Rotate the session tokens",
    "operationId": "refresh_api_v1_auth_refresh_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RefreshRequest"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TokenResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/auth/switch-workspace": {
   "post": {
    "tags": [
     "auth"
    ],
    "summary": "Act in another workspace",
    "operationId": "switch_workspace_api_v1_auth_switch_workspace_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SwitchWorkspaceRequest"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TokenResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "HTTPBearer": []
     }
    ]
   }
  },
  "/api/v1/auth/logout": {
   "post": {
    "tags": [
     "auth"
    ],
    "summary": "End this session (or all)",
    "description": "End this session, a session by its refresh token, or (``everywhere``) all of them.\n\nA refresh token alone is enough to end its own session \u2014 possessing it\nis the credential \u2014 so a client whose access token has expired can still\nsign out cleanly. Signing out everywhere needs a valid access token.",
    "operationId": "logout_api_v1_auth_logout_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/LogoutRequest"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "HTTPBearer": []
     }
    ]
   }
  },
  "/api/v1/auth/sessions": {
   "get": {
    "tags": [
     "auth"
    ],
    "summary": "Active sessions",
    "operationId": "list_sessions_api_v1_auth_sessions_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "items": {
          "$ref": "#/components/schemas/SessionRead"
         },
         "type": "array",
         "title": "Response List Sessions Api V1 Auth Sessions Get"
        }
       }
      }
     }
    },
    "security": [
     {
      "HTTPBearer": []
     }
    ]
   }
  },
  "/api/v1/auth/sessions/{session_id}": {
   "delete": {
    "tags": [
     "auth"
    ],
    "summary": "Sign out one session",
    "operationId": "revoke_session_api_v1_auth_sessions__session_id__delete",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "session_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Session Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/auth/me": {
   "get": {
    "tags": [
     "auth"
    ],
    "summary": "Current user, workspace and permissions",
    "operationId": "me_api_v1_auth_me_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MeResponse"
        }
       }
      }
     }
    },
    "security": [
     {
      "HTTPBearer": []
     }
    ]
   },
   "patch": {
    "tags": [
     "auth"
    ],
    "summary": "Update profile",
    "operationId": "update_me_api_v1_auth_me_patch",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ProfileUpdate"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/UserRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "HTTPBearer": []
     }
    ]
   }
  },
  "/api/v1/auth/change-password": {
   "post": {
    "tags": [
     "auth"
    ],
    "summary": "Change password",
    "description": "Change the password and sign out every *other* session.",
    "operationId": "change_password_api_v1_auth_change_password_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ChangePasswordRequest"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "HTTPBearer": []
     }
    ]
   }
  },
  "/api/v1/auth/forgot-password": {
   "post": {
    "tags": [
     "auth"
    ],
    "summary": "Email a password reset link",
    "description": "Always 202, whether or not the address has an account (no enumeration).",
    "operationId": "forgot_password_api_v1_auth_forgot_password_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ForgotPasswordRequest"
       }
      }
     },
     "required": true
    },
    "responses": {
     "202": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/auth/reset-password": {
   "post": {
    "tags": [
     "auth"
    ],
    "summary": "Set a new password from a reset link",
    "operationId": "reset_password_api_v1_auth_reset_password_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ResetPasswordRequest"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/auth/verify-email": {
   "post": {
    "tags": [
     "auth"
    ],
    "summary": "Confirm an email address",
    "operationId": "verify_email_api_v1_auth_verify_email_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/schemas__auth__VerifyEmailRequest"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/auth/resend-verification": {
   "post": {
    "tags": [
     "auth"
    ],
    "summary": "Send the confirmation email again",
    "operationId": "resend_verification_api_v1_auth_resend_verification_post",
    "responses": {
     "202": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     }
    },
    "security": [
     {
      "HTTPBearer": []
     }
    ]
   }
  },
  "/api/v1/auth/invitations/{token}": {
   "get": {
    "tags": [
     "auth"
    ],
    "summary": "Preview an invitation",
    "operationId": "preview_invitation_api_v1_auth_invitations__token__get",
    "parameters": [
     {
      "name": "token",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Token"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/InvitationPreview"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/auth/invitations/accept": {
   "post": {
    "tags": [
     "auth"
    ],
    "summary": "Accept an invitation",
    "description": "Join the workspace, creating the account if the address has none.\n\nAn existing account must prove it owns the address with its password; the\ninvitation link alone is not a credential for an existing account.",
    "operationId": "accept_invitation_api_v1_auth_invitations_accept_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AcceptInvitationRequest"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TokenResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/workspace": {
   "get": {
    "tags": [
     "workspace"
    ],
    "summary": "The current workspace",
    "operationId": "get_workspace_api_v1_workspace_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/WorkspaceRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "patch": {
    "tags": [
     "workspace"
    ],
    "summary": "Update workspace settings",
    "operationId": "update_workspace_api_v1_workspace_patch",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WorkspaceUpdate"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "workspace"
    ],
    "summary": "Delete the workspace",
    "description": "Soft delete. The database is kept for ``TENANT_PURGE_AFTER_DAYS``, then dropped.",
    "operationId": "delete_workspace_api_v1_workspace_delete",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WorkspaceDeleteRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/workspace/members": {
   "get": {
    "tags": [
     "workspace"
    ],
    "summary": "Workspace members",
    "operationId": "list_members_api_v1_workspace_members_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/MemberRead"
         },
         "title": "Response List Members Api V1 Workspace Members Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/workspace/members/{user_id}": {
   "patch": {
    "tags": [
     "workspace"
    ],
    "summary": "Change a member's role, cap or access",
    "operationId": "update_member_api_v1_workspace_members__user_id__patch",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "user_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "User Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/MemberUpdate"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "workspace"
    ],
    "summary": "Remove a member",
    "description": "Admins remove others; anyone may leave (remove themselves), except the owner.",
    "operationId": "remove_member_api_v1_workspace_members__user_id__delete",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "user_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "User Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/workspace/transfer-ownership": {
   "post": {
    "tags": [
     "workspace"
    ],
    "summary": "Make another member the owner",
    "operationId": "transfer_ownership_api_v1_workspace_transfer_ownership_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/TransferOwnershipRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/workspace/invitations": {
   "get": {
    "tags": [
     "workspace"
    ],
    "summary": "Pending invitations",
    "operationId": "list_invitations_api_v1_workspace_invitations_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/InvitationRead"
         },
         "title": "Response List Invitations Api V1 Workspace Invitations Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "workspace"
    ],
    "summary": "Invite someone",
    "operationId": "create_invitation_api_v1_workspace_invitations_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/InvitationCreate"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/InvitationRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/workspace/invitations/{invitation_id}": {
   "delete": {
    "tags": [
     "workspace"
    ],
    "summary": "Revoke an invitation",
    "operationId": "revoke_invitation_api_v1_workspace_invitations__invitation_id__delete",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "invitation_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Invitation Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/workspace/api-keys": {
   "get": {
    "tags": [
     "workspace"
    ],
    "summary": "API keys",
    "operationId": "list_api_keys_api_v1_workspace_api_keys_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/APIKeyRead"
         },
         "title": "Response List Api Keys Api V1 Workspace Api Keys Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "workspace"
    ],
    "summary": "Create an API key",
    "operationId": "create_api_key_api_v1_workspace_api_keys_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/APIKeyCreate"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/APIKeyResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/workspace/api-keys/{key_id}": {
   "delete": {
    "tags": [
     "workspace"
    ],
    "summary": "Revoke an API key",
    "operationId": "revoke_api_key_api_v1_workspace_api_keys__key_id__delete",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "key_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Key Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/workspace/usage": {
   "get": {
    "tags": [
     "workspace"
    ],
    "summary": "Credit and data usage",
    "operationId": "usage_api_v1_workspace_usage_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "days",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 365,
       "minimum": 1,
       "default": 30,
       "title": "Days"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/UsageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/workspace/activity": {
   "get": {
    "tags": [
     "workspace"
    ],
    "summary": "Workspace activity feed",
    "operationId": "activity_api_v1_workspace_activity_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "entity_type",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Entity Type"
      }
     },
     {
      "name": "entity_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Entity Id"
      }
     },
     {
      "name": "user_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "format": "uuid"
        },
        {
         "type": "null"
        }
       ],
       "title": "User Id"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_ActivityRead_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/workspace/audit-log": {
   "get": {
    "tags": [
     "workspace"
    ],
    "summary": "Security audit log for this workspace",
    "operationId": "audit_log_api_v1_workspace_audit_log_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "action",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Action"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_AuditLogRead_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/workspace/announcements": {
   "get": {
    "tags": [
     "workspace"
    ],
    "summary": "Active platform announcements",
    "operationId": "announcements_api_v1_workspace_announcements_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/AnnouncementRead"
         },
         "title": "Response Announcements Api V1 Workspace Announcements Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/leads": {
   "get": {
    "tags": [
     "leads"
    ],
    "summary": "List and filter leads",
    "description": "Filtered, paginated lead list.\n\nEvery filter here maps to a declared index; see ``api/filters.py``.",
    "operationId": "list_leads_api_v1_leads_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "Fuzzy name, title or email match",
       "title": "Q"
      },
      "description": "Fuzzy name, title or email match"
     },
     {
      "name": "status",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "$ref": "#/components/schemas/LeadStatus"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "name": "email_status",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "$ref": "#/components/schemas/EmailStatus"
        },
        {
         "type": "null"
        }
       ],
       "title": "Email Status"
      }
     },
     {
      "name": "seniority",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "$ref": "#/components/schemas/Seniority"
        },
        {
         "type": "null"
        }
       ],
       "title": "Seniority"
      }
     },
     {
      "name": "country",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "minLength": 2,
         "maxLength": 2
        },
        {
         "type": "null"
        }
       ],
       "title": "Country"
      }
     },
     {
      "name": "industry",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Industry"
      }
     },
     {
      "name": "company_domain",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Company Domain"
      }
     },
     {
      "name": "min_score",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "number",
         "maximum": 100.0,
         "minimum": 0.0
        },
        {
         "type": "null"
        }
       ],
       "title": "Min Score"
      }
     },
     {
      "name": "tag",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "array",
         "items": {
          "type": "string"
         }
        },
        {
         "type": "null"
        }
       ],
       "title": "Tag"
      }
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "default": "icp_score",
       "title": "Sort"
      }
     },
     {
      "name": "direction",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "pattern": "^(asc|desc)$",
       "default": "desc",
       "title": "Direction"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_LeadRead_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "leads"
    ],
    "summary": "Create a lead",
    "description": "Create a lead manually, attaching it to a company by id or domain.\n\nRefused (409 ``suppressed``) when the address is on the platform\nsuppression list: that person asked not to be processed.",
    "operationId": "create_lead_api_v1_leads_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/LeadCreate"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/LeadRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/leads/{lead_id}": {
   "get": {
    "tags": [
     "leads"
    ],
    "summary": "Get a lead",
    "operationId": "get_lead_api_v1_leads__lead_id__get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "lead_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Lead Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/LeadDetail"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "patch": {
    "tags": [
     "leads"
    ],
    "summary": "Update a lead",
    "operationId": "update_lead_api_v1_leads__lead_id__patch",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "lead_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Lead Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/LeadUpdate"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/LeadRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "leads"
    ],
    "summary": "Delete a lead (soft delete)",
    "description": "Soft-delete: the row stays for audit and export history.",
    "operationId": "delete_lead_api_v1_leads__lead_id__delete",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "lead_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Lead Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/leads/{lead_id}/verify": {
   "post": {
    "tags": [
     "leads"
    ],
    "summary": "Queue email verification for a lead",
    "description": "Queue an SMTP verification. Costs credits; the job refunds on failure.",
    "operationId": "verify_lead_api_v1_leads__lead_id__verify_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "lead_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Lead Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "202": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobHandleResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/leads/{lead_id}/score": {
   "post": {
    "tags": [
     "leads"
    ],
    "summary": "Score a lead now",
    "description": "Re-score synchronously using the deterministic engine.\n\nNo AI call, so this is fast and free \u2014 the qualitative overlay is applied\nby the background scoring task instead.",
    "operationId": "score_lead_endpoint_api_v1_leads__lead_id__score_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "lead_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Lead Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "anyOf": [
         {
          "$ref": "#/components/schemas/ICPProfile"
         },
         {
          "type": "null"
         }
        ],
        "title": "Icp"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/LeadScoreResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/leads/{lead_id}/check-info": {
   "post": {
    "tags": [
     "leads"
    ],
    "summary": "Check lead information accuracy and contactability",
    "description": "Inspect a lead's identity, email deliverability, domain consistency,\nLinkedIn profile URL, phone format, source grounding, and freshness.\n\nOffline checks are free. Setting ``verify_smtp=true`` performs a live\nDNS/MX + SMTP probe and charges 1 credit when a conclusive verdict is\nproduced.",
    "operationId": "check_lead_info_api_v1_leads__lead_id__check_info_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "lead_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Lead Id"
      }
     },
     {
      "name": "verify_smtp",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "description": "Run a live SMTP mailbox verification if the lead has an email",
       "default": false,
       "title": "Verify Smtp"
      },
      "description": "Run a live SMTP mailbox verification if the lead has an email"
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataQualityReportResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/leads/import": {
   "post": {
    "tags": [
     "leads"
    ],
    "summary": "Bulk import leads",
    "description": "Import rows, then queue one enrichment job per distinct company domain.\n\nEnrichment is queued per *domain*, not per row: importing 400 contacts at\n20 companies should cost 20 crawls, not 400. Suppressed addresses are\nskipped and counted in ``errors``.",
    "operationId": "import_leads_api_v1_leads_import_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/LeadBulkImportRequest"
       }
      }
     }
    },
    "responses": {
     "202": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/LeadBulkImportResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/leads/export/csv": {
   "get": {
    "tags": [
     "leads"
    ],
    "summary": "Export leads as CSV",
    "description": "Stream matching leads as CSV, charging per exported row.\n\nCharging happens before the first byte is written: a client that\ndisconnects mid-download has still consumed the data.",
    "operationId": "export_leads_api_v1_leads_export_csv_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "status",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "$ref": "#/components/schemas/LeadStatus"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "name": "min_score",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "number",
         "maximum": 100.0,
         "minimum": 0.0
        },
        {
         "type": "null"
        }
       ],
       "title": "Min Score"
      }
     },
     {
      "name": "contactable_only",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": true,
       "title": "Contactable Only"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/leads/export/async": {
   "post": {
    "tags": [
     "leads"
    ],
    "summary": "Queue an asynchronous CSV export for large lead sets",
    "description": "Queue a background CSV export job (supports up to 250,000 rows).\n\nPoll ``poll_url`` until ``status == \"succeeded\"``, then download the file\nfrom ``GET /api/v1/leads/export/jobs/{job_id}/download``.",
    "operationId": "export_leads_async_api_v1_leads_export_async_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "status",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "$ref": "#/components/schemas/LeadStatus"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "name": "min_score",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "number",
         "maximum": 100.0,
         "minimum": 0.0
        },
        {
         "type": "null"
        }
       ],
       "title": "Min Score"
      }
     },
     {
      "name": "contactable_only",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": true,
       "title": "Contactable Only"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "202": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobHandleResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/leads/export/jobs/{job_id}/download": {
   "get": {
    "tags": [
     "leads"
    ],
    "summary": "Download a completed asynchronous CSV export",
    "description": "Stream the CSV file produced by a completed ``export`` job.",
    "operationId": "download_async_export_api_v1_leads_export_jobs__job_id__download_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "job_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Job Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/companies": {
   "get": {
    "tags": [
     "companies"
    ],
    "summary": "List and filter companies",
    "operationId": "list_companies_api_v1_companies_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Q"
      }
     },
     {
      "name": "industry",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Industry"
      }
     },
     {
      "name": "country",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "minLength": 2,
         "maxLength": 2
        },
        {
         "type": "null"
        }
       ],
       "title": "Country"
      }
     },
     {
      "name": "employee_range",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "$ref": "#/components/schemas/EmployeeRange"
        },
        {
         "type": "null"
        }
       ],
       "title": "Employee Range"
      }
     },
     {
      "name": "technology",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "array",
         "items": {
          "type": "string"
         }
        },
        {
         "type": "null"
        }
       ],
       "title": "Technology"
      }
     },
     {
      "name": "min_score",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "number",
         "maximum": 100.0,
         "minimum": 0.0
        },
        {
         "type": "null"
        }
       ],
       "title": "Min Score"
      }
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "default": "icp_score",
       "title": "Sort"
      }
     },
     {
      "name": "direction",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "pattern": "^(asc|desc)$",
       "default": "desc",
       "title": "Direction"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_CompanyRead_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/companies/{company_id}": {
   "get": {
    "tags": [
     "companies"
    ],
    "summary": "Get a company",
    "operationId": "get_company_api_v1_companies__company_id__get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "company_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Company Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CompanyWithLeadCount"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "patch": {
    "tags": [
     "companies"
    ],
    "summary": "Update a company",
    "description": "Manual corrections. These survive re-enrichment: the AI pipeline only\nfills fields it finds, and a human edit is treated as ground truth.",
    "operationId": "update_company_api_v1_companies__company_id__patch",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "company_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Company Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CompanyUpdate"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CompanyRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/companies/by-domain/{domain}": {
   "get": {
    "tags": [
     "companies"
    ],
    "summary": "Look up a company by domain",
    "description": "Domain is the natural key, so this is the lookup integrations use.",
    "operationId": "get_company_by_domain_api_v1_companies_by_domain__domain__get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "domain",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Domain"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CompanyRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/companies/domain-search/{domain}": {
   "get": {
    "tags": [
     "companies"
    ],
    "summary": "Domain search: email pattern and contacts grouped by department",
    "description": "Hunter-style view of one domain, built only from data already stored.",
    "operationId": "domain_search_api_v1_companies_domain_search__domain__get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "domain",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Domain"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DomainSearchResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/companies/{company_id}/leads": {
   "get": {
    "tags": [
     "companies"
    ],
    "summary": "List a company's leads",
    "operationId": "list_company_leads_api_v1_companies__company_id__leads_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "company_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Company Id"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_LeadRead_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/companies/{company_id}/enrich": {
   "post": {
    "tags": [
     "companies"
    ],
    "summary": "Re-enrich a company",
    "operationId": "reenrich_company_api_v1_companies__company_id__enrich_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "company_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Company Id"
      }
     },
     {
      "name": "force",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "description": "Re-crawl even if the data is fresh",
       "default": false,
       "title": "Force"
      },
      "description": "Re-crawl even if the data is fresh"
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "202": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobHandleResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/companies/{company_id}/check-info": {
   "post": {
    "tags": [
     "companies"
    ],
    "summary": "Check company information accuracy and domain MX records",
    "description": "Run a live DNS/MX check and inspect firmographic completeness, website\nalignment, LinkedIn company URL format, AI confidence, and crawl freshness.",
    "operationId": "check_company_info_api_v1_companies__company_id__check_info_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "company_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Company Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataQualityReportResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/search/leads": {
   "post": {
    "tags": [
     "search"
    ],
    "summary": "Search people",
    "description": "Full people search with company-level filters.\n\nThe company is eager-loaded in one round trip; the relationship is\nconfigured ``lazy=\"raise\"``, so a missing ``selectinload`` fails loudly in\ndevelopment rather than silently issuing N queries in production.",
    "operationId": "search_leads_api_v1_search_leads_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/LeadSearchCriteria"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_LeadDetail_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/search/companies": {
   "post": {
    "tags": [
     "search"
    ],
    "summary": "Search companies",
    "operationId": "search_companies_api_v1_search_companies_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CompanySearchCriteria"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_CompanyRead_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/search/filters": {
   "post": {
    "tags": [
     "search"
    ],
    "summary": "Save a search filter",
    "operationId": "create_filter_api_v1_search_filters_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SearchFilterCreate"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SearchFilterRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "get": {
    "tags": [
     "search"
    ],
    "summary": "List saved filters",
    "operationId": "list_filters_api_v1_search_filters_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_SearchFilterRead_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/search/filters/{filter_id}": {
   "patch": {
    "tags": [
     "search"
    ],
    "summary": "Update a saved filter",
    "operationId": "update_filter_api_v1_search_filters__filter_id__patch",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "filter_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Filter Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SearchFilterUpdate"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SearchFilterRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "search"
    ],
    "summary": "Delete a saved filter",
    "operationId": "delete_filter_api_v1_search_filters__filter_id__delete",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "filter_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Filter Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/search/filters/{filter_id}/run": {
   "post": {
    "tags": [
     "search"
    ],
    "summary": "Run a saved filter",
    "description": "Execute a saved filter and record the run.\n\nValidating the stored criteria on read (rather than trusting the JSONB)\nmeans a filter saved under an older schema fails with a clear error\ninstead of silently returning the wrong leads.",
    "operationId": "run_filter_api_v1_search_filters__filter_id__run_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "filter_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Filter Id"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_LeadDetail_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/search/suggest/industries": {
   "get": {
    "tags": [
     "search"
    ],
    "summary": "Industry autocomplete",
    "description": "Distinct industries, for populating filter dropdowns.",
    "operationId": "suggest_industries_api_v1_search_suggest_industries_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "default": "",
       "title": "Q"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 20,
       "title": "Limit"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "type": "string"
         },
         "title": "Response Suggest Industries Api V1 Search Suggest Industries Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/lists": {
   "get": {
    "tags": [
     "lists"
    ],
    "summary": "Lists",
    "operationId": "list_lists_api_v1_lists_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "kind",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "$ref": "#/components/schemas/ListKind"
        },
        {
         "type": "null"
        }
       ],
       "title": "Kind"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_ListRead_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "lists"
    ],
    "summary": "Create a list",
    "operationId": "create_list_api_v1_lists_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ListCreate"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ListRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/lists/{list_id}": {
   "get": {
    "tags": [
     "lists"
    ],
    "summary": "Get a list",
    "operationId": "get_list_api_v1_lists__list_id__get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "list_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "List Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ListRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "patch": {
    "tags": [
     "lists"
    ],
    "summary": "Rename or reconfigure a list",
    "operationId": "update_list_api_v1_lists__list_id__patch",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "list_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "List Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ListUpdate"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ListRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "lists"
    ],
    "summary": "Delete a list (its leads are kept)",
    "operationId": "delete_list_api_v1_lists__list_id__delete",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "list_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "List Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/lists/{list_id}/items": {
   "post": {
    "tags": [
     "lists"
    ],
    "summary": "Add leads or companies",
    "operationId": "add_items_api_v1_lists__list_id__items_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "list_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "List Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ListItemsChange"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ListItemsResult"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "lists"
    ],
    "summary": "Remove leads or companies",
    "operationId": "remove_items_api_v1_lists__list_id__items_delete",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "list_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "List Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ListItemsChange"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ListItemsResult"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/lists/{list_id}/leads": {
   "get": {
    "tags": [
     "lists"
    ],
    "summary": "Leads in a people list",
    "operationId": "list_leads_api_v1_lists__list_id__leads_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "list_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "List Id"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_LeadRead_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/lists/{list_id}/companies": {
   "get": {
    "tags": [
     "lists"
    ],
    "summary": "Companies in a company list",
    "operationId": "list_companies_api_v1_lists__list_id__companies_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "list_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "List Id"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_CompanyRead_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/lists/{list_id}/export.csv": {
   "get": {
    "tags": [
     "lists"
    ],
    "summary": "Download a people list as CSV (no credit cost)",
    "description": "Lists hold records the workspace already paid for, so exporting them costs no credits.\n\nIt still counts toward the plan's monthly export rows, and do-not-contact\nand platform-suppressed people are left out, as in every export.",
    "operationId": "export_list_api_v1_lists__list_id__export_csv_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "list_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "List Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/enrichment/enrich": {
   "post": {
    "tags": [
     "enrichment"
    ],
    "summary": "Enrich a company by domain or name",
    "description": "Queue a full enrichment: crawl, extract, verify, score.\n\nReturns immediately with a job handle \u2014 enrichment takes tens of seconds,\nwhich is far too long to hold an HTTP request open. Poll ``poll_url``.\n\nIf an identical job is already in flight, its handle comes back with\n``deduplicated: true`` and no credits are charged.",
    "operationId": "enrich_api_v1_enrichment_enrich_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/EnrichRequest"
       }
      }
     }
    },
    "responses": {
     "202": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobHandleResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/enrichment/enrich/bulk": {
   "post": {
    "tags": [
     "enrichment"
    ],
    "summary": "Enrich many domains",
    "description": "Queue enrichment for up to 500 domains (fewer on smaller plans).\n\nIndividual bad or suppressed domains are reported as failed handles\nrather than failing the whole batch.",
    "operationId": "enrich_bulk_api_v1_enrichment_enrich_bulk_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BulkEnrichRequest"
       }
      }
     }
    },
    "responses": {
     "202": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BulkJobResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/enrichment/jobs/{job_id}": {
   "get": {
    "tags": [
     "enrichment"
    ],
    "summary": "Get job status",
    "description": "Poll a job. Served from Redis when warm, Postgres otherwise.",
    "operationId": "get_job_api_v1_enrichment_jobs__job_id__get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "job_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Job Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobStatusResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/enrichment/jobs": {
   "get": {
    "tags": [
     "enrichment"
    ],
    "summary": "List jobs",
    "operationId": "list_jobs_api_v1_enrichment_jobs_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "status",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "$ref": "#/components/schemas/JobStatus"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "name": "job_type",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "$ref": "#/components/schemas/JobType"
        },
        {
         "type": "null"
        }
       ],
       "title": "Job Type"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_JobRead_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/enrichment/jobs/{job_id}/cancel": {
   "post": {
    "tags": [
     "enrichment"
    ],
    "summary": "Cancel a queued job",
    "description": "Cancel a job that has not started yet, refunding its credits.\n\nA job already running is left to finish: revoking it mid-crawl would leave\na half-written company profile behind.",
    "operationId": "cancel_job_api_v1_enrichment_jobs__job_id__cancel_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "job_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Job Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobStatusResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/enrichment/verify": {
   "post": {
    "tags": [
     "enrichment"
    ],
    "summary": "Verify one email address",
    "description": "Verify synchronously.\n\nA single verification is a DNS lookup plus one SMTP handshake \u2014 fast\nenough to answer inline. Costs ``CREDITS_PER_VERIFICATION`` for a fresh,\nconclusive verdict; a cached or ``unknown`` result is free.",
    "operationId": "verify_email_api_v1_enrichment_verify_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/schemas__enrichment__VerifyEmailRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VerifyEmailResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/enrichment/verify/bulk": {
   "post": {
    "tags": [
     "enrichment"
    ],
    "summary": "Verify up to 100 addresses",
    "operationId": "verify_bulk_api_v1_enrichment_verify_bulk_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BulkVerifyRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/VerifyEmailResponse"
         },
         "title": "Response Verify Bulk Api V1 Enrichment Verify Bulk Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/enrichment/find-email": {
   "post": {
    "tags": [
     "enrichment"
    ],
    "summary": "Infer and verify an address from a name and domain",
    "description": "Try ranked pattern guesses and return the first that verifies.\n\nReturns ``null`` when nothing verifies \u2014 which is the honest answer, and\nfar better than handing back a plausible guess that will bounce. Nothing\nfound costs nothing; a found address costs one verification.",
    "operationId": "find_email_api_v1_enrichment_find_email_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/FindEmailRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "anyOf": [
          {
           "$ref": "#/components/schemas/VerifyEmailResponse"
          },
          {
           "type": "null"
          }
         ],
         "title": "Response Find Email Api V1 Enrichment Find Email Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/enrichment/check-info": {
   "post": {
    "tags": [
     "enrichment"
    ],
    "summary": "Check and validate lead and company information",
    "description": "Validate whether person and company information is accurate and consistent.\n\nOffline syntax, format, and domain consistency checks are free. Setting\n``verify_smtp=true`` probes the email mailbox over SMTP and charges 1 credit\nonly for a fresh, conclusive verdict.",
    "operationId": "check_information_api_v1_enrichment_check_info_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/InformationCheckRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DataQualityReportResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/enrichment/domains": {
   "post": {
    "tags": [
     "enrichment"
    ],
    "summary": "Run the full enrichment pipeline for a domain",
    "description": "Queue the chain: crawl, extract, verify, score, persist.\n\nReturns immediately with a tracking id \u2014 a full run takes tens of seconds,\nfar too long to hold a request open. Poll ``poll_url`` for progress.\n\nBilling is metered by default: one credit per domain crawled, two per\naddress actually verified, charged inside the transaction that writes the\nresults. A run that fails costs nothing, and a cached verification is not\ncharged.\n\nThe balance check here is a floor, not a quote: how many addresses a site\nyields is unknowable before crawling it. It exists so a run that cannot\npossibly be paid for is refused before it spends tokens and SMTP quota;\nthe debit at the end is authoritative.\n\nRaises:\n    402: the balance is already below the estimated floor.\n    422: the domain is not usable.",
    "operationId": "enrich_domain_api_v1_enrichment_domains_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/DomainEnrichmentRequest"
       }
      }
     }
    },
    "responses": {
     "202": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PipelineJobResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/credits/balance": {
   "get": {
    "tags": [
     "credits"
    ],
    "summary": "Workspace credit balance",
    "description": "Balance plus the per-operation price list.\n\nReturning the costs here lets a client show \"this will cost 5 credits\"\nwithout hard-coding prices that change with the plan.",
    "operationId": "get_balance_api_v1_credits_balance_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CreditBalanceResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/credits/bounce-guarantee": {
   "get": {
    "tags": [
     "credits"
    ],
    "summary": "Bounce guarantee terms and totals",
    "operationId": "bounce_guarantee_status_api_v1_credits_bounce_guarantee_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BounceGuaranteeRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/credits/bounce-reports": {
   "get": {
    "tags": [
     "credits"
    ],
    "summary": "Bounces and what was refunded",
    "description": "Newest first: outreach bounces and reported addresses, with each outcome.",
    "operationId": "list_bounce_reports_api_v1_credits_bounce_reports_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "outcome",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "$ref": "#/components/schemas/BounceOutcome"
        },
        {
         "type": "null"
        }
       ],
       "title": "Outcome"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_BounceReportRead_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "credits"
    ],
    "summary": "Report addresses that bounced",
    "description": "Report addresses that bounced after you exported them.\n\nCovered addresses (verified ``valid`` by us within the guarantee window) are\nre-checked in the background; the credit comes back unless the mailbox\nstill accepts mail. Each address gets an outcome in the list.",
    "operationId": "report_bounces_api_v1_credits_bounce_reports_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BounceReportCreate"
       }
      }
     }
    },
    "responses": {
     "202": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BounceReportBatch"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/credits/ledger": {
   "get": {
    "tags": [
     "credits"
    ],
    "summary": "Credit transaction history",
    "description": "Newest-first list of every credit movement in the workspace (or one member's).",
    "operationId": "list_ledger_api_v1_credits_ledger_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "user_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "format": "uuid"
        },
        {
         "type": "null"
        }
       ],
       "title": "User Id"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_CreditEntryRead_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/billing": {
   "get": {
    "tags": [
     "billing"
    ],
    "summary": "Plan, subscription and balance",
    "operationId": "overview_api_v1_billing_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BillingOverview"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/billing/change-plan": {
   "post": {
    "tags": [
     "billing"
    ],
    "summary": "Upgrade or downgrade",
    "description": "Switch plans. Serialised per workspace; one open plan checkout at a time.\n\nFree plans switch at once. A paid plan opens a checkout (Stripe Checkout or\na manual invoice). Repeating the same request while that checkout is open\nreturns it again (``reused``); a different plan gets ``409 checkout_pending``.",
    "operationId": "change_plan_api_v1_billing_change_plan_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ChangePlanRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CheckoutResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/billing/credit-packs/{code}/purchase": {
   "post": {
    "tags": [
     "billing"
    ],
    "summary": "Buy a credit top-up",
    "description": "Buy a pack. A second click or tab returns the same open checkout and invoice.",
    "operationId": "buy_pack_api_v1_billing_credit_packs__code__purchase_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Code"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CheckoutResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/billing/checkouts/pending": {
   "get": {
    "tags": [
     "billing"
    ],
    "summary": "Open checkouts (what a reloaded page should resume)",
    "operationId": "pending_checkouts_api_v1_billing_checkouts_pending_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/CheckoutRead"
         },
         "title": "Response Pending Checkouts Api V1 Billing Checkouts Pending Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/billing/checkouts/{checkout_id}": {
   "get": {
    "tags": [
     "billing"
    ],
    "summary": "Checkout status (poll)",
    "description": "Idempotent status read: safe to poll after a redirect or a reload.",
    "operationId": "checkout_status_api_v1_billing_checkouts__checkout_id__get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "checkout_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Checkout Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CheckoutRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/billing/checkouts/{checkout_id}/pay": {
   "post": {
    "tags": [
     "billing"
    ],
    "summary": "Resume payment of an open checkout",
    "description": "Hand out the payment page again. Never for a completed checkout.\n\nA back-button \"pay again\" on a paid checkout gets ``409 checkout_completed``\n(the web app shows the confirmation instead); processing, failed, canceled\nor expired checkouts get their own 409 code.",
    "operationId": "resume_checkout_api_v1_billing_checkouts__checkout_id__pay_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "checkout_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Checkout Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CheckoutResponse"
        }
       }
      }
     },
     "409": {
      "description": "Already paid, being processed, or closed"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/billing/checkouts/{checkout_id}/cancel": {
   "post": {
    "tags": [
     "billing"
    ],
    "summary": "Abandon an unpaid checkout",
    "description": "Close a pending checkout and void its unpaid invoice. Repeating it is a no-op.",
    "operationId": "cancel_checkout_api_v1_billing_checkouts__checkout_id__cancel_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "checkout_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Checkout Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CheckoutRead"
        }
       }
      }
     },
     "409": {
      "description": "Already paid or being processed"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/billing/invoices": {
   "get": {
    "tags": [
     "billing"
    ],
    "summary": "Invoices",
    "operationId": "invoices_api_v1_billing_invoices_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_InvoiceRead_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/billing/cancel": {
   "post": {
    "tags": [
     "billing"
    ],
    "summary": "Cancel at the end of the period",
    "operationId": "cancel_api_v1_billing_cancel_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/billing/resume": {
   "post": {
    "tags": [
     "billing"
    ],
    "summary": "Undo a pending cancellation",
    "operationId": "resume_api_v1_billing_resume_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/billing/portal": {
   "post": {
    "tags": [
     "billing"
    ],
    "summary": "Stripe customer portal (cards, invoices)",
    "operationId": "portal_api_v1_billing_portal_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CheckoutResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/webhooks/events": {
   "get": {
    "tags": [
     "webhooks"
    ],
    "summary": "Event catalogue",
    "operationId": "events_api_v1_webhooks_events_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/WebhookEventInfo"
         },
         "title": "Response Events Api V1 Webhooks Events Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/webhooks": {
   "get": {
    "tags": [
     "webhooks"
    ],
    "summary": "Webhook endpoints",
    "operationId": "list_endpoints_api_v1_webhooks_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/WebhookEndpointRead"
         },
         "title": "Response List Endpoints Api V1 Webhooks Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "webhooks"
    ],
    "summary": "Add an endpoint",
    "operationId": "create_endpoint_api_v1_webhooks_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookEndpointCreate"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/WebhookEndpointCreated"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/webhooks/{endpoint_id}": {
   "patch": {
    "tags": [
     "webhooks"
    ],
    "summary": "Update an endpoint",
    "operationId": "update_endpoint_api_v1_webhooks__endpoint_id__patch",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "endpoint_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Endpoint Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookEndpointUpdate"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/WebhookEndpointRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "webhooks"
    ],
    "summary": "Delete an endpoint",
    "operationId": "delete_endpoint_api_v1_webhooks__endpoint_id__delete",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "endpoint_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Endpoint Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/webhooks/{endpoint_id}/rotate-secret": {
   "post": {
    "tags": [
     "webhooks"
    ],
    "summary": "Rotate the signing secret",
    "operationId": "rotate_secret_api_v1_webhooks__endpoint_id__rotate_secret_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "endpoint_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Endpoint Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/WebhookEndpointCreated"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/webhooks/{endpoint_id}/test": {
   "post": {
    "tags": [
     "webhooks"
    ],
    "summary": "Send a test ping",
    "operationId": "test_endpoint_api_v1_webhooks__endpoint_id__test_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "endpoint_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Endpoint Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "202": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/webhooks/{endpoint_id}/deliveries": {
   "get": {
    "tags": [
     "webhooks"
    ],
    "summary": "Delivery log",
    "operationId": "deliveries_api_v1_webhooks__endpoint_id__deliveries_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "endpoint_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Endpoint Id"
      }
     },
     {
      "name": "status_",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status "
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_WebhookDeliveryRead_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/webhooks/deliveries/{delivery_id}": {
   "get": {
    "tags": [
     "webhooks"
    ],
    "summary": "One delivery, with payload",
    "operationId": "delivery_api_v1_webhooks_deliveries__delivery_id__get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "delivery_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Delivery Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/WebhookDeliveryDetail"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/webhooks/deliveries/{delivery_id}/redeliver": {
   "post": {
    "tags": [
     "webhooks"
    ],
    "summary": "Send a delivery again",
    "description": "Republishes the same payload as a *new* event id, to the same endpoint only.",
    "operationId": "redeliver_api_v1_webhooks_deliveries__delivery_id__redeliver_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "delivery_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Delivery Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "202": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/compliance/suppressions": {
   "post": {
    "tags": [
     "compliance"
    ],
    "summary": "Suppress addresses or domains",
    "description": "For opt-outs this workspace received directly (an unsubscribe reply, a complaint).\n\nThey are added to the platform-wide list and the matching leads in this\nworkspace are marked do-not-contact at once.",
    "operationId": "upload_suppressions_api_v1_compliance_suppressions_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SuppressionUpload"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SuppressionUploadResult"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/compliance/suppressions/check": {
   "post": {
    "tags": [
     "compliance"
    ],
    "summary": "Which of these are suppressed?",
    "operationId": "check_suppressions_api_v1_compliance_suppressions_check_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SuppressionCheck"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SuppressionCheckResult"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/compliance/summary": {
   "get": {
    "tags": [
     "compliance"
    ],
    "summary": "Do-not-contact counts for this workspace",
    "operationId": "summary_api_v1_compliance_summary_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": {
          "type": "integer"
         },
         "title": "Response Summary Api V1 Compliance Summary Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/overview": {
   "get": {
    "tags": [
     "outreach"
    ],
    "summary": "Outreach dashboard",
    "operationId": "overview_api_v1_outreach_overview_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/OutreachOverview"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/variables": {
   "get": {
    "tags": [
     "outreach"
    ],
    "summary": "Personalisation variables",
    "operationId": "variables_api_v1_outreach_variables_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/VariableInfo"
         },
         "title": "Response Variables Api V1 Outreach Variables Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/settings": {
   "get": {
    "tags": [
     "outreach"
    ],
    "summary": "Compliance footer settings",
    "operationId": "get_settings_api_v1_outreach_settings_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/OutreachSettings-Output"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "put": {
    "tags": [
     "outreach"
    ],
    "summary": "Update compliance footer",
    "operationId": "put_settings_api_v1_outreach_settings_put",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/OutreachSettings-Input"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/OutreachSettings-Output"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/mailboxes": {
   "get": {
    "tags": [
     "outreach"
    ],
    "summary": "Connected mailboxes",
    "operationId": "list_mailboxes_api_v1_outreach_mailboxes_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/MailboxRead"
         },
         "title": "Response List Mailboxes Api V1 Outreach Mailboxes Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "outreach"
    ],
    "summary": "Connect a mailbox",
    "operationId": "create_mailbox_api_v1_outreach_mailboxes_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/MailboxCreate"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MailboxRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/mailboxes/test": {
   "post": {
    "tags": [
     "outreach"
    ],
    "summary": "Test mailbox credentials",
    "operationId": "test_unsaved_mailbox_api_v1_outreach_mailboxes_test_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/MailboxTestRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConnectionTestResult"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/mailboxes/{mailbox_id}": {
   "get": {
    "tags": [
     "outreach"
    ],
    "summary": "Get a mailbox",
    "operationId": "get_mailbox_api_v1_outreach_mailboxes__mailbox_id__get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "mailbox_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Mailbox Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MailboxRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "patch": {
    "tags": [
     "outreach"
    ],
    "summary": "Update a mailbox",
    "operationId": "update_mailbox_api_v1_outreach_mailboxes__mailbox_id__patch",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "mailbox_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Mailbox Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/MailboxUpdate"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MailboxRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "outreach"
    ],
    "summary": "Disconnect",
    "operationId": "delete_mailbox_api_v1_outreach_mailboxes__mailbox_id__delete",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "mailbox_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Mailbox Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/mailboxes/{mailbox_id}/test": {
   "post": {
    "tags": [
     "outreach"
    ],
    "summary": "Re-test a connected mailbox",
    "operationId": "test_mailbox_api_v1_outreach_mailboxes__mailbox_id__test_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "mailbox_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Mailbox Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConnectionTestResult"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/mailboxes/{mailbox_id}/sync": {
   "post": {
    "tags": [
     "outreach"
    ],
    "summary": "Check this mailbox for replies now",
    "operationId": "sync_mailbox_api_v1_outreach_mailboxes__mailbox_id__sync_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "mailbox_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Mailbox Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "202": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/mailboxes/{mailbox_id}/warmup": {
   "get": {
    "tags": [
     "outreach"
    ],
    "summary": "Calculate warmup ramp limit and deliverability health score for a mailbox",
    "operationId": "get_mailbox_warmup_api_v1_outreach_mailboxes__mailbox_id__warmup_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "mailbox_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Mailbox Id"
      }
     },
     {
      "name": "start_volume",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 200,
       "minimum": 1,
       "default": 10,
       "title": "Start Volume"
      }
     },
     {
      "name": "daily_increment",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 50,
       "minimum": 0,
       "default": 5,
       "title": "Daily Increment"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MailboxWarmupRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/sequences": {
   "get": {
    "tags": [
     "outreach"
    ],
    "summary": "Sequences",
    "operationId": "list_sequences_api_v1_outreach_sequences_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "status",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "$ref": "#/components/schemas/SequenceStatus"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 128
        },
        {
         "type": "null"
        }
       ],
       "title": "Q"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_SequenceRead_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "outreach"
    ],
    "summary": "Create a sequence",
    "operationId": "create_sequence_api_v1_outreach_sequences_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SequenceCreate"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SequenceDetail"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/sequences/{sequence_id}": {
   "get": {
    "tags": [
     "outreach"
    ],
    "summary": "Get a sequence",
    "operationId": "get_sequence_api_v1_outreach_sequences__sequence_id__get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "sequence_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Sequence Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SequenceDetail"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "patch": {
    "tags": [
     "outreach"
    ],
    "summary": "Update settings",
    "operationId": "update_sequence_api_v1_outreach_sequences__sequence_id__patch",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "sequence_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Sequence Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SequenceUpdate"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SequenceDetail"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "outreach"
    ],
    "summary": "Archive a sequence (stops every contact in it)",
    "operationId": "delete_sequence_api_v1_outreach_sequences__sequence_id__delete",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "sequence_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Sequence Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/sequences/{sequence_id}/steps": {
   "put": {
    "tags": [
     "outreach"
    ],
    "summary": "Save steps",
    "operationId": "put_steps_api_v1_outreach_sequences__sequence_id__steps_put",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "sequence_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Sequence Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/StepsReplace"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SequenceDetail"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/sequences/{sequence_id}/activate": {
   "post": {
    "tags": [
     "outreach"
    ],
    "summary": "Start sending",
    "operationId": "activate_sequence_api_v1_outreach_sequences__sequence_id__activate_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "sequence_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Sequence Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SequenceDetail"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/sequences/{sequence_id}/pause": {
   "post": {
    "tags": [
     "outreach"
    ],
    "summary": "Pause",
    "operationId": "pause_sequence_api_v1_outreach_sequences__sequence_id__pause_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "sequence_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Sequence Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SequenceDetail"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/sequences/{sequence_id}/duplicate": {
   "post": {
    "tags": [
     "outreach"
    ],
    "summary": "Duplicate a sequence (steps and settings, no contacts)",
    "operationId": "duplicate_sequence_api_v1_outreach_sequences__sequence_id__duplicate_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "sequence_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Sequence Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SequenceDetail"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/sequences/{sequence_id}/analytics": {
   "get": {
    "tags": [
     "outreach"
    ],
    "summary": "Per-step and per-variant results",
    "operationId": "sequence_analytics_api_v1_outreach_sequences__sequence_id__analytics_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "sequence_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Sequence Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SequenceAnalytics"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/sequences/{sequence_id}/enrollments": {
   "get": {
    "tags": [
     "outreach"
    ],
    "summary": "Contacts in a sequence",
    "operationId": "list_enrollments_api_v1_outreach_sequences__sequence_id__enrollments_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "sequence_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Sequence Id"
      }
     },
     {
      "name": "status",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "$ref": "#/components/schemas/EnrollmentStatus"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 128
        },
        {
         "type": "null"
        }
       ],
       "title": "Q"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_EnrollmentRead_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/sequences/{sequence_id}/enroll": {
   "post": {
    "tags": [
     "outreach"
    ],
    "summary": "Add contacts",
    "operationId": "enroll_leads_api_v1_outreach_sequences__sequence_id__enroll_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "sequence_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Sequence Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/EnrollRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/EnrollResultRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/sequences/{sequence_id}/enrollments/action": {
   "post": {
    "tags": [
     "outreach"
    ],
    "summary": "Pause, resume, stop or remove contacts",
    "operationId": "enrollment_action_api_v1_outreach_sequences__sequence_id__enrollments_action_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "sequence_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Sequence Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/EnrollmentAction"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/EnrollmentActionResult"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/sequences/{sequence_id}/preview": {
   "post": {
    "tags": [
     "outreach"
    ],
    "summary": "Preview a step",
    "operationId": "preview_step_api_v1_outreach_sequences__sequence_id__preview_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "sequence_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Sequence Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PreviewRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PreviewRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/sequences/{sequence_id}/test-send": {
   "post": {
    "tags": [
     "outreach"
    ],
    "summary": "Send a step to yourself",
    "description": "Only to your own address, a teammate's, or a connected mailbox \u2014 never a prospect.",
    "operationId": "test_send_api_v1_outreach_sequences__sequence_id__test_send_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "sequence_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Sequence Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/TestSendRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/messages": {
   "get": {
    "tags": [
     "outreach"
    ],
    "summary": "Sent emails",
    "operationId": "list_messages_api_v1_outreach_messages_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "sequence_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "format": "uuid"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sequence Id"
      }
     },
     {
      "name": "lead_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "format": "uuid"
        },
        {
         "type": "null"
        }
       ],
       "title": "Lead Id"
      }
     },
     {
      "name": "status",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "$ref": "#/components/schemas/OutreachMessageStatus"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_OutreachMessageRead_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/leads/{lead_id}/enrollments": {
   "get": {
    "tags": [
     "outreach"
    ],
    "summary": "A lead's sequences",
    "operationId": "lead_enrollments_api_v1_outreach_leads__lead_id__enrollments_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "lead_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Lead Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/EnrollmentRead"
         },
         "title": "Response Lead Enrollments Api V1 Outreach Leads  Lead Id  Enrollments Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/replies": {
   "get": {
    "tags": [
     "outreach"
    ],
    "summary": "Replies inbox",
    "operationId": "list_replies_api_v1_outreach_replies_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "unread",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "boolean"
        },
        {
         "type": "null"
        }
       ],
       "title": "Unread"
      }
     },
     {
      "name": "kind",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "$ref": "#/components/schemas/ReplyKind"
        },
        {
         "type": "null"
        }
       ],
       "title": "Kind"
      }
     },
     {
      "name": "category",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "$ref": "#/components/schemas/ReplyCategory"
        },
        {
         "type": "null"
        }
       ],
       "title": "Category"
      }
     },
     {
      "name": "sequence_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "format": "uuid"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sequence Id"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_ReplyRead_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/replies/{reply_id}": {
   "patch": {
    "tags": [
     "outreach"
    ],
    "summary": "Mark read or relabel",
    "operationId": "update_reply_api_v1_outreach_replies__reply_id__patch",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "reply_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Reply Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ReplyUpdate"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ReplyRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/replies/read-all": {
   "post": {
    "tags": [
     "outreach"
    ],
    "summary": "Mark all as read",
    "operationId": "read_all_api_v1_outreach_replies_read_all_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/replies/{reply_id}/unsubscribe": {
   "post": {
    "tags": [
     "outreach"
    ],
    "summary": "Honour an opt-out written in a reply",
    "operationId": "unsubscribe_from_reply_api_v1_outreach_replies__reply_id__unsubscribe_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "reply_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Reply Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/replies/{reply_id}/respond": {
   "post": {
    "tags": [
     "outreach"
    ],
    "summary": "Answer a reply from the same mailbox, in the same thread",
    "description": "A one-to-one answer, not outreach: no unsubscribe footer, never to someone who opted out.",
    "operationId": "respond_to_reply_api_v1_outreach_replies__reply_id__respond_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "reply_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Reply Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ReplyRespond"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ReplyRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/tasks": {
   "get": {
    "tags": [
     "outreach"
    ],
    "summary": "Manual steps to do",
    "operationId": "list_tasks_api_v1_outreach_tasks_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "status",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "$ref": "#/components/schemas/TaskStatus"
        },
        {
         "type": "null"
        }
       ],
       "default": "open",
       "title": "Status"
      }
     },
     {
      "name": "mine",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Mine"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_TaskRead_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/tasks/{task_id}/complete": {
   "post": {
    "tags": [
     "outreach"
    ],
    "summary": "Complete or skip",
    "operationId": "complete_task_api_v1_outreach_tasks__task_id__complete_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Task Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/TaskComplete"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TaskRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/templates": {
   "get": {
    "tags": [
     "outreach"
    ],
    "summary": "Email templates",
    "operationId": "list_templates_api_v1_outreach_templates_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/TemplateRead"
         },
         "title": "Response List Templates Api V1 Outreach Templates Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "outreach"
    ],
    "summary": "Save a template",
    "operationId": "create_template_api_v1_outreach_templates_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/TemplateCreate"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TemplateRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/templates/{template_id}": {
   "patch": {
    "tags": [
     "outreach"
    ],
    "summary": "Edit a template",
    "operationId": "update_template_api_v1_outreach_templates__template_id__patch",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "template_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Template Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/TemplateUpdate"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TemplateRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "outreach"
    ],
    "summary": "Delete a template",
    "operationId": "delete_template_api_v1_outreach_templates__template_id__delete",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "template_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Template Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/ai/draft": {
   "post": {
    "tags": [
     "outreach"
    ],
    "summary": "Write an email with AI (1 credit)",
    "operationId": "ai_draft_api_v1_outreach_ai_draft_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AIDraftRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AIDraftRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/outreach/ai/sequence": {
   "post": {
    "tags": [
     "outreach"
    ],
    "summary": "Write a whole sequence (3 credits)",
    "operationId": "ai_sequence_api_v1_outreach_ai_sequence_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AISequenceRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AISequenceRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/research/brief": {
   "get": {
    "tags": [
     "research"
    ],
    "summary": "Latest AI brief",
    "operationId": "latest_brief_api_v1_research_brief_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "company_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "format": "uuid"
        },
        {
         "type": "null"
        }
       ],
       "title": "Company Id"
      }
     },
     {
      "name": "lead_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "format": "uuid"
        },
        {
         "type": "null"
        }
       ],
       "title": "Lead Id"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "anyOf": [
          {
           "$ref": "#/components/schemas/BriefRead"
          },
          {
           "type": "null"
          }
         ],
         "title": "Response Latest Brief Api V1 Research Brief Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "research"
    ],
    "summary": "Generate an AI account brief (1 credit)",
    "operationId": "create_brief_api_v1_research_brief_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BriefRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BriefRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/research/lookalikes": {
   "post": {
    "tags": [
     "research"
    ],
    "summary": "Companies similar to seeds",
    "operationId": "lookalikes_api_v1_research_lookalikes_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/LookalikeRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/LookalikeResult"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/research/search-filters": {
   "post": {
    "tags": [
     "research"
    ],
    "summary": "Natural language to filters",
    "operationId": "search_filters_api_v1_research_search_filters_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SearchFiltersRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SearchFiltersRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/integrations": {
   "get": {
    "tags": [
     "integrations"
    ],
    "summary": "Connected integrations",
    "operationId": "list_integrations_api_v1_integrations_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/IntegrationRead"
         },
         "title": "Response List Integrations Api V1 Integrations Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/integrations/catalog": {
   "get": {
    "tags": [
     "integrations"
    ],
    "summary": "List all 22 supported cold outbound, lead quality, verifier, and intent providers",
    "operationId": "get_provider_catalog_api_v1_integrations_catalog_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "category",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Category"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/ProviderCatalogItem"
         },
         "title": "Response Get Provider Catalog Api V1 Integrations Catalog Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/integrations/providers/{provider}": {
   "put": {
    "tags": [
     "integrations"
    ],
    "summary": "Connect an ecosystem provider (BYO API key)",
    "operationId": "connect_provider_api_v1_integrations_providers__provider__put",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "provider",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Provider"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ProviderConnectRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/IntegrationRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "integrations"
    ],
    "summary": "Disconnect an ecosystem provider",
    "operationId": "disconnect_provider_api_v1_integrations_providers__provider__delete",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "provider",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Provider"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/integrations/signals/ingest": {
   "post": {
    "tags": [
     "integrations"
    ],
    "summary": "Ingest leads and signals from external providers into workspace & common DB",
    "operationId": "ingest_provider_signals_api_v1_integrations_signals_ingest_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SignalIngestRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SignalIngestResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/integrations/hubspot": {
   "put": {
    "tags": [
     "integrations"
    ],
    "summary": "Connect HubSpot",
    "operationId": "connect_hubspot_api_v1_integrations_hubspot_put",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/HubSpotConnect"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/IntegrationRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "integrations"
    ],
    "summary": "Disconnect HubSpot",
    "operationId": "disconnect_hubspot_api_v1_integrations_hubspot_delete",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/integrations/hubspot/push": {
   "post": {
    "tags": [
     "integrations"
    ],
    "summary": "Push leads to HubSpot",
    "operationId": "push_to_hubspot_api_v1_integrations_hubspot_push_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PushRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PushResultRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/directory/search": {
   "post": {
    "tags": [
     "directory"
    ],
    "summary": "Search the platform company directory (free)",
    "operationId": "search_directory_api_v1_directory_search_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/DirectoryCriteria"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_DirectoryCompanyRead_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/directory/reveal": {
   "post": {
    "tags": [
     "directory"
    ],
    "summary": "Add directory companies to this workspace (1 credit per new company)",
    "operationId": "reveal_companies_api_v1_directory_reveal_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RevealRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RevealResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/directory/leads/search": {
   "post": {
    "tags": [
     "directory"
    ],
    "summary": "Search leads in the platform shared directory (free, masked contact details)",
    "operationId": "search_directory_leads_api_v1_directory_leads_search_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     },
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/DirectoryLeadCriteria"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_DirectoryLeadRead_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/directory/leads/reveal": {
   "post": {
    "tags": [
     "directory"
    ],
    "summary": "Reveal directory leads into this workspace (1 credit per new lead)",
    "operationId": "reveal_directory_leads_api_v1_directory_leads_reveal_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RevealRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RevealLeadResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/assistant/ask": {
   "post": {
    "tags": [
     "assistant"
    ],
    "summary": "Ask the assistant (free)",
    "operationId": "ask_api_v1_assistant_ask_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "X-API-Key",
      "in": "header",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "X-Api-Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AskRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AskResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/directory/seed": {
   "post": {
    "tags": [
     "admin"
    ],
    "summary": "Queue websites for the directory",
    "operationId": "seed_api_v1_admin_directory_seed_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SeedRequest"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SeedResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "HTTPBearer": []
     }
    ]
   }
  },
  "/api/v1/admin/directory": {
   "get": {
    "tags": [
     "admin"
    ],
    "summary": "Browse the directory",
    "operationId": "list_directory_api_v1_admin_directory_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 255
        },
        {
         "type": "null"
        }
       ],
       "title": "Q"
      }
     },
     {
      "name": "removed",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Removed"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_DirectoryAdminRow_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/directory/stats": {
   "get": {
    "tags": [
     "admin"
    ],
    "summary": "Directory size and coverage",
    "operationId": "stats_api_v1_admin_directory_stats_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DirectoryStats"
        }
       }
      }
     }
    },
    "security": [
     {
      "HTTPBearer": []
     }
    ]
   }
  },
  "/api/v1/admin/directory/leads": {
   "get": {
    "tags": [
     "admin"
    ],
    "summary": "Browse leads in the shared control-plane directory",
    "operationId": "list_directory_leads_api_v1_admin_directory_leads_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 255
        },
        {
         "type": "null"
        }
       ],
       "title": "Q"
      }
     },
     {
      "name": "source",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 32
        },
        {
         "type": "null"
        }
       ],
       "title": "Source"
      }
     },
     {
      "name": "removed",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Removed"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_DirectoryLeadAdminRow_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/directory/{company_id}/takedown": {
   "post": {
    "tags": [
     "admin"
    ],
    "summary": "Take a company down",
    "operationId": "take_down_api_v1_admin_directory__company_id__takedown_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "company_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Company Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/TakedownRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DirectoryCompanyRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/overview": {
   "get": {
    "tags": [
     "superadmin"
    ],
    "summary": "Platform KPIs",
    "operationId": "overview_api_v1_admin_overview_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/OverviewResponse"
        }
       }
      }
     }
    },
    "security": [
     {
      "HTTPBearer": []
     }
    ]
   }
  },
  "/api/v1/admin/usage": {
   "get": {
    "tags": [
     "superadmin"
    ],
    "summary": "Daily usage across tenants",
    "operationId": "usage_api_v1_admin_usage_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "days",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 365,
       "minimum": 1,
       "default": 30,
       "title": "Days"
      }
     },
     {
      "name": "tenant_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "format": "uuid"
        },
        {
         "type": "null"
        }
       ],
       "title": "Tenant Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "type": "object"
         },
         "title": "Response Usage Api V1 Admin Usage Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/tenants": {
   "get": {
    "tags": [
     "superadmin"
    ],
    "summary": "All workspaces",
    "operationId": "list_tenants_api_v1_admin_tenants_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Q"
      }
     },
     {
      "name": "status",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "$ref": "#/components/schemas/TenantStatus"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "name": "plan",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Plan"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_TenantRow_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "superadmin"
    ],
    "summary": "Create a workspace for someone",
    "operationId": "create_tenant_api_v1_admin_tenants_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/TenantCreate"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TenantRow"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/tenants/{tenant_id}": {
   "get": {
    "tags": [
     "superadmin"
    ],
    "summary": "One workspace in depth",
    "operationId": "get_tenant_api_v1_admin_tenants__tenant_id__get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "tenant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Tenant Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TenantDetail"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "patch": {
    "tags": [
     "superadmin"
    ],
    "summary": "Change plan, seats, features, name",
    "operationId": "update_tenant_api_v1_admin_tenants__tenant_id__patch",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "tenant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Tenant Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/TenantUpdate"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "superadmin"
    ],
    "summary": "Soft-delete (purged later)",
    "operationId": "delete_tenant_api_v1_admin_tenants__tenant_id__delete",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "tenant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Tenant Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/StatusChange"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/tenants/{tenant_id}/suspend": {
   "post": {
    "tags": [
     "superadmin"
    ],
    "summary": "Block all access (data kept)",
    "operationId": "suspend_tenant_api_v1_admin_tenants__tenant_id__suspend_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "tenant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Tenant Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/StatusChange"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/tenants/{tenant_id}/resume": {
   "post": {
    "tags": [
     "superadmin"
    ],
    "summary": "Restore access",
    "operationId": "resume_tenant_api_v1_admin_tenants__tenant_id__resume_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "tenant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Tenant Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/tenants/{tenant_id}/reprovision": {
   "post": {
    "tags": [
     "superadmin"
    ],
    "summary": "Retry a failed provisioning",
    "operationId": "reprovision_api_v1_admin_tenants__tenant_id__reprovision_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "tenant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Tenant Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/tenants/{tenant_id}/migrate": {
   "post": {
    "tags": [
     "superadmin"
    ],
    "summary": "Migrate this tenant's schema to head",
    "operationId": "migrate_tenant_api_v1_admin_tenants__tenant_id__migrate_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "tenant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Tenant Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/tenants/{tenant_id}/purge": {
   "post": {
    "tags": [
     "superadmin"
    ],
    "summary": "Drop the database now (irreversible)",
    "operationId": "purge_tenant_api_v1_admin_tenants__tenant_id__purge_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "tenant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Tenant Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PurgeRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/tenants/{tenant_id}/credits": {
   "post": {
    "tags": [
     "superadmin"
    ],
    "summary": "Grant credits",
    "description": "Idempotent on ``idempotency_key``: a retried request grants once.",
    "operationId": "grant_credits_api_v1_admin_tenants__tenant_id__credits_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "tenant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Tenant Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CreditGrantRequest"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CreditEntryRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/tenants/{tenant_id}/credits/deduct": {
   "post": {
    "tags": [
     "superadmin"
    ],
    "summary": "Deduct credits (corrections, refunds)",
    "description": "The mirror of a grant. Refused if the balance would go negative.",
    "operationId": "deduct_credits_api_v1_admin_tenants__tenant_id__credits_deduct_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "tenant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Tenant Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CreditGrantRequest"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CreditEntryRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/tenants/{tenant_id}/impersonate": {
   "post": {
    "tags": [
     "superadmin"
    ],
    "summary": "Act as a member (30 min, audited)",
    "operationId": "impersonate_api_v1_admin_tenants__tenant_id__impersonate_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "tenant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Tenant Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ImpersonateRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ImpersonationResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/tenants/{tenant_id}/ledger": {
   "get": {
    "tags": [
     "superadmin"
    ],
    "summary": "A workspace's credit ledger",
    "operationId": "tenant_ledger_api_v1_admin_tenants__tenant_id__ledger_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "tenant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Tenant Id"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_CreditEntryRead_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/users": {
   "get": {
    "tags": [
     "superadmin"
    ],
    "summary": "All accounts",
    "operationId": "list_users_api_v1_admin_users_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Q"
      }
     },
     {
      "name": "superadmins",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Superadmins"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_AdminUserRow_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/users/{user_id}": {
   "get": {
    "tags": [
     "superadmin"
    ],
    "summary": "One account",
    "operationId": "get_user_api_v1_admin_users__user_id__get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "user_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "User Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AdminUserDetail"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "patch": {
    "tags": [
     "superadmin"
    ],
    "summary": "Disable, promote, verify",
    "operationId": "update_user_api_v1_admin_users__user_id__patch",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "user_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "User Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AdminUserUpdate"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AdminUserRow"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/users/{user_id}/unlock": {
   "post": {
    "tags": [
     "superadmin"
    ],
    "summary": "Clear a login lockout",
    "operationId": "unlock_user_api_v1_admin_users__user_id__unlock_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "user_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "User Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/users/{user_id}/sign-out": {
   "post": {
    "tags": [
     "superadmin"
    ],
    "summary": "End all of a user's sessions",
    "operationId": "sign_out_user_api_v1_admin_users__user_id__sign_out_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "user_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "User Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/plans": {
   "get": {
    "tags": [
     "superadmin"
    ],
    "summary": "All plans, including hidden",
    "operationId": "list_plans_api_v1_admin_plans_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "items": {
          "$ref": "#/components/schemas/PlanRead"
         },
         "type": "array",
         "title": "Response List Plans Api V1 Admin Plans Get"
        }
       }
      }
     }
    },
    "security": [
     {
      "HTTPBearer": []
     }
    ]
   }
  },
  "/api/v1/admin/plans/{code}": {
   "put": {
    "tags": [
     "superadmin"
    ],
    "summary": "Create or replace a plan",
    "operationId": "upsert_plan_api_v1_admin_plans__code__put",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Code"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PlanUpsert"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PlanRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/credit-packs": {
   "get": {
    "tags": [
     "superadmin"
    ],
    "summary": "All credit packs",
    "operationId": "list_packs_api_v1_admin_credit_packs_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "items": {
          "$ref": "#/components/schemas/CreditPackRead"
         },
         "type": "array",
         "title": "Response List Packs Api V1 Admin Credit Packs Get"
        }
       }
      }
     }
    },
    "security": [
     {
      "HTTPBearer": []
     }
    ]
   }
  },
  "/api/v1/admin/credit-packs/{code}": {
   "put": {
    "tags": [
     "superadmin"
    ],
    "summary": "Create or replace a credit pack",
    "operationId": "upsert_pack_api_v1_admin_credit_packs__code__put",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "code",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Code"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CreditPackUpsert"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CreditPackRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/invoices": {
   "get": {
    "tags": [
     "superadmin"
    ],
    "summary": "Invoices across tenants",
    "operationId": "list_invoices_api_v1_admin_invoices_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "status",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "$ref": "#/components/schemas/InvoiceStatus"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "name": "tenant_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "format": "uuid"
        },
        {
         "type": "null"
        }
       ],
       "title": "Tenant Id"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_AdminInvoiceRow_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/invoices/{invoice_id}/mark-paid": {
   "post": {
    "tags": [
     "superadmin"
    ],
    "summary": "Settle a manual invoice",
    "description": "Delivers what the invoice paid for: credits, or the plan change. Idempotent.",
    "operationId": "mark_paid_api_v1_admin_invoices__invoice_id__mark_paid_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "invoice_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Invoice Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AdminInvoiceRow"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/invoices/{invoice_id}/void": {
   "post": {
    "tags": [
     "superadmin"
    ],
    "summary": "Void an open invoice",
    "operationId": "void_invoice_api_v1_admin_invoices__invoice_id__void_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "invoice_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Invoice Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AdminInvoiceRow"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/tenants/{tenant_id}/invoices": {
   "post": {
    "tags": [
     "superadmin"
    ],
    "summary": "Raise a manual invoice",
    "operationId": "raise_invoice_api_v1_admin_tenants__tenant_id__invoices_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "tenant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Tenant Id"
      }
     },
     {
      "name": "amount_cents",
      "in": "query",
      "required": true,
      "schema": {
       "type": "integer",
       "minimum": 0,
       "title": "Amount Cents"
      }
     },
     {
      "name": "description",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "maxLength": 512,
       "title": "Description"
      }
     },
     {
      "name": "credits",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 0,
       "default": 0,
       "title": "Credits"
      }
     }
    ],
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AdminInvoiceRow"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/audit-logs": {
   "get": {
    "tags": [
     "superadmin"
    ],
    "summary": "Platform audit log",
    "operationId": "audit_logs_api_v1_admin_audit_logs_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "tenant_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "format": "uuid"
        },
        {
         "type": "null"
        }
       ],
       "title": "Tenant Id"
      }
     },
     {
      "name": "actor_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "format": "uuid"
        },
        {
         "type": "null"
        }
       ],
       "title": "Actor Id"
      }
     },
     {
      "name": "action",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Action"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_AuditLogRead_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/announcements": {
   "get": {
    "tags": [
     "superadmin"
    ],
    "summary": "All announcements",
    "operationId": "list_announcements_api_v1_admin_announcements_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "items": {
          "$ref": "#/components/schemas/AnnouncementRead"
         },
         "type": "array",
         "title": "Response List Announcements Api V1 Admin Announcements Get"
        }
       }
      }
     }
    },
    "security": [
     {
      "HTTPBearer": []
     }
    ]
   },
   "post": {
    "tags": [
     "superadmin"
    ],
    "summary": "Publish an announcement",
    "operationId": "create_announcement_api_v1_admin_announcements_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AnnouncementUpsert"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AnnouncementRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "HTTPBearer": []
     }
    ]
   }
  },
  "/api/v1/admin/announcements/{announcement_id}": {
   "patch": {
    "tags": [
     "superadmin"
    ],
    "summary": "Edit an announcement",
    "operationId": "update_announcement_api_v1_admin_announcements__announcement_id__patch",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "announcement_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Announcement Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AnnouncementUpsert"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AnnouncementRead"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "superadmin"
    ],
    "summary": "Remove an announcement",
    "operationId": "delete_announcement_api_v1_admin_announcements__announcement_id__delete",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "announcement_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Announcement Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/suppressions": {
   "get": {
    "tags": [
     "superadmin"
    ],
    "summary": "Platform suppression list (hashes)",
    "operationId": "list_suppressions_api_v1_admin_suppressions_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_SuppressionRead_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "superadmin"
    ],
    "summary": "Add platform-wide suppressions",
    "operationId": "add_suppressions_api_v1_admin_suppressions_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SuppressionUpload"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/suppressions/{suppression_id}": {
   "delete": {
    "tags": [
     "superadmin"
    ],
    "summary": "Remove a suppression",
    "operationId": "remove_suppression_api_v1_admin_suppressions__suppression_id__delete",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "suppression_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Suppression Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/privacy-requests": {
   "get": {
    "tags": [
     "superadmin"
    ],
    "summary": "Data subject requests",
    "operationId": "list_dsr_api_v1_admin_privacy_requests_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "status",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "$ref": "#/components/schemas/DSRStatus"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_DSRRead_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/privacy-requests/{request_id}/process": {
   "post": {
    "tags": [
     "superadmin"
    ],
    "summary": "Re-run fulfilment",
    "operationId": "process_dsr_api_v1_admin_privacy_requests__request_id__process_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "request_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Request Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/privacy-requests/{request_id}/reject": {
   "post": {
    "tags": [
     "superadmin"
    ],
    "summary": "Reject (e.g. unverifiable)",
    "operationId": "reject_dsr_api_v1_admin_privacy_requests__request_id__reject_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "request_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Request Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/StatusChange"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/system": {
   "get": {
    "tags": [
     "superadmin"
    ],
    "summary": "Health of the platform's moving parts",
    "operationId": "system_api_v1_admin_system_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SystemStatus"
        }
       }
      }
     }
    },
    "security": [
     {
      "HTTPBearer": []
     }
    ]
   }
  },
  "/api/v1/admin/tenants/{tenant_id}/members/{user_id}/resync": {
   "post": {
    "tags": [
     "superadmin"
    ],
    "summary": "Repair a member row",
    "operationId": "resync_member_api_v1_admin_tenants__tenant_id__members__user_id__resync_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "tenant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Tenant Id"
      }
     },
     {
      "name": "user_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "User Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/tenants/{tenant_id}/events/test": {
   "post": {
    "tags": [
     "superadmin"
    ],
    "summary": "Publish a ping event for this tenant",
    "operationId": "test_event_api_v1_admin_tenants__tenant_id__events_test_post",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "tenant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Tenant Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/analytics/overview": {
   "get": {
    "tags": [
     "superadmin"
    ],
    "summary": "Visitor analytics overview",
    "operationId": "overview_api_v1_admin_analytics_overview_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "days",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 400,
       "minimum": 1,
       "default": 30,
       "title": "Days"
      }
     },
     {
      "name": "area",
      "in": "query",
      "required": false,
      "schema": {
       "enum": [
        "all",
        "site",
        "app"
       ],
       "type": "string",
       "default": "all",
       "title": "Area"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AnalyticsOverview"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/analytics/visits": {
   "get": {
    "tags": [
     "superadmin"
    ],
    "summary": "Visits, newest first",
    "operationId": "list_visits_api_v1_admin_analytics_visits_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "days",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 400,
       "minimum": 1,
       "default": 30,
       "title": "Days"
      }
     },
     {
      "name": "area",
      "in": "query",
      "required": false,
      "schema": {
       "enum": [
        "all",
        "site",
        "app"
       ],
       "type": "string",
       "default": "all",
       "title": "Area"
      }
     },
     {
      "name": "country",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 2
        },
        {
         "type": "null"
        }
       ],
       "title": "Country"
      }
     },
     {
      "name": "source",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 80
        },
        {
         "type": "null"
        }
       ],
       "title": "Source"
      }
     },
     {
      "name": "path",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 200
        },
        {
         "type": "null"
        }
       ],
       "title": "Path"
      }
     },
     {
      "name": "signed_in",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Signed In"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_VisitRow_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/analytics/visits.csv": {
   "get": {
    "tags": [
     "superadmin"
    ],
    "summary": "Visits as CSV (up to 50,000 rows, same filters as the list)",
    "operationId": "export_visits_api_v1_admin_analytics_visits_csv_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "days",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 400,
       "minimum": 1,
       "default": 30,
       "title": "Days"
      }
     },
     {
      "name": "area",
      "in": "query",
      "required": false,
      "schema": {
       "enum": [
        "all",
        "site",
        "app"
       ],
       "type": "string",
       "default": "all",
       "title": "Area"
      }
     },
     {
      "name": "country",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 2
        },
        {
         "type": "null"
        }
       ],
       "title": "Country"
      }
     },
     {
      "name": "source",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 80
        },
        {
         "type": "null"
        }
       ],
       "title": "Source"
      }
     },
     {
      "name": "path",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 200
        },
        {
         "type": "null"
        }
       ],
       "title": "Path"
      }
     },
     {
      "name": "signed_in",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Signed In"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/analytics/visits/{visit_id}": {
   "get": {
    "tags": [
     "superadmin"
    ],
    "summary": "One visit with every page",
    "operationId": "visit_detail_api_v1_admin_analytics_visits__visit_id__get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "visit_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Visit Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VisitDetail"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/analytics/visitors": {
   "get": {
    "tags": [
     "superadmin"
    ],
    "summary": "Visitors seen in the period",
    "operationId": "list_visitors_api_v1_admin_analytics_visitors_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "days",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 400,
       "minimum": 1,
       "default": 30,
       "title": "Days"
      }
     },
     {
      "name": "area",
      "in": "query",
      "required": false,
      "schema": {
       "enum": [
        "all",
        "site",
        "app"
       ],
       "type": "string",
       "default": "all",
       "title": "Area"
      }
     },
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 200
        },
        {
         "type": "null"
        }
       ],
       "description": "Account email, IP address (or part), network or company, city, or a page",
       "title": "Q"
      },
      "description": "Account email, IP address (or part), network or company, city, or a page"
     },
     {
      "name": "country",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 2
        },
        {
         "type": "null"
        }
       ],
       "title": "Country"
      }
     },
     {
      "name": "kind",
      "in": "query",
      "required": false,
      "schema": {
       "enum": [
        "all",
        "identified",
        "anonymous",
        "signed_in",
        "returning"
       ],
       "type": "string",
       "default": "all",
       "title": "Kind"
      }
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "schema": {
       "enum": [
        "recent",
        "visits",
        "time",
        "pages"
       ],
       "type": "string",
       "default": "recent",
       "title": "Sort"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 0,
       "title": "Offset"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Page_VisitorRow_"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/analytics/visitors.csv": {
   "get": {
    "tags": [
     "superadmin"
    ],
    "summary": "Visitors as CSV (up to 50,000 rows, same filters as the list)",
    "operationId": "export_visitors_api_v1_admin_analytics_visitors_csv_get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "days",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 400,
       "minimum": 1,
       "default": 30,
       "title": "Days"
      }
     },
     {
      "name": "area",
      "in": "query",
      "required": false,
      "schema": {
       "enum": [
        "all",
        "site",
        "app"
       ],
       "type": "string",
       "default": "all",
       "title": "Area"
      }
     },
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 200
        },
        {
         "type": "null"
        }
       ],
       "description": "Account email, IP address (or part), network or company, city, or a page",
       "title": "Q"
      },
      "description": "Account email, IP address (or part), network or company, city, or a page"
     },
     {
      "name": "country",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 2
        },
        {
         "type": "null"
        }
       ],
       "title": "Country"
      }
     },
     {
      "name": "kind",
      "in": "query",
      "required": false,
      "schema": {
       "enum": [
        "all",
        "identified",
        "anonymous",
        "signed_in",
        "returning"
       ],
       "type": "string",
       "default": "all",
       "title": "Kind"
      }
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "schema": {
       "enum": [
        "recent",
        "visits",
        "time",
        "pages"
       ],
       "type": "string",
       "default": "recent",
       "title": "Sort"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/analytics/visitors/{visitor_id}": {
   "get": {
    "tags": [
     "superadmin"
    ],
    "summary": "Everything about one visitor: totals, locations, devices, pages, visits, clicks",
    "operationId": "visitor_detail_api_v1_admin_analytics_visitors__visitor_id__get",
    "security": [
     {
      "HTTPBearer": []
     }
    ],
    "parameters": [
     {
      "name": "visitor_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "format": "uuid",
       "title": "Visitor Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VisitorDetail"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/admin/analytics/live": {
   "get": {
    "tags": [
     "superadmin"
    ],
    "summary": "Visitors active in the last 5 minutes",
    "operationId": "live_api_v1_admin_analytics_live_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "items": {
          "$ref": "#/components/schemas/LiveVisit"
         },
         "type": "array",
         "title": "Response Live Api V1 Admin Analytics Live Get"
        }
       }
      }
     }
    },
    "security": [
     {
      "HTTPBearer": []
     }
    ]
   }
  },
  "/api/v1/public/plans": {
   "get": {
    "tags": [
     "public"
    ],
    "summary": "Public price list (no auth)",
    "operationId": "public_plans_api_v1_public_plans_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "items": {
          "$ref": "#/components/schemas/PlanRead"
         },
         "type": "array",
         "title": "Response Public Plans Api V1 Public Plans Get"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/public/credit-packs": {
   "get": {
    "tags": [
     "public"
    ],
    "summary": "Credit top-ups (no auth)",
    "operationId": "public_packs_api_v1_public_credit_packs_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "items": {
          "$ref": "#/components/schemas/CreditPackRead"
         },
         "type": "array",
         "title": "Response Public Packs Api V1 Public Credit Packs Get"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/public/credit-costs": {
   "get": {
    "tags": [
     "credits"
    ],
    "summary": "Credits per operation and the bounce guarantee (no auth)",
    "description": "What each paid action costs on this deployment, for the public pricing page.\n\n``bounce_guarantee_days`` is 0 when the guarantee is switched off.",
    "operationId": "public_credit_costs_api_v1_public_credit_costs_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": {
          "type": "integer"
         },
         "type": "object",
         "title": "Response Public Credit Costs Api V1 Public Credit Costs Get"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/public/analytics/collect": {
   "post": {
    "tags": [
     "analytics"
    ],
    "summary": "Record a page view or engagement update (web app tracker)",
    "operationId": "collect_api_v1_public_analytics_collect_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CollectRequest"
       }
      }
     },
     "required": true
    },
    "responses": {
     "204": {
      "description": "Successful Response"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/public/outreach/unsubscribe/{token}": {
   "get": {
    "tags": [
     "outreach-public"
    ],
    "summary": "Who an unsubscribe link is for",
    "operationId": "unsubscribe_info_api_v1_public_outreach_unsubscribe__token__get",
    "parameters": [
     {
      "name": "token",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Token"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/UnsubscribeInfo"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "outreach-public"
    ],
    "summary": "Unsubscribe (also RFC 8058 one-click)",
    "operationId": "unsubscribe_api_v1_public_outreach_unsubscribe__token__post",
    "parameters": [
     {
      "name": "token",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Token"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/UnsubscribeInfo"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/public/outreach/open/{token}": {
   "post": {
    "tags": [
     "outreach-public"
    ],
    "summary": "Open pixel hit",
    "operationId": "track_open_api_v1_public_outreach_open__token__post",
    "parameters": [
     {
      "name": "token",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Token"
      }
     }
    ],
    "responses": {
     "204": {
      "description": "Successful Response"
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/public/outreach/click/{token}": {
   "post": {
    "tags": [
     "outreach-public"
    ],
    "summary": "Tracked link click",
    "operationId": "track_click_api_v1_public_outreach_click__token__post",
    "parameters": [
     {
      "name": "token",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Token"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ClickRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ClickResult"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/privacy/requests": {
   "post": {
    "tags": [
     "privacy"
    ],
    "summary": "Submit a privacy request",
    "description": "Anyone may ask; nothing happens until they click the emailed link.\n\nThe response never says whether the address is in any workspace.",
    "operationId": "create_request_api_v1_privacy_requests_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PrivacyRequestCreate"
       }
      }
     },
     "required": true
    },
    "responses": {
     "202": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/privacy/requests/verify": {
   "post": {
    "tags": [
     "privacy"
    ],
    "summary": "Confirm a privacy request",
    "operationId": "verify_request_api_v1_privacy_requests_verify_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PrivacyRequestVerify"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MessageResponse"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "AIDraftRead": {
    "properties": {
     "subject": {
      "type": "string",
      "title": "Subject"
     },
     "body": {
      "type": "string",
      "title": "Body"
     },
     "credits_charged": {
      "type": "integer",
      "title": "Credits Charged"
     }
    },
    "type": "object",
    "required": [
     "subject",
     "body",
     "credits_charged"
    ],
    "title": "AIDraftRead"
   },
   "AIDraftRequest": {
    "properties": {
     "product": {
      "type": "string",
      "maxLength": 2000,
      "minLength": 3,
      "title": "Product"
     },
     "audience": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 1000
       },
       {
        "type": "null"
       }
      ],
      "title": "Audience"
     },
     "value_proposition": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 1000
       },
       {
        "type": "null"
       }
      ],
      "title": "Value Proposition"
     },
     "call_to_action": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 300
       },
       {
        "type": "null"
       }
      ],
      "title": "Call To Action"
     },
     "proof_points": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 1000
       },
       {
        "type": "null"
       }
      ],
      "title": "Proof Points"
     },
     "tone": {
      "type": "string",
      "enum": [
       "friendly",
       "professional",
       "direct",
       "casual",
       "consultative"
      ],
      "title": "Tone",
      "default": "friendly"
     },
     "length": {
      "type": "string",
      "enum": [
       "short",
       "medium",
       "long"
      ],
      "title": "Length",
      "default": "short"
     },
     "step_position": {
      "type": "integer",
      "maximum": 20.0,
      "minimum": 1.0,
      "title": "Step Position",
      "default": 1
     },
     "previous_subject": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 300
       },
       {
        "type": "null"
       }
      ],
      "title": "Previous Subject"
     },
     "lead_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Lead Id"
     },
     "instructions": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 1000
       },
       {
        "type": "null"
       }
      ],
      "title": "Instructions"
     }
    },
    "type": "object",
    "required": [
     "product"
    ],
    "title": "AIDraftRequest"
   },
   "AISequenceRead": {
    "properties": {
     "name": {
      "type": "string",
      "title": "Name"
     },
     "steps": {
      "items": {
       "$ref": "#/components/schemas/StepIn-Output"
      },
      "type": "array",
      "title": "Steps"
     },
     "credits_charged": {
      "type": "integer",
      "title": "Credits Charged"
     }
    },
    "type": "object",
    "required": [
     "name",
     "steps",
     "credits_charged"
    ],
    "title": "AISequenceRead"
   },
   "AISequenceRequest": {
    "properties": {
     "product": {
      "type": "string",
      "maxLength": 2000,
      "minLength": 3,
      "title": "Product"
     },
     "audience": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 1000
       },
       {
        "type": "null"
       }
      ],
      "title": "Audience"
     },
     "value_proposition": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 1000
       },
       {
        "type": "null"
       }
      ],
      "title": "Value Proposition"
     },
     "call_to_action": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 300
       },
       {
        "type": "null"
       }
      ],
      "title": "Call To Action"
     },
     "proof_points": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 1000
       },
       {
        "type": "null"
       }
      ],
      "title": "Proof Points"
     },
     "tone": {
      "type": "string",
      "enum": [
       "friendly",
       "professional",
       "direct",
       "casual",
       "consultative"
      ],
      "title": "Tone",
      "default": "friendly"
     },
     "length": {
      "type": "string",
      "enum": [
       "short",
       "medium",
       "long"
      ],
      "title": "Length",
      "default": "short"
     },
     "emails": {
      "type": "integer",
      "maximum": 6.0,
      "minimum": 2.0,
      "title": "Emails",
      "default": 4
     },
     "include_manual_steps": {
      "type": "boolean",
      "title": "Include Manual Steps",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "product"
    ],
    "title": "AISequenceRequest"
   },
   "APIKeyCreate": {
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1,
      "title": "Name"
     },
     "scopes": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Scopes",
      "description": "Empty = creator's role, no admin"
     },
     "expires_in_days": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 3650.0,
        "minimum": 1.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Expires In Days"
     }
    },
    "type": "object",
    "required": [
     "name"
    ],
    "title": "APIKeyCreate"
   },
   "APIKeyRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "prefix": {
      "type": "string",
      "title": "Prefix"
     },
     "scopes": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Scopes"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "last_used_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Used At"
     },
     "expires_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Expires At"
     },
     "revoked_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Revoked At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "name",
     "prefix",
     "scopes",
     "created_at",
     "last_used_at",
     "expires_at",
     "revoked_at"
    ],
    "title": "APIKeyRead"
   },
   "APIKeyResponse": {
    "properties": {
     "api_key": {
      "type": "string",
      "title": "Api Key"
     },
     "key": {
      "$ref": "#/components/schemas/APIKeyRead"
     },
     "warning": {
      "type": "string",
      "title": "Warning",
      "default": "Store this key now. It cannot be retrieved again."
     }
    },
    "type": "object",
    "required": [
     "api_key",
     "key"
    ],
    "title": "APIKeyResponse",
    "description": "The plaintext key is returned exactly once and never stored."
   },
   "AcceptInvitationRequest": {
    "properties": {
     "token": {
      "type": "string",
      "title": "Token"
     },
     "password": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 128,
        "minLength": 8
       },
       {
        "type": "null"
       }
      ],
      "title": "Password"
     },
     "full_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Full Name"
     },
     "accept_terms": {
      "type": "boolean",
      "title": "Accept Terms",
      "default": false
     },
     "terms_version": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 32,
        "pattern": "^[A-Za-z0-9._-]+$"
       },
       {
        "type": "null"
       }
      ],
      "title": "Terms Version"
     }
    },
    "type": "object",
    "required": [
     "token"
    ],
    "title": "AcceptInvitationRequest"
   },
   "ActivityRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "user_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "User Id"
     },
     "action": {
      "type": "string",
      "title": "Action"
     },
     "entity_type": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Entity Type"
     },
     "entity_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Entity Id"
     },
     "summary": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Summary"
     },
     "details": {
      "type": "object",
      "title": "Details"
     }
    },
    "type": "object",
    "required": [
     "id",
     "created_at",
     "user_id",
     "action",
     "entity_type",
     "entity_id",
     "summary",
     "details"
    ],
    "title": "ActivityRead"
   },
   "AdminInvoiceRow": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "number": {
      "type": "string",
      "title": "Number"
     },
     "kind": {
      "type": "string",
      "title": "Kind"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "currency": {
      "type": "string",
      "title": "Currency"
     },
     "amount_due_cents": {
      "type": "integer",
      "title": "Amount Due Cents"
     },
     "amount_paid_cents": {
      "type": "integer",
      "title": "Amount Paid Cents"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "credits": {
      "type": "integer",
      "title": "Credits"
     },
     "plan_code": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Plan Code"
     },
     "hosted_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Hosted Url"
     },
     "period_start": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Period Start"
     },
     "period_end": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Period End"
     },
     "paid_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Paid At"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "tenant_id": {
      "type": "string",
      "format": "uuid",
      "title": "Tenant Id"
     }
    },
    "type": "object",
    "required": [
     "id",
     "number",
     "kind",
     "status",
     "currency",
     "amount_due_cents",
     "amount_paid_cents",
     "description",
     "credits",
     "plan_code",
     "hosted_url",
     "period_start",
     "period_end",
     "paid_at",
     "created_at",
     "tenant_id"
    ],
    "title": "AdminInvoiceRow"
   },
   "AdminUserDetail": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "email": {
      "type": "string",
      "title": "Email"
     },
     "full_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Full Name"
     },
     "is_superadmin": {
      "type": "boolean",
      "title": "Is Superadmin"
     },
     "is_active": {
      "type": "boolean",
      "title": "Is Active"
     },
     "email_verified_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Email Verified At"
     },
     "locked_until": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Locked Until"
     },
     "last_login_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Login At"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "workspaces": {
      "items": {
       "type": "object"
      },
      "type": "array",
      "title": "Workspaces"
     }
    },
    "type": "object",
    "required": [
     "id",
     "email",
     "full_name",
     "is_superadmin",
     "is_active",
     "email_verified_at",
     "locked_until",
     "last_login_at",
     "created_at",
     "workspaces"
    ],
    "title": "AdminUserDetail"
   },
   "AdminUserRow": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "email": {
      "type": "string",
      "title": "Email"
     },
     "full_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Full Name"
     },
     "is_superadmin": {
      "type": "boolean",
      "title": "Is Superadmin"
     },
     "is_active": {
      "type": "boolean",
      "title": "Is Active"
     },
     "email_verified_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Email Verified At"
     },
     "locked_until": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Locked Until"
     },
     "last_login_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Login At"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "email",
     "full_name",
     "is_superadmin",
     "is_active",
     "email_verified_at",
     "locked_until",
     "last_login_at",
     "created_at"
    ],
    "title": "AdminUserRow"
   },
   "AdminUserUpdate": {
    "properties": {
     "full_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Full Name"
     },
     "is_active": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Is Active"
     },
     "is_superadmin": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Is Superadmin"
     },
     "email_verified": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Email Verified"
     }
    },
    "type": "object",
    "title": "AdminUserUpdate"
   },
   "AnalyticsOverview": {
    "properties": {
     "days": {
      "type": "integer",
      "title": "Days"
     },
     "area": {
      "type": "string",
      "title": "Area"
     },
     "geoip": {
      "type": "boolean",
      "title": "Geoip",
      "description": "True when a GeoIP database gives city-level locations"
     },
     "asn": {
      "type": "boolean",
      "title": "Asn",
      "description": "True when a network (ASN) database names the visitor's network"
     },
     "ip_storage": {
      "type": "string",
      "title": "Ip Storage",
      "description": "ANALYTICS_STORE_IP: all, consented or off"
     },
     "ip_retention_days": {
      "type": "integer",
      "title": "Ip Retention Days"
     },
     "totals": {
      "$ref": "#/components/schemas/Totals"
     },
     "series": {
      "items": {
       "$ref": "#/components/schemas/SeriesPoint"
      },
      "type": "array",
      "title": "Series"
     },
     "pages": {
      "items": {
       "$ref": "#/components/schemas/PageStat"
      },
      "type": "array",
      "title": "Pages"
     },
     "entry_pages": {
      "items": {
       "$ref": "#/components/schemas/TopRow"
      },
      "type": "array",
      "title": "Entry Pages"
     },
     "exit_pages": {
      "items": {
       "$ref": "#/components/schemas/TopRow"
      },
      "type": "array",
      "title": "Exit Pages"
     },
     "sources": {
      "items": {
       "$ref": "#/components/schemas/TopRow"
      },
      "type": "array",
      "title": "Sources"
     },
     "mediums": {
      "items": {
       "$ref": "#/components/schemas/TopRow"
      },
      "type": "array",
      "title": "Mediums"
     },
     "referrers": {
      "items": {
       "$ref": "#/components/schemas/TopRow"
      },
      "type": "array",
      "title": "Referrers"
     },
     "campaigns": {
      "items": {
       "$ref": "#/components/schemas/TopRow"
      },
      "type": "array",
      "title": "Campaigns"
     },
     "countries": {
      "items": {
       "$ref": "#/components/schemas/TopRow"
      },
      "type": "array",
      "title": "Countries"
     },
     "cities": {
      "items": {
       "$ref": "#/components/schemas/TopRow"
      },
      "type": "array",
      "title": "Cities"
     },
     "devices": {
      "items": {
       "$ref": "#/components/schemas/TopRow"
      },
      "type": "array",
      "title": "Devices"
     },
     "browsers": {
      "items": {
       "$ref": "#/components/schemas/TopRow"
      },
      "type": "array",
      "title": "Browsers"
     },
     "os": {
      "items": {
       "$ref": "#/components/schemas/TopRow"
      },
      "type": "array",
      "title": "Os"
     },
     "languages": {
      "items": {
       "$ref": "#/components/schemas/TopRow"
      },
      "type": "array",
      "title": "Languages"
     },
     "networks": {
      "items": {
       "$ref": "#/components/schemas/TopRow"
      },
      "type": "array",
      "title": "Networks"
     },
     "clicks": {
      "items": {
       "$ref": "#/components/schemas/TopRow"
      },
      "type": "array",
      "title": "Clicks"
     },
     "outbound": {
      "items": {
       "$ref": "#/components/schemas/TopRow"
      },
      "type": "array",
      "title": "Outbound"
     },
     "downloads": {
      "items": {
       "$ref": "#/components/schemas/TopRow"
      },
      "type": "array",
      "title": "Downloads"
     },
     "forms": {
      "items": {
       "$ref": "#/components/schemas/TopRow"
      },
      "type": "array",
      "title": "Forms"
     }
    },
    "type": "object",
    "required": [
     "days",
     "area",
     "geoip",
     "asn",
     "ip_storage",
     "ip_retention_days",
     "totals",
     "series",
     "pages",
     "entry_pages",
     "exit_pages",
     "sources",
     "mediums",
     "referrers",
     "campaigns",
     "countries",
     "cities",
     "devices",
     "browsers",
     "os",
     "languages",
     "networks",
     "clicks",
     "outbound",
     "downloads",
     "forms"
    ],
    "title": "AnalyticsOverview"
   },
   "AnnouncementLevel": {
    "type": "string",
    "enum": [
     "info",
     "warning",
     "critical"
    ],
    "title": "AnnouncementLevel"
   },
   "AnnouncementRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "title": {
      "type": "string",
      "title": "Title"
     },
     "body": {
      "type": "string",
      "title": "Body"
     },
     "level": {
      "type": "string",
      "title": "Level"
     },
     "starts_at": {
      "type": "string",
      "format": "date-time",
      "title": "Starts At"
     },
     "ends_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ends At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "title",
     "body",
     "level",
     "starts_at",
     "ends_at"
    ],
    "title": "AnnouncementRead"
   },
   "AnnouncementUpsert": {
    "properties": {
     "title": {
      "type": "string",
      "maxLength": 160,
      "minLength": 1,
      "title": "Title"
     },
     "body": {
      "type": "string",
      "maxLength": 4000,
      "minLength": 1,
      "title": "Body"
     },
     "level": {
      "$ref": "#/components/schemas/AnnouncementLevel",
      "default": "info"
     },
     "audience_plans": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Audience Plans"
     },
     "starts_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Starts At"
     },
     "ends_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ends At"
     }
    },
    "type": "object",
    "required": [
     "title",
     "body"
    ],
    "title": "AnnouncementUpsert"
   },
   "AskRequest": {
    "properties": {
     "question": {
      "type": "string",
      "maxLength": 500,
      "minLength": 2,
      "title": "Question"
     }
    },
    "additionalProperties": false,
    "type": "object",
    "required": [
     "question"
    ],
    "title": "AskRequest"
   },
   "AskResponse": {
    "properties": {
     "answer": {
      "type": "string",
      "title": "Answer"
     },
     "mode": {
      "type": "string",
      "title": "Mode"
     },
     "links": {
      "items": {
       "$ref": "#/components/schemas/AssistantLink"
      },
      "type": "array",
      "title": "Links"
     },
     "sources": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Sources"
     }
    },
    "type": "object",
    "required": [
     "answer",
     "mode",
     "links",
     "sources"
    ],
    "title": "AskResponse"
   },
   "AssistantLink": {
    "properties": {
     "label": {
      "type": "string",
      "title": "Label"
     },
     "href": {
      "type": "string",
      "title": "Href"
     }
    },
    "type": "object",
    "required": [
     "label",
     "href"
    ],
    "title": "AssistantLink"
   },
   "AuditLogRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "tenant_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Tenant Id"
     },
     "actor_type": {
      "type": "string",
      "title": "Actor Type"
     },
     "actor_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Actor Id"
     },
     "actor_email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Actor Email"
     },
     "action": {
      "type": "string",
      "title": "Action"
     },
     "target_type": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Target Type"
     },
     "target_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Target Id"
     },
     "ip_address": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ip Address"
     },
     "details": {
      "type": "object",
      "title": "Details"
     }
    },
    "type": "object",
    "required": [
     "id",
     "created_at",
     "tenant_id",
     "actor_type",
     "actor_id",
     "actor_email",
     "action",
     "target_type",
     "target_id",
     "ip_address",
     "details"
    ],
    "title": "AuditLogRead"
   },
   "BillingCycle": {
    "type": "string",
    "enum": [
     "monthly",
     "yearly"
    ],
    "title": "BillingCycle"
   },
   "BillingOverview": {
    "properties": {
     "provider": {
      "type": "string",
      "title": "Provider"
     },
     "plan": {
      "$ref": "#/components/schemas/PlanRead"
     },
     "subscription": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/SubscriptionRead"
       },
       {
        "type": "null"
       }
      ]
     },
     "credit_balance": {
      "type": "integer",
      "title": "Credit Balance"
     },
     "open_invoices": {
      "type": "integer",
      "title": "Open Invoices"
     }
    },
    "type": "object",
    "required": [
     "provider",
     "plan",
     "subscription",
     "credit_balance",
     "open_invoices"
    ],
    "title": "BillingOverview"
   },
   "BounceGuaranteeRead": {
    "properties": {
     "enabled": {
      "type": "boolean",
      "title": "Enabled"
     },
     "days": {
      "type": "integer",
      "title": "Days",
      "description": "Window after our verification in which a bounce is covered"
     },
     "credits_per_bounce": {
      "type": "integer",
      "title": "Credits Per Bounce"
     },
     "refunded_credits_30d": {
      "type": "integer",
      "title": "Refunded Credits 30D"
     },
     "pending": {
      "type": "integer",
      "title": "Pending"
     }
    },
    "type": "object",
    "required": [
     "enabled",
     "days",
     "credits_per_bounce",
     "refunded_credits_30d",
     "pending"
    ],
    "title": "BounceGuaranteeRead"
   },
   "BounceOutcome": {
    "type": "string",
    "enum": [
     "pending",
     "refunded",
     "still_valid",
     "not_eligible",
     "already_refunded",
     "not_found"
    ],
    "title": "BounceOutcome",
    "description": "What happened to a bounce report under the bounce guarantee."
   },
   "BounceReportBatch": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/BounceReportRead"
      },
      "type": "array",
      "title": "Items"
     },
     "pending": {
      "type": "integer",
      "title": "Pending",
      "description": "Reports of this batch waiting for the mailbox re-check"
     }
    },
    "type": "object",
    "required": [
     "items",
     "pending"
    ],
    "title": "BounceReportBatch"
   },
   "BounceReportCreate": {
    "properties": {
     "emails": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "maxItems": 500,
      "minItems": 1,
      "title": "Emails"
     }
    },
    "type": "object",
    "required": [
     "emails"
    ],
    "title": "BounceReportCreate",
    "description": "Addresses that bounced after you exported them (one per line in the UI)."
   },
   "BounceReportRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "email": {
      "type": "string",
      "title": "Email"
     },
     "lead_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Lead Id"
     },
     "source": {
      "type": "string",
      "title": "Source",
      "description": "`outreach` (one of our sends bounced) or `manual` (reported)"
     },
     "outcome": {
      "$ref": "#/components/schemas/BounceOutcome"
     },
     "detail": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Detail"
     },
     "status_before": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Status Before"
     },
     "status_after": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Status After"
     },
     "verified_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Verified At",
      "description": "The verification the guarantee covers"
     },
     "credits_refunded": {
      "type": "integer",
      "title": "Credits Refunded"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "checked_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Checked At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "email",
     "lead_id",
     "source",
     "outcome",
     "detail",
     "status_before",
     "status_after",
     "verified_at",
     "credits_refunded",
     "created_at",
     "checked_at"
    ],
    "title": "BounceReportRead"
   },
   "BriefRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "company_id": {
      "type": "string",
      "format": "uuid",
      "title": "Company Id"
     },
     "lead_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Lead Id"
     },
     "content": {
      "type": "object",
      "title": "Content"
     },
     "model": {
      "type": "string",
      "title": "Model"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "credits_charged": {
      "type": "integer",
      "title": "Credits Charged",
      "default": 0
     }
    },
    "type": "object",
    "required": [
     "id",
     "company_id",
     "lead_id",
     "content",
     "model",
     "created_at",
     "credits_charged"
    ],
    "title": "BriefRead"
   },
   "BriefRequest": {
    "properties": {
     "company_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Company Id"
     },
     "lead_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Lead Id"
     }
    },
    "type": "object",
    "title": "BriefRequest"
   },
   "BulkEnrichRequest": {
    "properties": {
     "domains": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "maxItems": 500,
      "minItems": 1,
      "title": "Domains"
     },
     "max_pages": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 50.0,
        "minimum": 1.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Max Pages"
     },
     "verify_emails": {
      "type": "boolean",
      "title": "Verify Emails",
      "default": true
     },
     "force": {
      "type": "boolean",
      "title": "Force",
      "default": false
     },
     "priority": {
      "$ref": "#/components/schemas/JobPriority",
      "default": 8
     }
    },
    "type": "object",
    "required": [
     "domains"
    ],
    "title": "BulkEnrichRequest"
   },
   "BulkJobResponse": {
    "properties": {
     "queued": {
      "type": "integer",
      "title": "Queued"
     },
     "deduplicated": {
      "type": "integer",
      "title": "Deduplicated"
     },
     "failed": {
      "type": "integer",
      "title": "Failed"
     },
     "jobs": {
      "items": {
       "$ref": "#/components/schemas/JobHandleResponse"
      },
      "type": "array",
      "title": "Jobs"
     },
     "total_credits_charged": {
      "type": "integer",
      "title": "Total Credits Charged",
      "default": 0
     }
    },
    "type": "object",
    "required": [
     "queued",
     "deduplicated",
     "failed",
     "jobs"
    ],
    "title": "BulkJobResponse"
   },
   "BulkVerifyRequest": {
    "properties": {
     "emails": {
      "items": {
       "type": "string",
       "format": "email"
      },
      "type": "array",
      "maxItems": 100,
      "minItems": 1,
      "title": "Emails"
     }
    },
    "type": "object",
    "required": [
     "emails"
    ],
    "title": "BulkVerifyRequest"
   },
   "BusinessModel": {
    "type": "string",
    "enum": [
     "b2b",
     "b2c",
     "b2b2c",
     "marketplace",
     "nonprofit",
     "government",
     "unknown"
    ],
    "title": "BusinessModel"
   },
   "ChangePasswordRequest": {
    "properties": {
     "current_password": {
      "type": "string",
      "title": "Current Password"
     },
     "new_password": {
      "type": "string",
      "maxLength": 128,
      "minLength": 8,
      "title": "New Password"
     }
    },
    "type": "object",
    "required": [
     "current_password",
     "new_password"
    ],
    "title": "ChangePasswordRequest"
   },
   "ChangePlanRequest": {
    "properties": {
     "plan_code": {
      "type": "string",
      "title": "Plan Code"
     },
     "billing_cycle": {
      "$ref": "#/components/schemas/BillingCycle",
      "default": "monthly"
     }
    },
    "type": "object",
    "required": [
     "plan_code"
    ],
    "title": "ChangePlanRequest"
   },
   "CheckoutRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "kind": {
      "type": "string",
      "title": "Kind"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "provider": {
      "type": "string",
      "title": "Provider"
     },
     "plan_code": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Plan Code"
     },
     "billing_cycle": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Billing Cycle"
     },
     "pack_code": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Pack Code"
     },
     "amount_cents": {
      "type": "integer",
      "title": "Amount Cents"
     },
     "currency": {
      "type": "string",
      "title": "Currency"
     },
     "checkout_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Checkout Url"
     },
     "invoice": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/InvoiceRead"
       },
       {
        "type": "null"
       }
      ]
     },
     "expires_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Expires At"
     },
     "completed_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Completed At"
     },
     "closed_reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Closed Reason"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "kind",
     "status",
     "provider",
     "plan_code",
     "billing_cycle",
     "pack_code",
     "amount_cents",
     "currency",
     "checkout_url",
     "expires_at",
     "completed_at",
     "closed_reason",
     "created_at"
    ],
    "title": "CheckoutRead",
    "description": "A purchase attempt and where it stands (``services.billing.checkout``).\n\n``checkout_url`` is only present while the checkout can still be paid."
   },
   "CheckoutResponse": {
    "properties": {
     "checkout_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Checkout Url"
     },
     "invoice": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/InvoiceRead"
       },
       {
        "type": "null"
       }
      ]
     },
     "checkout": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/CheckoutRead"
       },
       {
        "type": "null"
       }
      ]
     },
     "reused": {
      "type": "boolean",
      "title": "Reused",
      "default": false
     },
     "message": {
      "type": "string",
      "title": "Message",
      "default": ""
     }
    },
    "type": "object",
    "title": "CheckoutResponse",
    "description": "Either a URL to send the browser to, or the outcome when no payment was needed."
   },
   "ClickRequest": {
    "properties": {
     "url": {
      "type": "string",
      "maxLength": 4096,
      "minLength": 8,
      "title": "Url"
     },
     "sig": {
      "type": "string",
      "maxLength": 64,
      "minLength": 4,
      "title": "Sig"
     }
    },
    "type": "object",
    "required": [
     "url",
     "sig"
    ],
    "title": "ClickRequest"
   },
   "ClickResult": {
    "properties": {
     "url": {
      "type": "string",
      "title": "Url"
     }
    },
    "type": "object",
    "required": [
     "url"
    ],
    "title": "ClickResult"
   },
   "CollectRequest": {
    "properties": {
     "type": {
      "type": "string",
      "enum": [
       "pageview",
       "engage",
       "click",
       "identify"
      ],
      "title": "Type"
     },
     "pv": {
      "type": "string",
      "maxLength": 36,
      "minLength": 8,
      "title": "Pv",
      "description": "Random id of this page view"
     },
     "url": {
      "type": "string",
      "maxLength": 2048,
      "minLength": 1,
      "title": "Url"
     },
     "title": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 300
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "referrer": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2048
       },
       {
        "type": "null"
       }
      ],
      "title": "Referrer"
     },
     "vid": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 36
       },
       {
        "type": "null"
       }
      ],
      "title": "Vid",
      "description": "Persistent visitor id; sent only after the visitor allowed analytics cookies"
     },
     "screen": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 16
       },
       {
        "type": "null"
       }
      ],
      "title": "Screen"
     },
     "viewport": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 16
       },
       {
        "type": "null"
       }
      ],
      "title": "Viewport",
      "description": "Window size, e.g. 1440x812"
     },
     "model": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 64
       },
       {
        "type": "null"
       }
      ],
      "title": "Model",
      "description": "Device model from client hints (Chromium)"
     },
     "platform_version": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 24
       },
       {
        "type": "null"
       }
      ],
      "title": "Platform Version",
      "description": "OS version from client hints (Chromium)"
     },
     "platform": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 32
       },
       {
        "type": "null"
       }
      ],
      "title": "Platform",
      "description": "OS name from client hints (Chromium)"
     },
     "language": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 35
       },
       {
        "type": "null"
       }
      ],
      "title": "Language"
     },
     "timezone": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 64
       },
       {
        "type": "null"
       }
      ],
      "title": "Timezone"
     },
     "engaged_ms": {
      "type": "integer",
      "maximum": 86400000.0,
      "minimum": 0.0,
      "title": "Engaged Ms",
      "default": 0
     },
     "scroll": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 0.0,
      "title": "Scroll",
      "default": 0
     },
     "kind": {
      "anyOf": [
       {
        "type": "string",
        "enum": [
         "click",
         "outbound",
         "download",
         "form"
        ]
       },
       {
        "type": "null"
       }
      ],
      "title": "Kind"
     },
     "label": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Label"
     },
     "target": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2048
       },
       {
        "type": "null"
       }
      ],
      "title": "Target"
     },
     "email": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 320
       },
       {
        "type": "null"
       }
      ],
      "title": "Email"
     },
     "full_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Full Name"
     },
     "phone": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 64
       },
       {
        "type": "null"
       }
      ],
      "title": "Phone"
     },
     "linkedin_url": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 512
       },
       {
        "type": "null"
       }
      ],
      "title": "Linkedin Url"
     },
     "company_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Company Name"
     },
     "company_domain": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 253
       },
       {
        "type": "null"
       }
      ],
      "title": "Company Domain"
     }
    },
    "type": "object",
    "required": [
     "type",
     "pv",
     "url"
    ],
    "title": "CollectRequest",
    "description": "One event from the web app's tracker (sent with ``navigator.sendBeacon``)."
   },
   "CompanyRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "domain": {
      "type": "string",
      "title": "Domain"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "legal_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Legal Name"
     },
     "website_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Website Url"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "industry": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Industry"
     },
     "sub_industry": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Sub Industry"
     },
     "business_model": {
      "$ref": "#/components/schemas/BusinessModel"
     },
     "founded_year": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Founded Year"
     },
     "employee_count": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Employee Count"
     },
     "employee_range": {
      "$ref": "#/components/schemas/EmployeeRange"
     },
     "revenue_range": {
      "$ref": "#/components/schemas/RevenueRange"
     },
     "country": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Country"
     },
     "region": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Region"
     },
     "city": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "City"
     },
     "phone": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Phone"
     },
     "contact_email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Contact Email"
     },
     "linkedin_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Linkedin Url"
     },
     "twitter_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Twitter Url"
     },
     "logo_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Logo Url"
     },
     "technologies": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Technologies"
     },
     "keywords": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Keywords"
     },
     "tags": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Tags"
     },
     "funding_total_usd": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Funding Total Usd"
     },
     "funding_stage": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Funding Stage"
     },
     "last_funding_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Funding At"
     },
     "enrichment_status": {
      "$ref": "#/components/schemas/EnrichmentStatus"
     },
     "enrichment_source": {
      "$ref": "#/components/schemas/DataSource"
     },
     "ai_confidence": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ai Confidence"
     },
     "email_pattern": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Email Pattern"
     },
     "icp_score": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Icp Score"
     },
     "icp_grade": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/LeadGrade"
       },
       {
        "type": "null"
       }
      ]
     },
     "pages_crawled": {
      "type": "integer",
      "title": "Pages Crawled"
     },
     "last_crawled_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Crawled At"
     },
     "last_enriched_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Enriched At"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "domain",
     "name",
     "legal_name",
     "website_url",
     "description",
     "industry",
     "sub_industry",
     "business_model",
     "founded_year",
     "employee_count",
     "employee_range",
     "revenue_range",
     "country",
     "region",
     "city",
     "phone",
     "contact_email",
     "linkedin_url",
     "twitter_url",
     "logo_url",
     "technologies",
     "keywords",
     "tags",
     "funding_total_usd",
     "funding_stage",
     "last_funding_at",
     "enrichment_status",
     "enrichment_source",
     "ai_confidence",
     "email_pattern",
     "icp_score",
     "icp_grade",
     "pages_crawled",
     "last_crawled_at",
     "last_enriched_at",
     "created_at",
     "updated_at"
    ],
    "title": "CompanyRead"
   },
   "CompanySearchCriteria": {
    "properties": {
     "query": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Query"
     },
     "domains": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Domains"
     },
     "industries": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Industries"
     },
     "countries": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Countries"
     },
     "employee_ranges": {
      "items": {
       "$ref": "#/components/schemas/EmployeeRange"
      },
      "type": "array",
      "title": "Employee Ranges"
     },
     "revenue_ranges": {
      "items": {
       "$ref": "#/components/schemas/RevenueRange"
      },
      "type": "array",
      "title": "Revenue Ranges"
     },
     "business_models": {
      "items": {
       "$ref": "#/components/schemas/BusinessModel"
      },
      "type": "array",
      "title": "Business Models"
     },
     "technologies": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Technologies"
     },
     "keywords": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Keywords"
     },
     "enrichment_statuses": {
      "items": {
       "$ref": "#/components/schemas/EnrichmentStatus"
      },
      "type": "array",
      "title": "Enrichment Statuses"
     },
     "founded_after": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 2100.0,
        "minimum": 1600.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Founded After"
     },
     "founded_before": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 2100.0,
        "minimum": 1600.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Founded Before"
     },
     "min_employees": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 100000000.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Min Employees"
     },
     "max_employees": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 100000000.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Max Employees"
     },
     "min_score": {
      "anyOf": [
       {
        "type": "number",
        "maximum": 100.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Min Score"
     },
     "has_leads": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Has Leads"
     },
     "funding_stages": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Funding Stages"
     },
     "min_funding_usd": {
      "anyOf": [
       {
        "type": "number",
        "maximum": 10000000000000.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Min Funding Usd"
     },
     "max_funding_usd": {
      "anyOf": [
       {
        "type": "number",
        "maximum": 10000000000000.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Max Funding Usd"
     },
     "funded_since": {
      "anyOf": [
       {
        "type": "string",
        "format": "date"
       },
       {
        "type": "null"
       }
      ],
      "title": "Funded Since"
     },
     "exclude_domains": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Exclude Domains"
     },
     "exclude_industries": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Exclude Industries"
     },
     "exclude_countries": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Exclude Countries"
     },
     "exclude_technologies": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Exclude Technologies"
     },
     "exclude_keywords": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Exclude Keywords"
     },
     "sort": {
      "$ref": "#/components/schemas/SortSpec"
     }
    },
    "additionalProperties": false,
    "type": "object",
    "title": "CompanySearchCriteria",
    "description": "Filters for the account search."
   },
   "CompanySummary": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "domain": {
      "type": "string",
      "title": "Domain"
     },
     "industry": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Industry"
     },
     "employee_range": {
      "$ref": "#/components/schemas/EmployeeRange"
     },
     "country": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Country"
     },
     "logo_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Logo Url"
     }
    },
    "type": "object",
    "required": [
     "id",
     "name",
     "domain",
     "industry",
     "employee_range",
     "country",
     "logo_url"
    ],
    "title": "CompanySummary",
    "description": "Compact form embedded in lead responses."
   },
   "CompanyUpdate": {
    "properties": {
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "industry": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 128
       },
       {
        "type": "null"
       }
      ],
      "title": "Industry"
     },
     "employee_count": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 100000000.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Employee Count"
     },
     "employee_range": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/EmployeeRange"
       },
       {
        "type": "null"
       }
      ]
     },
     "revenue_range": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/RevenueRange"
       },
       {
        "type": "null"
       }
      ]
     },
     "country": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2,
        "minLength": 2
       },
       {
        "type": "null"
       }
      ],
      "title": "Country"
     },
     "city": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 128
       },
       {
        "type": "null"
       }
      ],
      "title": "City"
     },
     "phone": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 64
       },
       {
        "type": "null"
       }
      ],
      "title": "Phone"
     },
     "linkedin_url": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 512
       },
       {
        "type": "null"
       }
      ],
      "title": "Linkedin Url"
     },
     "technologies": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Technologies"
     },
     "keywords": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Keywords"
     },
     "tags": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Tags"
     }
    },
    "type": "object",
    "title": "CompanyUpdate",
    "description": "Every field optional: PATCH semantics."
   },
   "CompanyWithLeadCount": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "domain": {
      "type": "string",
      "title": "Domain"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "legal_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Legal Name"
     },
     "website_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Website Url"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "industry": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Industry"
     },
     "sub_industry": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Sub Industry"
     },
     "business_model": {
      "$ref": "#/components/schemas/BusinessModel"
     },
     "founded_year": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Founded Year"
     },
     "employee_count": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Employee Count"
     },
     "employee_range": {
      "$ref": "#/components/schemas/EmployeeRange"
     },
     "revenue_range": {
      "$ref": "#/components/schemas/RevenueRange"
     },
     "country": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Country"
     },
     "region": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Region"
     },
     "city": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "City"
     },
     "phone": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Phone"
     },
     "contact_email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Contact Email"
     },
     "linkedin_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Linkedin Url"
     },
     "twitter_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Twitter Url"
     },
     "logo_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Logo Url"
     },
     "technologies": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Technologies"
     },
     "keywords": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Keywords"
     },
     "tags": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Tags"
     },
     "funding_total_usd": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Funding Total Usd"
     },
     "funding_stage": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Funding Stage"
     },
     "last_funding_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Funding At"
     },
     "enrichment_status": {
      "$ref": "#/components/schemas/EnrichmentStatus"
     },
     "enrichment_source": {
      "$ref": "#/components/schemas/DataSource"
     },
     "ai_confidence": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ai Confidence"
     },
     "email_pattern": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Email Pattern"
     },
     "icp_score": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Icp Score"
     },
     "icp_grade": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/LeadGrade"
       },
       {
        "type": "null"
       }
      ]
     },
     "pages_crawled": {
      "type": "integer",
      "title": "Pages Crawled"
     },
     "last_crawled_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Crawled At"
     },
     "last_enriched_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Enriched At"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
     },
     "lead_count": {
      "type": "integer",
      "title": "Lead Count",
      "default": 0
     },
     "data_quality": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/DataQualityReportResponse"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "type": "object",
    "required": [
     "id",
     "domain",
     "name",
     "legal_name",
     "website_url",
     "description",
     "industry",
     "sub_industry",
     "business_model",
     "founded_year",
     "employee_count",
     "employee_range",
     "revenue_range",
     "country",
     "region",
     "city",
     "phone",
     "contact_email",
     "linkedin_url",
     "twitter_url",
     "logo_url",
     "technologies",
     "keywords",
     "tags",
     "funding_total_usd",
     "funding_stage",
     "last_funding_at",
     "enrichment_status",
     "enrichment_source",
     "ai_confidence",
     "email_pattern",
     "icp_score",
     "icp_grade",
     "pages_crawled",
     "last_crawled_at",
     "last_enriched_at",
     "created_at",
     "updated_at"
    ],
    "title": "CompanyWithLeadCount"
   },
   "ConnectionTestResult": {
    "properties": {
     "smtp_ok": {
      "type": "boolean",
      "title": "Smtp Ok"
     },
     "smtp_error": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Smtp Error"
     },
     "imap_ok": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Imap Ok"
     },
     "imap_error": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Imap Error"
     }
    },
    "type": "object",
    "required": [
     "smtp_ok",
     "smtp_error",
     "imap_ok",
     "imap_error"
    ],
    "title": "ConnectionTestResult"
   },
   "CreditBalanceResponse": {
    "properties": {
     "workspace_id": {
      "type": "string",
      "format": "uuid",
      "title": "Workspace Id"
     },
     "balance": {
      "type": "integer",
      "title": "Balance"
     },
     "monthly_quota": {
      "type": "integer",
      "title": "Monthly Quota"
     },
     "plan": {
      "type": "string",
      "title": "Plan"
     },
     "resets_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Resets At"
     },
     "member_limit": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Member Limit"
     },
     "member_spent_this_month": {
      "type": "integer",
      "title": "Member Spent This Month",
      "default": 0
     },
     "costs": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "Costs",
      "description": "Credit cost per operation, so clients can price an action before running it"
     }
    },
    "type": "object",
    "required": [
     "workspace_id",
     "balance",
     "monthly_quota",
     "plan",
     "resets_at",
     "costs"
    ],
    "title": "CreditBalanceResponse"
   },
   "CreditEntryRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "user_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "User Id"
     },
     "delta": {
      "type": "integer",
      "title": "Delta"
     },
     "balance_after": {
      "type": "integer",
      "title": "Balance After"
     },
     "reason": {
      "$ref": "#/components/schemas/CreditReason"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "reference_type": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Reference Type"
     },
     "reference_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Reference Id"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "user_id",
     "delta",
     "balance_after",
     "reason",
     "description",
     "reference_type",
     "reference_id",
     "created_at"
    ],
    "title": "CreditEntryRead"
   },
   "CreditEstimate": {
    "properties": {
     "estimated_credits": {
      "type": "integer",
      "title": "Estimated Credits",
      "description": "Floor, not a quote: the final bill depends on how many addresses verify"
     },
     "balance_before": {
      "type": "integer",
      "title": "Balance Before"
     },
     "price_list": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "Price List",
      "description": "Credits per unit of work, so a client can cost an action itself"
     }
    },
    "type": "object",
    "required": [
     "estimated_credits",
     "balance_before",
     "price_list"
    ],
    "title": "CreditEstimate",
    "description": "What a run is expected to cost, and what it would leave behind."
   },
   "CreditGrantRequest": {
    "properties": {
     "amount": {
      "type": "integer",
      "maximum": 10000000.0,
      "exclusiveMinimum": 0.0,
      "title": "Amount"
     },
     "reason": {
      "$ref": "#/components/schemas/CreditReason",
      "default": "admin_adjustment"
     },
     "description": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 512
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "idempotency_key": {
      "type": "string",
      "maxLength": 128,
      "minLength": 8,
      "title": "Idempotency Key",
      "description": "Client-supplied key; repeating it will not grant twice"
     }
    },
    "type": "object",
    "required": [
     "amount",
     "idempotency_key"
    ],
    "title": "CreditGrantRequest",
    "description": "Superadmin top-up of a workspace."
   },
   "CreditPackRead": {
    "properties": {
     "code": {
      "type": "string",
      "title": "Code"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "credits": {
      "type": "integer",
      "title": "Credits"
     },
     "price_cents": {
      "type": "integer",
      "title": "Price Cents"
     },
     "currency": {
      "type": "string",
      "title": "Currency"
     },
     "is_active": {
      "type": "boolean",
      "title": "Is Active"
     }
    },
    "type": "object",
    "required": [
     "code",
     "name",
     "credits",
     "price_cents",
     "currency",
     "is_active"
    ],
    "title": "CreditPackRead"
   },
   "CreditPackUpsert": {
    "properties": {
     "code": {
      "type": "string",
      "pattern": "^[a-z][a-z0-9_]{1,31}$",
      "title": "Code"
     },
     "name": {
      "type": "string",
      "maxLength": 64,
      "minLength": 1,
      "title": "Name"
     },
     "credits": {
      "type": "integer",
      "maximum": 1000000000.0,
      "exclusiveMinimum": 0.0,
      "title": "Credits"
     },
     "price_cents": {
      "type": "integer",
      "maximum": 100000000000.0,
      "minimum": 0.0,
      "title": "Price Cents"
     },
     "currency": {
      "type": "string",
      "maxLength": 3,
      "minLength": 3,
      "title": "Currency",
      "default": "usd"
     },
     "stripe_price_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Stripe Price Id"
     },
     "is_active": {
      "type": "boolean",
      "title": "Is Active",
      "default": true
     }
    },
    "type": "object",
    "required": [
     "code",
     "name",
     "credits",
     "price_cents"
    ],
    "title": "CreditPackUpsert"
   },
   "CreditReason": {
    "type": "string",
    "enum": [
     "signup_grant",
     "monthly_allowance",
     "purchase",
     "admin_adjustment",
     "enrichment",
     "verification",
     "export",
     "refund",
     "expiry",
     "ai_writing",
     "ai_research",
     "directory_reveal"
    ],
    "title": "CreditReason",
    "description": "Why a credit ledger entry exists. Debits are negative deltas."
   },
   "DSRRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "request_type": {
      "type": "string",
      "title": "Request Type"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "full_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Full Name"
     },
     "message": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Message"
     },
     "verified_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Verified At"
     },
     "completed_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Completed At"
     },
     "due_at": {
      "type": "string",
      "format": "date-time",
      "title": "Due At"
     },
     "result": {
      "type": "object",
      "title": "Result"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "request_type",
     "status",
     "full_name",
     "message",
     "verified_at",
     "completed_at",
     "due_at",
     "result",
     "created_at"
    ],
    "title": "DSRRead"
   },
   "DSRStatus": {
    "type": "string",
    "enum": [
     "pending_verification",
     "verified",
     "processing",
     "completed",
     "rejected"
    ],
    "title": "DSRStatus"
   },
   "DSRType": {
    "type": "string",
    "enum": [
     "access",
     "erasure",
     "opt_out"
    ],
    "title": "DSRType",
    "description": "Data subject request kinds (GDPR Art. 15, 17, 21; CCPA)."
   },
   "DataQualityReportResponse": {
    "properties": {
     "overall_status": {
      "type": "string",
      "enum": [
       "verified",
       "needs_review",
       "invalid"
      ],
      "title": "Overall Status"
     },
     "trust_score": {
      "type": "number",
      "maximum": 100.0,
      "minimum": 0.0,
      "title": "Trust Score"
     },
     "completeness_score": {
      "type": "number",
      "maximum": 100.0,
      "minimum": 0.0,
      "title": "Completeness Score"
     },
     "is_contactable": {
      "type": "boolean",
      "title": "Is Contactable"
     },
     "checks": {
      "items": {
       "$ref": "#/components/schemas/FieldCheckResponse"
      },
      "type": "array",
      "title": "Checks"
     },
     "issues": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Issues"
     },
     "recommendations": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Recommendations"
     },
     "checked_at": {
      "type": "string",
      "format": "date-time",
      "title": "Checked At"
     }
    },
    "type": "object",
    "required": [
     "overall_status",
     "trust_score",
     "completeness_score",
     "is_contactable",
     "checked_at"
    ],
    "title": "DataQualityReportResponse",
    "description": "Comprehensive verification & data quality report for a lead, company, or payload."
   },
   "DataSource": {
    "type": "string",
    "enum": [
     "crawl",
     "ai_extraction",
     "pattern_inference",
     "manual",
     "csv_import",
     "third_party_api",
     "directory"
    ],
    "title": "DataSource"
   },
   "DayPoint": {
    "properties": {
     "day": {
      "type": "string",
      "title": "Day"
     },
     "sent": {
      "type": "integer",
      "title": "Sent"
     },
     "opened": {
      "type": "integer",
      "title": "Opened"
     },
     "replied": {
      "type": "integer",
      "title": "Replied"
     },
     "bounced": {
      "type": "integer",
      "title": "Bounced"
     }
    },
    "type": "object",
    "required": [
     "day",
     "sent",
     "opened",
     "replied",
     "bounced"
    ],
    "title": "DayPoint"
   },
   "Department": {
    "type": "string",
    "enum": [
     "executive",
     "sales",
     "marketing",
     "engineering",
     "product",
     "finance",
     "hr",
     "operations",
     "legal",
     "support",
     "it",
     "other",
     "unknown"
    ],
    "title": "Department"
   },
   "DirectoryAdminRow": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "domain": {
      "type": "string",
      "title": "Domain"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "industry": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Industry"
     },
     "business_model": {
      "type": "string",
      "title": "Business Model"
     },
     "founded_year": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Founded Year"
     },
     "employee_count": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Employee Count"
     },
     "employee_range": {
      "type": "string",
      "title": "Employee Range"
     },
     "country": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Country"
     },
     "region": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Region"
     },
     "city": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "City"
     },
     "technologies": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Technologies"
     },
     "last_crawled_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Crawled At"
     },
     "in_workspace": {
      "type": "boolean",
      "title": "In Workspace",
      "default": false
     },
     "removed_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Removed At"
     },
     "removed_reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Removed Reason"
     },
     "confidence": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Confidence"
     }
    },
    "type": "object",
    "required": [
     "id",
     "domain",
     "name",
     "description",
     "industry",
     "business_model",
     "founded_year",
     "employee_count",
     "employee_range",
     "country",
     "region",
     "city",
     "technologies",
     "last_crawled_at",
     "in_workspace",
     "removed_at",
     "removed_reason",
     "confidence"
    ],
    "title": "DirectoryAdminRow"
   },
   "DirectoryCompanyRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "domain": {
      "type": "string",
      "title": "Domain"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "industry": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Industry"
     },
     "business_model": {
      "type": "string",
      "title": "Business Model"
     },
     "founded_year": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Founded Year"
     },
     "employee_count": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Employee Count"
     },
     "employee_range": {
      "type": "string",
      "title": "Employee Range"
     },
     "country": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Country"
     },
     "region": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Region"
     },
     "city": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "City"
     },
     "technologies": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Technologies"
     },
     "last_crawled_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Crawled At"
     },
     "in_workspace": {
      "type": "boolean",
      "title": "In Workspace",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "id",
     "domain",
     "name",
     "description",
     "industry",
     "business_model",
     "founded_year",
     "employee_count",
     "employee_range",
     "country",
     "region",
     "city",
     "technologies",
     "last_crawled_at",
     "in_workspace"
    ],
    "title": "DirectoryCompanyRead",
    "description": "What a search shows before anything is revealed (no cost)."
   },
   "DirectoryCriteria": {
    "properties": {
     "query": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Query"
     },
     "industries": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "maxItems": 50,
      "title": "Industries"
     },
     "countries": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "maxItems": 50,
      "title": "Countries"
     },
     "employee_ranges": {
      "items": {
       "$ref": "#/components/schemas/EmployeeRange"
      },
      "type": "array",
      "title": "Employee Ranges"
     },
     "business_models": {
      "items": {
       "$ref": "#/components/schemas/BusinessModel"
      },
      "type": "array",
      "title": "Business Models"
     },
     "technologies": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "maxItems": 50,
      "title": "Technologies"
     },
     "keywords": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "maxItems": 50,
      "title": "Keywords"
     },
     "founded_after": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 2100.0,
        "minimum": 1600.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Founded After"
     },
     "founded_before": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 2100.0,
        "minimum": 1600.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Founded Before"
     },
     "exclude_domains": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "maxItems": 200,
      "title": "Exclude Domains"
     },
     "hide_in_workspace": {
      "type": "boolean",
      "title": "Hide In Workspace",
      "default": false
     }
    },
    "additionalProperties": false,
    "type": "object",
    "title": "DirectoryCriteria",
    "description": "Filters for the directory search. Every list is an OR within itself."
   },
   "DirectoryLeadAdminRow": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "directory_company_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Directory Company Id"
     },
     "company_domain": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Company Domain"
     },
     "company_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Company Name"
     },
     "first_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "First Name"
     },
     "last_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Name"
     },
     "full_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Full Name"
     },
     "title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "seniority": {
      "type": "string",
      "title": "Seniority"
     },
     "department": {
      "type": "string",
      "title": "Department"
     },
     "country": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Country"
     },
     "region": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Region"
     },
     "city": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "City"
     },
     "email_status": {
      "type": "string",
      "title": "Email Status"
     },
     "email_masked": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Email Masked"
     },
     "has_email": {
      "type": "boolean",
      "title": "Has Email",
      "default": true
     },
     "has_phone": {
      "type": "boolean",
      "title": "Has Phone",
      "default": false
     },
     "has_linkedin": {
      "type": "boolean",
      "title": "Has Linkedin",
      "default": false
     },
     "source": {
      "type": "string",
      "title": "Source",
      "default": "crawl"
     },
     "last_seen_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Seen At"
     },
     "last_verified_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Verified At"
     },
     "in_workspace": {
      "type": "boolean",
      "title": "In Workspace",
      "default": false
     },
     "email": {
      "type": "string",
      "title": "Email"
     },
     "phone": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Phone"
     },
     "linkedin_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Linkedin Url"
     },
     "removed_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Removed At"
     },
     "removed_reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Removed Reason"
     },
     "confidence": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Confidence"
     }
    },
    "type": "object",
    "required": [
     "id",
     "directory_company_id",
     "company_domain",
     "company_name",
     "first_name",
     "last_name",
     "full_name",
     "title",
     "seniority",
     "department",
     "country",
     "region",
     "city",
     "email_status",
     "email_masked",
     "has_email",
     "has_phone",
     "has_linkedin",
     "source",
     "last_seen_at",
     "last_verified_at",
     "in_workspace",
     "email",
     "phone",
     "linkedin_url",
     "removed_at",
     "removed_reason",
     "confidence"
    ],
    "title": "DirectoryLeadAdminRow"
   },
   "DirectoryLeadCriteria": {
    "properties": {
     "query": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Query"
     },
     "company_domains": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "maxItems": 100,
      "title": "Company Domains"
     },
     "countries": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "maxItems": 50,
      "title": "Countries"
     },
     "seniorities": {
      "items": {
       "$ref": "#/components/schemas/Seniority"
      },
      "type": "array",
      "title": "Seniorities"
     },
     "departments": {
      "items": {
       "$ref": "#/components/schemas/Department"
      },
      "type": "array",
      "title": "Departments"
     },
     "email_statuses": {
      "items": {
       "$ref": "#/components/schemas/EmailStatus"
      },
      "type": "array",
      "title": "Email Statuses"
     },
     "sources": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "maxItems": 20,
      "title": "Sources"
     },
     "hide_in_workspace": {
      "type": "boolean",
      "title": "Hide In Workspace",
      "default": false
     }
    },
    "additionalProperties": false,
    "type": "object",
    "title": "DirectoryLeadCriteria",
    "description": "Filters for searching leads in the shared control-plane directory."
   },
   "DirectoryLeadRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "directory_company_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Directory Company Id"
     },
     "company_domain": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Company Domain"
     },
     "company_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Company Name"
     },
     "first_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "First Name"
     },
     "last_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Name"
     },
     "full_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Full Name"
     },
     "title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "seniority": {
      "type": "string",
      "title": "Seniority"
     },
     "department": {
      "type": "string",
      "title": "Department"
     },
     "country": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Country"
     },
     "region": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Region"
     },
     "city": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "City"
     },
     "email_status": {
      "type": "string",
      "title": "Email Status"
     },
     "email_masked": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Email Masked"
     },
     "has_email": {
      "type": "boolean",
      "title": "Has Email",
      "default": true
     },
     "has_phone": {
      "type": "boolean",
      "title": "Has Phone",
      "default": false
     },
     "has_linkedin": {
      "type": "boolean",
      "title": "Has Linkedin",
      "default": false
     },
     "source": {
      "type": "string",
      "title": "Source",
      "default": "crawl"
     },
     "last_seen_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Seen At"
     },
     "last_verified_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Verified At"
     },
     "in_workspace": {
      "type": "boolean",
      "title": "In Workspace",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "id",
     "directory_company_id",
     "company_domain",
     "company_name",
     "first_name",
     "last_name",
     "full_name",
     "title",
     "seniority",
     "department",
     "country",
     "region",
     "city",
     "email_status",
     "email_masked",
     "has_email",
     "has_phone",
     "has_linkedin",
     "source",
     "last_seen_at",
     "last_verified_at",
     "in_workspace"
    ],
    "title": "DirectoryLeadRead",
    "description": "What a directory lead search returns before reveal (masked email/phone)."
   },
   "DirectoryStats": {
    "properties": {
     "total": {
      "type": "integer",
      "title": "Total"
     },
     "live": {
      "type": "integer",
      "title": "Live"
     },
     "removed": {
      "type": "integer",
      "title": "Removed"
     },
     "reveals": {
      "type": "integer",
      "title": "Reveals"
     },
     "leads_total": {
      "type": "integer",
      "title": "Leads Total",
      "default": 0
     },
     "leads_live": {
      "type": "integer",
      "title": "Leads Live",
      "default": 0
     },
     "lead_reveals": {
      "type": "integer",
      "title": "Lead Reveals",
      "default": 0
     },
     "by_country": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "By Country"
     },
     "by_industry": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "By Industry"
     }
    },
    "type": "object",
    "required": [
     "total",
     "live",
     "removed",
     "reveals",
     "leads_total",
     "leads_live",
     "lead_reveals",
     "by_country",
     "by_industry"
    ],
    "title": "DirectoryStats"
   },
   "DomainEnrichmentRequest": {
    "properties": {
     "domain": {
      "type": "string",
      "maxLength": 253,
      "minLength": 3,
      "title": "Domain",
      "description": "Company domain or website URL"
     },
     "icp": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 4000
       },
       {
        "type": "null"
       }
      ],
      "title": "Icp",
      "description": "Target ICP in plain English, e.g. \"US-based FinTech, 50-200 staff, Series A+\". Scoring is skipped when omitted."
     },
     "max_pages": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 50.0,
        "minimum": 1.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Max Pages"
     },
     "verify_emails": {
      "type": "boolean",
      "title": "Verify Emails",
      "default": true
     },
     "score_leads": {
      "type": "boolean",
      "title": "Score Leads",
      "default": true
     },
     "infer_missing_emails": {
      "type": "boolean",
      "title": "Infer Missing Emails",
      "description": "Guess addresses from the company pattern and keep only those that verify",
      "default": false
     },
     "billing": {
      "type": "string",
      "enum": [
       "metered",
       "flat"
      ],
      "title": "Billing",
      "description": "Metered bills per unit of work done; flat bills a fixed price per run",
      "default": "metered"
     },
     "force": {
      "type": "boolean",
      "title": "Force",
      "description": "Bypass deduplication and re-crawl",
      "default": false
     },
     "priority": {
      "$ref": "#/components/schemas/JobPriority",
      "default": 5
     }
    },
    "type": "object",
    "required": [
     "domain"
    ],
    "title": "DomainEnrichmentRequest",
    "description": "Trigger the full pipeline for one domain."
   },
   "DomainSearchGroup": {
    "properties": {
     "department": {
      "$ref": "#/components/schemas/Department"
     },
     "count": {
      "type": "integer",
      "title": "Count"
     },
     "leads": {
      "items": {
       "$ref": "#/components/schemas/LeadRead"
      },
      "type": "array",
      "title": "Leads"
     }
    },
    "type": "object",
    "required": [
     "department",
     "count",
     "leads"
    ],
    "title": "DomainSearchGroup",
    "description": "Contacts of one department found for a domain."
   },
   "DomainSearchResponse": {
    "properties": {
     "company": {
      "$ref": "#/components/schemas/CompanyRead"
     },
     "email_pattern": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Email Pattern"
     },
     "email_pattern_confidence": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Email Pattern Confidence"
     },
     "total_contacts": {
      "type": "integer",
      "title": "Total Contacts"
     },
     "departments": {
      "items": {
       "$ref": "#/components/schemas/DomainSearchGroup"
      },
      "type": "array",
      "title": "Departments"
     }
    },
    "type": "object",
    "required": [
     "company",
     "email_pattern",
     "email_pattern_confidence",
     "total_contacts",
     "departments"
    ],
    "title": "DomainSearchResponse",
    "description": "Everything known about a domain: company, email pattern and contacts."
   },
   "EmailStatus": {
    "type": "string",
    "enum": [
     "unverified",
     "valid",
     "invalid",
     "catch_all",
     "risky",
     "unknown",
     "disposable",
     "role_based",
     "blocked"
    ],
    "title": "EmailStatus",
    "description": "Result of the verification pipeline.\n\n``CATCH_ALL`` deserves its own state: the mail server accepts every\nrecipient, so deliverability is unproven either way and the lead should be\ntreated as risky rather than valid."
   },
   "EmployeeRange": {
    "type": "string",
    "enum": [
     "1-10",
     "11-50",
     "51-200",
     "201-500",
     "501-1000",
     "1001-5000",
     "5001-10000",
     "10001+",
     "unknown"
    ],
    "title": "EmployeeRange",
    "description": "Company headcount bands (kept aligned with common data-provider bands)."
   },
   "EnrichRequest": {
    "properties": {
     "domain": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Domain",
      "description": "Company website or domain"
     },
     "company_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Company Name"
     },
     "max_pages": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 50.0,
        "minimum": 1.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Max Pages"
     },
     "verify_emails": {
      "type": "boolean",
      "title": "Verify Emails",
      "default": true
     },
     "score_leads": {
      "type": "boolean",
      "title": "Score Leads",
      "default": true
     },
     "force": {
      "type": "boolean",
      "title": "Force",
      "description": "Bypass deduplication and re-crawl even if data is fresh",
      "default": false
     },
     "priority": {
      "$ref": "#/components/schemas/JobPriority",
      "default": 5
     }
    },
    "type": "object",
    "title": "EnrichRequest",
    "description": "Enrich one company by domain or by name."
   },
   "EnrichmentStatus": {
    "type": "string",
    "enum": [
     "pending",
     "in_progress",
     "enriched",
     "partial",
     "failed",
     "stale",
     "unreachable"
    ],
    "title": "EnrichmentStatus",
    "description": "Lifecycle of a company or lead record's enrichment data."
   },
   "EnrollRequest": {
    "properties": {
     "lead_ids": {
      "items": {
       "type": "string",
       "format": "uuid"
      },
      "type": "array",
      "maxItems": 1000,
      "title": "Lead Ids"
     },
     "list_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "List Id"
     },
     "skip_active_elsewhere": {
      "type": "boolean",
      "title": "Skip Active Elsewhere",
      "default": true
     }
    },
    "type": "object",
    "title": "EnrollRequest"
   },
   "EnrollResultRead": {
    "properties": {
     "enrolled": {
      "type": "integer",
      "title": "Enrolled"
     },
     "skipped": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "Skipped"
     }
    },
    "type": "object",
    "required": [
     "enrolled",
     "skipped"
    ],
    "title": "EnrollResultRead"
   },
   "EnrollmentAction": {
    "properties": {
     "ids": {
      "items": {
       "type": "string",
       "format": "uuid"
      },
      "type": "array",
      "maxItems": 1000,
      "minItems": 1,
      "title": "Ids"
     },
     "action": {
      "type": "string",
      "enum": [
       "pause",
       "resume",
       "stop",
       "remove"
      ],
      "title": "Action"
     }
    },
    "type": "object",
    "required": [
     "ids",
     "action"
    ],
    "title": "EnrollmentAction"
   },
   "EnrollmentActionResult": {
    "properties": {
     "changed": {
      "type": "integer",
      "title": "Changed"
     }
    },
    "type": "object",
    "required": [
     "changed"
    ],
    "title": "EnrollmentActionResult"
   },
   "EnrollmentRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "sequence_id": {
      "type": "string",
      "format": "uuid",
      "title": "Sequence Id"
     },
     "lead_id": {
      "type": "string",
      "format": "uuid",
      "title": "Lead Id"
     },
     "mailbox_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Mailbox Id"
     },
     "status": {
      "$ref": "#/components/schemas/EnrollmentStatus"
     },
     "current_step": {
      "type": "integer",
      "title": "Current Step"
     },
     "next_run_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Next Run At"
     },
     "last_step_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Step At"
     },
     "finished_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Finished At"
     },
     "stop_reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Stop Reason"
     },
     "last_error": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Error"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "lead": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/LeadMini"
       },
       {
        "type": "null"
       }
      ]
     },
     "sequence_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Sequence Name"
     }
    },
    "type": "object",
    "required": [
     "id",
     "sequence_id",
     "lead_id",
     "mailbox_id",
     "status",
     "current_step",
     "next_run_at",
     "last_step_at",
     "finished_at",
     "stop_reason",
     "last_error",
     "created_at",
     "lead",
     "sequence_name"
    ],
    "title": "EnrollmentRead"
   },
   "EnrollmentStatus": {
    "type": "string",
    "enum": [
     "active",
     "waiting",
     "paused",
     "completed",
     "replied",
     "bounced",
     "unsubscribed",
     "stopped",
     "failed"
    ],
    "title": "EnrollmentStatus",
    "description": "Where one prospect is in one sequence."
   },
   "FieldCheckResponse": {
    "properties": {
     "field": {
      "type": "string",
      "title": "Field"
     },
     "label": {
      "type": "string",
      "title": "Label"
     },
     "status": {
      "type": "string",
      "enum": [
       "valid",
       "warning",
       "invalid",
       "unverified"
      ],
      "title": "Status"
     },
     "score": {
      "type": "number",
      "maximum": 1.0,
      "minimum": 0.0,
      "title": "Score"
     },
     "message": {
      "type": "string",
      "title": "Message"
     },
     "details": {
      "type": "object",
      "title": "Details"
     }
    },
    "type": "object",
    "required": [
     "field",
     "label",
     "status",
     "score",
     "message"
    ],
    "title": "FieldCheckResponse",
    "description": "Outcome of one information verification check."
   },
   "FindEmailRequest": {
    "properties": {
     "first_name": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1,
      "title": "First Name"
     },
     "last_name": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1,
      "title": "Last Name"
     },
     "domain": {
      "type": "string",
      "title": "Domain"
     },
     "max_candidates": {
      "type": "integer",
      "maximum": 8.0,
      "minimum": 1.0,
      "title": "Max Candidates",
      "default": 3
     }
    },
    "type": "object",
    "required": [
     "first_name",
     "last_name",
     "domain"
    ],
    "title": "FindEmailRequest",
    "description": "Infer and verify an address from a name and a company domain."
   },
   "ForgotPasswordRequest": {
    "properties": {
     "email": {
      "type": "string",
      "format": "email",
      "title": "Email"
     }
    },
    "type": "object",
    "required": [
     "email"
    ],
    "title": "ForgotPasswordRequest"
   },
   "HTTPValidationError": {
    "properties": {
     "detail": {
      "items": {
       "$ref": "#/components/schemas/ValidationError"
      },
      "type": "array",
      "title": "Detail"
     }
    },
    "type": "object",
    "title": "HTTPValidationError"
   },
   "HealthResponse": {
    "properties": {
     "status": {
      "type": "string",
      "title": "Status"
     },
     "version": {
      "type": "string",
      "title": "Version"
     },
     "environment": {
      "type": "string",
      "title": "Environment"
     },
     "checks": {
      "additionalProperties": {
       "type": "boolean"
      },
      "type": "object",
      "title": "Checks"
     }
    },
    "type": "object",
    "required": [
     "status",
     "version",
     "environment"
    ],
    "title": "HealthResponse"
   },
   "HubSpotConnect": {
    "properties": {
     "access_token": {
      "type": "string",
      "maxLength": 512,
      "minLength": 10,
      "format": "password",
      "title": "Access Token",
      "writeOnly": true
     }
    },
    "type": "object",
    "required": [
     "access_token"
    ],
    "title": "HubSpotConnect"
   },
   "ICPProfile": {
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 128,
      "title": "Name",
      "default": "Default ICP"
     },
     "industries": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Industries"
     },
     "excluded_industries": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Excluded Industries"
     },
     "employee_min": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 100000000.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Employee Min"
     },
     "employee_max": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 100000000.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Employee Max"
     },
     "countries": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Countries",
      "description": "ISO 3166-1 alpha-2 codes"
     },
     "excluded_countries": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Excluded Countries"
     },
     "seniorities": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Seniorities"
     },
     "departments": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Departments"
     },
     "title_keywords": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Title Keywords"
     },
     "excluded_title_keywords": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Excluded Title Keywords"
     },
     "technologies": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Technologies"
     },
     "keywords": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Keywords"
     },
     "require_verified_email": {
      "type": "boolean",
      "title": "Require Verified Email",
      "default": false
     },
     "exclude_free_email": {
      "type": "boolean",
      "title": "Exclude Free Email",
      "default": true
     },
     "exclude_role_based": {
      "type": "boolean",
      "title": "Exclude Role Based",
      "default": false
     },
     "weights": {
      "additionalProperties": {
       "type": "number",
       "maximum": 1000.0,
       "minimum": 0.0
      },
      "type": "object",
      "maxProperties": 32,
      "title": "Weights"
     }
    },
    "type": "object",
    "title": "ICPProfile",
    "description": "Criteria describing the customer a user wants to find."
   },
   "ImpersonateRequest": {
    "properties": {
     "user_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "User Id",
      "description": "Defaults to the workspace owner"
     },
     "reason": {
      "type": "string",
      "maxLength": 500,
      "minLength": 3,
      "title": "Reason"
     }
    },
    "type": "object",
    "required": [
     "reason"
    ],
    "title": "ImpersonateRequest"
   },
   "ImpersonationResponse": {
    "properties": {
     "access_token": {
      "type": "string",
      "title": "Access Token"
     },
     "expires_in": {
      "type": "integer",
      "title": "Expires In"
     },
     "tenant_id": {
      "type": "string",
      "format": "uuid",
      "title": "Tenant Id"
     },
     "user_id": {
      "type": "string",
      "format": "uuid",
      "title": "User Id"
     }
    },
    "type": "object",
    "required": [
     "access_token",
     "expires_in",
     "tenant_id",
     "user_id"
    ],
    "title": "ImpersonationResponse"
   },
   "InformationCheckRequest": {
    "properties": {
     "full_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Full Name"
     },
     "first_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 128
       },
       {
        "type": "null"
       }
      ],
      "title": "First Name"
     },
     "last_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 128
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Name"
     },
     "title": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "email": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 320
       },
       {
        "type": "null"
       }
      ],
      "title": "Email"
     },
     "phone": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 64
       },
       {
        "type": "null"
       }
      ],
      "title": "Phone"
     },
     "linkedin_url": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 512
       },
       {
        "type": "null"
       }
      ],
      "title": "Linkedin Url"
     },
     "company_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Company Name"
     },
     "company_domain": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 253
       },
       {
        "type": "null"
       }
      ],
      "title": "Company Domain"
     },
     "country": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2
       },
       {
        "type": "null"
       }
      ],
      "title": "Country"
     },
     "verify_smtp": {
      "type": "boolean",
      "title": "Verify Smtp",
      "description": "Probe the email mailbox over SMTP (costs 1 credit if fresh and conclusive)",
      "default": false
     },
     "check_dns": {
      "type": "boolean",
      "title": "Check Dns",
      "description": "When true, checks live DNS/MX records for company_domain",
      "default": true
     }
    },
    "type": "object",
    "title": "InformationCheckRequest",
    "description": "Check and validate arbitrary lead and company information."
   },
   "IntegrationRead": {
    "properties": {
     "provider": {
      "type": "string",
      "title": "Provider"
     },
     "connected": {
      "type": "boolean",
      "title": "Connected"
     },
     "status": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Status"
     },
     "settings": {
      "type": "object",
      "title": "Settings"
     },
     "last_sync_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Sync At"
     },
     "last_sync_summary": {
      "type": "object",
      "title": "Last Sync Summary"
     },
     "last_error": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Error"
     },
     "required_scopes": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Required Scopes"
     }
    },
    "type": "object",
    "required": [
     "provider",
     "connected",
     "status",
     "settings",
     "last_sync_at",
     "last_sync_summary",
     "last_error",
     "required_scopes"
    ],
    "title": "IntegrationRead"
   },
   "InvitationCreate": {
    "properties": {
     "email": {
      "type": "string",
      "format": "email",
      "title": "Email"
     },
     "role": {
      "$ref": "#/components/schemas/UserRole",
      "default": "member"
     }
    },
    "type": "object",
    "required": [
     "email"
    ],
    "title": "InvitationCreate"
   },
   "InvitationPreview": {
    "properties": {
     "workspace_name": {
      "type": "string",
      "title": "Workspace Name"
     },
     "email": {
      "type": "string",
      "title": "Email"
     },
     "role": {
      "$ref": "#/components/schemas/UserRole"
     },
     "expires_at": {
      "type": "string",
      "format": "date-time",
      "title": "Expires At"
     },
     "account_exists": {
      "type": "boolean",
      "title": "Account Exists"
     }
    },
    "type": "object",
    "required": [
     "workspace_name",
     "email",
     "role",
     "expires_at",
     "account_exists"
    ],
    "title": "InvitationPreview"
   },
   "InvitationRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "email": {
      "type": "string",
      "title": "Email"
     },
     "role": {
      "$ref": "#/components/schemas/UserRole"
     },
     "expires_at": {
      "type": "string",
      "format": "date-time",
      "title": "Expires At"
     },
     "accepted_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Accepted At"
     },
     "revoked_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Revoked At"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "email",
     "role",
     "expires_at",
     "accepted_at",
     "revoked_at",
     "created_at"
    ],
    "title": "InvitationRead"
   },
   "InvoiceRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "number": {
      "type": "string",
      "title": "Number"
     },
     "kind": {
      "type": "string",
      "title": "Kind"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "currency": {
      "type": "string",
      "title": "Currency"
     },
     "amount_due_cents": {
      "type": "integer",
      "title": "Amount Due Cents"
     },
     "amount_paid_cents": {
      "type": "integer",
      "title": "Amount Paid Cents"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "credits": {
      "type": "integer",
      "title": "Credits"
     },
     "plan_code": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Plan Code"
     },
     "hosted_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Hosted Url"
     },
     "period_start": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Period Start"
     },
     "period_end": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Period End"
     },
     "paid_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Paid At"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "number",
     "kind",
     "status",
     "currency",
     "amount_due_cents",
     "amount_paid_cents",
     "description",
     "credits",
     "plan_code",
     "hosted_url",
     "period_start",
     "period_end",
     "paid_at",
     "created_at"
    ],
    "title": "InvoiceRead"
   },
   "InvoiceStatus": {
    "type": "string",
    "enum": [
     "draft",
     "open",
     "paid",
     "void",
     "uncollectible"
    ],
    "title": "InvoiceStatus"
   },
   "JobHandleResponse": {
    "properties": {
     "job_id": {
      "type": "string",
      "format": "uuid",
      "title": "Job Id"
     },
     "job_type": {
      "$ref": "#/components/schemas/JobType"
     },
     "status": {
      "$ref": "#/components/schemas/JobStatus"
     },
     "target": {
      "type": "string",
      "title": "Target"
     },
     "deduplicated": {
      "type": "boolean",
      "title": "Deduplicated",
      "description": "True when an identical job was already in flight",
      "default": false
     },
     "credits_charged": {
      "type": "integer",
      "title": "Credits Charged",
      "default": 0
     },
     "poll_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Poll Url"
     }
    },
    "type": "object",
    "required": [
     "job_id",
     "job_type",
     "status",
     "target"
    ],
    "title": "JobHandleResponse",
    "description": "Returned immediately when work is queued."
   },
   "JobPriority": {
    "type": "integer",
    "enum": [
     0,
     2,
     5,
     8
    ],
    "title": "JobPriority",
    "description": "Celery priority (lower number = served first on the Redis transport)."
   },
   "JobRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "job_type": {
      "$ref": "#/components/schemas/JobType"
     },
     "status": {
      "$ref": "#/components/schemas/JobStatus"
     },
     "target": {
      "type": "string",
      "title": "Target"
     },
     "target_type": {
      "$ref": "#/components/schemas/TargetType"
     },
     "progress": {
      "type": "integer",
      "title": "Progress"
     },
     "attempts": {
      "type": "integer",
      "title": "Attempts"
     },
     "error_code": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Error Code"
     },
     "error_message": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Error Message"
     },
     "credits_charged": {
      "type": "integer",
      "title": "Credits Charged"
     },
     "credits_refunded": {
      "type": "integer",
      "title": "Credits Refunded"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "started_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Started At"
     },
     "finished_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Finished At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "job_type",
     "status",
     "target",
     "target_type",
     "progress",
     "attempts",
     "error_code",
     "error_message",
     "credits_charged",
     "credits_refunded",
     "created_at",
     "started_at",
     "finished_at"
    ],
    "title": "JobRead"
   },
   "JobStatus": {
    "type": "string",
    "enum": [
     "queued",
     "running",
     "succeeded",
     "failed",
     "cancelled",
     "retrying",
     "deduplicated"
    ],
    "title": "JobStatus"
   },
   "JobStatusResponse": {
    "properties": {
     "job_id": {
      "type": "string",
      "format": "uuid",
      "title": "Job Id"
     },
     "job_type": {
      "$ref": "#/components/schemas/JobType"
     },
     "status": {
      "$ref": "#/components/schemas/JobStatus"
     },
     "target": {
      "type": "string",
      "title": "Target"
     },
     "progress": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 0.0,
      "title": "Progress"
     },
     "progress_message": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Progress Message"
     },
     "attempts": {
      "type": "integer",
      "title": "Attempts",
      "default": 0
     },
     "error_code": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Error Code"
     },
     "error_message": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Error Message"
     },
     "result": {
      "type": "object",
      "title": "Result"
     },
     "created_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Created At"
     },
     "started_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Started At"
     },
     "finished_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Finished At"
     },
     "duration_seconds": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Duration Seconds"
     }
    },
    "type": "object",
    "required": [
     "job_id",
     "job_type",
     "status",
     "target",
     "progress"
    ],
    "title": "JobStatusResponse"
   },
   "JobType": {
    "type": "string",
    "enum": [
     "enrich_domain",
     "pipeline_run",
     "enrich_company_name",
     "crawl_site",
     "verify_email",
     "verify_lead",
     "score_lead",
     "bulk_import",
     "export"
    ],
    "title": "JobType",
    "description": "Unit of background work dispatched through ``core.dispatcher``."
   },
   "JourneyStep": {
    "properties": {
     "path": {
      "type": "string",
      "title": "Path"
     },
     "title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "viewed_at": {
      "type": "string",
      "format": "date-time",
      "title": "Viewed At"
     },
     "engaged_seconds": {
      "type": "integer",
      "title": "Engaged Seconds"
     },
     "max_scroll": {
      "type": "integer",
      "title": "Max Scroll"
     }
    },
    "type": "object",
    "required": [
     "path",
     "title",
     "viewed_at",
     "engaged_seconds",
     "max_scroll"
    ],
    "title": "JourneyStep"
   },
   "LeadBulkImportRequest": {
    "properties": {
     "rows": {
      "items": {
       "$ref": "#/components/schemas/LeadBulkImportRow"
      },
      "type": "array",
      "maxItems": 5000,
      "minItems": 1,
      "title": "Rows"
     },
     "enrich": {
      "type": "boolean",
      "title": "Enrich",
      "description": "Queue enrichment for each distinct company domain",
      "default": true
     },
     "verify_emails": {
      "type": "boolean",
      "title": "Verify Emails",
      "default": true
     }
    },
    "type": "object",
    "required": [
     "rows"
    ],
    "title": "LeadBulkImportRequest"
   },
   "LeadBulkImportResponse": {
    "properties": {
     "imported": {
      "type": "integer",
      "title": "Imported"
     },
     "skipped": {
      "type": "integer",
      "title": "Skipped"
     },
     "duplicates": {
      "type": "integer",
      "title": "Duplicates"
     },
     "jobs_queued": {
      "type": "integer",
      "title": "Jobs Queued"
     },
     "errors": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Errors"
     }
    },
    "type": "object",
    "required": [
     "imported",
     "skipped",
     "duplicates",
     "jobs_queued"
    ],
    "title": "LeadBulkImportResponse"
   },
   "LeadBulkImportRow": {
    "properties": {
     "email": {
      "anyOf": [
       {
        "type": "string",
        "format": "email"
       },
       {
        "type": "null"
       }
      ],
      "title": "Email"
     },
     "full_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Full Name"
     },
     "first_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 128
       },
       {
        "type": "null"
       }
      ],
      "title": "First Name"
     },
     "last_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 128
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Name"
     },
     "title": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "company_domain": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 253
       },
       {
        "type": "null"
       }
      ],
      "title": "Company Domain"
     },
     "company_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Company Name"
     },
     "linkedin_url": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 512
       },
       {
        "type": "null"
       }
      ],
      "title": "Linkedin Url"
     },
     "country": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 64
       },
       {
        "type": "null"
       }
      ],
      "title": "Country"
     }
    },
    "type": "object",
    "title": "LeadBulkImportRow"
   },
   "LeadCreate": {
    "properties": {
     "first_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 128
       },
       {
        "type": "null"
       }
      ],
      "title": "First Name"
     },
     "last_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 128
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Name"
     },
     "full_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Full Name"
     },
     "title": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "seniority": {
      "$ref": "#/components/schemas/Seniority",
      "default": "unknown"
     },
     "department": {
      "$ref": "#/components/schemas/Department",
      "default": "unknown"
     },
     "email": {
      "anyOf": [
       {
        "type": "string",
        "format": "email"
       },
       {
        "type": "null"
       }
      ],
      "title": "Email"
     },
     "phone": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 64
       },
       {
        "type": "null"
       }
      ],
      "title": "Phone"
     },
     "linkedin_url": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 512
       },
       {
        "type": "null"
       }
      ],
      "title": "Linkedin Url"
     },
     "country": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2,
        "minLength": 2
       },
       {
        "type": "null"
       }
      ],
      "title": "Country"
     },
     "city": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 128
       },
       {
        "type": "null"
       }
      ],
      "title": "City"
     },
     "company_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Company Id"
     },
     "company_domain": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Company Domain",
      "description": "Used to attach the lead to a company when company_id is unknown. The company is created if it does not exist."
     },
     "tags": {
      "items": {
       "type": "string",
       "maxLength": 64
      },
      "type": "array",
      "maxItems": 50,
      "title": "Tags"
     },
     "notes": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 20000
       },
       {
        "type": "null"
       }
      ],
      "title": "Notes"
     },
     "source": {
      "$ref": "#/components/schemas/DataSource",
      "default": "manual"
     }
    },
    "type": "object",
    "title": "LeadCreate"
   },
   "LeadDetail": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "company_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Company Id"
     },
     "owner_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Owner Id"
     },
     "first_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "First Name"
     },
     "last_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Name"
     },
     "full_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Full Name"
     },
     "title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "seniority": {
      "$ref": "#/components/schemas/Seniority"
     },
     "department": {
      "$ref": "#/components/schemas/Department"
     },
     "email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Email"
     },
     "email_status": {
      "$ref": "#/components/schemas/EmailStatus"
     },
     "email_confidence": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Email Confidence"
     },
     "alternate_emails": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Alternate Emails"
     },
     "is_catch_all": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Is Catch All"
     },
     "is_role_based": {
      "type": "boolean",
      "title": "Is Role Based"
     },
     "is_disposable": {
      "type": "boolean",
      "title": "Is Disposable"
     },
     "is_free_provider": {
      "type": "boolean",
      "title": "Is Free Provider"
     },
     "last_verified_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Verified At"
     },
     "phone": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Phone"
     },
     "linkedin_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Linkedin Url"
     },
     "country": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Country"
     },
     "region": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Region"
     },
     "city": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "City"
     },
     "status": {
      "$ref": "#/components/schemas/LeadStatus"
     },
     "do_not_contact": {
      "type": "boolean",
      "title": "Do Not Contact"
     },
     "tags": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Tags"
     },
     "notes": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Notes"
     },
     "icp_score": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Icp Score"
     },
     "icp_grade": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/LeadGrade"
       },
       {
        "type": "null"
       }
      ]
     },
     "source": {
      "$ref": "#/components/schemas/DataSource"
     },
     "source_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Source Url"
     },
     "last_enriched_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Enriched At"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
     },
     "company": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/CompanySummary"
       },
       {
        "type": "null"
       }
      ]
     },
     "score_breakdown": {
      "type": "object",
      "title": "Score Breakdown"
     },
     "data_quality": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/DataQualityReportResponse"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "type": "object",
    "required": [
     "id",
     "company_id",
     "owner_id",
     "first_name",
     "last_name",
     "full_name",
     "title",
     "seniority",
     "department",
     "email",
     "email_status",
     "email_confidence",
     "alternate_emails",
     "is_catch_all",
     "is_role_based",
     "is_disposable",
     "is_free_provider",
     "last_verified_at",
     "phone",
     "linkedin_url",
     "country",
     "region",
     "city",
     "status",
     "do_not_contact",
     "tags",
     "notes",
     "icp_score",
     "icp_grade",
     "source",
     "source_url",
     "last_enriched_at",
     "created_at",
     "updated_at"
    ],
    "title": "LeadDetail",
    "description": "Full record including the company and the score explanation."
   },
   "LeadGrade": {
    "type": "string",
    "enum": [
     "A",
     "B",
     "C",
     "D"
    ],
    "title": "LeadGrade",
    "description": "Bucketed ICP score, for sorting and UI badges."
   },
   "LeadMini": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "full_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Full Name"
     },
     "email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Email"
     },
     "title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "company_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Company Name"
     },
     "company_domain": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Company Domain"
     },
     "email_status": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/EmailStatus"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "type": "object",
    "required": [
     "id",
     "full_name",
     "email",
     "title",
     "company_name",
     "company_domain",
     "email_status"
    ],
    "title": "LeadMini"
   },
   "LeadRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "company_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Company Id"
     },
     "owner_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Owner Id"
     },
     "first_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "First Name"
     },
     "last_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Name"
     },
     "full_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Full Name"
     },
     "title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "seniority": {
      "$ref": "#/components/schemas/Seniority"
     },
     "department": {
      "$ref": "#/components/schemas/Department"
     },
     "email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Email"
     },
     "email_status": {
      "$ref": "#/components/schemas/EmailStatus"
     },
     "email_confidence": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Email Confidence"
     },
     "alternate_emails": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Alternate Emails"
     },
     "is_catch_all": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Is Catch All"
     },
     "is_role_based": {
      "type": "boolean",
      "title": "Is Role Based"
     },
     "is_disposable": {
      "type": "boolean",
      "title": "Is Disposable"
     },
     "is_free_provider": {
      "type": "boolean",
      "title": "Is Free Provider"
     },
     "last_verified_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Verified At"
     },
     "phone": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Phone"
     },
     "linkedin_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Linkedin Url"
     },
     "country": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Country"
     },
     "region": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Region"
     },
     "city": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "City"
     },
     "status": {
      "$ref": "#/components/schemas/LeadStatus"
     },
     "do_not_contact": {
      "type": "boolean",
      "title": "Do Not Contact"
     },
     "tags": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Tags"
     },
     "notes": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Notes"
     },
     "icp_score": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Icp Score"
     },
     "icp_grade": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/LeadGrade"
       },
       {
        "type": "null"
       }
      ]
     },
     "source": {
      "$ref": "#/components/schemas/DataSource"
     },
     "source_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Source Url"
     },
     "last_enriched_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Enriched At"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "company_id",
     "owner_id",
     "first_name",
     "last_name",
     "full_name",
     "title",
     "seniority",
     "department",
     "email",
     "email_status",
     "email_confidence",
     "alternate_emails",
     "is_catch_all",
     "is_role_based",
     "is_disposable",
     "is_free_provider",
     "last_verified_at",
     "phone",
     "linkedin_url",
     "country",
     "region",
     "city",
     "status",
     "do_not_contact",
     "tags",
     "notes",
     "icp_score",
     "icp_grade",
     "source",
     "source_url",
     "last_enriched_at",
     "created_at",
     "updated_at"
    ],
    "title": "LeadRead"
   },
   "LeadScoreResponse": {
    "properties": {
     "lead_id": {
      "type": "string",
      "format": "uuid",
      "title": "Lead Id"
     },
     "score": {
      "type": "number",
      "title": "Score"
     },
     "grade": {
      "$ref": "#/components/schemas/LeadGrade"
     },
     "rule_score": {
      "type": "number",
      "title": "Rule Score"
     },
     "ai_score": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ai Score"
     },
     "rationale": {
      "type": "string",
      "title": "Rationale"
     },
     "disqualifiers": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Disqualifiers"
     },
     "breakdown": {
      "type": "object",
      "title": "Breakdown"
     }
    },
    "type": "object",
    "required": [
     "lead_id",
     "score",
     "grade",
     "rule_score",
     "ai_score",
     "rationale"
    ],
    "title": "LeadScoreResponse"
   },
   "LeadSearchCriteria": {
    "properties": {
     "query": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Query",
      "description": "Fuzzy name/title search"
     },
     "seniorities": {
      "items": {
       "$ref": "#/components/schemas/Seniority"
      },
      "type": "array",
      "title": "Seniorities"
     },
     "departments": {
      "items": {
       "$ref": "#/components/schemas/Department"
      },
      "type": "array",
      "title": "Departments"
     },
     "title_keywords": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Title Keywords"
     },
     "countries": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Countries"
     },
     "cities": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Cities"
     },
     "email_statuses": {
      "items": {
       "$ref": "#/components/schemas/EmailStatus"
      },
      "type": "array",
      "title": "Email Statuses"
     },
     "has_email": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Has Email"
     },
     "exclude_role_based": {
      "type": "boolean",
      "title": "Exclude Role Based",
      "default": false
     },
     "exclude_free_providers": {
      "type": "boolean",
      "title": "Exclude Free Providers",
      "default": false
     },
     "company_ids": {
      "items": {
       "type": "string",
       "format": "uuid"
      },
      "type": "array",
      "title": "Company Ids"
     },
     "company_domains": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Company Domains"
     },
     "industries": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Industries"
     },
     "employee_ranges": {
      "items": {
       "$ref": "#/components/schemas/EmployeeRange"
      },
      "type": "array",
      "title": "Employee Ranges"
     },
     "revenue_ranges": {
      "items": {
       "$ref": "#/components/schemas/RevenueRange"
      },
      "type": "array",
      "title": "Revenue Ranges"
     },
     "business_models": {
      "items": {
       "$ref": "#/components/schemas/BusinessModel"
      },
      "type": "array",
      "title": "Business Models"
     },
     "technologies": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Technologies"
     },
     "funding_stages": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Funding Stages"
     },
     "min_funding_usd": {
      "anyOf": [
       {
        "type": "number",
        "maximum": 10000000000000.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Min Funding Usd"
     },
     "max_funding_usd": {
      "anyOf": [
       {
        "type": "number",
        "maximum": 10000000000000.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Max Funding Usd"
     },
     "funded_since": {
      "anyOf": [
       {
        "type": "string",
        "format": "date"
       },
       {
        "type": "null"
       }
      ],
      "title": "Funded Since"
     },
     "statuses": {
      "items": {
       "$ref": "#/components/schemas/LeadStatus"
      },
      "type": "array",
      "title": "Statuses"
     },
     "grades": {
      "items": {
       "$ref": "#/components/schemas/LeadGrade"
      },
      "type": "array",
      "title": "Grades"
     },
     "tags": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Tags"
     },
     "min_score": {
      "anyOf": [
       {
        "type": "number",
        "maximum": 100.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Min Score"
     },
     "max_score": {
      "anyOf": [
       {
        "type": "number",
        "maximum": 100.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Max Score"
     },
     "owner_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Owner Id"
     },
     "exclude_do_not_contact": {
      "type": "boolean",
      "title": "Exclude Do Not Contact",
      "default": true
     },
     "created_after": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Created After"
     },
     "created_before": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Created Before"
     },
     "exclude_title_keywords": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Exclude Title Keywords"
     },
     "exclude_seniorities": {
      "items": {
       "$ref": "#/components/schemas/Seniority"
      },
      "type": "array",
      "title": "Exclude Seniorities"
     },
     "exclude_departments": {
      "items": {
       "$ref": "#/components/schemas/Department"
      },
      "type": "array",
      "title": "Exclude Departments"
     },
     "exclude_countries": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Exclude Countries"
     },
     "exclude_company_domains": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Exclude Company Domains"
     },
     "exclude_industries": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Exclude Industries"
     },
     "exclude_technologies": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Exclude Technologies"
     },
     "sort": {
      "$ref": "#/components/schemas/SortSpec"
     }
    },
    "additionalProperties": false,
    "type": "object",
    "title": "LeadSearchCriteria",
    "description": "Filters for the people search."
   },
   "LeadStatus": {
    "type": "string",
    "enum": [
     "new",
     "enriching",
     "ready",
     "contacted",
     "engaged",
     "qualified",
     "customer",
     "unqualified",
     "do_not_contact",
     "archived"
    ],
    "title": "LeadStatus",
    "description": "Sales pipeline state, owned by the user rather than the data pipeline."
   },
   "LeadUpdate": {
    "properties": {
     "first_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 128
       },
       {
        "type": "null"
       }
      ],
      "title": "First Name"
     },
     "last_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 128
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Name"
     },
     "title": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "seniority": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Seniority"
       },
       {
        "type": "null"
       }
      ]
     },
     "department": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Department"
       },
       {
        "type": "null"
       }
      ]
     },
     "email": {
      "anyOf": [
       {
        "type": "string",
        "format": "email"
       },
       {
        "type": "null"
       }
      ],
      "title": "Email"
     },
     "phone": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 64
       },
       {
        "type": "null"
       }
      ],
      "title": "Phone"
     },
     "linkedin_url": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 512
       },
       {
        "type": "null"
       }
      ],
      "title": "Linkedin Url"
     },
     "country": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2,
        "minLength": 2
       },
       {
        "type": "null"
       }
      ],
      "title": "Country"
     },
     "city": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 128
       },
       {
        "type": "null"
       }
      ],
      "title": "City"
     },
     "status": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/LeadStatus"
       },
       {
        "type": "null"
       }
      ]
     },
     "tags": {
      "anyOf": [
       {
        "items": {
         "type": "string",
         "maxLength": 64
        },
        "type": "array",
        "maxItems": 50
       },
       {
        "type": "null"
       }
      ],
      "title": "Tags"
     },
     "notes": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 20000
       },
       {
        "type": "null"
       }
      ],
      "title": "Notes"
     },
     "do_not_contact": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Do Not Contact"
     },
     "owner_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Owner Id"
     }
    },
    "type": "object",
    "title": "LeadUpdate"
   },
   "ListCreate": {
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1,
      "title": "Name"
     },
     "description": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2000
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "kind": {
      "$ref": "#/components/schemas/ListKind",
      "default": "people"
     },
     "is_shared": {
      "type": "boolean",
      "title": "Is Shared",
      "default": true
     },
     "color": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 16
       },
       {
        "type": "null"
       }
      ],
      "title": "Color"
     }
    },
    "type": "object",
    "required": [
     "name"
    ],
    "title": "ListCreate"
   },
   "ListItemsChange": {
    "properties": {
     "ids": {
      "items": {
       "type": "string",
       "format": "uuid"
      },
      "type": "array",
      "maxItems": 1000,
      "minItems": 1,
      "title": "Ids"
     }
    },
    "type": "object",
    "required": [
     "ids"
    ],
    "title": "ListItemsChange",
    "description": "Ids of leads (people lists) or companies (company lists)."
   },
   "ListItemsResult": {
    "properties": {
     "added": {
      "type": "integer",
      "title": "Added",
      "default": 0
     },
     "removed": {
      "type": "integer",
      "title": "Removed",
      "default": 0
     },
     "skipped": {
      "type": "integer",
      "title": "Skipped",
      "default": 0
     },
     "item_count": {
      "type": "integer",
      "title": "Item Count"
     }
    },
    "type": "object",
    "required": [
     "item_count"
    ],
    "title": "ListItemsResult"
   },
   "ListKind": {
    "type": "string",
    "enum": [
     "people",
     "companies"
    ],
    "title": "ListKind"
   },
   "ListRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "kind": {
      "$ref": "#/components/schemas/ListKind"
     },
     "owner_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Owner Id"
     },
     "is_shared": {
      "type": "boolean",
      "title": "Is Shared"
     },
     "color": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Color"
     },
     "item_count": {
      "type": "integer",
      "title": "Item Count"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "name",
     "description",
     "kind",
     "owner_id",
     "is_shared",
     "color",
     "item_count",
     "created_at",
     "updated_at"
    ],
    "title": "ListRead"
   },
   "ListUpdate": {
    "properties": {
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 128,
        "minLength": 1
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "description": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2000
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "is_shared": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Is Shared"
     },
     "color": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 16
       },
       {
        "type": "null"
       }
      ],
      "title": "Color"
     }
    },
    "type": "object",
    "title": "ListUpdate"
   },
   "LiveVisit": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "visitor_id": {
      "type": "string",
      "format": "uuid",
      "title": "Visitor Id"
     },
     "identified": {
      "type": "boolean",
      "title": "Identified"
     },
     "returning": {
      "type": "boolean",
      "title": "Returning"
     },
     "visitor_visits": {
      "type": "integer",
      "title": "Visitor Visits"
     },
     "user_email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "User Email"
     },
     "started_at": {
      "type": "string",
      "format": "date-time",
      "title": "Started At"
     },
     "last_activity_at": {
      "type": "string",
      "format": "date-time",
      "title": "Last Activity At"
     },
     "duration_seconds": {
      "type": "integer",
      "title": "Duration Seconds"
     },
     "pageviews": {
      "type": "integer",
      "title": "Pageviews"
     },
     "entry_path": {
      "type": "string",
      "title": "Entry Path"
     },
     "exit_path": {
      "type": "string",
      "title": "Exit Path"
     },
     "area": {
      "type": "string",
      "title": "Area"
     },
     "source": {
      "type": "string",
      "title": "Source"
     },
     "medium": {
      "type": "string",
      "title": "Medium"
     },
     "referrer": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Referrer"
     },
     "utm_campaign": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Utm Campaign"
     },
     "utm_source": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Utm Source"
     },
     "utm_medium": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Utm Medium"
     },
     "utm_term": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Utm Term"
     },
     "utm_content": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Utm Content"
     },
     "country": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Country"
     },
     "country_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Country Name"
     },
     "region": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Region"
     },
     "city": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "City"
     },
     "geo_source": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Geo Source"
     },
     "timezone": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Timezone"
     },
     "language": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Language"
     },
     "device": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Device"
     },
     "browser": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Browser"
     },
     "browser_version": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Browser Version"
     },
     "os": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Os"
     },
     "os_version": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Os Version"
     },
     "screen": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Screen"
     },
     "viewport": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Viewport"
     },
     "device_model": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Device Model"
     },
     "visit_number": {
      "type": "integer",
      "title": "Visit Number"
     },
     "asn": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Asn"
     },
     "network": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Network"
     },
     "ip_address": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ip Address"
     },
     "current_path": {
      "type": "string",
      "title": "Current Path"
     }
    },
    "type": "object",
    "required": [
     "id",
     "visitor_id",
     "identified",
     "returning",
     "visitor_visits",
     "user_email",
     "started_at",
     "last_activity_at",
     "duration_seconds",
     "pageviews",
     "entry_path",
     "exit_path",
     "area",
     "source",
     "medium",
     "referrer",
     "utm_campaign",
     "utm_source",
     "utm_medium",
     "utm_term",
     "utm_content",
     "country",
     "country_name",
     "region",
     "city",
     "geo_source",
     "timezone",
     "language",
     "device",
     "browser",
     "browser_version",
     "os",
     "os_version",
     "screen",
     "viewport",
     "device_model",
     "visit_number",
     "asn",
     "network",
     "ip_address",
     "current_path"
    ],
    "title": "LiveVisit"
   },
   "LogoutRequest": {
    "properties": {
     "refresh_token": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Refresh Token"
     },
     "everywhere": {
      "type": "boolean",
      "title": "Everywhere",
      "default": false
     }
    },
    "type": "object",
    "title": "LogoutRequest"
   },
   "LookalikeMatch": {
    "properties": {
     "company": {
      "$ref": "#/components/schemas/CompanyRead"
     },
     "score": {
      "type": "number",
      "title": "Score"
     },
     "reasons": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Reasons"
     }
    },
    "type": "object",
    "required": [
     "company",
     "score",
     "reasons"
    ],
    "title": "LookalikeMatch"
   },
   "LookalikeRequest": {
    "properties": {
     "company_ids": {
      "items": {
       "type": "string",
       "format": "uuid"
      },
      "type": "array",
      "maxItems": 20,
      "title": "Company Ids"
     },
     "domains": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "maxItems": 20,
      "title": "Domains"
     },
     "limit": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 1.0,
      "title": "Limit",
      "default": 25
     }
    },
    "type": "object",
    "title": "LookalikeRequest"
   },
   "LookalikeResult": {
    "properties": {
     "seeds": {
      "items": {
       "$ref": "#/components/schemas/CompanyRead"
      },
      "type": "array",
      "title": "Seeds"
     },
     "missing_domains": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Missing Domains"
     },
     "matches": {
      "items": {
       "$ref": "#/components/schemas/LookalikeMatch"
      },
      "type": "array",
      "title": "Matches"
     }
    },
    "type": "object",
    "required": [
     "seeds",
     "missing_domains",
     "matches"
    ],
    "title": "LookalikeResult"
   },
   "MailboxCreate": {
    "properties": {
     "from_name": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1,
      "title": "From Name"
     },
     "provider": {
      "type": "string",
      "enum": [
       "gmail",
       "outlook",
       "zoho",
       "custom"
      ],
      "title": "Provider",
      "default": "custom"
     },
     "reply_to": {
      "anyOf": [
       {
        "type": "string",
        "format": "email"
       },
       {
        "type": "null"
       }
      ],
      "title": "Reply To"
     },
     "signature": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2000
       },
       {
        "type": "null"
       }
      ],
      "title": "Signature"
     },
     "smtp_host": {
      "type": "string",
      "maxLength": 253,
      "minLength": 1,
      "title": "Smtp Host"
     },
     "smtp_port": {
      "type": "integer",
      "maximum": 65535.0,
      "minimum": 1.0,
      "title": "Smtp Port",
      "default": 587
     },
     "smtp_security": {
      "type": "string",
      "enum": [
       "starttls",
       "ssl",
       "none"
      ],
      "title": "Smtp Security",
      "default": "starttls"
     },
     "smtp_username": {
      "type": "string",
      "maxLength": 320,
      "minLength": 1,
      "title": "Smtp Username"
     },
     "imap_host": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 253
       },
       {
        "type": "null"
       }
      ],
      "title": "Imap Host"
     },
     "imap_port": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 65535.0,
        "minimum": 1.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Imap Port",
      "default": 993
     },
     "imap_security": {
      "type": "string",
      "enum": [
       "ssl",
       "starttls",
       "none"
      ],
      "title": "Imap Security",
      "default": "ssl"
     },
     "imap_username": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 320
       },
       {
        "type": "null"
       }
      ],
      "title": "Imap Username"
     },
     "daily_limit": {
      "type": "integer",
      "maximum": 5000.0,
      "minimum": 1.0,
      "title": "Daily Limit",
      "default": 50
     },
     "min_interval_seconds": {
      "type": "integer",
      "maximum": 86400.0,
      "minimum": 10.0,
      "title": "Min Interval Seconds",
      "default": 120
     },
     "email": {
      "type": "string",
      "format": "email",
      "title": "Email"
     },
     "smtp_password": {
      "type": "string",
      "maxLength": 512,
      "minLength": 1,
      "format": "password",
      "title": "Smtp Password",
      "writeOnly": true
     },
     "imap_password": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 512,
        "format": "password",
        "writeOnly": true
       },
       {
        "type": "null"
       }
      ],
      "title": "Imap Password"
     },
     "skip_test": {
      "type": "boolean",
      "title": "Skip Test",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "from_name",
     "smtp_host",
     "smtp_username",
     "email",
     "smtp_password"
    ],
    "title": "MailboxCreate"
   },
   "MailboxRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "owner_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Owner Id"
     },
     "email": {
      "type": "string",
      "title": "Email"
     },
     "from_name": {
      "type": "string",
      "title": "From Name"
     },
     "provider": {
      "type": "string",
      "title": "Provider"
     },
     "reply_to": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Reply To"
     },
     "signature": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Signature"
     },
     "smtp_host": {
      "type": "string",
      "title": "Smtp Host"
     },
     "smtp_port": {
      "type": "integer",
      "title": "Smtp Port"
     },
     "smtp_security": {
      "type": "string",
      "title": "Smtp Security"
     },
     "smtp_username": {
      "type": "string",
      "title": "Smtp Username"
     },
     "imap_host": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Imap Host"
     },
     "imap_port": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Imap Port"
     },
     "imap_security": {
      "type": "string",
      "title": "Imap Security"
     },
     "imap_username": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Imap Username"
     },
     "has_imap": {
      "type": "boolean",
      "title": "Has Imap"
     },
     "daily_limit": {
      "type": "integer",
      "title": "Daily Limit"
     },
     "min_interval_seconds": {
      "type": "integer",
      "title": "Min Interval Seconds"
     },
     "status": {
      "$ref": "#/components/schemas/MailboxStatus"
     },
     "last_error": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Error"
     },
     "last_error_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Error At"
     },
     "verified_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Verified At"
     },
     "sent_today": {
      "type": "integer",
      "title": "Sent Today",
      "default": 0
     },
     "last_sent_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Sent At"
     },
     "last_polled_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Polled At"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "owner_id",
     "email",
     "from_name",
     "provider",
     "reply_to",
     "signature",
     "smtp_host",
     "smtp_port",
     "smtp_security",
     "smtp_username",
     "imap_host",
     "imap_port",
     "imap_security",
     "imap_username",
     "has_imap",
     "daily_limit",
     "min_interval_seconds",
     "status",
     "last_error",
     "last_error_at",
     "verified_at",
     "sent_today",
     "last_sent_at",
     "last_polled_at",
     "created_at",
     "updated_at"
    ],
    "title": "MailboxRead"
   },
   "MailboxStatus": {
    "type": "string",
    "enum": [
     "active",
     "paused",
     "error"
    ],
    "title": "MailboxStatus",
    "description": "A connected sending mailbox. ``error`` means the last send or poll failed to log in."
   },
   "MailboxTestRequest": {
    "properties": {
     "from_name": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1,
      "title": "From Name"
     },
     "provider": {
      "type": "string",
      "enum": [
       "gmail",
       "outlook",
       "zoho",
       "custom"
      ],
      "title": "Provider",
      "default": "custom"
     },
     "reply_to": {
      "anyOf": [
       {
        "type": "string",
        "format": "email"
       },
       {
        "type": "null"
       }
      ],
      "title": "Reply To"
     },
     "signature": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2000
       },
       {
        "type": "null"
       }
      ],
      "title": "Signature"
     },
     "smtp_host": {
      "type": "string",
      "maxLength": 253,
      "minLength": 1,
      "title": "Smtp Host"
     },
     "smtp_port": {
      "type": "integer",
      "maximum": 65535.0,
      "minimum": 1.0,
      "title": "Smtp Port",
      "default": 587
     },
     "smtp_security": {
      "type": "string",
      "enum": [
       "starttls",
       "ssl",
       "none"
      ],
      "title": "Smtp Security",
      "default": "starttls"
     },
     "smtp_username": {
      "type": "string",
      "maxLength": 320,
      "minLength": 1,
      "title": "Smtp Username"
     },
     "imap_host": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 253
       },
       {
        "type": "null"
       }
      ],
      "title": "Imap Host"
     },
     "imap_port": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 65535.0,
        "minimum": 1.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Imap Port",
      "default": 993
     },
     "imap_security": {
      "type": "string",
      "enum": [
       "ssl",
       "starttls",
       "none"
      ],
      "title": "Imap Security",
      "default": "ssl"
     },
     "imap_username": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 320
       },
       {
        "type": "null"
       }
      ],
      "title": "Imap Username"
     },
     "daily_limit": {
      "type": "integer",
      "maximum": 5000.0,
      "minimum": 1.0,
      "title": "Daily Limit",
      "default": 50
     },
     "min_interval_seconds": {
      "type": "integer",
      "maximum": 86400.0,
      "minimum": 10.0,
      "title": "Min Interval Seconds",
      "default": 120
     },
     "email": {
      "type": "string",
      "format": "email",
      "title": "Email"
     },
     "smtp_password": {
      "type": "string",
      "maxLength": 512,
      "minLength": 1,
      "format": "password",
      "title": "Smtp Password",
      "writeOnly": true
     },
     "imap_password": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 512,
        "format": "password",
        "writeOnly": true
       },
       {
        "type": "null"
       }
      ],
      "title": "Imap Password"
     },
     "skip_test": {
      "type": "boolean",
      "title": "Skip Test",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "from_name",
     "smtp_host",
     "smtp_username",
     "email",
     "smtp_password"
    ],
    "title": "MailboxTestRequest"
   },
   "MailboxUpdate": {
    "properties": {
     "from_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 128,
        "minLength": 1
       },
       {
        "type": "null"
       }
      ],
      "title": "From Name"
     },
     "reply_to": {
      "anyOf": [
       {
        "type": "string",
        "format": "email"
       },
       {
        "type": "null"
       }
      ],
      "title": "Reply To"
     },
     "signature": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2000
       },
       {
        "type": "null"
       }
      ],
      "title": "Signature"
     },
     "smtp_host": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 253,
        "minLength": 1
       },
       {
        "type": "null"
       }
      ],
      "title": "Smtp Host"
     },
     "smtp_port": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 65535.0,
        "minimum": 1.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Smtp Port"
     },
     "smtp_security": {
      "anyOf": [
       {
        "type": "string",
        "enum": [
         "starttls",
         "ssl",
         "none"
        ]
       },
       {
        "type": "null"
       }
      ],
      "title": "Smtp Security"
     },
     "smtp_username": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 320,
        "minLength": 1
       },
       {
        "type": "null"
       }
      ],
      "title": "Smtp Username"
     },
     "smtp_password": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 512,
        "format": "password",
        "writeOnly": true
       },
       {
        "type": "null"
       }
      ],
      "title": "Smtp Password"
     },
     "imap_host": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 253
       },
       {
        "type": "null"
       }
      ],
      "title": "Imap Host"
     },
     "imap_port": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 65535.0,
        "minimum": 1.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Imap Port"
     },
     "imap_security": {
      "anyOf": [
       {
        "type": "string",
        "enum": [
         "starttls",
         "ssl",
         "none"
        ]
       },
       {
        "type": "null"
       }
      ],
      "title": "Imap Security"
     },
     "imap_username": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 320
       },
       {
        "type": "null"
       }
      ],
      "title": "Imap Username"
     },
     "imap_password": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 512,
        "format": "password",
        "writeOnly": true
       },
       {
        "type": "null"
       }
      ],
      "title": "Imap Password"
     },
     "daily_limit": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 5000.0,
        "minimum": 1.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Daily Limit"
     },
     "min_interval_seconds": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 86400.0,
        "minimum": 10.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Min Interval Seconds"
     },
     "status": {
      "anyOf": [
       {
        "type": "string",
        "enum": [
         "active",
         "paused"
        ]
       },
       {
        "type": "null"
       }
      ],
      "title": "Status"
     }
    },
    "type": "object",
    "title": "MailboxUpdate"
   },
   "MailboxWarmupRead": {
    "properties": {
     "mailbox_id": {
      "type": "string",
      "title": "Mailbox Id"
     },
     "email": {
      "type": "string",
      "title": "Email"
     },
     "provider": {
      "type": "string",
      "title": "Provider"
     },
     "configured_daily_limit": {
      "type": "integer",
      "title": "Configured Daily Limit"
     },
     "current_day": {
      "type": "integer",
      "title": "Current Day"
     },
     "recommended_daily_limit": {
      "type": "integer",
      "title": "Recommended Daily Limit"
     },
     "target_reply_rate_pct": {
      "type": "integer",
      "title": "Target Reply Rate Pct"
     },
     "bounce_rate_pct": {
      "type": "number",
      "title": "Bounce Rate Pct"
     },
     "reply_rate_pct": {
      "type": "number",
      "title": "Reply Rate Pct"
     },
     "health_score": {
      "type": "integer",
      "title": "Health Score"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "recommendations": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Recommendations"
     }
    },
    "type": "object",
    "required": [
     "mailbox_id",
     "email",
     "provider",
     "configured_daily_limit",
     "current_day",
     "recommended_daily_limit",
     "target_reply_rate_pct",
     "bounce_rate_pct",
     "reply_rate_pct",
     "health_score",
     "status",
     "recommendations"
    ],
    "title": "MailboxWarmupRead"
   },
   "MeResponse": {
    "properties": {
     "user": {
      "$ref": "#/components/schemas/UserRead"
     },
     "workspace": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/WorkspaceSummary"
       },
       {
        "type": "null"
       }
      ]
     },
     "permissions": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Permissions"
     },
     "workspaces": {
      "items": {
       "$ref": "#/components/schemas/WorkspaceSummary"
      },
      "type": "array",
      "title": "Workspaces"
     },
     "impersonated_by": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Impersonated By"
     }
    },
    "type": "object",
    "required": [
     "user",
     "workspace",
     "permissions",
     "workspaces"
    ],
    "title": "MeResponse"
   },
   "MemberRead": {
    "properties": {
     "user_id": {
      "type": "string",
      "format": "uuid",
      "title": "User Id"
     },
     "email": {
      "type": "string",
      "title": "Email"
     },
     "full_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Full Name"
     },
     "role": {
      "$ref": "#/components/schemas/UserRole"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "monthly_credit_limit": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Monthly Credit Limit"
     },
     "credits_spent_this_month": {
      "type": "integer",
      "title": "Credits Spent This Month"
     },
     "last_active_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Active At"
     },
     "joined_at": {
      "type": "string",
      "format": "date-time",
      "title": "Joined At"
     }
    },
    "type": "object",
    "required": [
     "user_id",
     "email",
     "full_name",
     "role",
     "status",
     "monthly_credit_limit",
     "credits_spent_this_month",
     "last_active_at",
     "joined_at"
    ],
    "title": "MemberRead"
   },
   "MemberUpdate": {
    "properties": {
     "role": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/UserRole"
       },
       {
        "type": "null"
       }
      ]
     },
     "monthly_credit_limit": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 1000000000.0,
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Monthly Credit Limit"
     },
     "clear_credit_limit": {
      "type": "boolean",
      "title": "Clear Credit Limit",
      "default": false
     },
     "active": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Active"
     }
    },
    "type": "object",
    "title": "MemberUpdate"
   },
   "MemberUsage": {
    "properties": {
     "user_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "User Id"
     },
     "email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Email"
     },
     "credits_spent": {
      "type": "integer",
      "title": "Credits Spent"
     }
    },
    "type": "object",
    "required": [
     "user_id",
     "email",
     "credits_spent"
    ],
    "title": "MemberUsage"
   },
   "MessageResponse": {
    "properties": {
     "message": {
      "type": "string",
      "title": "Message"
     }
    },
    "type": "object",
    "required": [
     "message"
    ],
    "title": "MessageResponse"
   },
   "OutreachMessageRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "sequence_id": {
      "type": "string",
      "format": "uuid",
      "title": "Sequence Id"
     },
     "enrollment_id": {
      "type": "string",
      "format": "uuid",
      "title": "Enrollment Id"
     },
     "lead_id": {
      "type": "string",
      "format": "uuid",
      "title": "Lead Id"
     },
     "mailbox_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Mailbox Id"
     },
     "step_position": {
      "type": "integer",
      "title": "Step Position"
     },
     "variant_key": {
      "type": "string",
      "title": "Variant Key"
     },
     "to_email": {
      "type": "string",
      "title": "To Email"
     },
     "from_email": {
      "type": "string",
      "title": "From Email"
     },
     "subject": {
      "type": "string",
      "title": "Subject"
     },
     "body_text": {
      "type": "string",
      "title": "Body Text"
     },
     "status": {
      "$ref": "#/components/schemas/OutreachMessageStatus"
     },
     "error": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Error"
     },
     "sent_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Sent At"
     },
     "opened_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Opened At"
     },
     "open_count": {
      "type": "integer",
      "title": "Open Count"
     },
     "clicked_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Clicked At"
     },
     "click_count": {
      "type": "integer",
      "title": "Click Count"
     },
     "replied_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Replied At"
     },
     "bounced_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Bounced At"
     },
     "bounce_reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Bounce Reason"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "sequence_id",
     "enrollment_id",
     "lead_id",
     "mailbox_id",
     "step_position",
     "variant_key",
     "to_email",
     "from_email",
     "subject",
     "body_text",
     "status",
     "error",
     "sent_at",
     "opened_at",
     "open_count",
     "clicked_at",
     "click_count",
     "replied_at",
     "bounced_at",
     "bounce_reason",
     "created_at"
    ],
    "title": "OutreachMessageRead"
   },
   "OutreachMessageStatus": {
    "type": "string",
    "enum": [
     "sending",
     "sent",
     "failed",
     "bounced"
    ],
    "title": "OutreachMessageStatus"
   },
   "OutreachOverview": {
    "properties": {
     "sent_today": {
      "type": "integer",
      "title": "Sent Today"
     },
     "mailbox_capacity_today": {
      "type": "integer",
      "title": "Mailbox Capacity Today"
     },
     "workspace_daily_cap": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Workspace Daily Cap"
     },
     "sequences_total": {
      "type": "integer",
      "title": "Sequences Total"
     },
     "sequences_active": {
      "type": "integer",
      "title": "Sequences Active"
     },
     "mailboxes_total": {
      "type": "integer",
      "title": "Mailboxes Total"
     },
     "mailboxes_with_errors": {
      "type": "integer",
      "title": "Mailboxes With Errors"
     },
     "active_enrollments": {
      "type": "integer",
      "title": "Active Enrollments"
     },
     "unread_replies": {
      "type": "integer",
      "title": "Unread Replies"
     },
     "open_tasks": {
      "type": "integer",
      "title": "Open Tasks"
     },
     "last_30_days": {
      "$ref": "#/components/schemas/OverviewTotals"
     },
     "series": {
      "items": {
       "$ref": "#/components/schemas/DayPoint"
      },
      "type": "array",
      "title": "Series"
     },
     "limits": {
      "type": "object",
      "title": "Limits"
     }
    },
    "type": "object",
    "required": [
     "sent_today",
     "mailbox_capacity_today",
     "workspace_daily_cap",
     "sequences_total",
     "sequences_active",
     "mailboxes_total",
     "mailboxes_with_errors",
     "active_enrollments",
     "unread_replies",
     "open_tasks",
     "last_30_days",
     "series",
     "limits"
    ],
    "title": "OutreachOverview"
   },
   "OutreachSettings-Input": {
    "properties": {
     "postal_address": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 500
       },
       {
        "type": "null"
       }
      ],
      "title": "Postal Address"
     },
     "unsubscribe_text": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Unsubscribe Text"
     }
    },
    "type": "object",
    "title": "OutreachSettings"
   },
   "OutreachSettings-Output": {
    "properties": {
     "postal_address": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 500
       },
       {
        "type": "null"
       }
      ],
      "title": "Postal Address"
     },
     "unsubscribe_text": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Unsubscribe Text"
     }
    },
    "type": "object",
    "required": [
     "postal_address",
     "unsubscribe_text"
    ],
    "title": "OutreachSettings"
   },
   "OverviewResponse": {
    "properties": {
     "tenants_total": {
      "type": "integer",
      "title": "Tenants Total"
     },
     "tenants_by_status": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "Tenants By Status"
     },
     "tenants_by_plan": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "Tenants By Plan"
     },
     "users_total": {
      "type": "integer",
      "title": "Users Total"
     },
     "signups_30d": {
      "type": "integer",
      "title": "Signups 30D"
     },
     "mrr_cents": {
      "type": "integer",
      "title": "Mrr Cents"
     },
     "open_invoices": {
      "type": "integer",
      "title": "Open Invoices"
     },
     "open_invoices_cents": {
      "type": "integer",
      "title": "Open Invoices Cents"
     },
     "credits_spent_30d": {
      "type": "integer",
      "title": "Credits Spent 30D"
     },
     "pending_dsr": {
      "type": "integer",
      "title": "Pending Dsr"
     },
     "failed_tenants": {
      "type": "integer",
      "title": "Failed Tenants"
     }
    },
    "type": "object",
    "required": [
     "tenants_total",
     "tenants_by_status",
     "tenants_by_plan",
     "users_total",
     "signups_30d",
     "mrr_cents",
     "open_invoices",
     "open_invoices_cents",
     "credits_spent_30d",
     "pending_dsr",
     "failed_tenants"
    ],
    "title": "OverviewResponse"
   },
   "OverviewTotals": {
    "properties": {
     "sent": {
      "type": "integer",
      "title": "Sent",
      "default": 0
     },
     "opened": {
      "type": "integer",
      "title": "Opened",
      "default": 0
     },
     "replied": {
      "type": "integer",
      "title": "Replied",
      "default": 0
     },
     "bounced": {
      "type": "integer",
      "title": "Bounced",
      "default": 0
     },
     "open_rate": {
      "type": "number",
      "title": "Open Rate",
      "default": 0.0
     },
     "reply_rate": {
      "type": "number",
      "title": "Reply Rate",
      "default": 0.0
     },
     "bounce_rate": {
      "type": "number",
      "title": "Bounce Rate",
      "default": 0.0
     }
    },
    "type": "object",
    "required": [
     "sent",
     "opened",
     "replied",
     "bounced",
     "open_rate",
     "reply_rate",
     "bounce_rate"
    ],
    "title": "OverviewTotals"
   },
   "PageStat": {
    "properties": {
     "path": {
      "type": "string",
      "title": "Path"
     },
     "views": {
      "type": "integer",
      "title": "Views"
     },
     "visitors": {
      "type": "integer",
      "title": "Visitors"
     },
     "avg_seconds": {
      "type": "integer",
      "title": "Avg Seconds"
     },
     "avg_scroll": {
      "type": "integer",
      "title": "Avg Scroll"
     }
    },
    "type": "object",
    "required": [
     "path",
     "views",
     "visitors",
     "avg_seconds",
     "avg_scroll"
    ],
    "title": "PageStat"
   },
   "Page_ActivityRead_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/ActivityRead"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[ActivityRead]"
   },
   "Page_AdminInvoiceRow_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/AdminInvoiceRow"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[AdminInvoiceRow]"
   },
   "Page_AdminUserRow_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/AdminUserRow"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[AdminUserRow]"
   },
   "Page_AuditLogRead_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/AuditLogRead"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[AuditLogRead]"
   },
   "Page_BounceReportRead_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/BounceReportRead"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[BounceReportRead]"
   },
   "Page_CompanyRead_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/CompanyRead"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[CompanyRead]"
   },
   "Page_CreditEntryRead_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/CreditEntryRead"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[CreditEntryRead]"
   },
   "Page_DSRRead_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/DSRRead"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[DSRRead]"
   },
   "Page_DirectoryAdminRow_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/DirectoryAdminRow"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[DirectoryAdminRow]"
   },
   "Page_DirectoryCompanyRead_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/DirectoryCompanyRead"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[DirectoryCompanyRead]"
   },
   "Page_DirectoryLeadAdminRow_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/DirectoryLeadAdminRow"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[DirectoryLeadAdminRow]"
   },
   "Page_DirectoryLeadRead_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/DirectoryLeadRead"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[DirectoryLeadRead]"
   },
   "Page_EnrollmentRead_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/EnrollmentRead"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[EnrollmentRead]"
   },
   "Page_InvoiceRead_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/InvoiceRead"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[InvoiceRead]"
   },
   "Page_JobRead_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/JobRead"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[JobRead]"
   },
   "Page_LeadDetail_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/LeadDetail"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[LeadDetail]"
   },
   "Page_LeadRead_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/LeadRead"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[LeadRead]"
   },
   "Page_ListRead_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/ListRead"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[ListRead]"
   },
   "Page_OutreachMessageRead_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/OutreachMessageRead"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[OutreachMessageRead]"
   },
   "Page_ReplyRead_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/ReplyRead"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[ReplyRead]"
   },
   "Page_SearchFilterRead_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/SearchFilterRead"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[SearchFilterRead]"
   },
   "Page_SequenceRead_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/SequenceRead"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[SequenceRead]"
   },
   "Page_SuppressionRead_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/SuppressionRead"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[SuppressionRead]"
   },
   "Page_TaskRead_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/TaskRead"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[TaskRead]"
   },
   "Page_TenantRow_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/TenantRow"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[TenantRow]"
   },
   "Page_VisitRow_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/VisitRow"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[VisitRow]"
   },
   "Page_VisitorRow_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/VisitorRow"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[VisitorRow]"
   },
   "Page_WebhookDeliveryRead_": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/WebhookDeliveryRead"
      },
      "type": "array",
      "title": "Items"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total rows matching the filter, ignoring pagination"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     }
    },
    "type": "object",
    "required": [
     "items",
     "total",
     "limit",
     "offset"
    ],
    "title": "Page[WebhookDeliveryRead]"
   },
   "PipelineJobResponse": {
    "properties": {
     "job_id": {
      "type": "string",
      "format": "uuid",
      "title": "Job Id",
      "description": "Poll this at `poll_url`"
     },
     "status": {
      "$ref": "#/components/schemas/JobStatus"
     },
     "domain": {
      "type": "string",
      "title": "Domain"
     },
     "deduplicated": {
      "type": "boolean",
      "title": "Deduplicated",
      "description": "True when an identical run was already in flight",
      "default": false
     },
     "poll_url": {
      "type": "string",
      "title": "Poll Url"
     },
     "estimate": {
      "$ref": "#/components/schemas/CreditEstimate"
     }
    },
    "type": "object",
    "required": [
     "job_id",
     "status",
     "domain",
     "poll_url",
     "estimate"
    ],
    "title": "PipelineJobResponse",
    "description": "Tracking handle returned by the enrichment trigger."
   },
   "PlanRead": {
    "properties": {
     "code": {
      "type": "string",
      "title": "Code"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "currency": {
      "type": "string",
      "title": "Currency"
     },
     "price_monthly_cents": {
      "type": "integer",
      "title": "Price Monthly Cents"
     },
     "price_yearly_cents": {
      "type": "integer",
      "title": "Price Yearly Cents"
     },
     "monthly_credits": {
      "type": "integer",
      "title": "Monthly Credits"
     },
     "seats_included": {
      "type": "integer",
      "title": "Seats Included"
     },
     "rate_limit_per_minute": {
      "type": "integer",
      "title": "Rate Limit Per Minute"
     },
     "features": {
      "type": "object",
      "title": "Features"
     },
     "is_public": {
      "type": "boolean",
      "title": "Is Public"
     },
     "is_active": {
      "type": "boolean",
      "title": "Is Active"
     },
     "sort_order": {
      "type": "integer",
      "title": "Sort Order"
     }
    },
    "type": "object",
    "required": [
     "code",
     "name",
     "description",
     "currency",
     "price_monthly_cents",
     "price_yearly_cents",
     "monthly_credits",
     "seats_included",
     "rate_limit_per_minute",
     "features",
     "is_public",
     "is_active",
     "sort_order"
    ],
    "title": "PlanRead"
   },
   "PlanUpsert": {
    "properties": {
     "code": {
      "type": "string",
      "pattern": "^[a-z][a-z0-9_]{1,31}$",
      "title": "Code"
     },
     "name": {
      "type": "string",
      "maxLength": 64,
      "minLength": 1,
      "title": "Name"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "currency": {
      "type": "string",
      "maxLength": 3,
      "minLength": 3,
      "title": "Currency",
      "default": "usd"
     },
     "price_monthly_cents": {
      "type": "integer",
      "maximum": 100000000000.0,
      "minimum": 0.0,
      "title": "Price Monthly Cents"
     },
     "price_yearly_cents": {
      "type": "integer",
      "maximum": 100000000000.0,
      "minimum": 0.0,
      "title": "Price Yearly Cents"
     },
     "monthly_credits": {
      "type": "integer",
      "maximum": 1000000000.0,
      "minimum": 0.0,
      "title": "Monthly Credits"
     },
     "seats_included": {
      "type": "integer",
      "maximum": 100000000.0,
      "minimum": 1.0,
      "title": "Seats Included"
     },
     "rate_limit_per_minute": {
      "type": "integer",
      "maximum": 1000000.0,
      "minimum": 1.0,
      "title": "Rate Limit Per Minute"
     },
     "features": {
      "type": "object",
      "title": "Features"
     },
     "stripe_price_monthly_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Stripe Price Monthly Id"
     },
     "stripe_price_yearly_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Stripe Price Yearly Id"
     },
     "is_public": {
      "type": "boolean",
      "title": "Is Public",
      "default": true
     },
     "is_active": {
      "type": "boolean",
      "title": "Is Active",
      "default": true
     },
     "sort_order": {
      "type": "integer",
      "maximum": 10000.0,
      "minimum": -10000.0,
      "title": "Sort Order",
      "default": 0
     }
    },
    "type": "object",
    "required": [
     "code",
     "name",
     "price_monthly_cents",
     "price_yearly_cents",
     "monthly_credits",
     "seats_included",
     "rate_limit_per_minute"
    ],
    "title": "PlanUpsert"
   },
   "PreviewRead": {
    "properties": {
     "subject": {
      "type": "string",
      "title": "Subject"
     },
     "text": {
      "type": "string",
      "title": "Text"
     },
     "html": {
      "type": "string",
      "title": "Html"
     },
     "missing_variables": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Missing Variables"
     },
     "unknown_variables": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Unknown Variables"
     },
     "lead_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Lead Name"
     },
     "sample": {
      "type": "boolean",
      "title": "Sample"
     }
    },
    "type": "object",
    "required": [
     "subject",
     "text",
     "html",
     "missing_variables",
     "unknown_variables",
     "lead_name",
     "sample"
    ],
    "title": "PreviewRead"
   },
   "PreviewRequest": {
    "properties": {
     "step_position": {
      "type": "integer",
      "maximum": 20.0,
      "minimum": 1.0,
      "title": "Step Position",
      "default": 1
     },
     "variant_key": {
      "anyOf": [
       {
        "type": "string",
        "pattern": "^[A-E]$"
       },
       {
        "type": "null"
       }
      ],
      "title": "Variant Key"
     },
     "lead_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Lead Id"
     },
     "step": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/StepIn-Input"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "type": "object",
    "title": "PreviewRequest"
   },
   "PrivacyRequestCreate": {
    "properties": {
     "email": {
      "type": "string",
      "format": "email",
      "title": "Email"
     },
     "request_type": {
      "$ref": "#/components/schemas/DSRType"
     },
     "full_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Full Name"
     },
     "message": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 4000
       },
       {
        "type": "null"
       }
      ],
      "title": "Message"
     }
    },
    "type": "object",
    "required": [
     "email",
     "request_type"
    ],
    "title": "PrivacyRequestCreate"
   },
   "PrivacyRequestVerify": {
    "properties": {
     "token": {
      "type": "string",
      "title": "Token"
     }
    },
    "type": "object",
    "required": [
     "token"
    ],
    "title": "PrivacyRequestVerify"
   },
   "ProfileUpdate": {
    "properties": {
     "full_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Full Name"
     },
     "locale": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 16
       },
       {
        "type": "null"
       }
      ],
      "title": "Locale"
     },
     "timezone_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 64
       },
       {
        "type": "null"
       }
      ],
      "title": "Timezone Name"
     }
    },
    "type": "object",
    "title": "ProfileUpdate"
   },
   "ProviderCatalogItem": {
    "properties": {
     "slug": {
      "type": "string",
      "title": "Slug"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "category": {
      "type": "string",
      "title": "Category"
     },
     "website": {
      "type": "string",
      "title": "Website"
     },
     "description": {
      "type": "string",
      "title": "Description"
     },
     "capabilities": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Capabilities"
     },
     "auth_kind": {
      "type": "string",
      "title": "Auth Kind"
     },
     "inhouse_replacement": {
      "type": "string",
      "title": "Inhouse Replacement",
      "default": "Built-in native engine (0 third-party API cost)"
     },
     "zero_third_party_cost": {
      "type": "boolean",
      "title": "Zero Third Party Cost",
      "default": true
     },
     "connected": {
      "type": "boolean",
      "title": "Connected",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "slug",
     "name",
     "category",
     "website",
     "description",
     "capabilities",
     "auth_kind",
     "inhouse_replacement",
     "zero_third_party_cost",
     "connected"
    ],
    "title": "ProviderCatalogItem"
   },
   "ProviderConnectRequest": {
    "properties": {
     "api_key": {
      "type": "string",
      "maxLength": 512,
      "minLength": 4,
      "format": "password",
      "title": "Api Key",
      "writeOnly": true
     },
     "settings": {
      "type": "object",
      "title": "Settings"
     }
    },
    "type": "object",
    "required": [
     "api_key"
    ],
    "title": "ProviderConnectRequest"
   },
   "PurgeRequest": {
    "properties": {
     "confirm_slug": {
      "type": "string",
      "title": "Confirm Slug"
     }
    },
    "type": "object",
    "required": [
     "confirm_slug"
    ],
    "title": "PurgeRequest"
   },
   "PushRequest": {
    "properties": {
     "lead_ids": {
      "items": {
       "type": "string",
       "format": "uuid"
      },
      "type": "array",
      "maxItems": 1000,
      "title": "Lead Ids"
     },
     "list_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "List Id"
     }
    },
    "type": "object",
    "title": "PushRequest"
   },
   "PushResultRead": {
    "properties": {
     "pushed": {
      "type": "integer",
      "title": "Pushed"
     },
     "contacts_created": {
      "type": "integer",
      "title": "Contacts Created"
     },
     "contacts_updated": {
      "type": "integer",
      "title": "Contacts Updated"
     },
     "companies_created": {
      "type": "integer",
      "title": "Companies Created"
     },
     "companies_matched": {
      "type": "integer",
      "title": "Companies Matched"
     },
     "associations": {
      "type": "integer",
      "title": "Associations"
     },
     "skipped": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "Skipped"
     },
     "errors": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Errors"
     }
    },
    "type": "object",
    "required": [
     "pushed",
     "contacts_created",
     "contacts_updated",
     "companies_created",
     "companies_matched",
     "associations",
     "skipped",
     "errors"
    ],
    "title": "PushResultRead"
   },
   "RefreshRequest": {
    "properties": {
     "refresh_token": {
      "type": "string",
      "title": "Refresh Token"
     },
     "workspace_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Workspace Id",
      "description": "Switch workspace while refreshing"
     }
    },
    "type": "object",
    "required": [
     "refresh_token"
    ],
    "title": "RefreshRequest"
   },
   "ReplyCategory": {
    "type": "string",
    "enum": [
     "interested",
     "not_interested",
     "out_of_office",
     "unsubscribe",
     "neutral"
    ],
    "title": "ReplyCategory",
    "description": "Triage label on an inbound reply (rules first, editable by the user)."
   },
   "ReplyKind": {
    "type": "string",
    "enum": [
     "reply",
     "auto_reply",
     "bounce"
    ],
    "title": "ReplyKind"
   },
   "ReplyRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "message_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Message Id"
     },
     "enrollment_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Enrollment Id"
     },
     "sequence_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Sequence Id"
     },
     "lead_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Lead Id"
     },
     "mailbox_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Mailbox Id"
     },
     "kind": {
      "$ref": "#/components/schemas/ReplyKind"
     },
     "category": {
      "$ref": "#/components/schemas/ReplyCategory"
     },
     "from_email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "From Email"
     },
     "from_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "From Name"
     },
     "subject": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Subject"
     },
     "snippet": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Snippet"
     },
     "body_text": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Body Text"
     },
     "received_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Received At"
     },
     "is_read": {
      "type": "boolean",
      "title": "Is Read"
     },
     "response_text": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Response Text"
     },
     "responded_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Responded At"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "lead": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/LeadMini"
       },
       {
        "type": "null"
       }
      ]
     },
     "sequence_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Sequence Name"
     }
    },
    "type": "object",
    "required": [
     "id",
     "message_id",
     "enrollment_id",
     "sequence_id",
     "lead_id",
     "mailbox_id",
     "kind",
     "category",
     "from_email",
     "from_name",
     "subject",
     "snippet",
     "body_text",
     "received_at",
     "is_read",
     "response_text",
     "responded_at",
     "created_at",
     "lead",
     "sequence_name"
    ],
    "title": "ReplyRead"
   },
   "ReplyRespond": {
    "properties": {
     "body": {
      "type": "string",
      "maxLength": 20000,
      "minLength": 1,
      "title": "Body"
     }
    },
    "type": "object",
    "required": [
     "body"
    ],
    "title": "ReplyRespond"
   },
   "ReplyUpdate": {
    "properties": {
     "is_read": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Is Read"
     },
     "category": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/ReplyCategory"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "type": "object",
    "title": "ReplyUpdate"
   },
   "ResetPasswordRequest": {
    "properties": {
     "token": {
      "type": "string",
      "title": "Token"
     },
     "password": {
      "type": "string",
      "maxLength": 128,
      "minLength": 8,
      "title": "Password"
     }
    },
    "type": "object",
    "required": [
     "token",
     "password"
    ],
    "title": "ResetPasswordRequest"
   },
   "RevealLeadResponse": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/RevealedLead"
      },
      "type": "array",
      "title": "Items"
     },
     "credits_charged": {
      "type": "integer",
      "title": "Credits Charged"
     },
     "balance": {
      "type": "integer",
      "title": "Balance"
     }
    },
    "type": "object",
    "required": [
     "items",
     "credits_charged",
     "balance"
    ],
    "title": "RevealLeadResponse"
   },
   "RevealRequest": {
    "properties": {
     "ids": {
      "items": {
       "type": "string",
       "format": "uuid"
      },
      "type": "array",
      "maxItems": 50,
      "minItems": 1,
      "title": "Ids"
     }
    },
    "additionalProperties": false,
    "type": "object",
    "required": [
     "ids"
    ],
    "title": "RevealRequest"
   },
   "RevealResponse": {
    "properties": {
     "items": {
      "items": {
       "$ref": "#/components/schemas/RevealedCompany"
      },
      "type": "array",
      "title": "Items"
     },
     "credits_charged": {
      "type": "integer",
      "title": "Credits Charged"
     },
     "balance": {
      "type": "integer",
      "title": "Balance"
     }
    },
    "type": "object",
    "required": [
     "items",
     "credits_charged",
     "balance"
    ],
    "title": "RevealResponse"
   },
   "RevealedCompany": {
    "properties": {
     "directory_id": {
      "type": "string",
      "format": "uuid",
      "title": "Directory Id"
     },
     "company_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Company Id"
     },
     "domain": {
      "type": "string",
      "title": "Domain"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "credits_charged": {
      "type": "integer",
      "title": "Credits Charged",
      "default": 0
     }
    },
    "type": "object",
    "required": [
     "directory_id",
     "company_id",
     "domain",
     "status",
     "credits_charged"
    ],
    "title": "RevealedCompany"
   },
   "RevealedLead": {
    "properties": {
     "directory_lead_id": {
      "type": "string",
      "format": "uuid",
      "title": "Directory Lead Id"
     },
     "lead_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Lead Id"
     },
     "email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Email"
     },
     "company_domain": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Company Domain"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "credits_charged": {
      "type": "integer",
      "title": "Credits Charged",
      "default": 0
     }
    },
    "type": "object",
    "required": [
     "directory_lead_id",
     "lead_id",
     "email",
     "company_domain",
     "status",
     "credits_charged"
    ],
    "title": "RevealedLead"
   },
   "RevenueRange": {
    "type": "string",
    "enum": [
     "<1M",
     "1M-10M",
     "10M-50M",
     "50M-100M",
     "100M-500M",
     "500M-1B",
     ">1B",
     "unknown"
    ],
    "title": "RevenueRange"
   },
   "Schedule-Input": {
    "properties": {
     "days": {
      "items": {
       "type": "integer"
      },
      "type": "array",
      "maxItems": 7,
      "minItems": 1,
      "title": "Days"
     },
     "start": {
      "type": "string",
      "title": "Start",
      "default": "09:00"
     },
     "end": {
      "type": "string",
      "title": "End",
      "default": "17:00"
     }
    },
    "type": "object",
    "title": "Schedule"
   },
   "Schedule-Output": {
    "properties": {
     "days": {
      "items": {
       "type": "integer"
      },
      "type": "array",
      "maxItems": 7,
      "minItems": 1,
      "title": "Days"
     },
     "start": {
      "type": "string",
      "title": "Start",
      "default": "09:00"
     },
     "end": {
      "type": "string",
      "title": "End",
      "default": "17:00"
     }
    },
    "type": "object",
    "required": [
     "days",
     "start",
     "end"
    ],
    "title": "Schedule"
   },
   "SearchFilterCreate": {
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1,
      "title": "Name"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "criteria": {
      "$ref": "#/components/schemas/LeadSearchCriteria"
     },
     "icp_profile": {
      "anyOf": [
       {
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Icp Profile",
      "description": "Optional ICP overriding the default scoring weights"
     },
     "is_shared": {
      "type": "boolean",
      "title": "Is Shared",
      "default": false
     },
     "is_pinned": {
      "type": "boolean",
      "title": "Is Pinned",
      "default": false
     },
     "schedule_cron": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 64
       },
       {
        "type": "null"
       }
      ],
      "title": "Schedule Cron"
     },
     "notify_on_new_results": {
      "type": "boolean",
      "title": "Notify On New Results",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "name",
     "criteria"
    ],
    "title": "SearchFilterCreate"
   },
   "SearchFilterRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "user_id": {
      "type": "string",
      "format": "uuid",
      "title": "User Id"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "criteria": {
      "type": "object",
      "title": "Criteria"
     },
     "icp_profile": {
      "anyOf": [
       {
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Icp Profile"
     },
     "is_shared": {
      "type": "boolean",
      "title": "Is Shared"
     },
     "is_pinned": {
      "type": "boolean",
      "title": "Is Pinned"
     },
     "schedule_cron": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Schedule Cron"
     },
     "notify_on_new_results": {
      "type": "boolean",
      "title": "Notify On New Results"
     },
     "last_run_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Run At"
     },
     "last_result_count": {
      "type": "integer",
      "title": "Last Result Count"
     },
     "run_count": {
      "type": "integer",
      "title": "Run Count"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "user_id",
     "name",
     "description",
     "criteria",
     "icp_profile",
     "is_shared",
     "is_pinned",
     "schedule_cron",
     "notify_on_new_results",
     "last_run_at",
     "last_result_count",
     "run_count",
     "created_at",
     "updated_at"
    ],
    "title": "SearchFilterRead"
   },
   "SearchFilterUpdate": {
    "properties": {
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 128,
        "minLength": 1
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "criteria": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/LeadSearchCriteria"
       },
       {
        "type": "null"
       }
      ]
     },
     "icp_profile": {
      "anyOf": [
       {
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Icp Profile"
     },
     "is_shared": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Is Shared"
     },
     "is_pinned": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Is Pinned"
     },
     "schedule_cron": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 64
       },
       {
        "type": "null"
       }
      ],
      "title": "Schedule Cron"
     },
     "notify_on_new_results": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Notify On New Results"
     }
    },
    "type": "object",
    "title": "SearchFilterUpdate"
   },
   "SearchFiltersRead": {
    "properties": {
     "kind": {
      "type": "string",
      "enum": [
       "people",
       "companies"
      ],
      "title": "Kind"
     },
     "criteria": {
      "type": "object",
      "title": "Criteria"
     },
     "explanation": {
      "type": "string",
      "title": "Explanation"
     }
    },
    "type": "object",
    "required": [
     "kind",
     "criteria",
     "explanation"
    ],
    "title": "SearchFiltersRead"
   },
   "SearchFiltersRequest": {
    "properties": {
     "query": {
      "type": "string",
      "maxLength": 500,
      "minLength": 3,
      "title": "Query"
     },
     "kind": {
      "type": "string",
      "enum": [
       "people",
       "companies"
      ],
      "title": "Kind",
      "default": "people"
     }
    },
    "type": "object",
    "required": [
     "query"
    ],
    "title": "SearchFiltersRequest"
   },
   "SeedRequest": {
    "properties": {
     "domains": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "maxItems": 500,
      "minItems": 1,
      "title": "Domains"
     },
     "refresh": {
      "type": "boolean",
      "title": "Refresh",
      "default": false
     }
    },
    "additionalProperties": false,
    "type": "object",
    "required": [
     "domains"
    ],
    "title": "SeedRequest"
   },
   "SeedResponse": {
    "properties": {
     "queued": {
      "type": "integer",
      "title": "Queued"
     },
     "skipped_existing": {
      "type": "integer",
      "title": "Skipped Existing"
     },
     "skipped_suppressed": {
      "type": "integer",
      "title": "Skipped Suppressed"
     },
     "invalid": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Invalid"
     }
    },
    "type": "object",
    "required": [
     "queued",
     "skipped_existing",
     "skipped_suppressed",
     "invalid"
    ],
    "title": "SeedResponse"
   },
   "Seniority": {
    "type": "string",
    "enum": [
     "c_level",
     "vp",
     "director",
     "head",
     "manager",
     "senior",
     "entry",
     "intern",
     "owner",
     "partner",
     "unknown"
    ],
    "title": "Seniority"
   },
   "SequenceAnalytics": {
    "properties": {
     "stats": {
      "$ref": "#/components/schemas/SequenceStats"
     },
     "steps": {
      "items": {
       "$ref": "#/components/schemas/StepStats"
      },
      "type": "array",
      "title": "Steps"
     }
    },
    "type": "object",
    "required": [
     "stats",
     "steps"
    ],
    "title": "SequenceAnalytics"
   },
   "SequenceCreate": {
    "properties": {
     "description": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2000
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "timezone_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 64
       },
       {
        "type": "null"
       }
      ],
      "title": "Timezone Name"
     },
     "schedule": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Schedule-Input"
       },
       {
        "type": "null"
       }
      ]
     },
     "use_lead_timezone": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Use Lead Timezone"
     },
     "stop_on_reply": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Stop On Reply"
     },
     "stop_on_company_reply": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Stop On Company Reply"
     },
     "track_opens": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Track Opens"
     },
     "track_clicks": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Track Clicks"
     },
     "allow_risky": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Allow Risky"
     },
     "allow_unverified": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Allow Unverified"
     },
     "mailbox_ids": {
      "anyOf": [
       {
        "items": {
         "type": "string",
         "format": "uuid"
        },
        "type": "array",
        "maxItems": 50
       },
       {
        "type": "null"
       }
      ],
      "title": "Mailbox Ids"
     },
     "name": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1,
      "title": "Name"
     },
     "steps": {
      "items": {
       "$ref": "#/components/schemas/StepIn-Input"
      },
      "type": "array",
      "maxItems": 20,
      "title": "Steps"
     }
    },
    "type": "object",
    "required": [
     "name"
    ],
    "title": "SequenceCreate"
   },
   "SequenceDetail": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "owner_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Owner Id"
     },
     "status": {
      "$ref": "#/components/schemas/SequenceStatus"
     },
     "timezone_name": {
      "type": "string",
      "title": "Timezone Name"
     },
     "schedule": {
      "$ref": "#/components/schemas/Schedule-Output"
     },
     "use_lead_timezone": {
      "type": "boolean",
      "title": "Use Lead Timezone"
     },
     "stop_on_reply": {
      "type": "boolean",
      "title": "Stop On Reply"
     },
     "stop_on_company_reply": {
      "type": "boolean",
      "title": "Stop On Company Reply"
     },
     "track_opens": {
      "type": "boolean",
      "title": "Track Opens"
     },
     "track_clicks": {
      "type": "boolean",
      "title": "Track Clicks"
     },
     "allow_risky": {
      "type": "boolean",
      "title": "Allow Risky"
     },
     "allow_unverified": {
      "type": "boolean",
      "title": "Allow Unverified"
     },
     "activated_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Activated At"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
     },
     "mailbox_ids": {
      "items": {
       "type": "string",
       "format": "uuid"
      },
      "type": "array",
      "title": "Mailbox Ids"
     },
     "step_count": {
      "type": "integer",
      "title": "Step Count",
      "default": 0
     },
     "stats": {
      "$ref": "#/components/schemas/SequenceStats"
     },
     "steps": {
      "items": {
       "$ref": "#/components/schemas/StepRead"
      },
      "type": "array",
      "title": "Steps"
     }
    },
    "type": "object",
    "required": [
     "id",
     "name",
     "description",
     "owner_id",
     "status",
     "timezone_name",
     "schedule",
     "use_lead_timezone",
     "stop_on_reply",
     "stop_on_company_reply",
     "track_opens",
     "track_clicks",
     "allow_risky",
     "allow_unverified",
     "activated_at",
     "created_at",
     "updated_at",
     "mailbox_ids",
     "step_count",
     "stats",
     "steps"
    ],
    "title": "SequenceDetail"
   },
   "SequenceRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "owner_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Owner Id"
     },
     "status": {
      "$ref": "#/components/schemas/SequenceStatus"
     },
     "timezone_name": {
      "type": "string",
      "title": "Timezone Name"
     },
     "schedule": {
      "$ref": "#/components/schemas/Schedule-Output"
     },
     "use_lead_timezone": {
      "type": "boolean",
      "title": "Use Lead Timezone"
     },
     "stop_on_reply": {
      "type": "boolean",
      "title": "Stop On Reply"
     },
     "stop_on_company_reply": {
      "type": "boolean",
      "title": "Stop On Company Reply"
     },
     "track_opens": {
      "type": "boolean",
      "title": "Track Opens"
     },
     "track_clicks": {
      "type": "boolean",
      "title": "Track Clicks"
     },
     "allow_risky": {
      "type": "boolean",
      "title": "Allow Risky"
     },
     "allow_unverified": {
      "type": "boolean",
      "title": "Allow Unverified"
     },
     "activated_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Activated At"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
     },
     "mailbox_ids": {
      "items": {
       "type": "string",
       "format": "uuid"
      },
      "type": "array",
      "title": "Mailbox Ids"
     },
     "step_count": {
      "type": "integer",
      "title": "Step Count",
      "default": 0
     },
     "stats": {
      "$ref": "#/components/schemas/SequenceStats"
     }
    },
    "type": "object",
    "required": [
     "id",
     "name",
     "description",
     "owner_id",
     "status",
     "timezone_name",
     "schedule",
     "use_lead_timezone",
     "stop_on_reply",
     "stop_on_company_reply",
     "track_opens",
     "track_clicks",
     "allow_risky",
     "allow_unverified",
     "activated_at",
     "created_at",
     "updated_at",
     "mailbox_ids",
     "step_count",
     "stats"
    ],
    "title": "SequenceRead"
   },
   "SequenceStats": {
    "properties": {
     "enrolled": {
      "type": "integer",
      "title": "Enrolled",
      "default": 0
     },
     "active": {
      "type": "integer",
      "title": "Active",
      "default": 0
     },
     "completed": {
      "type": "integer",
      "title": "Completed",
      "default": 0
     },
     "replied": {
      "type": "integer",
      "title": "Replied",
      "default": 0
     },
     "bounced": {
      "type": "integer",
      "title": "Bounced",
      "default": 0
     },
     "unsubscribed": {
      "type": "integer",
      "title": "Unsubscribed",
      "default": 0
     },
     "sent": {
      "type": "integer",
      "title": "Sent",
      "default": 0
     },
     "opened": {
      "type": "integer",
      "title": "Opened",
      "default": 0
     },
     "clicked": {
      "type": "integer",
      "title": "Clicked",
      "default": 0
     },
     "replies": {
      "type": "integer",
      "title": "Replies",
      "default": 0
     },
     "open_rate": {
      "type": "number",
      "title": "Open Rate",
      "default": 0.0
     },
     "click_rate": {
      "type": "number",
      "title": "Click Rate",
      "default": 0.0
     },
     "reply_rate": {
      "type": "number",
      "title": "Reply Rate",
      "default": 0.0
     },
     "bounce_rate": {
      "type": "number",
      "title": "Bounce Rate",
      "default": 0.0
     },
     "by_status": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "By Status"
     }
    },
    "type": "object",
    "required": [
     "enrolled",
     "active",
     "completed",
     "replied",
     "bounced",
     "unsubscribed",
     "sent",
     "opened",
     "clicked",
     "replies",
     "open_rate",
     "click_rate",
     "reply_rate",
     "bounce_rate",
     "by_status"
    ],
    "title": "SequenceStats"
   },
   "SequenceStatus": {
    "type": "string",
    "enum": [
     "draft",
     "active",
     "paused",
     "archived"
    ],
    "title": "SequenceStatus"
   },
   "SequenceUpdate": {
    "properties": {
     "description": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2000
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "timezone_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 64
       },
       {
        "type": "null"
       }
      ],
      "title": "Timezone Name"
     },
     "schedule": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/Schedule-Input"
       },
       {
        "type": "null"
       }
      ]
     },
     "use_lead_timezone": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Use Lead Timezone"
     },
     "stop_on_reply": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Stop On Reply"
     },
     "stop_on_company_reply": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Stop On Company Reply"
     },
     "track_opens": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Track Opens"
     },
     "track_clicks": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Track Clicks"
     },
     "allow_risky": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Allow Risky"
     },
     "allow_unverified": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Allow Unverified"
     },
     "mailbox_ids": {
      "anyOf": [
       {
        "items": {
         "type": "string",
         "format": "uuid"
        },
        "type": "array",
        "maxItems": 50
       },
       {
        "type": "null"
       }
      ],
      "title": "Mailbox Ids"
     },
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 128,
        "minLength": 1
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     }
    },
    "type": "object",
    "title": "SequenceUpdate"
   },
   "SeriesPoint": {
    "properties": {
     "day": {
      "type": "string",
      "title": "Day"
     },
     "visitors": {
      "type": "integer",
      "title": "Visitors"
     },
     "visits": {
      "type": "integer",
      "title": "Visits"
     },
     "pageviews": {
      "type": "integer",
      "title": "Pageviews"
     }
    },
    "type": "object",
    "required": [
     "day",
     "visitors",
     "visits",
     "pageviews"
    ],
    "title": "SeriesPoint"
   },
   "SessionRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "expires_at": {
      "type": "string",
      "format": "date-time",
      "title": "Expires At"
     },
     "user_agent": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "User Agent"
     },
     "ip_address": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ip Address"
     },
     "current": {
      "type": "boolean",
      "title": "Current"
     }
    },
    "type": "object",
    "required": [
     "id",
     "created_at",
     "expires_at",
     "user_agent",
     "ip_address",
     "current"
    ],
    "title": "SessionRead"
   },
   "SignalIngestRequest": {
    "properties": {
     "provider": {
      "type": "string",
      "maxLength": 32,
      "minLength": 2,
      "title": "Provider"
     },
     "leads": {
      "items": {
       "$ref": "#/components/schemas/SignalLeadItem"
      },
      "type": "array",
      "maxItems": 500,
      "minItems": 1,
      "title": "Leads"
     }
    },
    "type": "object",
    "required": [
     "provider",
     "leads"
    ],
    "title": "SignalIngestRequest"
   },
   "SignalIngestResponse": {
    "properties": {
     "provider": {
      "type": "string",
      "title": "Provider"
     },
     "ingested_workspace": {
      "type": "integer",
      "title": "Ingested Workspace"
     },
     "synced_common_db": {
      "type": "integer",
      "title": "Synced Common Db"
     },
     "skipped_suppressed": {
      "type": "integer",
      "title": "Skipped Suppressed"
     }
    },
    "type": "object",
    "required": [
     "provider",
     "ingested_workspace",
     "synced_common_db",
     "skipped_suppressed"
    ],
    "title": "SignalIngestResponse"
   },
   "SignalLeadItem": {
    "properties": {
     "email": {
      "type": "string",
      "maxLength": 320,
      "minLength": 3,
      "title": "Email"
     },
     "full_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Full Name"
     },
     "first_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 128
       },
       {
        "type": "null"
       }
      ],
      "title": "First Name"
     },
     "last_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 128
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Name"
     },
     "title": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "phone": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 64
       },
       {
        "type": "null"
       }
      ],
      "title": "Phone"
     },
     "linkedin_url": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 512
       },
       {
        "type": "null"
       }
      ],
      "title": "Linkedin Url"
     },
     "company_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Company Name"
     },
     "company_domain": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 253
       },
       {
        "type": "null"
       }
      ],
      "title": "Company Domain"
     },
     "country": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2
       },
       {
        "type": "null"
       }
      ],
      "title": "Country"
     },
     "region": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 128
       },
       {
        "type": "null"
       }
      ],
      "title": "Region"
     },
     "city": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 128
       },
       {
        "type": "null"
       }
      ],
      "title": "City"
     },
     "email_status": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 32
       },
       {
        "type": "null"
       }
      ],
      "title": "Email Status"
     },
     "signal_type": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 64
       },
       {
        "type": "null"
       }
      ],
      "title": "Signal Type"
     }
    },
    "type": "object",
    "required": [
     "email"
    ],
    "title": "SignalLeadItem"
   },
   "SortSpec": {
    "properties": {
     "field": {
      "type": "string",
      "title": "Field",
      "default": "icp_score"
     },
     "direction": {
      "type": "string",
      "enum": [
       "asc",
       "desc"
      ],
      "title": "Direction",
      "default": "desc"
     }
    },
    "type": "object",
    "title": "SortSpec"
   },
   "StatusChange": {
    "properties": {
     "reason": {
      "type": "string",
      "maxLength": 1000,
      "minLength": 3,
      "title": "Reason"
     }
    },
    "type": "object",
    "required": [
     "reason"
    ],
    "title": "StatusChange"
   },
   "StepIn-Input": {
    "properties": {
     "id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Id"
     },
     "kind": {
      "$ref": "#/components/schemas/StepKind",
      "default": "email"
     },
     "delay_days": {
      "type": "integer",
      "maximum": 365.0,
      "minimum": 0.0,
      "title": "Delay Days",
      "default": 0
     },
     "delay_hours": {
      "type": "integer",
      "maximum": 23.0,
      "minimum": 0.0,
      "title": "Delay Hours",
      "default": 0
     },
     "thread_reply": {
      "type": "boolean",
      "title": "Thread Reply",
      "default": true
     },
     "variants": {
      "items": {
       "$ref": "#/components/schemas/StepVariant-Input"
      },
      "type": "array",
      "maxItems": 5,
      "title": "Variants"
     },
     "task_note": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 4000
       },
       {
        "type": "null"
       }
      ],
      "title": "Task Note"
     }
    },
    "type": "object",
    "title": "StepIn"
   },
   "StepIn-Output": {
    "properties": {
     "id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Id"
     },
     "kind": {
      "$ref": "#/components/schemas/StepKind",
      "default": "email"
     },
     "delay_days": {
      "type": "integer",
      "maximum": 365.0,
      "minimum": 0.0,
      "title": "Delay Days",
      "default": 0
     },
     "delay_hours": {
      "type": "integer",
      "maximum": 23.0,
      "minimum": 0.0,
      "title": "Delay Hours",
      "default": 0
     },
     "thread_reply": {
      "type": "boolean",
      "title": "Thread Reply",
      "default": true
     },
     "variants": {
      "items": {
       "$ref": "#/components/schemas/StepVariant-Output"
      },
      "type": "array",
      "maxItems": 5,
      "title": "Variants"
     },
     "task_note": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 4000
       },
       {
        "type": "null"
       }
      ],
      "title": "Task Note"
     }
    },
    "type": "object",
    "title": "StepIn"
   },
   "StepKind": {
    "type": "string",
    "enum": [
     "email",
     "call",
     "linkedin",
     "task"
    ],
    "title": "StepKind",
    "description": "What a sequence step does. Everything but ``email`` becomes a task for a person."
   },
   "StepRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "position": {
      "type": "integer",
      "title": "Position"
     },
     "kind": {
      "$ref": "#/components/schemas/StepKind"
     },
     "delay_days": {
      "type": "integer",
      "title": "Delay Days"
     },
     "delay_hours": {
      "type": "integer",
      "title": "Delay Hours"
     },
     "thread_reply": {
      "type": "boolean",
      "title": "Thread Reply"
     },
     "variants": {
      "items": {
       "$ref": "#/components/schemas/StepVariant-Output"
      },
      "type": "array",
      "title": "Variants"
     },
     "task_note": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Task Note"
     }
    },
    "type": "object",
    "required": [
     "id",
     "position",
     "kind",
     "delay_days",
     "delay_hours",
     "thread_reply",
     "variants",
     "task_note"
    ],
    "title": "StepRead"
   },
   "StepStats": {
    "properties": {
     "position": {
      "type": "integer",
      "title": "Position"
     },
     "variant_key": {
      "type": "string",
      "title": "Variant Key"
     },
     "sent": {
      "type": "integer",
      "title": "Sent"
     },
     "opened": {
      "type": "integer",
      "title": "Opened"
     },
     "clicked": {
      "type": "integer",
      "title": "Clicked"
     },
     "replied": {
      "type": "integer",
      "title": "Replied"
     },
     "bounced": {
      "type": "integer",
      "title": "Bounced"
     }
    },
    "type": "object",
    "required": [
     "position",
     "variant_key",
     "sent",
     "opened",
     "clicked",
     "replied",
     "bounced"
    ],
    "title": "StepStats"
   },
   "StepVariant-Input": {
    "properties": {
     "key": {
      "type": "string",
      "pattern": "^[A-E]$",
      "title": "Key",
      "default": "A"
     },
     "subject": {
      "type": "string",
      "maxLength": 900,
      "title": "Subject",
      "default": ""
     },
     "body": {
      "type": "string",
      "maxLength": 20000,
      "title": "Body",
      "default": ""
     }
    },
    "type": "object",
    "title": "StepVariant"
   },
   "StepVariant-Output": {
    "properties": {
     "key": {
      "type": "string",
      "pattern": "^[A-E]$",
      "title": "Key",
      "default": "A"
     },
     "subject": {
      "type": "string",
      "maxLength": 900,
      "title": "Subject",
      "default": ""
     },
     "body": {
      "type": "string",
      "maxLength": 20000,
      "title": "Body",
      "default": ""
     }
    },
    "type": "object",
    "required": [
     "key",
     "subject",
     "body"
    ],
    "title": "StepVariant"
   },
   "StepsReplace": {
    "properties": {
     "steps": {
      "items": {
       "$ref": "#/components/schemas/StepIn-Input"
      },
      "type": "array",
      "maxItems": 20,
      "title": "Steps"
     }
    },
    "type": "object",
    "required": [
     "steps"
    ],
    "title": "StepsReplace"
   },
   "SubscriptionRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "plan_code": {
      "type": "string",
      "title": "Plan Code"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "billing_cycle": {
      "type": "string",
      "title": "Billing Cycle"
     },
     "provider": {
      "type": "string",
      "title": "Provider"
     },
     "seats": {
      "type": "integer",
      "title": "Seats"
     },
     "current_period_start": {
      "type": "string",
      "format": "date-time",
      "title": "Current Period Start"
     },
     "current_period_end": {
      "type": "string",
      "format": "date-time",
      "title": "Current Period End"
     },
     "cancel_at_period_end": {
      "type": "boolean",
      "title": "Cancel At Period End"
     },
     "canceled_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Canceled At"
     },
     "trial_ends_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Trial Ends At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "plan_code",
     "status",
     "billing_cycle",
     "provider",
     "seats",
     "current_period_start",
     "current_period_end",
     "cancel_at_period_end",
     "canceled_at",
     "trial_ends_at"
    ],
    "title": "SubscriptionRead"
   },
   "SuppressionCheck": {
    "properties": {
     "emails": {
      "items": {
       "type": "string",
       "format": "email"
      },
      "type": "array",
      "maxItems": 1000,
      "minItems": 1,
      "title": "Emails"
     }
    },
    "type": "object",
    "required": [
     "emails"
    ],
    "title": "SuppressionCheck"
   },
   "SuppressionCheckResult": {
    "properties": {
     "suppressed": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Suppressed"
     }
    },
    "type": "object",
    "required": [
     "suppressed"
    ],
    "title": "SuppressionCheckResult"
   },
   "SuppressionRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "scope": {
      "type": "string",
      "title": "Scope"
     },
     "value_hash": {
      "type": "string",
      "title": "Value Hash"
     },
     "reason": {
      "type": "string",
      "title": "Reason"
     },
     "source": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Source"
     },
     "tenant_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Tenant Id"
     },
     "note": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Note"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "scope",
     "value_hash",
     "reason",
     "source",
     "tenant_id",
     "note",
     "created_at"
    ],
    "title": "SuppressionRead"
   },
   "SuppressionReason": {
    "type": "string",
    "enum": [
     "opt_out",
     "erasure",
     "hard_bounce",
     "complaint",
     "legal"
    ],
    "title": "SuppressionReason"
   },
   "SuppressionUpload": {
    "properties": {
     "emails": {
      "items": {
       "type": "string",
       "format": "email"
      },
      "type": "array",
      "maxItems": 10000,
      "title": "Emails"
     },
     "domains": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "maxItems": 1000,
      "title": "Domains"
     },
     "reason": {
      "$ref": "#/components/schemas/SuppressionReason",
      "default": "opt_out"
     },
     "note": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 512
       },
       {
        "type": "null"
       }
      ],
      "title": "Note"
     }
    },
    "type": "object",
    "title": "SuppressionUpload"
   },
   "SuppressionUploadResult": {
    "properties": {
     "emails": {
      "type": "integer",
      "title": "Emails"
     },
     "domains": {
      "type": "integer",
      "title": "Domains"
     },
     "leads_marked_do_not_contact": {
      "type": "integer",
      "title": "Leads Marked Do Not Contact"
     }
    },
    "type": "object",
    "required": [
     "emails",
     "domains",
     "leads_marked_do_not_contact"
    ],
    "title": "SuppressionUploadResult"
   },
   "SwitchWorkspaceRequest": {
    "properties": {
     "workspace_id": {
      "type": "string",
      "format": "uuid",
      "title": "Workspace Id"
     },
     "refresh_token": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Refresh Token"
     }
    },
    "type": "object",
    "required": [
     "workspace_id"
    ],
    "title": "SwitchWorkspaceRequest"
   },
   "SystemStatus": {
    "properties": {
     "control_database": {
      "type": "boolean",
      "title": "Control Database"
     },
     "redis": {
      "type": "boolean",
      "title": "Redis"
     },
     "queues": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "Queues"
     },
     "events_stream_length": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Events Stream Length"
     },
     "outbox_pending": {
      "type": "integer",
      "title": "Outbox Pending",
      "default": 0
     },
     "outbox_dead": {
      "type": "integer",
      "title": "Outbox Dead",
      "default": 0
     },
     "tenant_schema_head": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Tenant Schema Head"
     },
     "tenants_behind_head": {
      "type": "integer",
      "title": "Tenants Behind Head"
     },
     "tenants_failed": {
      "type": "integer",
      "title": "Tenants Failed"
     },
     "version": {
      "type": "string",
      "title": "Version"
     },
     "environment": {
      "type": "string",
      "title": "Environment"
     }
    },
    "type": "object",
    "required": [
     "control_database",
     "redis",
     "queues",
     "events_stream_length",
     "tenant_schema_head",
     "tenants_behind_head",
     "tenants_failed",
     "version",
     "environment"
    ],
    "title": "SystemStatus"
   },
   "TakedownRequest": {
    "properties": {
     "reason": {
      "type": "string",
      "maxLength": 500,
      "minLength": 3,
      "title": "Reason"
     },
     "suppress_domain": {
      "type": "boolean",
      "title": "Suppress Domain",
      "default": true
     }
    },
    "additionalProperties": false,
    "type": "object",
    "required": [
     "reason"
    ],
    "title": "TakedownRequest"
   },
   "TargetType": {
    "type": "string",
    "enum": [
     "domain",
     "company_name",
     "email",
     "lead_id",
     "company_id"
    ],
    "title": "TargetType",
    "description": "What a job's ``target`` string denotes."
   },
   "TaskComplete": {
    "properties": {
     "skipped": {
      "type": "boolean",
      "title": "Skipped",
      "default": false
     }
    },
    "type": "object",
    "title": "TaskComplete"
   },
   "TaskRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "enrollment_id": {
      "type": "string",
      "format": "uuid",
      "title": "Enrollment Id"
     },
     "sequence_id": {
      "type": "string",
      "format": "uuid",
      "title": "Sequence Id"
     },
     "step_position": {
      "type": "integer",
      "title": "Step Position"
     },
     "lead_id": {
      "type": "string",
      "format": "uuid",
      "title": "Lead Id"
     },
     "assignee_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Assignee Id"
     },
     "kind": {
      "$ref": "#/components/schemas/StepKind"
     },
     "title": {
      "type": "string",
      "title": "Title"
     },
     "note": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Note"
     },
     "due_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Due At"
     },
     "status": {
      "$ref": "#/components/schemas/TaskStatus"
     },
     "completed_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Completed At"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "lead": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/LeadMini"
       },
       {
        "type": "null"
       }
      ]
     },
     "sequence_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Sequence Name"
     }
    },
    "type": "object",
    "required": [
     "id",
     "enrollment_id",
     "sequence_id",
     "step_position",
     "lead_id",
     "assignee_id",
     "kind",
     "title",
     "note",
     "due_at",
     "status",
     "completed_at",
     "created_at",
     "lead",
     "sequence_name"
    ],
    "title": "TaskRead"
   },
   "TaskStatus": {
    "type": "string",
    "enum": [
     "open",
     "done",
     "skipped"
    ],
    "title": "TaskStatus"
   },
   "TemplateCreate": {
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1,
      "title": "Name"
     },
     "category": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 64
       },
       {
        "type": "null"
       }
      ],
      "title": "Category"
     },
     "subject": {
      "type": "string",
      "maxLength": 900,
      "title": "Subject",
      "default": ""
     },
     "body": {
      "type": "string",
      "maxLength": 20000,
      "minLength": 1,
      "title": "Body"
     },
     "is_shared": {
      "type": "boolean",
      "title": "Is Shared",
      "default": true
     }
    },
    "type": "object",
    "required": [
     "name",
     "body"
    ],
    "title": "TemplateCreate"
   },
   "TemplateRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "category": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Category"
     },
     "subject": {
      "type": "string",
      "title": "Subject"
     },
     "body": {
      "type": "string",
      "title": "Body"
     },
     "owner_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Owner Id"
     },
     "is_shared": {
      "type": "boolean",
      "title": "Is Shared"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "name",
     "category",
     "subject",
     "body",
     "owner_id",
     "is_shared",
     "created_at",
     "updated_at"
    ],
    "title": "TemplateRead"
   },
   "TemplateUpdate": {
    "properties": {
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 128,
        "minLength": 1
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "category": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 64
       },
       {
        "type": "null"
       }
      ],
      "title": "Category"
     },
     "subject": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 900
       },
       {
        "type": "null"
       }
      ],
      "title": "Subject"
     },
     "body": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 20000,
        "minLength": 1
       },
       {
        "type": "null"
       }
      ],
      "title": "Body"
     },
     "is_shared": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Is Shared"
     }
    },
    "type": "object",
    "title": "TemplateUpdate"
   },
   "TenantCreate": {
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 255,
      "minLength": 2,
      "title": "Name"
     },
     "owner_email": {
      "type": "string",
      "format": "email",
      "title": "Owner Email"
     },
     "owner_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Owner Name"
     },
     "owner_password": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 128,
        "minLength": 8
       },
       {
        "type": "null"
       }
      ],
      "title": "Owner Password"
     },
     "plan_code": {
      "type": "string",
      "title": "Plan Code",
      "default": "free"
     }
    },
    "type": "object",
    "required": [
     "name",
     "owner_email"
    ],
    "title": "TenantCreate"
   },
   "TenantDatabaseInfo": {
    "properties": {
     "host": {
      "type": "string",
      "title": "Host"
     },
     "port": {
      "type": "integer",
      "title": "Port"
     },
     "database_name": {
      "type": "string",
      "title": "Database Name"
     },
     "username": {
      "type": "string",
      "title": "Username"
     },
     "schema_revision": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Schema Revision"
     },
     "schema_head": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Schema Head"
     },
     "last_migrated_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Migrated At"
     },
     "provision_error": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Provision Error"
     }
    },
    "type": "object",
    "required": [
     "host",
     "port",
     "database_name",
     "username",
     "schema_revision",
     "schema_head",
     "last_migrated_at",
     "provision_error"
    ],
    "title": "TenantDatabaseInfo"
   },
   "TenantDetail": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "slug": {
      "type": "string",
      "title": "Slug"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "plan": {
      "type": "string",
      "title": "Plan"
     },
     "owner_email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Owner Email"
     },
     "members": {
      "type": "integer",
      "title": "Members"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "trial_ends_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Trial Ends At"
     },
     "status_reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Status Reason"
     },
     "billing_email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Billing Email"
     },
     "country": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Country"
     },
     "seats_override": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Seats Override"
     },
     "features": {
      "type": "object",
      "title": "Features"
     },
     "feature_overrides": {
      "type": "object",
      "title": "Feature Overrides"
     },
     "settings": {
      "type": "object",
      "title": "Settings"
     },
     "database": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/TenantDatabaseInfo"
       },
       {
        "type": "null"
       }
      ]
     },
     "subscription": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/SubscriptionRead"
       },
       {
        "type": "null"
       }
      ]
     },
     "member_list": {
      "items": {
       "$ref": "#/components/schemas/TenantMember"
      },
      "type": "array",
      "title": "Member List"
     },
     "credit_balance": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Credit Balance"
     },
     "leads": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Leads"
     },
     "companies": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Companies"
     },
     "jobs_30d": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Jobs 30D"
     },
     "stripe_customer_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Stripe Customer Id"
     },
     "deleted_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Deleted At"
     },
     "purge_after": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Purge After"
     }
    },
    "type": "object",
    "required": [
     "id",
     "name",
     "slug",
     "status",
     "plan",
     "owner_email",
     "members",
     "created_at",
     "trial_ends_at",
     "status_reason",
     "billing_email",
     "country",
     "seats_override",
     "features",
     "feature_overrides",
     "settings",
     "database",
     "subscription",
     "member_list",
     "credit_balance",
     "leads",
     "companies",
     "jobs_30d",
     "stripe_customer_id",
     "deleted_at",
     "purge_after"
    ],
    "title": "TenantDetail"
   },
   "TenantMember": {
    "properties": {
     "user_id": {
      "type": "string",
      "format": "uuid",
      "title": "User Id"
     },
     "email": {
      "type": "string",
      "title": "Email"
     },
     "full_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Full Name"
     },
     "role": {
      "$ref": "#/components/schemas/UserRole"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "last_active_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Active At"
     }
    },
    "type": "object",
    "required": [
     "user_id",
     "email",
     "full_name",
     "role",
     "status",
     "last_active_at"
    ],
    "title": "TenantMember"
   },
   "TenantRow": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "slug": {
      "type": "string",
      "title": "Slug"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "plan": {
      "type": "string",
      "title": "Plan"
     },
     "owner_email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Owner Email"
     },
     "members": {
      "type": "integer",
      "title": "Members"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "trial_ends_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Trial Ends At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "name",
     "slug",
     "status",
     "plan",
     "owner_email",
     "members",
     "created_at",
     "trial_ends_at"
    ],
    "title": "TenantRow"
   },
   "TenantStatus": {
    "type": "string",
    "enum": [
     "provisioning",
     "active",
     "suspended",
     "failed",
     "deleted",
     "purged"
    ],
    "title": "TenantStatus",
    "description": "Lifecycle of a workspace and its database.\n\n``provisioning`` \u2192 ``active`` is the happy path. ``failed`` means the\ndatabase could not be created; a superadmin can retry. ``suspended``\nblocks every request but keeps the data. ``deleted`` is soft: the\ndatabase is kept for ``TENANT_PURGE_AFTER_DAYS`` and then dropped, at\nwhich point the row moves to ``purged``."
   },
   "TenantUpdate": {
    "properties": {
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255,
        "minLength": 2
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "plan_code": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Plan Code"
     },
     "billing_cycle": {
      "$ref": "#/components/schemas/BillingCycle",
      "default": "monthly"
     },
     "seats_override": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 100000000.0,
        "minimum": 1.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Seats Override"
     },
     "clear_seats_override": {
      "type": "boolean",
      "title": "Clear Seats Override",
      "default": false
     },
     "feature_overrides": {
      "anyOf": [
       {
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Feature Overrides"
     },
     "billing_email": {
      "anyOf": [
       {
        "type": "string",
        "format": "email"
       },
       {
        "type": "null"
       }
      ],
      "title": "Billing Email"
     }
    },
    "type": "object",
    "title": "TenantUpdate"
   },
   "TestSendRequest": {
    "properties": {
     "step_position": {
      "type": "integer",
      "maximum": 20.0,
      "minimum": 1.0,
      "title": "Step Position",
      "default": 1
     },
     "variant_key": {
      "anyOf": [
       {
        "type": "string",
        "pattern": "^[A-E]$"
       },
       {
        "type": "null"
       }
      ],
      "title": "Variant Key"
     },
     "lead_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Lead Id"
     },
     "step": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/StepIn-Input"
       },
       {
        "type": "null"
       }
      ]
     },
     "to_email": {
      "type": "string",
      "format": "email",
      "title": "To Email"
     },
     "mailbox_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Mailbox Id"
     }
    },
    "type": "object",
    "required": [
     "to_email"
    ],
    "title": "TestSendRequest"
   },
   "TokenResponse": {
    "properties": {
     "access_token": {
      "type": "string",
      "title": "Access Token"
     },
     "refresh_token": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Refresh Token"
     },
     "token_type": {
      "type": "string",
      "title": "Token Type",
      "default": "bearer"
     },
     "expires_in": {
      "type": "integer",
      "title": "Expires In",
      "description": "Access token lifetime in seconds"
     },
     "user": {
      "$ref": "#/components/schemas/UserRead"
     },
     "workspace": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/WorkspaceSummary"
       },
       {
        "type": "null"
       }
      ]
     },
     "workspaces": {
      "items": {
       "$ref": "#/components/schemas/WorkspaceSummary"
      },
      "type": "array",
      "title": "Workspaces"
     }
    },
    "type": "object",
    "required": [
     "access_token",
     "expires_in",
     "user",
     "workspace",
     "workspaces"
    ],
    "title": "TokenResponse"
   },
   "TopRow": {
    "properties": {
     "key": {
      "type": "string",
      "title": "Key"
     },
     "visits": {
      "type": "integer",
      "title": "Visits"
     },
     "visitors": {
      "type": "integer",
      "title": "Visitors"
     },
     "name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     }
    },
    "type": "object",
    "required": [
     "key",
     "visits",
     "visitors",
     "name"
    ],
    "title": "TopRow"
   },
   "Totals": {
    "properties": {
     "visitors": {
      "type": "integer",
      "title": "Visitors"
     },
     "visits": {
      "type": "integer",
      "title": "Visits"
     },
     "pageviews": {
      "type": "integer",
      "title": "Pageviews"
     },
     "avg_duration_seconds": {
      "type": "integer",
      "title": "Avg Duration Seconds"
     },
     "bounce_rate": {
      "type": "number",
      "title": "Bounce Rate"
     },
     "pages_per_visit": {
      "type": "number",
      "title": "Pages Per Visit"
     },
     "returning_visitors": {
      "type": "integer",
      "title": "Returning Visitors"
     },
     "live_visitors": {
      "type": "integer",
      "title": "Live Visitors"
     },
     "interactions": {
      "type": "integer",
      "title": "Interactions"
     }
    },
    "type": "object",
    "required": [
     "visitors",
     "visits",
     "pageviews",
     "avg_duration_seconds",
     "bounce_rate",
     "pages_per_visit",
     "returning_visitors",
     "live_visitors",
     "interactions"
    ],
    "title": "Totals"
   },
   "TransferOwnershipRequest": {
    "properties": {
     "user_id": {
      "type": "string",
      "format": "uuid",
      "title": "User Id"
     }
    },
    "type": "object",
    "required": [
     "user_id"
    ],
    "title": "TransferOwnershipRequest"
   },
   "UnsubscribeInfo": {
    "properties": {
     "email_masked": {
      "type": "string",
      "title": "Email Masked"
     },
     "sender": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Sender"
     },
     "unsubscribed": {
      "type": "boolean",
      "title": "Unsubscribed"
     }
    },
    "type": "object",
    "required": [
     "email_masked",
     "sender",
     "unsubscribed"
    ],
    "title": "UnsubscribeInfo"
   },
   "UsagePoint": {
    "properties": {
     "day": {
      "type": "string",
      "format": "date",
      "title": "Day"
     },
     "credits_spent": {
      "type": "integer",
      "title": "Credits Spent"
     },
     "credits_granted": {
      "type": "integer",
      "title": "Credits Granted"
     }
    },
    "type": "object",
    "required": [
     "day",
     "credits_spent",
     "credits_granted"
    ],
    "title": "UsagePoint"
   },
   "UsageResponse": {
    "properties": {
     "days": {
      "type": "integer",
      "title": "Days"
     },
     "credits_spent": {
      "type": "integer",
      "title": "Credits Spent"
     },
     "credits_granted": {
      "type": "integer",
      "title": "Credits Granted"
     },
     "by_reason": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "By Reason"
     },
     "by_member": {
      "items": {
       "$ref": "#/components/schemas/MemberUsage"
      },
      "type": "array",
      "title": "By Member"
     },
     "series": {
      "items": {
       "$ref": "#/components/schemas/UsagePoint"
      },
      "type": "array",
      "title": "Series"
     },
     "leads_total": {
      "type": "integer",
      "title": "Leads Total"
     },
     "leads_created": {
      "type": "integer",
      "title": "Leads Created"
     },
     "companies_total": {
      "type": "integer",
      "title": "Companies Total"
     },
     "jobs_succeeded": {
      "type": "integer",
      "title": "Jobs Succeeded"
     },
     "jobs_failed": {
      "type": "integer",
      "title": "Jobs Failed"
     }
    },
    "type": "object",
    "required": [
     "days",
     "credits_spent",
     "credits_granted",
     "by_reason",
     "by_member",
     "series",
     "leads_total",
     "leads_created",
     "companies_total",
     "jobs_succeeded",
     "jobs_failed"
    ],
    "title": "UsageResponse"
   },
   "UserLogin": {
    "properties": {
     "email": {
      "type": "string",
      "format": "email",
      "title": "Email"
     },
     "password": {
      "type": "string",
      "title": "Password"
     },
     "workspace_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Workspace Id",
      "description": "Workspace to open; defaults to the user's last one"
     }
    },
    "type": "object",
    "required": [
     "email",
     "password"
    ],
    "title": "UserLogin"
   },
   "UserRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "email": {
      "type": "string",
      "title": "Email"
     },
     "full_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Full Name"
     },
     "is_superadmin": {
      "type": "boolean",
      "title": "Is Superadmin"
     },
     "is_email_verified": {
      "type": "boolean",
      "title": "Is Email Verified"
     },
     "locale": {
      "type": "string",
      "title": "Locale"
     },
     "timezone_name": {
      "type": "string",
      "title": "Timezone Name"
     },
     "last_login_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Login At"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "terms_accepted_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Terms Accepted At"
     },
     "terms_version": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Terms Version"
     }
    },
    "type": "object",
    "required": [
     "id",
     "email",
     "full_name",
     "is_superadmin",
     "is_email_verified",
     "locale",
     "timezone_name",
     "last_login_at",
     "created_at"
    ],
    "title": "UserRead"
   },
   "UserRegister": {
    "properties": {
     "email": {
      "type": "string",
      "format": "email",
      "title": "Email"
     },
     "password": {
      "type": "string",
      "maxLength": 128,
      "minLength": 8,
      "title": "Password"
     },
     "full_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Full Name"
     },
     "workspace_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Workspace Name"
     },
     "company_name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Company Name"
     },
     "accept_terms": {
      "type": "boolean",
      "title": "Accept Terms",
      "description": "Must be true: the person agrees to the Terms of Service (with the Acceptable Use Policy and Data Processing Agreement) and has read the Privacy Policy. Recorded with the time and terms_version."
     },
     "terms_version": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 32,
        "pattern": "^[A-Za-z0-9._-]+$"
       },
       {
        "type": "null"
       }
      ],
      "title": "Terms Version",
      "description": "Version of the legal documents shown at sign-up; defaults to the current one"
     }
    },
    "type": "object",
    "required": [
     "email",
     "password",
     "accept_terms"
    ],
    "title": "UserRegister"
   },
   "UserRole": {
    "type": "string",
    "enum": [
     "owner",
     "admin",
     "member",
     "viewer"
    ],
    "title": "UserRole"
   },
   "ValidationError": {
    "properties": {
     "loc": {
      "items": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "integer"
        }
       ]
      },
      "type": "array",
      "title": "Location"
     },
     "msg": {
      "type": "string",
      "title": "Message"
     },
     "type": {
      "type": "string",
      "title": "Error Type"
     },
     "input": {
      "title": "Input"
     },
     "ctx": {
      "type": "object",
      "title": "Context"
     }
    },
    "type": "object",
    "required": [
     "loc",
     "msg",
     "type"
    ],
    "title": "ValidationError"
   },
   "VariableInfo": {
    "properties": {
     "name": {
      "type": "string",
      "title": "Name"
     },
     "description": {
      "type": "string",
      "title": "Description"
     },
     "example": {
      "type": "string",
      "title": "Example"
     }
    },
    "type": "object",
    "required": [
     "name",
     "description",
     "example"
    ],
    "title": "VariableInfo"
   },
   "VerifyEmailResponse": {
    "properties": {
     "email": {
      "type": "string",
      "title": "Email"
     },
     "status": {
      "$ref": "#/components/schemas/EmailStatus"
     },
     "confidence": {
      "type": "number",
      "maximum": 1.0,
      "minimum": 0.0,
      "title": "Confidence"
     },
     "is_deliverable": {
      "type": "boolean",
      "title": "Is Deliverable"
     },
     "is_role_based": {
      "type": "boolean",
      "title": "Is Role Based"
     },
     "is_disposable": {
      "type": "boolean",
      "title": "Is Disposable"
     },
     "is_free_provider": {
      "type": "boolean",
      "title": "Is Free Provider"
     },
     "is_catch_all": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Is Catch All"
     },
     "mx_host": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Mx Host"
     },
     "mx_provider": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Mx Provider"
     },
     "smtp_code": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Smtp Code"
     },
     "reasons": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Reasons"
     },
     "checked_at": {
      "type": "string",
      "format": "date-time",
      "title": "Checked At"
     },
     "from_cache": {
      "type": "boolean",
      "title": "From Cache",
      "default": false
     },
     "toxicity_score": {
      "type": "integer",
      "title": "Toxicity Score",
      "default": 0
     },
     "is_spamtrap": {
      "type": "boolean",
      "title": "Is Spamtrap",
      "default": false
     },
     "is_abuse": {
      "type": "boolean",
      "title": "Is Abuse",
      "default": false
     },
     "is_toxic": {
      "type": "boolean",
      "title": "Is Toxic",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "email",
     "status",
     "confidence",
     "is_deliverable",
     "is_role_based",
     "is_disposable",
     "is_free_provider",
     "is_catch_all",
     "mx_host",
     "mx_provider",
     "smtp_code",
     "checked_at"
    ],
    "title": "VerifyEmailResponse"
   },
   "VisitDetail": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "visitor_id": {
      "type": "string",
      "format": "uuid",
      "title": "Visitor Id"
     },
     "identified": {
      "type": "boolean",
      "title": "Identified"
     },
     "returning": {
      "type": "boolean",
      "title": "Returning"
     },
     "visitor_visits": {
      "type": "integer",
      "title": "Visitor Visits"
     },
     "user_email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "User Email"
     },
     "started_at": {
      "type": "string",
      "format": "date-time",
      "title": "Started At"
     },
     "last_activity_at": {
      "type": "string",
      "format": "date-time",
      "title": "Last Activity At"
     },
     "duration_seconds": {
      "type": "integer",
      "title": "Duration Seconds"
     },
     "pageviews": {
      "type": "integer",
      "title": "Pageviews"
     },
     "entry_path": {
      "type": "string",
      "title": "Entry Path"
     },
     "exit_path": {
      "type": "string",
      "title": "Exit Path"
     },
     "area": {
      "type": "string",
      "title": "Area"
     },
     "source": {
      "type": "string",
      "title": "Source"
     },
     "medium": {
      "type": "string",
      "title": "Medium"
     },
     "referrer": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Referrer"
     },
     "utm_campaign": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Utm Campaign"
     },
     "utm_source": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Utm Source"
     },
     "utm_medium": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Utm Medium"
     },
     "utm_term": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Utm Term"
     },
     "utm_content": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Utm Content"
     },
     "country": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Country"
     },
     "country_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Country Name"
     },
     "region": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Region"
     },
     "city": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "City"
     },
     "geo_source": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Geo Source"
     },
     "timezone": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Timezone"
     },
     "language": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Language"
     },
     "device": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Device"
     },
     "browser": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Browser"
     },
     "browser_version": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Browser Version"
     },
     "os": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Os"
     },
     "os_version": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Os Version"
     },
     "screen": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Screen"
     },
     "viewport": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Viewport"
     },
     "device_model": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Device Model"
     },
     "visit_number": {
      "type": "integer",
      "title": "Visit Number"
     },
     "asn": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Asn"
     },
     "network": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Network"
     },
     "ip_address": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ip Address"
     },
     "pages": {
      "items": {
       "$ref": "#/components/schemas/VisitPage"
      },
      "type": "array",
      "title": "Pages"
     }
    },
    "type": "object",
    "required": [
     "id",
     "visitor_id",
     "identified",
     "returning",
     "visitor_visits",
     "user_email",
     "started_at",
     "last_activity_at",
     "duration_seconds",
     "pageviews",
     "entry_path",
     "exit_path",
     "area",
     "source",
     "medium",
     "referrer",
     "utm_campaign",
     "utm_source",
     "utm_medium",
     "utm_term",
     "utm_content",
     "country",
     "country_name",
     "region",
     "city",
     "geo_source",
     "timezone",
     "language",
     "device",
     "browser",
     "browser_version",
     "os",
     "os_version",
     "screen",
     "viewport",
     "device_model",
     "visit_number",
     "asn",
     "network",
     "ip_address",
     "pages"
    ],
    "title": "VisitDetail"
   },
   "VisitEvent": {
    "properties": {
     "kind": {
      "type": "string",
      "title": "Kind"
     },
     "label": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Label"
     },
     "target": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Target"
     },
     "occurred_at": {
      "type": "string",
      "format": "date-time",
      "title": "Occurred At"
     }
    },
    "type": "object",
    "required": [
     "kind",
     "label",
     "target",
     "occurred_at"
    ],
    "title": "VisitEvent"
   },
   "VisitPage": {
    "properties": {
     "path": {
      "type": "string",
      "title": "Path"
     },
     "title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "area": {
      "type": "string",
      "title": "Area"
     },
     "viewed_at": {
      "type": "string",
      "format": "date-time",
      "title": "Viewed At"
     },
     "engaged_seconds": {
      "type": "integer",
      "title": "Engaged Seconds"
     },
     "max_scroll": {
      "type": "integer",
      "title": "Max Scroll"
     },
     "events": {
      "items": {
       "$ref": "#/components/schemas/VisitEvent"
      },
      "type": "array",
      "title": "Events"
     }
    },
    "type": "object",
    "required": [
     "path",
     "title",
     "area",
     "viewed_at",
     "engaged_seconds",
     "max_scroll",
     "events"
    ],
    "title": "VisitPage"
   },
   "VisitRow": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "visitor_id": {
      "type": "string",
      "format": "uuid",
      "title": "Visitor Id"
     },
     "identified": {
      "type": "boolean",
      "title": "Identified"
     },
     "returning": {
      "type": "boolean",
      "title": "Returning"
     },
     "visitor_visits": {
      "type": "integer",
      "title": "Visitor Visits"
     },
     "user_email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "User Email"
     },
     "started_at": {
      "type": "string",
      "format": "date-time",
      "title": "Started At"
     },
     "last_activity_at": {
      "type": "string",
      "format": "date-time",
      "title": "Last Activity At"
     },
     "duration_seconds": {
      "type": "integer",
      "title": "Duration Seconds"
     },
     "pageviews": {
      "type": "integer",
      "title": "Pageviews"
     },
     "entry_path": {
      "type": "string",
      "title": "Entry Path"
     },
     "exit_path": {
      "type": "string",
      "title": "Exit Path"
     },
     "area": {
      "type": "string",
      "title": "Area"
     },
     "source": {
      "type": "string",
      "title": "Source"
     },
     "medium": {
      "type": "string",
      "title": "Medium"
     },
     "referrer": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Referrer"
     },
     "utm_campaign": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Utm Campaign"
     },
     "utm_source": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Utm Source"
     },
     "utm_medium": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Utm Medium"
     },
     "utm_term": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Utm Term"
     },
     "utm_content": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Utm Content"
     },
     "country": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Country"
     },
     "country_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Country Name"
     },
     "region": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Region"
     },
     "city": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "City"
     },
     "geo_source": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Geo Source"
     },
     "timezone": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Timezone"
     },
     "language": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Language"
     },
     "device": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Device"
     },
     "browser": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Browser"
     },
     "browser_version": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Browser Version"
     },
     "os": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Os"
     },
     "os_version": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Os Version"
     },
     "screen": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Screen"
     },
     "viewport": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Viewport"
     },
     "device_model": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Device Model"
     },
     "visit_number": {
      "type": "integer",
      "title": "Visit Number"
     },
     "asn": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Asn"
     },
     "network": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Network"
     },
     "ip_address": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ip Address"
     }
    },
    "type": "object",
    "required": [
     "id",
     "visitor_id",
     "identified",
     "returning",
     "visitor_visits",
     "user_email",
     "started_at",
     "last_activity_at",
     "duration_seconds",
     "pageviews",
     "entry_path",
     "exit_path",
     "area",
     "source",
     "medium",
     "referrer",
     "utm_campaign",
     "utm_source",
     "utm_medium",
     "utm_term",
     "utm_content",
     "country",
     "country_name",
     "region",
     "city",
     "geo_source",
     "timezone",
     "language",
     "device",
     "browser",
     "browser_version",
     "os",
     "os_version",
     "screen",
     "viewport",
     "device_model",
     "visit_number",
     "asn",
     "network",
     "ip_address"
    ],
    "title": "VisitRow"
   },
   "VisitorDetail": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "identified": {
      "type": "boolean",
      "title": "Identified"
     },
     "user_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "User Id"
     },
     "user_email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "User Email"
     },
     "first_seen_at": {
      "type": "string",
      "format": "date-time",
      "title": "First Seen At"
     },
     "last_seen_at": {
      "type": "string",
      "format": "date-time",
      "title": "Last Seen At"
     },
     "live": {
      "type": "boolean",
      "title": "Live"
     },
     "visits_count": {
      "type": "integer",
      "title": "Visits Count"
     },
     "pageviews_count": {
      "type": "integer",
      "title": "Pageviews Count"
     },
     "total_seconds": {
      "type": "integer",
      "title": "Total Seconds"
     },
     "avg_visit_seconds": {
      "type": "integer",
      "title": "Avg Visit Seconds"
     },
     "longest_visit_seconds": {
      "type": "integer",
      "title": "Longest Visit Seconds"
     },
     "active_days": {
      "type": "integer",
      "title": "Active Days"
     },
     "distinct_pages": {
      "type": "integer",
      "title": "Distinct Pages"
     },
     "interactions": {
      "type": "integer",
      "title": "Interactions"
     },
     "first_source": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "First Source"
     },
     "first_referrer_domain": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "First Referrer Domain"
     },
     "first_referrer": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "First Referrer"
     },
     "first_utm_campaign": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "First Utm Campaign"
     },
     "landing_page": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Landing Page"
     },
     "country": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Country"
     },
     "country_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Country Name"
     },
     "region": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Region"
     },
     "city": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "City"
     },
     "network": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Network"
     },
     "device": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Device"
     },
     "device_model": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Device Model"
     },
     "browser": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Browser"
     },
     "os": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Os"
     },
     "email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Email"
     },
     "full_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Full Name"
     },
     "title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "phone": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Phone"
     },
     "linkedin_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Linkedin Url"
     },
     "company_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Company Name"
     },
     "company_domain": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Company Domain"
     },
     "timezone": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Timezone"
     },
     "language": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Language"
     },
     "locations": {
      "items": {
       "$ref": "#/components/schemas/VisitorLocation"
      },
      "type": "array",
      "title": "Locations"
     },
     "devices": {
      "items": {
       "$ref": "#/components/schemas/VisitorDevice"
      },
      "type": "array",
      "title": "Devices"
     },
     "sources": {
      "items": {
       "$ref": "#/components/schemas/VisitorSource"
      },
      "type": "array",
      "title": "Sources"
     },
     "pages": {
      "items": {
       "$ref": "#/components/schemas/VisitorPage"
      },
      "type": "array",
      "title": "Pages"
     },
     "visits": {
      "items": {
       "$ref": "#/components/schemas/VisitorVisit"
      },
      "type": "array",
      "title": "Visits"
     },
     "events": {
      "items": {
       "$ref": "#/components/schemas/VisitorEvent"
      },
      "type": "array",
      "title": "Events"
     }
    },
    "type": "object",
    "required": [
     "id",
     "identified",
     "user_id",
     "user_email",
     "first_seen_at",
     "last_seen_at",
     "live",
     "visits_count",
     "pageviews_count",
     "total_seconds",
     "avg_visit_seconds",
     "longest_visit_seconds",
     "active_days",
     "distinct_pages",
     "interactions",
     "first_source",
     "first_referrer_domain",
     "first_referrer",
     "first_utm_campaign",
     "landing_page",
     "country",
     "country_name",
     "region",
     "city",
     "network",
     "device",
     "device_model",
     "browser",
     "os",
     "email",
     "full_name",
     "title",
     "phone",
     "linkedin_url",
     "company_name",
     "company_domain",
     "timezone",
     "language",
     "locations",
     "devices",
     "sources",
     "pages",
     "visits",
     "events"
    ],
    "title": "VisitorDetail",
    "description": "Everything known about one visitor (latest 100 visits, 100 pages, 200 interactions)."
   },
   "VisitorDevice": {
    "properties": {
     "device": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Device"
     },
     "device_model": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Device Model"
     },
     "browser": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Browser"
     },
     "browser_version": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Browser Version"
     },
     "os": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Os"
     },
     "os_version": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Os Version"
     },
     "screen": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Screen"
     },
     "language": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Language"
     },
     "visits": {
      "type": "integer",
      "title": "Visits"
     },
     "last_seen_at": {
      "type": "string",
      "format": "date-time",
      "title": "Last Seen At"
     }
    },
    "type": "object",
    "required": [
     "device",
     "device_model",
     "browser",
     "browser_version",
     "os",
     "os_version",
     "screen",
     "language",
     "visits",
     "last_seen_at"
    ],
    "title": "VisitorDevice"
   },
   "VisitorEvent": {
    "properties": {
     "kind": {
      "type": "string",
      "title": "Kind"
     },
     "label": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Label"
     },
     "target": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Target"
     },
     "occurred_at": {
      "type": "string",
      "format": "date-time",
      "title": "Occurred At"
     },
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "visit_id": {
      "type": "string",
      "format": "uuid",
      "title": "Visit Id"
     },
     "path": {
      "type": "string",
      "title": "Path"
     }
    },
    "type": "object",
    "required": [
     "kind",
     "label",
     "target",
     "occurred_at",
     "id",
     "visit_id",
     "path"
    ],
    "title": "VisitorEvent"
   },
   "VisitorLocation": {
    "properties": {
     "country": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Country"
     },
     "country_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Country Name"
     },
     "region": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Region"
     },
     "city": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "City"
     },
     "geo_source": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Geo Source"
     },
     "timezone": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Timezone"
     },
     "network": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Network"
     },
     "asn": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Asn"
     },
     "ip_address": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ip Address"
     },
     "visits": {
      "type": "integer",
      "title": "Visits"
     },
     "last_seen_at": {
      "type": "string",
      "format": "date-time",
      "title": "Last Seen At"
     }
    },
    "type": "object",
    "required": [
     "country",
     "country_name",
     "region",
     "city",
     "geo_source",
     "timezone",
     "network",
     "asn",
     "ip_address",
     "visits",
     "last_seen_at"
    ],
    "title": "VisitorLocation"
   },
   "VisitorPage": {
    "properties": {
     "path": {
      "type": "string",
      "title": "Path"
     },
     "title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "views": {
      "type": "integer",
      "title": "Views"
     },
     "visits": {
      "type": "integer",
      "title": "Visits"
     },
     "seconds": {
      "type": "integer",
      "title": "Seconds"
     },
     "max_scroll": {
      "type": "integer",
      "title": "Max Scroll"
     },
     "first_viewed_at": {
      "type": "string",
      "format": "date-time",
      "title": "First Viewed At"
     },
     "last_viewed_at": {
      "type": "string",
      "format": "date-time",
      "title": "Last Viewed At"
     }
    },
    "type": "object",
    "required": [
     "path",
     "title",
     "views",
     "visits",
     "seconds",
     "max_scroll",
     "first_viewed_at",
     "last_viewed_at"
    ],
    "title": "VisitorPage"
   },
   "VisitorRow": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "identified": {
      "type": "boolean",
      "title": "Identified"
     },
     "user_email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "User Email"
     },
     "first_seen_at": {
      "type": "string",
      "format": "date-time",
      "title": "First Seen At"
     },
     "last_seen_at": {
      "type": "string",
      "format": "date-time",
      "title": "Last Seen At"
     },
     "live": {
      "type": "boolean",
      "title": "Live"
     },
     "visits_count": {
      "type": "integer",
      "title": "Visits Count"
     },
     "pageviews_count": {
      "type": "integer",
      "title": "Pageviews Count"
     },
     "period_visits": {
      "type": "integer",
      "title": "Period Visits"
     },
     "period_pageviews": {
      "type": "integer",
      "title": "Period Pageviews"
     },
     "period_seconds": {
      "type": "integer",
      "title": "Period Seconds"
     },
     "period_interactions": {
      "type": "integer",
      "title": "Period Interactions"
     },
     "first_source": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "First Source"
     },
     "first_referrer_domain": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "First Referrer Domain"
     },
     "first_utm_campaign": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "First Utm Campaign"
     },
     "last_visit_id": {
      "type": "string",
      "format": "uuid",
      "title": "Last Visit Id"
     },
     "last_source": {
      "type": "string",
      "title": "Last Source"
     },
     "last_medium": {
      "type": "string",
      "title": "Last Medium"
     },
     "last_path": {
      "type": "string",
      "title": "Last Path"
     },
     "country": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Country"
     },
     "country_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Country Name"
     },
     "region": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Region"
     },
     "city": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "City"
     },
     "network": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Network"
     },
     "asn": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Asn"
     },
     "ip_address": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ip Address"
     },
     "device": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Device"
     },
     "device_model": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Device Model"
     },
     "browser": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Browser"
     },
     "os": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Os"
     },
     "language": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Language"
     },
     "email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Email"
     },
     "full_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Full Name"
     },
     "title": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Title"
     },
     "phone": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Phone"
     },
     "linkedin_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Linkedin Url"
     },
     "company_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Company Name"
     },
     "company_domain": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Company Domain"
     },
     "timezone": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Timezone"
     }
    },
    "type": "object",
    "required": [
     "id",
     "identified",
     "user_email",
     "first_seen_at",
     "last_seen_at",
     "live",
     "visits_count",
     "pageviews_count",
     "period_visits",
     "period_pageviews",
     "period_seconds",
     "period_interactions",
     "first_source",
     "first_referrer_domain",
     "first_utm_campaign",
     "last_visit_id",
     "last_source",
     "last_medium",
     "last_path",
     "country",
     "country_name",
     "region",
     "city",
     "network",
     "asn",
     "ip_address",
     "device",
     "device_model",
     "browser",
     "os",
     "language",
     "email",
     "full_name",
     "title",
     "phone",
     "linkedin_url",
     "company_name",
     "company_domain",
     "timezone"
    ],
    "title": "VisitorRow",
    "description": "One visitor in the Visitors list; ``period_*`` counts cover the chosen period only."
   },
   "VisitorSource": {
    "properties": {
     "source": {
      "type": "string",
      "title": "Source"
     },
     "medium": {
      "type": "string",
      "title": "Medium"
     },
     "referrer_domain": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Referrer Domain"
     },
     "utm_campaign": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Utm Campaign"
     },
     "visits": {
      "type": "integer",
      "title": "Visits"
     },
     "last_seen_at": {
      "type": "string",
      "format": "date-time",
      "title": "Last Seen At"
     }
    },
    "type": "object",
    "required": [
     "source",
     "medium",
     "referrer_domain",
     "utm_campaign",
     "visits",
     "last_seen_at"
    ],
    "title": "VisitorSource"
   },
   "VisitorVisit": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "visitor_id": {
      "type": "string",
      "format": "uuid",
      "title": "Visitor Id"
     },
     "identified": {
      "type": "boolean",
      "title": "Identified"
     },
     "returning": {
      "type": "boolean",
      "title": "Returning"
     },
     "visitor_visits": {
      "type": "integer",
      "title": "Visitor Visits"
     },
     "user_email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "User Email"
     },
     "started_at": {
      "type": "string",
      "format": "date-time",
      "title": "Started At"
     },
     "last_activity_at": {
      "type": "string",
      "format": "date-time",
      "title": "Last Activity At"
     },
     "duration_seconds": {
      "type": "integer",
      "title": "Duration Seconds"
     },
     "pageviews": {
      "type": "integer",
      "title": "Pageviews"
     },
     "entry_path": {
      "type": "string",
      "title": "Entry Path"
     },
     "exit_path": {
      "type": "string",
      "title": "Exit Path"
     },
     "area": {
      "type": "string",
      "title": "Area"
     },
     "source": {
      "type": "string",
      "title": "Source"
     },
     "medium": {
      "type": "string",
      "title": "Medium"
     },
     "referrer": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Referrer"
     },
     "utm_campaign": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Utm Campaign"
     },
     "utm_source": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Utm Source"
     },
     "utm_medium": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Utm Medium"
     },
     "utm_term": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Utm Term"
     },
     "utm_content": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Utm Content"
     },
     "country": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Country"
     },
     "country_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Country Name"
     },
     "region": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Region"
     },
     "city": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "City"
     },
     "geo_source": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Geo Source"
     },
     "timezone": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Timezone"
     },
     "language": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Language"
     },
     "device": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Device"
     },
     "browser": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Browser"
     },
     "browser_version": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Browser Version"
     },
     "os": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Os"
     },
     "os_version": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Os Version"
     },
     "screen": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Screen"
     },
     "viewport": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Viewport"
     },
     "device_model": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Device Model"
     },
     "visit_number": {
      "type": "integer",
      "title": "Visit Number"
     },
     "asn": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Asn"
     },
     "network": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Network"
     },
     "ip_address": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ip Address"
     },
     "journey": {
      "items": {
       "$ref": "#/components/schemas/JourneyStep"
      },
      "type": "array",
      "title": "Journey"
     },
     "interactions": {
      "type": "integer",
      "title": "Interactions"
     }
    },
    "type": "object",
    "required": [
     "id",
     "visitor_id",
     "identified",
     "returning",
     "visitor_visits",
     "user_email",
     "started_at",
     "last_activity_at",
     "duration_seconds",
     "pageviews",
     "entry_path",
     "exit_path",
     "area",
     "source",
     "medium",
     "referrer",
     "utm_campaign",
     "utm_source",
     "utm_medium",
     "utm_term",
     "utm_content",
     "country",
     "country_name",
     "region",
     "city",
     "geo_source",
     "timezone",
     "language",
     "device",
     "browser",
     "browser_version",
     "os",
     "os_version",
     "screen",
     "viewport",
     "device_model",
     "visit_number",
     "asn",
     "network",
     "ip_address",
     "journey",
     "interactions"
    ],
    "title": "VisitorVisit"
   },
   "WebhookDeliveryDetail": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "endpoint_id": {
      "type": "string",
      "format": "uuid",
      "title": "Endpoint Id"
     },
     "event_id": {
      "type": "string",
      "title": "Event Id"
     },
     "event_type": {
      "type": "string",
      "title": "Event Type"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "attempts": {
      "type": "integer",
      "title": "Attempts"
     },
     "response_status": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Response Status"
     },
     "error": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Error"
     },
     "duration_ms": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Duration Ms"
     },
     "next_attempt_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Next Attempt At"
     },
     "delivered_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Delivered At"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "payload": {
      "type": "object",
      "title": "Payload"
     },
     "response_body": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Response Body"
     }
    },
    "type": "object",
    "required": [
     "id",
     "endpoint_id",
     "event_id",
     "event_type",
     "status",
     "attempts",
     "response_status",
     "error",
     "duration_ms",
     "next_attempt_at",
     "delivered_at",
     "created_at",
     "payload",
     "response_body"
    ],
    "title": "WebhookDeliveryDetail"
   },
   "WebhookDeliveryRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "endpoint_id": {
      "type": "string",
      "format": "uuid",
      "title": "Endpoint Id"
     },
     "event_id": {
      "type": "string",
      "title": "Event Id"
     },
     "event_type": {
      "type": "string",
      "title": "Event Type"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "attempts": {
      "type": "integer",
      "title": "Attempts"
     },
     "response_status": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Response Status"
     },
     "error": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Error"
     },
     "duration_ms": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Duration Ms"
     },
     "next_attempt_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Next Attempt At"
     },
     "delivered_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Delivered At"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "endpoint_id",
     "event_id",
     "event_type",
     "status",
     "attempts",
     "response_status",
     "error",
     "duration_ms",
     "next_attempt_at",
     "delivered_at",
     "created_at"
    ],
    "title": "WebhookDeliveryRead"
   },
   "WebhookEndpointCreate": {
    "properties": {
     "url": {
      "type": "string",
      "maxLength": 2083,
      "minLength": 1,
      "format": "uri",
      "title": "Url"
     },
     "description": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "events": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "minItems": 1,
      "title": "Events",
      "description": "Event names, or ['*'] for all"
     }
    },
    "type": "object",
    "required": [
     "url",
     "events"
    ],
    "title": "WebhookEndpointCreate"
   },
   "WebhookEndpointCreated": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "url": {
      "type": "string",
      "title": "Url"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "events": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Events"
     },
     "is_active": {
      "type": "boolean",
      "title": "Is Active"
     },
     "consecutive_failures": {
      "type": "integer",
      "title": "Consecutive Failures"
     },
     "disabled_reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Disabled Reason"
     },
     "last_success_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Success At"
     },
     "last_failure_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Failure At"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "secret": {
      "type": "string",
      "title": "Secret"
     }
    },
    "type": "object",
    "required": [
     "id",
     "url",
     "description",
     "events",
     "is_active",
     "consecutive_failures",
     "disabled_reason",
     "last_success_at",
     "last_failure_at",
     "created_at",
     "secret"
    ],
    "title": "WebhookEndpointCreated"
   },
   "WebhookEndpointRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "url": {
      "type": "string",
      "title": "Url"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "events": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Events"
     },
     "is_active": {
      "type": "boolean",
      "title": "Is Active"
     },
     "consecutive_failures": {
      "type": "integer",
      "title": "Consecutive Failures"
     },
     "disabled_reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Disabled Reason"
     },
     "last_success_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Success At"
     },
     "last_failure_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Failure At"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "url",
     "description",
     "events",
     "is_active",
     "consecutive_failures",
     "disabled_reason",
     "last_success_at",
     "last_failure_at",
     "created_at"
    ],
    "title": "WebhookEndpointRead"
   },
   "WebhookEndpointUpdate": {
    "properties": {
     "url": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2083,
        "minLength": 1,
        "format": "uri"
       },
       {
        "type": "null"
       }
      ],
      "title": "Url"
     },
     "description": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "events": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Events"
     },
     "is_active": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Is Active"
     }
    },
    "type": "object",
    "title": "WebhookEndpointUpdate"
   },
   "WebhookEventInfo": {
    "properties": {
     "name": {
      "type": "string",
      "title": "Name"
     },
     "description": {
      "type": "string",
      "title": "Description"
     }
    },
    "type": "object",
    "required": [
     "name",
     "description"
    ],
    "title": "WebhookEventInfo"
   },
   "WorkspaceDeleteRequest": {
    "properties": {
     "confirm_slug": {
      "type": "string",
      "title": "Confirm Slug"
     }
    },
    "type": "object",
    "required": [
     "confirm_slug"
    ],
    "title": "WorkspaceDeleteRequest"
   },
   "WorkspaceRead": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "slug": {
      "type": "string",
      "title": "Slug"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "plan": {
      "type": "string",
      "title": "Plan"
     },
     "plan_name": {
      "type": "string",
      "title": "Plan Name"
     },
     "seats_used": {
      "type": "integer",
      "title": "Seats Used"
     },
     "seats_limit": {
      "type": "integer",
      "title": "Seats Limit"
     },
     "credit_balance": {
      "type": "integer",
      "title": "Credit Balance"
     },
     "monthly_credit_quota": {
      "type": "integer",
      "title": "Monthly Credit Quota"
     },
     "credits_reset_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Credits Reset At"
     },
     "trial_ends_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Trial Ends At"
     },
     "features": {
      "type": "object",
      "title": "Features"
     },
     "settings": {
      "type": "object",
      "title": "Settings"
     },
     "billing_email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Billing Email"
     },
     "country": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Country"
     },
     "owner_user_id": {
      "anyOf": [
       {
        "type": "string",
        "format": "uuid"
       },
       {
        "type": "null"
       }
      ],
      "title": "Owner User Id"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "name",
     "slug",
     "status",
     "plan",
     "plan_name",
     "seats_used",
     "seats_limit",
     "credit_balance",
     "monthly_credit_quota",
     "credits_reset_at",
     "trial_ends_at",
     "features",
     "settings",
     "billing_email",
     "country",
     "owner_user_id",
     "created_at"
    ],
    "title": "WorkspaceRead"
   },
   "WorkspaceSummary": {
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "slug": {
      "type": "string",
      "title": "Slug"
     },
     "role": {
      "$ref": "#/components/schemas/UserRole"
     },
     "plan": {
      "type": "string",
      "title": "Plan"
     },
     "status": {
      "type": "string",
      "title": "Status"
     }
    },
    "type": "object",
    "required": [
     "id",
     "name",
     "slug",
     "role",
     "plan",
     "status"
    ],
    "title": "WorkspaceSummary"
   },
   "WorkspaceUpdate": {
    "properties": {
     "name": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 255,
        "minLength": 2
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "billing_email": {
      "anyOf": [
       {
        "type": "string",
        "format": "email"
       },
       {
        "type": "null"
       }
      ],
      "title": "Billing Email"
     },
     "country": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2,
        "minLength": 2
       },
       {
        "type": "null"
       }
      ],
      "title": "Country"
     },
     "settings": {
      "anyOf": [
       {
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Settings"
     }
    },
    "type": "object",
    "title": "WorkspaceUpdate"
   },
   "schemas__auth__VerifyEmailRequest": {
    "properties": {
     "token": {
      "type": "string",
      "title": "Token"
     }
    },
    "type": "object",
    "required": [
     "token"
    ],
    "title": "VerifyEmailRequest"
   },
   "schemas__enrichment__VerifyEmailRequest": {
    "properties": {
     "email": {
      "type": "string",
      "format": "email",
      "title": "Email"
     },
     "use_cache": {
      "type": "boolean",
      "title": "Use Cache",
      "default": true
     }
    },
    "type": "object",
    "required": [
     "email"
    ],
    "title": "VerifyEmailRequest"
   }
  },
  "securitySchemes": {
   "HTTPBearer": {
    "type": "http",
    "description": "JWT access token",
    "scheme": "bearer"
   }
  }
 }
}