{
  "openapi": "3.0.0",
  "components": {
    "examples": {},
    "headers": {},
    "parameters": {},
    "requestBodies": {},
    "responses": {},
    "schemas": {
      "Home": {
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "required": [
          "message"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "ReapitUsageType": {
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "read",
              "write"
            ],
            "description": "\"read\" for lookups, \"write\" for records pushed into Reapit."
          },
          "type": {
            "type": "string"
          },
          "companyId": {
            "type": "string"
          },
          "userId": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "BillingModel": {
        "type": "string",
        "enum": [
          "license",
          "token"
        ],
        "description": "How a Negotiator agency is sold, and therefore what gates its access.\n\nTwo models run side by side:\n  'license' — seats and a date range on CompanyLicenses. The licence cron\n              and the login paths enforce both.\n  'token'   — consumption only. SRT usage is billed monthly; there is no\n              seat cap, no expiry window, and no CompanyLicenses row.\n\nThe flag lives on `Companies` rather than on `CompanyLicenses` deliberately.\nA consumption-only agency's natural state is *no licence row at all*, so\nhanging the mode off that row would force one to exist purely to record that\nnone is needed — and its `endDate` would then be one more date somebody has\nto keep renewing to stop the cron deactivating a customer who owes nothing.\n\nNor does it belong on `BillingAccounts`: the mode governs access, which is\ncompany-scoped, while billing is per location. `reapitCompanyId` has no\nunique constraint, so one company can own several billing accounts — a\nper-account flag would give two answers to a question that has one.\n\nCore (GHL) locations are untouched by any of this. `CoreUsers` is keyed by\n`locationId` and carries no `companyId`, so the licence system cannot reach\na Core account; Core is consumption-only by construction, not by flag."
      },
      "Pick_CompanyType.Exclude_keyofCompanyType.agents-or-agentCount__": {
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "website": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "billingModel": {
            "$ref": "#/components/schemas/BillingModel",
            "description": "'license' (seats + expiry) or 'token' (consumption only)."
          }
        },
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "Omit_CompanyType.agents-or-agentCount_": {
        "$ref": "#/components/schemas/Pick_CompanyType.Exclude_keyofCompanyType.agents-or-agentCount__",
        "description": "Construct a type with the properties of T except for those in type K."
      },
      "Pick_RoleType.id-or-name_": {
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "CrmType": {
        "properties": {
          "deletedAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "apiEndpoint": {
            "type": "string"
          },
          "tokenEndpoint": {
            "type": "string"
          },
          "authEndpoint": {
            "type": "string"
          },
          "clientId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "InvitedUserType": {
        "properties": {
          "userId": {
            "type": "string"
          },
          "roleId": {
            "type": "string"
          },
          "companyId": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "deletedAt": {
            "type": "string",
            "nullable": true
          }
        },
        "type": "object"
      },
      "CompanyType": {
        "properties": {
          "billingModel": {
            "$ref": "#/components/schemas/BillingModel",
            "description": "'license' (seats + expiry) or 'token' (consumption only)."
          },
          "agents": {
            "items": {
              "$ref": "#/components/schemas/UserType"
            },
            "type": "array"
          },
          "agentCount": {
            "type": "number",
            "format": "double"
          },
          "address": {
            "type": "string"
          },
          "website": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ContactRoleType": {
        "type": "string",
        "enum": [
          "applicant",
          "contact",
          "landlord",
          "tenancy",
          "vendor"
        ]
      },
      "TeamType": {
        "properties": {
          "crmSyncedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "string"
              }
            ],
            "nullable": true
          },
          "crmExternalId": {
            "type": "string",
            "nullable": true
          },
          "crmId": {
            "type": "string",
            "nullable": true,
            "description": "The CRM branch this team is mapped to, when an admin has mapped one.\n\nAll three are set together or all three are null — that is what makes\n`uniq_team_crm_external` constrain mapped teams while MySQL's NULL\nexemption leaves every unmapped team free."
          },
          "company": {
            "$ref": "#/components/schemas/CompanyType"
          },
          "companyId": {
            "type": "string"
          },
          "teamName": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "UserType": {
        "properties": {
          "updatedAt": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "team": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TeamType"
              }
            ],
            "nullable": true
          },
          "teamId": {
            "type": "string"
          },
          "preferredRecordType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ContactRoleType"
              }
            ],
            "nullable": true
          },
          "negotiatorLookupAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "string"
              }
            ],
            "nullable": true
          },
          "negotiatorId": {
            "type": "string",
            "nullable": true
          },
          "autoChatSync": {
            "type": "boolean"
          },
          "invitation": {
            "$ref": "#/components/schemas/InvitedUserType"
          },
          "refreshToken": {
            "type": "string"
          },
          "accessToken": {
            "type": "string"
          },
          "crm": {
            "$ref": "#/components/schemas/CrmType"
          },
          "crmId": {
            "type": "string"
          },
          "active": {
            "type": "boolean"
          },
          "company": {
            "$ref": "#/components/schemas/CompanyType"
          },
          "companyId": {
            "type": "string"
          },
          "role": {
            "$ref": "#/components/schemas/Pick_RoleType.id-or-name_"
          },
          "roleId": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "verified": {
            "type": "boolean"
          },
          "email": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "Pick_UserType.Exclude_keyofUserType.company-or-accessToken-or-refreshToken__": {
        "properties": {
          "company": {
            "$ref": "#/components/schemas/Omit_CompanyType.agents-or-agentCount_"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "verified": {
            "type": "boolean"
          },
          "phone": {
            "type": "string"
          },
          "roleId": {
            "type": "string"
          },
          "role": {
            "$ref": "#/components/schemas/Pick_RoleType.id-or-name_"
          },
          "companyId": {
            "type": "string"
          },
          "active": {
            "type": "boolean"
          },
          "crmId": {
            "type": "string"
          },
          "crm": {
            "$ref": "#/components/schemas/CrmType"
          },
          "invitation": {
            "$ref": "#/components/schemas/InvitedUserType"
          },
          "autoChatSync": {
            "type": "boolean"
          },
          "negotiatorId": {
            "type": "string"
          },
          "negotiatorLookupAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          },
          "preferredRecordType": {
            "type": "string",
            "enum": [
              "applicant",
              "contact",
              "landlord",
              "tenancy",
              "vendor"
            ]
          },
          "teamId": {
            "type": "string"
          },
          "team": {
            "$ref": "#/components/schemas/TeamType"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "IUserResponse": {
        "properties": {
          "company": {
            "$ref": "#/components/schemas/Omit_CompanyType.agents-or-agentCount_"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "verified": {
            "type": "boolean"
          },
          "phone": {
            "type": "string"
          },
          "roleId": {
            "type": "string"
          },
          "role": {
            "$ref": "#/components/schemas/Pick_RoleType.id-or-name_"
          },
          "companyId": {
            "type": "string"
          },
          "active": {
            "type": "boolean"
          },
          "crmId": {
            "type": "string"
          },
          "crm": {
            "$ref": "#/components/schemas/CrmType"
          },
          "invitation": {
            "$ref": "#/components/schemas/InvitedUserType"
          },
          "autoChatSync": {
            "type": "boolean"
          },
          "negotiatorId": {
            "type": "string"
          },
          "negotiatorLookupAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          },
          "preferredRecordType": {
            "type": "string",
            "enum": [
              "applicant",
              "contact",
              "landlord",
              "tenancy",
              "vendor"
            ]
          },
          "teamId": {
            "type": "string"
          },
          "team": {
            "$ref": "#/components/schemas/TeamType"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "UserResponse": {
        "properties": {
          "message": {
            "type": "string"
          },
          "data": {
            "$ref": "#/components/schemas/IUserResponse"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "UserRequest": {
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "roleId": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "companyId": {
            "type": "string"
          },
          "crmId": {
            "type": "string"
          }
        },
        "required": [
          "roleId",
          "email"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "Pick_IUserResponse.Exclude_keyofIUserResponse.token__": {
        "properties": {
          "company": {
            "$ref": "#/components/schemas/Omit_CompanyType.agents-or-agentCount_"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "verified": {
            "type": "boolean"
          },
          "phone": {
            "type": "string"
          },
          "roleId": {
            "type": "string"
          },
          "role": {
            "$ref": "#/components/schemas/Pick_RoleType.id-or-name_"
          },
          "companyId": {
            "type": "string"
          },
          "active": {
            "type": "boolean"
          },
          "crmId": {
            "type": "string"
          },
          "crm": {
            "$ref": "#/components/schemas/CrmType"
          },
          "invitation": {
            "$ref": "#/components/schemas/InvitedUserType"
          },
          "autoChatSync": {
            "type": "boolean"
          },
          "negotiatorId": {
            "type": "string"
          },
          "negotiatorLookupAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          },
          "preferredRecordType": {
            "type": "string",
            "enum": [
              "applicant",
              "contact",
              "landlord",
              "tenancy",
              "vendor"
            ]
          },
          "teamId": {
            "type": "string"
          },
          "team": {
            "$ref": "#/components/schemas/TeamType"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "Omit_IUserResponse.token_": {
        "$ref": "#/components/schemas/Pick_IUserResponse.Exclude_keyofIUserResponse.token__",
        "description": "Construct a type with the properties of T except for those in type K."
      },
      "Pick_UserType.Exclude_keyofUserType.email-or-accessToken-or-refreshToken-or-crm-or-company-or-role-or-invitation__": {
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "verified": {
            "type": "boolean"
          },
          "phone": {
            "type": "string"
          },
          "roleId": {
            "type": "string"
          },
          "companyId": {
            "type": "string"
          },
          "active": {
            "type": "boolean"
          },
          "crmId": {
            "type": "string"
          },
          "autoChatSync": {
            "type": "boolean"
          },
          "negotiatorId": {
            "type": "string"
          },
          "negotiatorLookupAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          },
          "preferredRecordType": {
            "type": "string",
            "enum": [
              "applicant",
              "contact",
              "landlord",
              "tenancy",
              "vendor"
            ]
          },
          "teamId": {
            "type": "string"
          },
          "team": {
            "$ref": "#/components/schemas/TeamType"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "UserUpdateRequest": {
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "verified": {
            "type": "boolean"
          },
          "phone": {
            "type": "string"
          },
          "roleId": {
            "type": "string"
          },
          "companyId": {
            "type": "string"
          },
          "active": {
            "type": "boolean"
          },
          "crmId": {
            "type": "string"
          },
          "autoChatSync": {
            "type": "boolean"
          },
          "negotiatorId": {
            "type": "string"
          },
          "negotiatorLookupAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          },
          "preferredRecordType": {
            "type": "string",
            "enum": [
              "applicant",
              "contact",
              "landlord",
              "tenancy",
              "vendor"
            ]
          },
          "teamId": {
            "type": "string"
          },
          "team": {
            "$ref": "#/components/schemas/TeamType"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "Pick_BillingAccountType.Exclude_keyofBillingAccountType.company__": {
        "properties": {
          "id": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "reapitCompanyId": {
            "type": "string"
          },
          "locationId": {
            "type": "string"
          },
          "totalToken": {
            "type": "number",
            "format": "double"
          },
          "twilioSecret": {
            "type": "string"
          },
          "twilioToken": {
            "type": "string"
          },
          "businessType": {
            "type": "string",
            "enum": [
              "tourism",
              "estate",
              "mortgage",
              "other"
            ]
          },
          "isPinned": {
            "type": "boolean"
          },
          "pinnedOrder": {
            "type": "number",
            "format": "double"
          },
          "churnPausedUntil": {
            "type": "string"
          },
          "churnPauseReason": {
            "type": "string"
          },
          "deletedAt": {
            "type": "string"
          },
          "subscriptionDate": {
            "type": "string"
          },
          "nextSubscriptionDate": {
            "type": "string"
          },
          "billingDayOfMonth": {
            "type": "number",
            "format": "double"
          },
          "launchDate": {
            "type": "string"
          },
          "subscriptionCost": {
            "type": "number",
            "format": "double"
          },
          "priceModel": {
            "type": "string"
          }
        },
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "IBillingAccountResponse": {
        "properties": {
          "id": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "reapitCompanyId": {
            "type": "string"
          },
          "locationId": {
            "type": "string"
          },
          "totalToken": {
            "type": "number",
            "format": "double"
          },
          "twilioSecret": {
            "type": "string"
          },
          "twilioToken": {
            "type": "string"
          },
          "businessType": {
            "type": "string",
            "enum": [
              "tourism",
              "estate",
              "mortgage",
              "other"
            ]
          },
          "isPinned": {
            "type": "boolean"
          },
          "pinnedOrder": {
            "type": "number",
            "format": "double"
          },
          "churnPausedUntil": {
            "type": "string"
          },
          "churnPauseReason": {
            "type": "string"
          },
          "deletedAt": {
            "type": "string"
          },
          "subscriptionDate": {
            "type": "string"
          },
          "nextSubscriptionDate": {
            "type": "string"
          },
          "billingDayOfMonth": {
            "type": "number",
            "format": "double"
          },
          "launchDate": {
            "type": "string"
          },
          "subscriptionCost": {
            "type": "number",
            "format": "double"
          },
          "priceModel": {
            "type": "string"
          },
          "company": {
            "$ref": "#/components/schemas/Omit_CompanyType.agents-or-agentCount_"
          },
          "negotiators": {
            "items": {},
            "type": "array",
            "nullable": true
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "BillingAccountRequest": {
        "properties": {
          "id": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "companyId": {
            "type": "string"
          },
          "billingDate": {
            "type": "string"
          },
          "twilioSecret": {
            "type": "string"
          },
          "twilioToken": {
            "type": "string"
          },
          "locationId": {
            "type": "string"
          },
          "totalToken": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "companyName",
          "locationId"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "BillingAccountPaginatedResponse": {
        "properties": {
          "message": {
            "type": "string"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/IBillingAccountResponse"
            },
            "type": "array"
          },
          "pageNumber": {
            "type": "number",
            "format": "double"
          },
          "pageSize": {
            "type": "number",
            "format": "double"
          },
          "pageCount": {
            "type": "number",
            "format": "double"
          },
          "totalPageCount": {
            "type": "number",
            "format": "double"
          },
          "totalCount": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "pageNumber",
          "pageSize",
          "pageCount",
          "totalPageCount",
          "totalCount"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "PriceModelOption": {
        "properties": {
          "value": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        },
        "required": [
          "value",
          "label"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "PriceModelListResponse": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/PriceModelOption"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "Pick_IBillingAccountResponse.Exclude_keyofIBillingAccountResponse.token__": {
        "properties": {
          "company": {
            "$ref": "#/components/schemas/Omit_CompanyType.agents-or-agentCount_"
          },
          "id": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "reapitCompanyId": {
            "type": "string"
          },
          "locationId": {
            "type": "string"
          },
          "totalToken": {
            "type": "number",
            "format": "double"
          },
          "twilioSecret": {
            "type": "string"
          },
          "twilioToken": {
            "type": "string"
          },
          "businessType": {
            "type": "string",
            "enum": [
              "tourism",
              "estate",
              "mortgage",
              "other"
            ]
          },
          "isPinned": {
            "type": "boolean"
          },
          "pinnedOrder": {
            "type": "number",
            "format": "double"
          },
          "churnPausedUntil": {
            "type": "string"
          },
          "churnPauseReason": {
            "type": "string"
          },
          "deletedAt": {
            "type": "string"
          },
          "subscriptionDate": {
            "type": "string"
          },
          "nextSubscriptionDate": {
            "type": "string"
          },
          "billingDayOfMonth": {
            "type": "number",
            "format": "double"
          },
          "launchDate": {
            "type": "string"
          },
          "subscriptionCost": {
            "type": "number",
            "format": "double"
          },
          "priceModel": {
            "type": "string"
          },
          "negotiators": {
            "items": {},
            "type": "array"
          }
        },
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "Omit_IBillingAccountResponse.token_": {
        "$ref": "#/components/schemas/Pick_IBillingAccountResponse.Exclude_keyofIBillingAccountResponse.token__",
        "description": "Construct a type with the properties of T except for those in type K."
      },
      "BillingAccountUpdateRequest": {
        "properties": {
          "id": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "reapitCompanyId": {
            "type": "string"
          },
          "locationId": {
            "type": "string"
          },
          "totalToken": {
            "type": "number",
            "format": "double"
          },
          "twilioSecret": {
            "type": "string"
          },
          "twilioToken": {
            "type": "string"
          },
          "businessType": {
            "type": "string",
            "enum": [
              "tourism",
              "estate",
              "mortgage",
              "other"
            ]
          },
          "isPinned": {
            "type": "boolean"
          },
          "pinnedOrder": {
            "type": "number",
            "format": "double"
          },
          "churnPausedUntil": {
            "type": "string"
          },
          "churnPauseReason": {
            "type": "string"
          },
          "deletedAt": {
            "type": "string"
          },
          "subscriptionDate": {
            "type": "string"
          },
          "nextSubscriptionDate": {
            "type": "string"
          },
          "billingDayOfMonth": {
            "type": "number",
            "format": "double"
          },
          "launchDate": {
            "type": "string"
          },
          "subscriptionCost": {
            "type": "number",
            "format": "double"
          },
          "priceModel": {
            "type": "string"
          },
          "force": {
            "type": "boolean",
            "description": "Confirms a billingDayOfMonth change that would produce an out-of-bounds\ncycle length (< 20 or > 40 days). Without `force`, such a change returns\n400 with a `details` payload describing the projected cycle so the admin\nUI can show a confirm dialog."
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "CoreOfficeAddressType": {
        "properties": {
          "postalCodes": {
            "items": {
              "properties": {
                "postalCode": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                }
              },
              "required": [
                "postalCode"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "zooplaBranchId": {
            "type": "string",
            "nullable": true
          },
          "evergladesApiKey": {
            "type": "string"
          },
          "appointmentNotificationEmail": {
            "type": "string"
          },
          "introducerBranchId": {
            "type": "string"
          },
          "introducerBranchName": {
            "type": "string"
          },
          "introducerId": {
            "type": "string"
          },
          "introducerName": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "origin": {
            "type": "string"
          },
          "supplierNumber": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "wildCard": {
            "type": "boolean"
          },
          "directValuationEmail": {
            "type": "string"
          },
          "valuationEmail": {
            "type": "string"
          },
          "mortgageEmail": {
            "type": "string"
          },
          "robotEmail": {
            "type": "string"
          },
          "readEmail": {
            "type": "string"
          },
          "branchEmail": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "none",
              "lettings",
              "sales",
              "both",
              "renewal",
              "remortgage",
              "recapture"
            ]
          },
          "officeId": {
            "type": "string"
          },
          "locationId": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "BillingAccount": {
        "properties": {
          "priceModel": {
            "type": "string"
          },
          "subscriptionCost": {
            "type": "number",
            "format": "double"
          },
          "launchDate": {
            "type": "string"
          },
          "billingDayOfMonth": {
            "type": "number",
            "format": "double"
          },
          "nextSubscriptionDate": {
            "type": "string"
          },
          "subscriptionDate": {
            "type": "string"
          },
          "deletedAt": {
            "type": "string",
            "nullable": true
          },
          "churnPauseReason": {
            "type": "string",
            "nullable": true
          },
          "churnPausedUntil": {
            "type": "string",
            "nullable": true
          },
          "pinnedOrder": {
            "type": "number",
            "format": "double"
          },
          "isPinned": {
            "type": "boolean"
          },
          "businessType": {
            "type": "string",
            "enum": [
              "tourism",
              "estate",
              "mortgage",
              "other",
              null
            ],
            "nullable": true
          },
          "twilioToken": {
            "type": "string"
          },
          "twilioSecret": {
            "type": "string"
          },
          "company": {
            "$ref": "#/components/schemas/CompanyType"
          },
          "totalToken": {
            "type": "number",
            "format": "double"
          },
          "locationId": {
            "type": "string"
          },
          "reapitCompanyId": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "resetLaunchDate": {
            "type": "boolean"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "ICompanyResponse": {
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "agentCount": {
            "type": "number",
            "format": "double"
          },
          "website": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "address",
          "agentCount"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "CompanyResponse": {
        "properties": {
          "message": {
            "type": "string"
          },
          "data": {
            "$ref": "#/components/schemas/ICompanyResponse"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "Error": {
        "properties": {
          "name": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "stack": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "message"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "CompanyRequest": {
        "properties": {
          "name": {
            "type": "string"
          },
          "website": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "agentCount": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "name",
          "address",
          "agentCount"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "UserPaginatedResponse": {
        "properties": {
          "message": {
            "type": "string"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/IUserResponse"
            },
            "type": "array"
          },
          "pageNumber": {
            "type": "number",
            "format": "double"
          },
          "pageSize": {
            "type": "number",
            "format": "double"
          },
          "pageCount": {
            "type": "number",
            "format": "double"
          },
          "totalPageCount": {
            "type": "number",
            "format": "double"
          },
          "totalCount": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "pageNumber",
          "pageSize",
          "pageCount",
          "totalPageCount",
          "totalCount"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "PaginatedResponse": {
        "properties": {
          "message": {
            "type": "string"
          },
          "data": {},
          "pageNumber": {
            "type": "number",
            "format": "double"
          },
          "pageSize": {
            "type": "number",
            "format": "double"
          },
          "pageCount": {
            "type": "number",
            "format": "double"
          },
          "totalPageCount": {
            "type": "number",
            "format": "double"
          },
          "totalCount": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "pageNumber",
          "pageSize",
          "pageCount",
          "totalPageCount",
          "totalCount"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "Pick_CompanyType.Exclude_keyofCompanyType.id-or-agents__": {
        "properties": {
          "name": {
            "type": "string"
          },
          "agentCount": {
            "type": "number",
            "format": "double"
          },
          "website": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "billingModel": {
            "$ref": "#/components/schemas/BillingModel",
            "description": "'license' (seats + expiry) or 'token' (consumption only)."
          }
        },
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "CompanyUpdateRequest": {
        "properties": {
          "name": {
            "type": "string"
          },
          "agentCount": {
            "type": "number",
            "format": "double"
          },
          "website": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "billingModel": {
            "$ref": "#/components/schemas/BillingModel",
            "description": "'license' (seats + expiry) or 'token' (SRT consumption only)."
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "UserActivityItem": {
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "role": {
            "type": "string",
            "nullable": true
          },
          "team": {
            "type": "string",
            "nullable": true
          },
          "active": {
            "type": "boolean"
          },
          "lastSignInAt": {
            "type": "string",
            "nullable": true,
            "description": "Last sign-in through the extension."
          },
          "lastSeenAt": {
            "type": "string",
            "nullable": true,
            "description": "Last successful API call the extension made for this user."
          },
          "lastChatSyncAt": {
            "type": "string",
            "nullable": true,
            "description": "Last successful chat sync to the CRM."
          },
          "lastExtensionVersion": {
            "type": "string",
            "nullable": true
          },
          "lastCrmCallAt": {
            "type": "string",
            "nullable": true,
            "description": "Newest Reapit call recorded for them in the last `crmCallLookbackDays` days (Reapit companies only)."
          }
        },
        "required": [
          "id",
          "name",
          "email",
          "role",
          "team",
          "active",
          "lastSignInAt",
          "lastSeenAt",
          "lastChatSyncAt",
          "lastExtensionVersion",
          "lastCrmCallAt"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "UserActivityResponse": {
        "properties": {
          "companyId": {
            "type": "string"
          },
          "crmCallLookbackDays": {
            "type": "number",
            "format": "double"
          },
          "users": {
            "items": {
              "$ref": "#/components/schemas/UserActivityItem"
            },
            "type": "array"
          }
        },
        "required": [
          "companyId",
          "crmCallLookbackDays",
          "users"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "Pick_CompanyLicenseType.Exclude_keyofCompanyLicenseType.company__": {
        "properties": {
          "id": {
            "type": "string"
          },
          "companyId": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "paymentDate": {
            "type": "string",
            "format": "date-time"
          },
          "users": {
            "type": "number",
            "format": "double"
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "endDate": {
            "type": "string",
            "format": "date-time"
          },
          "remarks": {
            "type": "string"
          }
        },
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "CompanyLicenseRequest": {
        "properties": {
          "id": {
            "type": "string"
          },
          "companyId": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "paymentDate": {
            "type": "string",
            "format": "date-time"
          },
          "users": {
            "type": "number",
            "format": "double"
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "endDate": {
            "type": "string",
            "format": "date-time"
          },
          "remarks": {
            "type": "string"
          }
        },
        "required": [
          "companyId",
          "amount",
          "paymentDate",
          "users",
          "startDate",
          "endDate"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "ICompanyLicenseUpdateRequest": {
        "properties": {
          "amount": {
            "type": "number",
            "format": "double"
          },
          "paymentDate": {
            "type": "string",
            "format": "date-time"
          },
          "users": {
            "type": "number",
            "format": "double"
          },
          "remarks": {
            "type": "string"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "Pick_UserResponse.Exclude_keyofUserResponse.data__": {
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "Omit_UserResponse.data_": {
        "$ref": "#/components/schemas/Pick_UserResponse.Exclude_keyofUserResponse.data__",
        "description": "Construct a type with the properties of T except for those in type K."
      },
      "createInvitedUserType": {
        "properties": {
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "autoChatSync": {
            "type": "boolean"
          }
        },
        "required": [
          "autoChatSync"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "InvitedUserPaginatedResponse": {
        "properties": {
          "message": {
            "type": "string"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/InvitedUserType"
            },
            "type": "array"
          },
          "pageNumber": {
            "type": "number",
            "format": "double"
          },
          "pageSize": {
            "type": "number",
            "format": "double"
          },
          "pageCount": {
            "type": "number",
            "format": "double"
          },
          "totalPageCount": {
            "type": "number",
            "format": "double"
          },
          "totalCount": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "pageNumber",
          "pageSize",
          "pageCount",
          "totalPageCount",
          "totalCount"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "agentProfileUpdate": {
        "properties": {
          "name": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "Pick_UserRequest.Exclude_keyofUserRequest.id-or-companyId__": {
        "properties": {
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "roleId": {
            "type": "string"
          },
          "crmId": {
            "type": "string"
          }
        },
        "required": [
          "email",
          "roleId"
        ],
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "UserRegisterRequest": {
        "properties": {
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "roleId": {
            "type": "string"
          },
          "crmId": {
            "type": "string"
          }
        },
        "required": [
          "email",
          "roleId"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "agentAccountUpdate": {
        "properties": {
          "phone": {
            "type": "string"
          },
          "active": {
            "type": "boolean"
          },
          "autoChatSync": {
            "type": "boolean"
          },
          "preferredRecordType": {
            "type": "string",
            "enum": [
              "applicant",
              "contact",
              "landlord",
              "tenancy",
              "vendor"
            ]
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "CrmAssociationFilter": {
        "enum": [
          "name",
          "phone",
          "propertyId",
          "address"
        ],
        "type": "string"
      },
      "CrmMessageAssociations": {
        "enum": [
          "contact",
          "property"
        ],
        "type": "string"
      },
      "associationSearchType": {
        "enum": [
          "auto",
          "manual"
        ],
        "type": "string"
      },
      "Pick_CrmDefaultContactAssociationType.Exclude_keyofCrmDefaultContactAssociationType.userId__": {
        "properties": {
          "roleId": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "deletedAt": {
            "type": "string"
          },
          "contactPhone": {
            "type": "string"
          },
          "contactId": {
            "type": "string"
          },
          "propertyId": {
            "type": "string"
          }
        },
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "CrmDefaultContactRequest": {
        "properties": {
          "roleId": {
            "type": "string"
          },
          "role": {
            "$ref": "#/components/schemas/ContactRoleType"
          },
          "deletedAt": {
            "type": "string"
          },
          "contactPhone": {
            "type": "string"
          },
          "contactId": {
            "type": "string"
          },
          "propertyId": {
            "type": "string"
          }
        },
        "required": [
          "contactPhone",
          "contactId",
          "role",
          "roleId"
        ],
        "type": "object",
        "additionalProperties": false,
        "example": {
          "contactPhone": "07777777777",
          "contactId": "RPT21001025",
          "role": "applicant",
          "roleId": "RPT210372"
        }
      },
      "Response": {
        "properties": {
          "message": {
            "type": "string"
          },
          "data": {}
        },
        "type": "object",
        "additionalProperties": false
      },
      "CrmPersonalChatMessageType": {
        "properties": {
          "timestamp": {
            "type": "string"
          },
          "sent": {
            "type": "boolean"
          },
          "text": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "CrmPersonalChatRequest": {
        "properties": {
          "contactName": {
            "type": "string"
          },
          "contactPhone": {
            "type": "string"
          },
          "associatedType": {
            "type": "string"
          },
          "associatedId": {
            "type": "string"
          },
          "negotiatorId": {
            "type": "string"
          },
          "messages": {
            "items": {
              "$ref": "#/components/schemas/CrmPersonalChatMessageType"
            },
            "type": "array"
          },
          "propertyName": {
            "type": "string"
          }
        },
        "type": "object",
        "additionalProperties": false,
        "example": {
          "contactName": "Mr Michael Owen",
          "contactPhone": "0777777777",
          "associatedType": "applicant",
          "associatedId": "RPT210372",
          "negotiatorId": "JAS",
          "propertyName": "High Tower",
          "messages": [
            {
              "timestamp": "2022-05-15T12:00:00+00:00",
              "sent": false,
              "text": "Hi",
              "id": "1"
            },
            {
              "timestamp": "2023-05-15T13:00:00+00:00",
              "sent": true,
              "text": "Hello",
              "id": "2"
            }
          ]
        }
      },
      "CrmChatType": {
        "properties": {
          "propertyName": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "negotiatorId": {
            "type": "string"
          },
          "associatedId": {
            "type": "string"
          },
          "associatedType": {
            "type": "string"
          },
          "contactPhone": {
            "type": "string"
          },
          "contactName": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "CrmGroupChatMessageType": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CrmPersonalChatMessageType"
          },
          {
            "properties": {
              "senderName": {
                "type": "string",
                "description": "What WhatsApp calls the sender, when the extension could read it."
              },
              "phone": {
                "type": "string",
                "description": "The sender's number, on a message someone else sent."
              }
            },
            "type": "object"
          }
        ]
      },
      "CrmGroupChatRequest": {
        "properties": {},
        "type": "object",
        "additionalProperties": false,
        "example": {
          "contactName": "Mr Michael Owen",
          "contactPhone": "0777777777",
          "associatedType": "applicant",
          "associatedId": "RPT210372",
          "negotiatorId": "JAS",
          "propertyName": "High Tower",
          "messages": [
            {
              "phone": "ABC123",
              "timestamp": "2022-05-15T12:00:00+00:00",
              "sent": false,
              "text": "Hi",
              "id": "1"
            },
            {
              "phone": "ABC123",
              "timestamp": "2023-05-15T13:00:00+00:00",
              "sent": true,
              "text": "Hello",
              "id": "2"
            },
            {
              "phone": "+9172636449238",
              "timestamp": "2022-05-15T13:00:00+00:00",
              "sent": false,
              "text": "hey everyone!",
              "id": "3"
            },
            {
              "phone": "ABC123",
              "timestamp": "2022-05-15T13:00:00+00:00",
              "sent": true,
              "text": "Hello",
              "id": "4"
            },
            {
              "phone": "+914444444444",
              "timestamp": "2022-05-15T13:00:00+00:00",
              "sent": false,
              "text": "I will be away for an hour",
              "id": "5"
            },
            {
              "phone": "+9172636449238",
              "timestamp": "2022-05-15T13:00:00+00:00",
              "sent": false,
              "text": "Should we continue this later?",
              "id": "6"
            }
          ]
        }
      },
      "Pick_CrmDocumentType.Exclude_keyofCrmDocumentType.typeId__": {
        "properties": {
          "name": {
            "type": "string"
          },
          "contactPhone": {
            "type": "string"
          },
          "contactName": {
            "type": "string"
          },
          "associatedType": {
            "type": "string"
          },
          "associatedId": {
            "type": "string"
          },
          "filedata": {
            "type": "string"
          },
          "sent": {
            "type": "boolean"
          },
          "timestamp": {
            "type": "string"
          },
          "isPrivate": {
            "type": "boolean"
          }
        },
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "CrmDocumentCreate": {
        "properties": {
          "name": {
            "type": "string"
          },
          "contactPhone": {
            "type": "string"
          },
          "contactName": {
            "type": "string"
          },
          "associatedType": {
            "type": "string"
          },
          "associatedId": {
            "type": "string"
          },
          "filedata": {
            "type": "string"
          },
          "sent": {
            "type": "boolean"
          },
          "timestamp": {
            "type": "string"
          },
          "isPrivate": {
            "type": "boolean"
          }
        },
        "type": "object",
        "additionalProperties": false,
        "example": {
          "name": "logo.jpg",
          "contactName": "Mr Michael Owen",
          "contactPhone": "0777777777",
          "filedata": "data:application/jpg;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==",
          "associatedType": "contact",
          "associatedId": "123ABC",
          "isPrivate": true,
          "sent": true,
          "timestamp": "2022-05-15T13:00:00+00:00"
        }
      },
      "RoleType": {
        "properties": {
          "name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "RoleResponse": {
        "properties": {
          "message": {
            "type": "string"
          },
          "data": {
            "$ref": "#/components/schemas/RoleType"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "WebhookTransactionType": {
        "properties": {
          "tokens": {
            "properties": {
              "totalTokens": {
                "type": "number",
                "format": "double"
              },
              "outputTokens": {
                "type": "number",
                "format": "double"
              },
              "inputTokens": {
                "type": "number",
                "format": "double"
              }
            },
            "type": "object"
          },
          "markupType": {
            "type": "string"
          },
          "enquiryType": {
            "type": "string"
          },
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "type": {
            "type": "string",
            "enum": [
              "response",
              "sentiment",
              "enquiries"
            ]
          },
          "locationId": {
            "type": "string"
          }
        },
        "required": [
          "date",
          "type",
          "locationId"
        ],
        "type": "object"
      },
      "LeadEvent": {
        "properties": {
          "onPatch": {
            "type": "boolean"
          },
          "Enquiry Type": {
            "type": "string"
          },
          "enquiryType": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "contact_id": {
            "type": "string"
          },
          "contactId": {
            "type": "string"
          },
          "locationId": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "EnquiryResponse": {
        "properties": {
          "description": {
            "type": "string"
          },
          "dateTime": {
            "type": "string"
          },
          "statusCode": {
            "type": "number",
            "format": "double"
          },
          "payload": {},
          "errors": {
            "items": {
              "properties": {
                "message": {
                  "type": "string"
                },
                "field": {
                  "type": "string"
                }
              },
              "required": [
                "message",
                "field"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "description",
          "statusCode"
        ],
        "type": "object"
      },
      "MabProspectType": {
        "enum": [
          "Unknown",
          "BuyingFirstHome",
          "MovingHome",
          "Remortgaging",
          "BuyToLet",
          "Other"
        ],
        "type": "string"
      },
      "MabBuyingPosition": {
        "enum": [
          "Unknown",
          "NotStartedLooking",
          "ViewingProperties",
          "WantToMakeOffer",
          "AlreadyMadeOffer",
          "MortgageDealExpiresSixMonths",
          "StillInCurrentMortgage"
        ],
        "type": "string"
      },
      "MabHowCanWeHelp": {
        "enum": [
          "Unknown",
          "WantMortgageAdvice",
          "WantMortgagePrinciple",
          "WantMortgageEligibility",
          "WantToKnowAmountCanBorrow"
        ],
        "type": "string"
      },
      "MabMortgagePurpose": {
        "enum": [
          "Unknown",
          "MyOnlyHome",
          "SecondHome",
          "BuyToLetProperty"
        ],
        "type": "string"
      },
      "MabMortgageBasis": {
        "enum": [
          "Unknown",
          "Purchase",
          "Remortgage"
        ],
        "type": "string"
      },
      "MabLeadProfile": {
        "properties": {
          "prospectType": {
            "$ref": "#/components/schemas/MabProspectType"
          },
          "buyingPosition": {
            "$ref": "#/components/schemas/MabBuyingPosition"
          },
          "howCanWeHelp": {
            "$ref": "#/components/schemas/MabHowCanWeHelp"
          },
          "mortgagePurpose": {
            "$ref": "#/components/schemas/MabMortgagePurpose"
          },
          "mortgageBasis": {
            "$ref": "#/components/schemas/MabMortgageBasis"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "MabCurrentMortgage": {
        "properties": {
          "lenderName": {
            "type": "string",
            "nullable": true
          },
          "currentMortgageBalance": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "MabAdditionalBorrowing": {
        "properties": {
          "amount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "reasons": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "MabMortgageEnquiry": {
        "properties": {
          "deposit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "jointApplication": {
            "type": "boolean",
            "nullable": true
          },
          "equity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "currentMortgage": {
            "$ref": "#/components/schemas/MabCurrentMortgage"
          },
          "additionalBorrowing": {
            "$ref": "#/components/schemas/MabAdditionalBorrowing"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "MabAffordability": {
        "properties": {
          "totalAnnualHouseholdIncome": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "MabApplicantChanges": {
        "properties": {
          "incomeChanged": {
            "type": "boolean",
            "nullable": true
          },
          "expensesChanged": {
            "type": "boolean",
            "nullable": true
          },
          "applicantsChanged": {
            "type": "boolean",
            "nullable": true
          },
          "changeNotes": {
            "type": "string",
            "nullable": true
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "EnquriesRequest": {
        "properties": {
          "RobotEmail": {
            "type": "string"
          },
          "PortalLink": {
            "type": "string"
          },
          "FirstName": {
            "type": "string"
          },
          "LastName": {
            "type": "string"
          },
          "Email": {
            "type": "string"
          },
          "Phone": {
            "type": "string"
          },
          "Source": {
            "type": "string"
          },
          "EnquiryType": {
            "type": "string"
          },
          "PropertyRef": {
            "type": "string"
          },
          "Outcome": {
            "type": "string"
          },
          "AiSummary": {
            "type": "string"
          },
          "LocationId": {
            "type": "string"
          },
          "OfficeId": {
            "type": "string"
          },
          "AdditionalDetails": {
            "type": "string"
          },
          "EnquiryID": {
            "type": "string"
          },
          "ServiceType": {
            "type": "string"
          },
          "AssistantName": {
            "type": "string"
          },
          "CardFooter": {
            "type": "string",
            "description": "The P.S. line that closes the Reapit card — \"P.S. Cora is Chestertons' AI persona.\"\nComposed upstream, appended verbatim, absent when the client has no persona. The\nvaluation print already reads this field; the sales/lettings print now does too."
          },
          "ValuationType": {
            "type": "string"
          },
          "AIStatus": {
            "type": "string"
          },
          "ValuationStatus": {
            "type": "string"
          },
          "ValuationPatch": {
            "type": "string"
          },
          "LandlordName": {
            "type": "string"
          },
          "LandlordEmail": {
            "type": "string"
          },
          "LandlordPhone": {
            "type": "string"
          },
          "LocationName": {
            "type": "string"
          },
          "OfficeName": {
            "type": "string"
          },
          "duplicateCount": {
            "type": "number",
            "format": "double"
          },
          "applicantSummary": {
            "type": "string"
          },
          "recommendedAction": {
            "type": "string"
          },
          "Beds": {
            "type": "string"
          },
          "VendorStatement": {
            "type": "string"
          },
          "Description": {
            "type": "string"
          },
          "Comments": {
            "type": "string"
          },
          "Price": {
            "type": "string"
          },
          "EnquiryAddress": {
            "type": "string"
          },
          "PropertyAddress": {
            "type": "string"
          },
          "ContactCountry": {
            "type": "string"
          },
          "ContactID": {
            "type": "string"
          },
          "ContactAddress": {
            "type": "string"
          },
          "ConversationHistory": {
            "type": "string"
          },
          "Address": {
            "type": "string"
          },
          "ValuationSource": {
            "type": "string"
          },
          "Street": {
            "type": "string"
          },
          "LeadProfile": {
            "$ref": "#/components/schemas/MabLeadProfile"
          },
          "MortgageEnquiry": {
            "$ref": "#/components/schemas/MabMortgageEnquiry"
          },
          "Property": {
            "properties": {
              "value": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "Affordability": {
            "$ref": "#/components/schemas/MabAffordability"
          },
          "ApplicantChanges": {
            "$ref": "#/components/schemas/MabApplicantChanges"
          },
          "AdvisorEmail": {
            "type": "string"
          },
          "Deposit": {
            "type": "string"
          },
          "AppointmentDate": {
            "type": "string"
          },
          "IsDev": {
            "type": "boolean"
          },
          "CurrentLender": {
            "type": "string"
          },
          "RenewalDate": {
            "type": "string"
          },
          "AdvisorName": {
            "type": "string"
          },
          "Branch": {
            "type": "string"
          },
          "BroadcastReferal": {
            "type": "string",
            "enum": [
              "broadcast",
              "referral"
            ]
          },
          "BroadcastName": {
            "type": "string"
          },
          "BoradcastHandraiser": {
            "type": "string"
          },
          "BroadcastMainMessage": {
            "type": "string"
          },
          "ReferalConfidence": {
            "type": "string"
          },
          "ReferalEvidence": {
            "type": "string"
          },
          "ReferalSource": {
            "type": "string"
          }
        },
        "required": [
          "RobotEmail",
          "PortalLink",
          "FirstName",
          "LastName",
          "Email",
          "Phone",
          "Source",
          "EnquiryType",
          "PropertyRef",
          "Outcome",
          "AiSummary",
          "LocationId",
          "OfficeId",
          "AdditionalDetails",
          "Comments",
          "Price",
          "EnquiryAddress",
          "PropertyAddress",
          "ContactCountry",
          "ContactAddress"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "BroadcastEvent": {
        "properties": {
          "enquiryType": {
            "type": "string"
          },
          "locationId": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "Pick_TeamType.Exclude_keyofTeamType.company__": {
        "properties": {
          "id": {
            "type": "string"
          },
          "companyId": {
            "type": "string"
          },
          "crmId": {
            "type": "string",
            "description": "The CRM branch this team is mapped to, when an admin has mapped one.\n\nAll three are set together or all three are null — that is what makes\n`uniq_team_crm_external` constrain mapped teams while MySQL's NULL\nexemption leaves every unmapped team free."
          },
          "teamName": {
            "type": "string"
          },
          "crmExternalId": {
            "type": "string"
          },
          "crmSyncedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          }
        },
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "ITeamResponse": {
        "properties": {
          "id": {
            "type": "string"
          },
          "companyId": {
            "type": "string"
          },
          "crmId": {
            "type": "string",
            "description": "The CRM branch this team is mapped to, when an admin has mapped one.\n\nAll three are set together or all three are null — that is what makes\n`uniq_team_crm_external` constrain mapped teams while MySQL's NULL\nexemption leaves every unmapped team free."
          },
          "teamName": {
            "type": "string"
          },
          "crmExternalId": {
            "type": "string"
          },
          "crmSyncedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          },
          "company": {
            "$ref": "#/components/schemas/Omit_CompanyType.agents-or-agentCount_"
          },
          "negotiators": {
            "items": {},
            "type": "array",
            "nullable": true
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "TeamRequest": {
        "properties": {
          "id": {
            "type": "string"
          },
          "teamName": {
            "type": "string"
          },
          "companyId": {
            "type": "string"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "TeamPaginatedResponse": {
        "properties": {
          "message": {
            "type": "string"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/ITeamResponse"
            },
            "type": "array"
          },
          "pageNumber": {
            "type": "number",
            "format": "double"
          },
          "pageSize": {
            "type": "number",
            "format": "double"
          },
          "pageCount": {
            "type": "number",
            "format": "double"
          },
          "totalPageCount": {
            "type": "number",
            "format": "double"
          },
          "totalCount": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "pageNumber",
          "pageSize",
          "pageCount",
          "totalPageCount",
          "totalCount"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "TeamResponse": {
        "properties": {
          "message": {
            "type": "string"
          },
          "data": {
            "$ref": "#/components/schemas/ITeamResponse"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "AssignTeamRequest": {
        "properties": {
          "userId": {
            "type": "string"
          },
          "teamId": {
            "type": "string"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "Pick_ITeamResponse.Exclude_keyofITeamResponse.token__": {
        "properties": {
          "company": {
            "$ref": "#/components/schemas/Omit_CompanyType.agents-or-agentCount_"
          },
          "id": {
            "type": "string"
          },
          "companyId": {
            "type": "string"
          },
          "crmId": {
            "type": "string",
            "description": "The CRM branch this team is mapped to, when an admin has mapped one.\n\nAll three are set together or all three are null — that is what makes\n`uniq_team_crm_external` constrain mapped teams while MySQL's NULL\nexemption leaves every unmapped team free."
          },
          "negotiators": {
            "items": {},
            "type": "array"
          },
          "teamName": {
            "type": "string"
          },
          "crmExternalId": {
            "type": "string"
          },
          "crmSyncedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          }
        },
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "Omit_ITeamResponse.token_": {
        "$ref": "#/components/schemas/Pick_ITeamResponse.Exclude_keyofITeamResponse.token__",
        "description": "Construct a type with the properties of T except for those in type K."
      },
      "TeamUpdateRequest": {
        "properties": {
          "id": {
            "type": "string"
          },
          "companyId": {
            "type": "string"
          },
          "crmId": {
            "type": "string",
            "description": "The CRM branch this team is mapped to, when an admin has mapped one.\n\nAll three are set together or all three are null — that is what makes\n`uniq_team_crm_external` constrain mapped teams while MySQL's NULL\nexemption leaves every unmapped team free."
          },
          "teamName": {
            "type": "string"
          },
          "crmExternalId": {
            "type": "string"
          },
          "crmSyncedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "RevokeTeamType": {
        "properties": {
          "userId": {
            "type": "string"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "ITwilioUsageResponse": {
        "properties": {
          "id": {
            "type": "string"
          },
          "billingAccountId": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "account_sid": {
            "type": "string"
          },
          "start_date": {
            "type": "string",
            "format": "date-time"
          },
          "end_date": {
            "type": "string",
            "format": "date-time"
          },
          "as_of": {
            "type": "string",
            "format": "date-time"
          },
          "count": {
            "type": "string"
          },
          "count_unit": {
            "type": "string"
          },
          "usage": {
            "type": "string"
          },
          "usage_unit": {
            "type": "string"
          },
          "price": {
            "type": "string"
          },
          "price_unit": {
            "type": "string"
          },
          "api_version": {
            "type": "string"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "TwilioUsagePaginatedResponse": {
        "properties": {
          "message": {
            "type": "string"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/ITwilioUsageResponse"
            },
            "type": "array"
          },
          "pageNumber": {
            "type": "number",
            "format": "double"
          },
          "pageSize": {
            "type": "number",
            "format": "double"
          },
          "pageCount": {
            "type": "number",
            "format": "double"
          },
          "totalPageCount": {
            "type": "number",
            "format": "double"
          },
          "totalCount": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "pageNumber",
          "pageSize",
          "pageCount",
          "totalPageCount",
          "totalCount"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "MarkUpdateRequest": {
        "properties": {
          "responseModel": {
            "type": "string"
          },
          "responseMuValue": {
            "type": "number",
            "format": "double"
          },
          "responseInputPrice": {
            "type": "number",
            "format": "double"
          },
          "responseOutputPrice": {
            "type": "number",
            "format": "double"
          },
          "responseMuValueSales": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "responseMuValueLettings": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "responseModelSales": {
            "type": "string",
            "nullable": true
          },
          "responseModelLettings": {
            "type": "string",
            "nullable": true
          },
          "sentimentModel": {
            "type": "string"
          },
          "sentimentMuValue": {
            "type": "number",
            "format": "double"
          },
          "sentimentInputPrice": {
            "type": "number",
            "format": "double"
          },
          "sentimentOutputPrice": {
            "type": "number",
            "format": "double"
          },
          "enquiriesModel": {
            "type": "string"
          },
          "enquiriesMuValue": {
            "type": "number",
            "format": "double"
          },
          "enquiriesInputPrice": {
            "type": "number",
            "format": "double"
          },
          "enquiriesOutputPrice": {
            "type": "number",
            "format": "double"
          },
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "muvalue": {
            "type": "number",
            "format": "double"
          },
          "price": {
            "type": "number",
            "format": "double"
          },
          "description": {
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "MarkAddRequest": {
        "properties": {
          "responseModel": {
            "type": "string"
          },
          "responseMuValue": {
            "type": "number",
            "format": "double"
          },
          "responseInputPrice": {
            "type": "number",
            "format": "double"
          },
          "responseOutputPrice": {
            "type": "number",
            "format": "double"
          },
          "responseMuValueSales": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "responseMuValueLettings": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "responseModelSales": {
            "type": "string",
            "nullable": true
          },
          "responseModelLettings": {
            "type": "string",
            "nullable": true
          },
          "sentimentModel": {
            "type": "string"
          },
          "sentimentMuValue": {
            "type": "number",
            "format": "double"
          },
          "sentimentInputPrice": {
            "type": "number",
            "format": "double"
          },
          "sentimentOutputPrice": {
            "type": "number",
            "format": "double"
          },
          "enquiriesModel": {
            "type": "string"
          },
          "enquiriesMuValue": {
            "type": "number",
            "format": "double"
          },
          "enquiriesInputPrice": {
            "type": "number",
            "format": "double"
          },
          "enquiriesOutputPrice": {
            "type": "number",
            "format": "double"
          },
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "muvalue": {
            "type": "number",
            "format": "double"
          },
          "description": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "title",
          "muvalue"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "AiModelInput": {
        "properties": {
          "model": {
            "type": "string"
          },
          "groupName": {
            "type": "string",
            "nullable": true
          },
          "sortOrder": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "inputPrice": {
            "anyOf": [
              {
                "type": "number",
                "format": "double"
              },
              {
                "type": "string"
              }
            ],
            "nullable": true
          },
          "outputPrice": {
            "anyOf": [
              {
                "type": "number",
                "format": "double"
              },
              {
                "type": "string"
              }
            ],
            "nullable": true
          },
          "isActive": {
            "type": "boolean",
            "nullable": true
          },
          "effort": {
            "type": "string",
            "nullable": true
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "RoleInput": {
        "properties": {
          "sections": {},
          "name": {}
        },
        "type": "object"
      },
      "StaffInput": {
        "properties": {
          "promote": {},
          "roleId": {},
          "email": {},
          "name": {}
        },
        "type": "object",
        "description": "`promote: true` confirms making an existing Agent or Admin staff in place (see `addStaff`)."
      },
      "SrtType": {
        "properties": {
          "enquiryType": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "srtToken": {
            "type": "number",
            "format": "double"
          },
          "aiType": {
            "type": "string"
          },
          "markupType": {
            "type": "string"
          },
          "date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "string"
              }
            ]
          },
          "locationId": {
            "type": "string"
          },
          "billingAccountId": {
            "type": "string"
          },
          "id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "SrtAddRequest": {
        "properties": {
          "id": {
            "type": "string"
          },
          "billingAccountId": {
            "type": "string"
          },
          "locationId": {
            "type": "string"
          },
          "date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "string"
              }
            ]
          },
          "markupType": {
            "type": "string"
          },
          "srtToken": {
            "type": "number",
            "format": "double"
          },
          "description": {
            "type": "number",
            "format": "double"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "ISrtResponse": {
        "properties": {
          "id": {
            "type": "string"
          },
          "billingAccountId": {
            "type": "string"
          },
          "locationsId": {
            "type": "string"
          },
          "markupType": {
            "type": "string"
          },
          "sprtId": {
            "type": "string"
          },
          "sprtToken": {
            "type": "number",
            "format": "double"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "SrtsPaginatedResponse": {
        "properties": {
          "message": {
            "type": "string"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/ISrtResponse"
            },
            "type": "array"
          },
          "pageNumber": {
            "type": "number",
            "format": "double"
          },
          "pageSize": {
            "type": "number",
            "format": "double"
          },
          "pageCount": {
            "type": "number",
            "format": "double"
          },
          "totalPageCount": {
            "type": "number",
            "format": "double"
          },
          "totalCount": {
            "type": "number",
            "format": "double"
          }
        },
        "required": [
          "pageNumber",
          "pageSize",
          "pageCount",
          "totalPageCount",
          "totalCount"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "UserApiType": {
        "properties": {
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "expiresAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ],
            "nullable": true
          },
          "locationIds": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "nullable": true,
            "description": "List of locations this key is authorised for. Pass a one-item array for single-location keys."
          },
          "key": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "id": {
            "type": "string",
            "nullable": true
          }
        },
        "type": "object"
      },
      "Pick_UserApiType.locationIds-or-expiresAt_": {
        "properties": {
          "locationIds": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "description": "List of locations this key is authorised for. Pass a one-item array for single-location keys."
          },
          "expiresAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "format": "date-time"
              }
            ]
          }
        },
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      }
    },
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      "bearerFirebase": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Firebase ID token issued to a signed-in SalesRook user."
      },
      "bearerUserApiKey": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "UserApi key JWT issued via POST /api-key. Server-to-server integrators."
      },
      "bearerWebhookJwt": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Legacy webhook JWT signed with WH_SECRET. Used by zazu/n8n."
      }
    }
  },
  "info": {
    "title": "salesrook-server",
    "version": "1.0.0",
    "contact": {}
  },
  "paths": {
    "/home": {
      "get": {
        "operationId": "GetMessage",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Home"
                }
              }
            }
          }
        },
        "tags": [
          "Test"
        ],
        "security": [],
        "parameters": [],
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · GET /home"
      }
    },
    "/reapit": {
      "post": {
        "operationId": "Create",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReapitUsageType"
                }
              }
            }
          }
        },
        "tags": [
          "Reapit"
        ],
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReapitUsageType"
              }
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /reapit"
      }
    },
    "/user/{crmName}": {
      "post": {
        "operationId": "SignIn",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserResponse"
                }
              }
            }
          }
        },
        "tags": [
          "User"
        ],
        "security": [],
        "parameters": [
          {
            "in": "query",
            "name": "authorizationCode",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "crmName",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /user/{crmName}"
      }
    },
    "/user": {
      "post": {
        "operationId": "Create",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/IUserResponse"
                    },
                    {}
                  ]
                }
              }
            }
          }
        },
        "tags": [
          "User"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · POST /user"
      },
      "get": {
        "operationId": "ReadAccount",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserResponse"
                }
              }
            }
          }
        },
        "tags": [
          "User"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "email",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "companyId",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /user"
      }
    },
    "/user/{id}": {
      "patch": {
        "operationId": "UpdateProfile",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Omit_IUserResponse.token_"
                }
              }
            }
          }
        },
        "tags": [
          "User"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserUpdateRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · PATCH /user/{id}"
      },
      "delete": {
        "operationId": "Delete",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "User"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · DELETE /user/{id}"
      }
    },
    "/user/unified": {
      "get": {
        "operationId": "GetUnifiedUsers",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserResponse"
                }
              }
            }
          }
        },
        "tags": [
          "User"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "name",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "email",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "phone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageNumber",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "sortBy",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /user/unified"
      }
    },
    "/user/unified-statistics": {
      "get": {
        "operationId": "GetUnifiedUserStatistics",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "User"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /user/unified-statistics"
      }
    },
    "/user/signout-company/{companyId}": {
      "post": {
        "operationId": "SignOutCompanyUsers",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "User"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companyId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · POST /user/signout-company/{companyId}"
      }
    },
    "/user/signout-all-negotiator": {
      "post": {
        "operationId": "SignOutAllNegotiatorUsers",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "User"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · POST /user/signout-all-negotiator"
      }
    },
    "/user/integration": {
      "get": {
        "operationId": "UserIntegration",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "User"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · GET /user/integration"
      }
    },
    "/billing-accounts": {
      "post": {
        "operationId": "Create",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/IBillingAccountResponse"
                    },
                    {}
                  ]
                }
              }
            }
          }
        },
        "tags": [
          "Billing Account"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BillingAccountRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · POST /billing-accounts"
      },
      "get": {
        "operationId": "GetBillingAccounts",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingAccountPaginatedResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Billing Account"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "locationId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "companyName",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · GET /billing-accounts"
      }
    },
    "/billing-accounts/detailed-list": {
      "get": {
        "operationId": "ListBillingAccountsDetailed",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingAccountPaginatedResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Billing Account"
        ],
        "security": [
          {
            "bearerFirebase": []
          },
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "pageNumber",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "companyName",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "sortBy",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "in": "query",
            "name": "priceModel",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "SuperAdmin",
          "ExternalKey"
        ],
        "summary": "[Super Admin | External Key] · GET /billing-accounts/detailed-list"
      }
    },
    "/billing-accounts/price-models": {
      "get": {
        "operationId": "ListPriceModels",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PriceModelListResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Billing Account"
        ],
        "security": [
          {
            "bearerFirebase": []
          },
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "parameters": [],
        "x-auth-modes": [
          "SuperAdmin",
          "ExternalKey"
        ],
        "summary": "[Super Admin | External Key] · GET /billing-accounts/price-models"
      }
    },
    "/billing-accounts/{id}/price-model-history": {
      "get": {
        "operationId": "GetPriceModelHistory",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Billing Account"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · GET /billing-accounts/{id}/price-model-history"
      }
    },
    "/billing-accounts/summary": {
      "get": {
        "operationId": "GetBillingAccountsSummary",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "multiProduct": {
                      "type": "number",
                      "format": "double"
                    },
                    "negotiator": {
                      "type": "number",
                      "format": "double"
                    },
                    "core": {
                      "type": "number",
                      "format": "double"
                    },
                    "inactive": {
                      "type": "number",
                      "format": "double"
                    },
                    "staging": {
                      "type": "number",
                      "format": "double"
                    },
                    "live": {
                      "type": "number",
                      "format": "double"
                    },
                    "total": {
                      "type": "number",
                      "format": "double"
                    }
                  },
                  "required": [
                    "multiProduct",
                    "negotiator",
                    "core",
                    "inactive",
                    "staging",
                    "live",
                    "total"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "Billing Account"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · GET /billing-accounts/summary"
      }
    },
    "/billing-accounts/{id}": {
      "patch": {
        "operationId": "UpdateBillingAccount",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Omit_IBillingAccountResponse.token_"
                }
              }
            }
          }
        },
        "tags": [
          "Billing Account"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BillingAccountUpdateRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · PATCH /billing-accounts/{id}"
      },
      "delete": {
        "operationId": "Delete",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "tags": [
          "Billing Account"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "forceDelete",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · DELETE /billing-accounts/{id}"
      }
    },
    "/billing-accounts/token-consumption-detail": {
      "get": {
        "operationId": "SrtTokenConsumptionDetails",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Billing Account"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "billingAccountId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "startDate",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "endDate",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "timezone",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /billing-accounts/token-consumption-detail"
      }
    },
    "/prompt-center": {
      "post": {
        "operationId": "CreatePrompt",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "PromptCenter"
        ],
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {}
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /prompt-center"
      },
      "get": {
        "operationId": "GetLocationVersion",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "PromptCenter"
        ],
        "security": [],
        "parameters": [
          {
            "in": "query",
            "name": "locationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "customValueId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · GET /prompt-center"
      }
    },
    "/core/detailed-list": {
      "get": {
        "operationId": "GetDetailedList",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Core"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "locationId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "companyName",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "sortBy",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "in": "query",
            "name": "startDate",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "endDate",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageNumber",
            "required": false,
            "schema": {}
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {}
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /core/detailed-list"
      }
    },
    "/core/dashboard-numbers": {
      "get": {
        "operationId": "GetDashboardNumbers",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Core"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "locationId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "startDate",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "endDate",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /core/dashboard-numbers"
      }
    },
    "/core/location/{id}/offices-address": {
      "post": {
        "operationId": "CreateOfficesAddress",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoreOfficeAddressType"
                }
              }
            }
          }
        },
        "tags": [
          "Core"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CoreOfficeAddressType"
              }
            }
          }
        },
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · POST /core/location/{id}/offices-address"
      },
      "get": {
        "operationId": "GetOfficesAddress",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Core"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "postal_code",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "robot_email",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "sortBy",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "in": "query",
            "name": "pageNumber",
            "required": false,
            "schema": {}
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {}
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /core/location/{id}/offices-address"
      }
    },
    "/core/location/{id}/offices-address/{officeAddressId}": {
      "put": {
        "operationId": "UpdateOfficesAddress",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoreOfficeAddressType"
                }
              }
            }
          }
        },
        "tags": [
          "Core"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "locationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "officeAddressId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CoreOfficeAddressType"
              }
            }
          }
        },
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · PUT /core/location/{id}/offices-address/{officeAddressId}"
      },
      "delete": {
        "operationId": "DeleteOfficesAddress",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoreOfficeAddressType"
                }
              }
            }
          }
        },
        "tags": [
          "Core"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "officeAddressId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · DELETE /core/location/{id}/offices-address/{officeAddressId}"
      }
    },
    "/core/location/{id}/offices-address/{officeAddressId}/postal-codes/{postalCodeId}": {
      "delete": {
        "operationId": "DeletePostalCodes",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoreOfficeAddressType"
                }
              }
            }
          }
        },
        "tags": [
          "Core"
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "officeAddressId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "postalCodeId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · DELETE /core/location/{id}/offices-address/{officeAddressId}/postal-codes/{postalCodeId}"
      }
    },
    "/core/location/{id}/offices-address-upload": {
      "post": {
        "operationId": "OfficesAddressUpload",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Core"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                },
                "required": [
                  "file"
                ]
              }
            }
          }
        },
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · POST /core/location/{id}/offices-address-upload"
      }
    },
    "/core/core-offices-address": {
      "post": {
        "operationId": "GetOfficesAddressForWorkhook",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Core"
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "robotEmail": {
                    "type": "string"
                  },
                  "postalCode": {
                    "type": "string"
                  },
                  "locationId": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /core/core-offices-address"
      }
    },
    "/core/location/{id}/contacts": {
      "get": {
        "operationId": "GetContacts",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Core"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "sortBy",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "in": "query",
            "name": "pageNumber",
            "required": false,
            "schema": {}
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {}
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /core/location/{id}/contacts"
      }
    },
    "/core/location/{id}/users": {
      "get": {
        "operationId": "GetUsers",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Core"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "sortBy",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "in": "query",
            "name": "pageNumber",
            "required": false,
            "schema": {}
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {}
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /core/location/{id}/users"
      }
    },
    "/core/location/{id}/sync-users": {
      "get": {
        "operationId": "SyncUsers",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Core"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "locationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /core/location/{id}/sync-users"
      }
    },
    "/core/refresh-token": {
      "post": {
        "operationId": "RefreshToken",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Core"
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [],
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /core/refresh-token"
      },
      "get": {
        "summary": "[Admin / User] · GET /core/refresh-token",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Core"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/core": {
      "get": {
        "operationId": "GetCompaniesLocations",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingAccount"
                }
              }
            }
          }
        },
        "tags": [
          "Core"
        ],
        "security": [],
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · GET /core"
      }
    },
    "/core/location/{id}/meta-data": {
      "get": {
        "operationId": "GetLocationMeta",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Core"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "locationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /core/location/{id}/meta-data"
      },
      "put": {
        "operationId": "UpdateLocationMeta",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Core"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "locationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {}
            }
          }
        },
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · PUT /core/location/{id}/meta-data"
      }
    },
    "/core/core-metadata-integration/{locationId}": {
      "get": {
        "operationId": "GetIntegrationMeta",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Core"
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "locationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · GET /core/core-metadata-integration/{locationId}"
      }
    },
    "/core/find-location-by-robot-email": {
      "post": {
        "operationId": "FindRobotEmail",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Core"
        ],
        "security": [],
        "parameters": [
          {
            "in": "query",
            "name": "robotEmail",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /core/find-location-by-robot-email"
      }
    },
    "/artifacts": {
      "post": {
        "operationId": "UploadHtmlFile",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "Upload HTML file as a shareable report with WhatsApp preview support",
        "tags": [
          "Artifacts"
        ],
        "security": [
          {
            "jwt": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "type": {
                    "type": "string"
                  },
                  "locationId": {
                    "type": "string"
                  },
                  "startDate": {
                    "type": "string"
                  },
                  "endDate": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "shareId": {
                    "type": "string"
                  },
                  "password": {
                    "type": "string"
                  },
                  "accessLevel": {
                    "type": "string"
                  },
                  "isPublic": {
                    "type": "string"
                  },
                  "ogImageUrl": {
                    "type": "string"
                  }
                },
                "required": [
                  "file",
                  "type"
                ]
              }
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /artifacts"
      }
    },
    "/artifacts/{id}/content": {
      "put": {
        "operationId": "ReplaceHtmlContent",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "Replace the HTML content (and optionally metadata / password) of an\nexisting artifact. The share URL stays the same because the underlying\nfileName is reused.",
        "tags": [
          "Artifacts"
        ],
        "security": [
          {
            "jwt": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "title": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "password": {
                    "type": "string"
                  },
                  "removePassword": {
                    "type": "string"
                  },
                  "accessLevel": {
                    "type": "string"
                  },
                  "ogImageUrl": {
                    "type": "string"
                  },
                  "removeOgImageUrl": {
                    "type": "string"
                  }
                },
                "required": [
                  "file"
                ]
              }
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · PUT /artifacts/{id}/content"
      }
    },
    "/artifacts/{id}/password": {
      "put": {
        "operationId": "UpdateArtifactPassword",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "Set, change, or remove the password on an existing artifact without\ntouching the uploaded HTML. Pass `removePassword: \"true\"` to clear it.",
        "tags": [
          "Artifacts"
        ],
        "security": [
          {
            "jwt": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "accessLevel": {
                    "type": "string"
                  },
                  "removePassword": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "boolean"
                      }
                    ]
                  },
                  "password": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · PUT /artifacts/{id}/password"
      }
    },
    "/artifacts/{fileName}": {
      "get": {
        "operationId": "GetHtmlArtifact",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "Get a specific HTML artifact by fileName (legacy support)",
        "tags": [
          "Artifacts"
        ],
        "security": [
          {
            "jwt": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "fileName",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · GET /artifacts/{fileName}"
      }
    },
    "/artifacts/share/{shareId}": {
      "get": {
        "operationId": "GetPublicHtmlArtifact",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "Public endpoint for shared reports (for WhatsApp and other preview crawlers)",
        "tags": [
          "Artifacts"
        ],
        "security": [],
        "parameters": [
          {
            "in": "path",
            "name": "shareId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · GET /artifacts/share/{shareId}"
      }
    },
    "/artifacts/all": {
      "get": {
        "operationId": "GetArtifacts",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "Get all HTML reports with sharing info",
        "tags": [
          "Artifacts"
        ],
        "security": [
          {
            "jwt": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "locationId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "sortBy",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "negotiator",
                "report",
                "cohort",
                "mortgage",
                "other"
              ]
            }
          },
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "userId",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · GET /artifacts/all"
      }
    },
    "/artifacts/{id}": {
      "delete": {
        "operationId": "DeleteArtifact",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "Delete a shareable report",
        "tags": [
          "Artifacts"
        ],
        "security": [
          {
            "jwt": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · DELETE /artifacts/{id}"
      }
    },
    "/company": {
      "post": {
        "operationId": "Create",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/CompanyResponse"
                    },
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ]
                }
              }
            }
          }
        },
        "tags": [
          "Company"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · POST /company"
      },
      "get": {
        "operationId": "Find",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Company"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "name",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageNumber",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /company"
      }
    },
    "/company/{id}/agents": {
      "get": {
        "operationId": "ReadAgents",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserPaginatedResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Company"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "active",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "associations",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "in": "query",
            "name": "pageNumber",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /company/{id}/agents"
      }
    },
    "/company/{id}": {
      "get": {
        "operationId": "ReadAccount",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Company"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /company/{id}"
      },
      "patch": {
        "operationId": "Update",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Company"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyUpdateRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · PATCH /company/{id}"
      },
      "delete": {
        "operationId": "Delete",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Company"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · DELETE /company/{id}"
      }
    },
    "/company/{id}/all-users": {
      "get": {
        "operationId": "ReadUsers",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Company"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageNumber",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "teamId",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /company/{id}/all-users"
      }
    },
    "/company/{id}/user-activity": {
      "get": {
        "operationId": "ReadUserActivity",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserActivityResponse"
                }
              }
            }
          }
        },
        "description": "When each of a company's users last signed in to and used the Negotiator\nextension (migration 163), most recently active first. Built for the hosted\nMCP server's `get_company_user_activity` tool.",
        "tags": [
          "Company"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /company/{id}/user-activity"
      }
    },
    "/company/detailed-list": {
      "get": {
        "operationId": "FetchNeociatorListWithDetails",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Company"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companyId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageNumber",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "sortBy",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /company/detailed-list"
      }
    },
    "/company/account-type-count": {
      "get": {
        "operationId": "ReadAccountCount",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "License"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /company/account-type-count"
      }
    },
    "/company/license": {
      "post": {
        "operationId": "Create",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "License"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyLicenseRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · POST /company/license"
      }
    },
    "/company/license-current": {
      "get": {
        "operationId": "ReadCurrentLicense",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "License"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companyId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageNumber",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /company/license-current"
      }
    },
    "/company/{id}/license": {
      "get": {
        "operationId": "ReadAccout",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "License"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "download",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /company/{id}/license"
      }
    },
    "/company/license-latest": {
      "get": {
        "operationId": "ReadLatestLicense",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "License"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companyId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageNumber",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "sortBy",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /company/license-latest"
      }
    },
    "/company/license/{licenseId}": {
      "patch": {
        "operationId": "UpdateLicense",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "License"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "licenseId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ICompanyLicenseUpdateRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · PATCH /company/license/{licenseId}"
      },
      "delete": {
        "operationId": "DeleteLicense",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "License"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "licenseId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · DELETE /company/license/{licenseId}"
      }
    },
    "/agent/inviteMany": {
      "post": {
        "operationId": "InviteMany",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Omit_UserResponse.data_"
                }
              }
            }
          }
        },
        "tags": [
          "Agent"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                },
                "required": [
                  "file"
                ]
              }
            }
          }
        },
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · POST /agent/inviteMany"
      }
    },
    "/agent/inviteMany/{companyId}": {
      "post": {
        "operationId": "InviteManyByCompanyId",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Omit_UserResponse.data_"
                }
              }
            }
          }
        },
        "tags": [
          "Agent"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "companyId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                },
                "required": [
                  "file"
                ]
              }
            }
          }
        },
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · POST /agent/inviteMany/{companyId}"
      }
    },
    "/agent/invite": {
      "post": {
        "operationId": "Invite",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Agent"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/createInvitedUserType"
              }
            }
          }
        },
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · POST /agent/invite"
      },
      "get": {
        "operationId": "GetInvited",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvitedUserPaginatedResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Agent"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /agent/invite"
      }
    },
    "/agent/{userId}/profile": {
      "patch": {
        "operationId": "UpdateProfile",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Agent"
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/agentProfileUpdate"
              }
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · PATCH /agent/{userId}/profile"
      }
    },
    "/agent/{id}/register": {
      "post": {
        "operationId": "Register",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Agent"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserRegisterRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · POST /agent/{id}/register"
      }
    },
    "/agent/{userId}/account": {
      "patch": {
        "operationId": "UpdateAccount",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Agent"
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/agentAccountUpdate"
              }
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · PATCH /agent/{userId}/account"
      }
    },
    "/agent/{id}": {
      "delete": {
        "operationId": "Delete",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Agent"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · DELETE /agent/{id}"
      }
    },
    "/agent/invite/{id}": {
      "delete": {
        "operationId": "InviteDelete",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Agent"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · DELETE /agent/invite/{id}"
      }
    },
    "/admin/{id}": {
      "delete": {
        "operationId": "Delete",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Admin"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · DELETE /admin/{id}"
      }
    },
    "/admin": {
      "post": {
        "operationId": "Create",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Admin"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · POST /admin"
      }
    },
    "/crm/refresh-token": {
      "post": {
        "operationId": "RefreshToken",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · POST /crm/refresh-token"
      }
    },
    "/crm/association": {
      "get": {
        "operationId": "GetCrmAssociation",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedResponse"
                }
              }
            }
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "parameterName",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/CrmAssociationFilter"
            }
          },
          {
            "in": "query",
            "name": "parameterValue",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "association",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/CrmMessageAssociations"
            }
          },
          {
            "in": "query",
            "name": "searchType",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/associationSearchType"
            }
          },
          {
            "in": "query",
            "name": "pageNumber",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /crm/association"
      },
      "put": {
        "operationId": "SaveCrmDefaultChatAssociation",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CrmDefaultContactRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · PUT /crm/association"
      },
      "delete": {
        "operationId": "DeleteCrmDefaultContact",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "phone",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · DELETE /crm/association"
      }
    },
    "/crm/activities": {
      "get": {
        "operationId": "GetCrmActivities",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedResponse"
                }
              }
            }
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "associatedType",
            "required": false,
            "schema": {
              "type": "string"
            },
            "examples": {
              "Example 1": {
                "value": ""
              },
              "Example 2": {
                "value": "applicant"
              },
              "Example 3": {
                "value": "contact"
              },
              "Example 4": {
                "value": "company"
              },
              "Example 5": {
                "value": "landlord"
              },
              "Example 6": {
                "value": "tenancy"
              }
            }
          },
          {
            "in": "query",
            "name": "associatedId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "propertyId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageNumber",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /crm/activities"
      }
    },
    "/crm/roles-records": {
      "get": {
        "operationId": "GetCrmRolesAndRecords",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedResponse"
                }
              }
            }
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "applicantId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "propertyId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageNumber",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /crm/roles-records"
      }
    },
    "/crm/profile-bundle": {
      "get": {
        "operationId": "GetCrmProfileBundle",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "Bundled fetch of activities + roles-and-records + tasks for a single\ncontact/property, backed by a 30s in-memory cache in the interactor.\nThe Negotiator's contact panel calls this once per open instead of\nhitting `/activities`, `/roles-records`, `/tasks` separately. See\n`CrmInteractor.getCrmProfileBundle` for cache semantics.",
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "associatedType",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "associatedId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /crm/profile-bundle"
      }
    },
    "/crm/tasks": {
      "get": {
        "operationId": "GetCrmTasks",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "contactId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "applicantId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "landlordId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "tenancyId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "propertyId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageNumber",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /crm/tasks"
      }
    },
    "/crm/messages/personal": {
      "post": {
        "operationId": "SaveCrmPersonalChat",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Response"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "message": "Messages synced succesfully!",
                      "data": []
                    }
                  },
                  "Example 2": {
                    "value": {
                      "message": "No messages left to sync!",
                      "data": []
                    }
                  }
                }
              }
            }
          }
        },
        "description": "`timezonename` is the agent's IANA zone and is preferred — it carries the\nDST rules, so GMT/BST is resolved per message rather than from a single\noffset. `timezone` (offset in minutes) is the legacy fallback for older\nextension builds.",
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "timezone",
            "required": true,
            "schema": {
              "type": "string"
            },
            "examples": {
              "Example 1": {
                "value": "0"
              },
              "Example 2": {
                "value": "+330"
              },
              "Example 3": {
                "value": "-60"
              },
              "Example 4": {
                "value": "Europe/London"
              }
            }
          },
          {
            "in": "query",
            "name": "force",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "timezonename",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "Europe/London"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CrmPersonalChatRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · POST /crm/messages/personal"
      }
    },
    "/crm/messages/group": {
      "post": {
        "operationId": "SaveCrmGroupChat",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {},
                "examples": {
                  "Example 1": {
                    "value": {
                      "message": "Messages synced succesfully!",
                      "data": []
                    }
                  },
                  "Example 2": {
                    "value": {
                      "message": "No messages left to sync!",
                      "data": []
                    }
                  }
                }
              }
            }
          }
        },
        "description": "`timezonename` is the agent's IANA zone and is preferred — it carries the\nDST rules, so GMT/BST is resolved per message rather than from a single\noffset. `timezone` (offset in minutes) is the legacy fallback for older\nextension builds.",
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "timezone",
            "required": true,
            "schema": {
              "type": "string"
            },
            "examples": {
              "Example 1": {
                "value": "0"
              },
              "Example 2": {
                "value": "+330"
              },
              "Example 3": {
                "value": "-60"
              },
              "Example 4": {
                "value": "Europe/London"
              }
            }
          },
          {
            "in": "query",
            "name": "force",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "in": "header",
            "name": "timezonename",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "Europe/London"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CrmGroupChatRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · POST /crm/messages/group"
      }
    },
    "/crm/messages/agent-engagement": {
      "get": {
        "operationId": "GetCompanyAgentEngagements",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "timezone",
            "required": true,
            "schema": {
              "type": "string"
            },
            "examples": {
              "Example 1": {
                "value": "0"
              },
              "Example 2": {
                "value": "+330"
              },
              "Example 3": {
                "value": "-60"
              }
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "2022-05-15T12:00:00+00:00"
          },
          {
            "in": "query",
            "name": "to",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "2022-05-15T12:00:00+00:00"
          },
          {
            "in": "query",
            "name": "userId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "companyId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "teamId",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /crm/messages/agent-engagement"
      }
    },
    "/crm/messages/company-engagement": {
      "get": {
        "operationId": "GetCompanyEngagement",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "timezone",
            "required": true,
            "schema": {
              "type": "string"
            },
            "examples": {
              "Example 1": {
                "value": "0"
              },
              "Example 2": {
                "value": "+330"
              },
              "Example 3": {
                "value": "-60"
              }
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "2022-05-15T12:00:00+00:00"
          },
          {
            "in": "query",
            "name": "to",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "2022-05-15T12:00:00+00:00"
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /crm/messages/company-engagement"
      }
    },
    "/crm/messages/engagement-over-time": {
      "get": {
        "operationId": "GetEngagementOverTime",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "timezone",
            "required": true,
            "schema": {
              "type": "string"
            },
            "examples": {
              "Example 1": {
                "value": "0"
              },
              "Example 2": {
                "value": "+330"
              },
              "Example 3": {
                "value": "-60"
              }
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "2022-05-15T12:00:00+00:00"
          },
          {
            "in": "query",
            "name": "to",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "2022-05-15T12:00:00+00:00"
          },
          {
            "in": "query",
            "name": "companyId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "teamId",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /crm/messages/engagement-over-time"
      }
    },
    "/crm/messages": {
      "get": {
        "operationId": "GetTotalMessages",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "2022-05-15T12:00:00+00:00"
          },
          {
            "in": "query",
            "name": "to",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "2022-05-15T12:00:00+00:00"
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /crm/messages"
      }
    },
    "/crm/messages/engaged-people": {
      "get": {
        "operationId": "GetEngagedPoeple",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "2022-05-15T12:00:00+00:00"
          },
          {
            "in": "query",
            "name": "to",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "2022-05-15T12:00:00+00:00"
          },
          {
            "in": "query",
            "name": "companyId",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /crm/messages/engaged-people"
      }
    },
    "/crm/messages/users": {
      "get": {
        "operationId": "GetTotalPeople",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companyId",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /crm/messages/users"
      }
    },
    "/crm/messages/account-performance": {
      "get": {
        "operationId": "GetAccountPerformance",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "timezone",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "2022-05-15T12:00:00+00:00"
          },
          {
            "in": "query",
            "name": "to",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "2022-05-15T12:00:00+00:00"
          },
          {
            "in": "query",
            "name": "pageNumber",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "sortBy",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /crm/messages/account-performance"
      }
    },
    "/crm/document": {
      "post": {
        "operationId": "SaveCrmDocument",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "timezone",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CrmDocumentCreate"
              }
            }
          }
        },
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · POST /crm/document"
      }
    },
    "/crm/association-details": {
      "get": {
        "operationId": "GetAssociationDetails",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "associatedType",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/ContactRoleType"
            }
          },
          {
            "in": "query",
            "name": "associatedId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "propertyId",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /crm/association-details"
      }
    },
    "/user-roles": {
      "get": {
        "operationId": "ReadRoles",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoleResponse"
                }
              }
            }
          }
        },
        "tags": [
          "User Roles"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "name",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /user-roles"
      }
    },
    "/export-csv": {
      "get": {
        "operationId": "ExportCsv",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Export csv"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "timezone",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "fromDate",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "toDate",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · GET /export-csv"
      }
    },
    "/whatsapp-usage": {
      "post": {
        "operationId": "Create",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Whatsapp"
        ],
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "request": {
                    "type": "string"
                  }
                },
                "required": [
                  "request"
                ]
              }
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /whatsapp-usage"
      }
    },
    "/whatsapp-usage/create-whatsapp": {
      "post": {
        "operationId": "CreateWhatsappSrtTransaction",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Whatsapp"
        ],
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "date": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /whatsapp-usage/create-whatsapp"
      }
    },
    "/whatsapp-usage/daily-report-numbers": {
      "get": {
        "operationId": "DailyReportNumbers",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Whatsapp"
        ],
        "security": [],
        "parameters": [
          {
            "in": "query",
            "name": "startDate",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "endDate",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "coreLocationId",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · GET /whatsapp-usage/daily-report-numbers"
      }
    },
    "/whatsapp-usage/csv-download": {
      "get": {
        "operationId": "ExportCsv",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Whatsapp"
        ],
        "security": [],
        "parameters": [
          {
            "in": "query",
            "name": "startDate",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "endDate",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "billingAccountId",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · GET /whatsapp-usage/csv-download"
      }
    },
    "/transaction/create-webhook": {
      "post": {
        "operationId": "CreateWebhook",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Transaction"
        ],
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookTransactionType"
              }
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /transaction/create-webhook"
      }
    },
    "/lead-event": {
      "get": {
        "operationId": "Get",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "items": {
                        "$ref": "#/components/schemas/LeadEvent"
                      },
                      "type": "array"
                    },
                    {
                      "type": "string"
                    }
                  ]
                }
              }
            }
          }
        },
        "tags": [
          "lead-event"
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "type",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "startDate",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "endDate",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "locationId",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · GET /lead-event"
      },
      "post": {
        "operationId": "CreateLeadEvent",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "lead-event"
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LeadEvent"
              }
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /lead-event"
      }
    },
    "/zap/entry-zap-sanitization": {
      "post": {
        "operationId": "EntryZapSanitization",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Zap"
        ],
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {}
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /zap/entry-zap-sanitization"
      }
    },
    "/zap/entry-zap-sanitization-v2": {
      "post": {
        "operationId": "EntryZapSanitizationV2",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Zap"
        ],
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {}
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /zap/entry-zap-sanitization-v2"
      }
    },
    "/zap/enquries-meta-data": {
      "post": {
        "operationId": "CreateEnquriesMetaData",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Zap"
        ],
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {}
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /zap/enquries-meta-data"
      },
      "put": {
        "operationId": "UpdateEnquriesMetaData",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Zap"
        ],
        "security": [],
        "parameters": [
          {
            "in": "query",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {}
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · PUT /zap/enquries-meta-data"
      }
    },
    "/zap/enquries-meta-data/export": {
      "get": {
        "operationId": "ExportEnquiriesCsv",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Zap"
        ],
        "security": [],
        "parameters": [
          {
            "in": "query",
            "name": "startDate",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "endDate",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "locationId",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · GET /zap/enquries-meta-data/export"
      }
    },
    "/zap/zap-enquries-status": {
      "get": {
        "operationId": "GetEnquiriesStatus",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Zap"
        ],
        "security": [],
        "parameters": [
          {
            "in": "query",
            "name": "date",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · GET /zap/zap-enquries-status"
      }
    },
    "/zap/entry-zap/v3.2": {
      "post": {
        "operationId": "EntryV32",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Zap"
        ],
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {}
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /zap/entry-zap/v3.2"
      }
    },
    "/zap/exit-zap-create-enquiry": {
      "post": {
        "operationId": "CreateExitEnquiry",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnquiryResponse"
                }
              }
            }
          }
        },
        "description": "Unified CRM exit-enquiry endpoint. Reads CoreMetaData.integration for the given LocationId\nand dispatches to the correct CRM strategy via the registry in ./exitEnquiry.\nThe 9 legacy CRM-specific endpoints below are kept verbatim — this is additive.\nSee UNIFIED_EXIT_ENDPOINT.md for design.",
        "tags": [
          "Zap"
        ],
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnquriesRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /zap/exit-zap-create-enquiry"
      }
    },
    "/zap/exit-zap-create-reapit-enquries": {
      "post": {
        "operationId": "CreateReapitEnquries",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "description": {
                      "type": "string"
                    },
                    "dateTime": {
                      "type": "string"
                    },
                    "statusCode": {
                      "type": "number",
                      "format": "double"
                    },
                    "errors": {
                      "items": {
                        "properties": {
                          "message": {
                            "type": "string"
                          },
                          "field": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "message",
                          "field"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "description",
                    "statusCode"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "Zap"
        ],
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnquriesRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /zap/exit-zap-create-reapit-enquries"
      }
    },
    "/zap/exit-zap-create-leadpro-enquries": {
      "post": {
        "operationId": "CreateLeadProEnquries",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "description": {
                      "type": "string"
                    },
                    "dateTime": {
                      "type": "string"
                    },
                    "statusCode": {
                      "type": "number",
                      "format": "double"
                    },
                    "errors": {
                      "items": {
                        "properties": {
                          "message": {
                            "type": "string"
                          },
                          "field": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "message",
                          "field"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "description",
                    "statusCode"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "Zap"
        ],
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnquriesRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /zap/exit-zap-create-leadpro-enquries"
      }
    },
    "/zap/exit-zap-create-acquaint-enquries": {
      "post": {
        "operationId": "CreateAcquaintEnquries",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "description": {
                      "type": "string"
                    },
                    "dateTime": {
                      "type": "string"
                    },
                    "statusCode": {
                      "type": "number",
                      "format": "double"
                    },
                    "errors": {
                      "items": {
                        "properties": {
                          "message": {
                            "type": "string"
                          },
                          "field": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "message",
                          "field"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "description",
                    "statusCode"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "Zap"
        ],
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnquriesRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /zap/exit-zap-create-acquaint-enquries"
      }
    },
    "/zap/exit-zap-create-street-enquries": {
      "post": {
        "operationId": "CreateStreetEnquries",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "description": {
                      "type": "string"
                    },
                    "dateTime": {
                      "type": "string"
                    },
                    "statusCode": {
                      "type": "number",
                      "format": "double"
                    },
                    "errors": {
                      "items": {
                        "properties": {
                          "message": {
                            "type": "string"
                          },
                          "field": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "message",
                          "field"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "description",
                    "statusCode"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "Zap"
        ],
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnquriesRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /zap/exit-zap-create-street-enquries"
      }
    },
    "/zap/exit-zap-create-agent-pro-enquries": {
      "post": {
        "operationId": "CreateAgentProEnquriesAPI",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "description": {
                      "type": "string"
                    },
                    "dateTime": {
                      "type": "string"
                    },
                    "statusCode": {
                      "type": "number",
                      "format": "double"
                    },
                    "errors": {
                      "items": {
                        "properties": {
                          "message": {
                            "type": "string"
                          },
                          "field": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "message",
                          "field"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "description",
                    "statusCode"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "Zap"
        ],
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnquriesRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /zap/exit-zap-create-agent-pro-enquries"
      }
    },
    "/zap/exit-zap-create-alto-enquries": {
      "post": {
        "operationId": "CreateAltoEnquries",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "description": {
                      "type": "string"
                    },
                    "dateTime": {
                      "type": "string"
                    },
                    "statusCode": {
                      "type": "number",
                      "format": "double"
                    },
                    "errors": {
                      "items": {
                        "properties": {
                          "message": {
                            "type": "string"
                          },
                          "field": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "message",
                          "field"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "description",
                    "statusCode"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "Zap"
        ],
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnquriesRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /zap/exit-zap-create-alto-enquries"
      }
    },
    "/zap/exit-zap-create-rex-enquiries": {
      "post": {
        "operationId": "CreateRexEnquiries",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "description": {
                      "type": "string"
                    },
                    "dateTime": {
                      "type": "string"
                    },
                    "statusCode": {
                      "type": "number",
                      "format": "double"
                    },
                    "errors": {
                      "items": {
                        "properties": {
                          "message": {
                            "type": "string"
                          },
                          "field": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "message",
                          "field"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "description",
                    "statusCode"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "Zap"
        ],
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnquriesRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /zap/exit-zap-create-rex-enquiries"
      }
    },
    "/zap/exit-zap-create-loop-enquiries": {
      "post": {
        "operationId": "CreateLoopEnquiries",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "description": {
                      "type": "string"
                    },
                    "dateTime": {
                      "type": "string"
                    },
                    "statusCode": {
                      "type": "number",
                      "format": "double"
                    },
                    "errors": {
                      "items": {
                        "properties": {
                          "message": {
                            "type": "string"
                          },
                          "field": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "message",
                          "field"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "description",
                    "statusCode"
                  ],
                  "type": "object"
                }
              }
            }
          }
        },
        "tags": [
          "Zap"
        ],
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnquriesRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /zap/exit-zap-create-loop-enquiries"
      }
    },
    "/zap/exit-zap-create-mab-enquiries": {
      "post": {
        "operationId": "CreateMabEnquiries",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnquiryResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Zap"
        ],
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnquriesRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /zap/exit-zap-create-mab-enquiries"
      }
    },
    "/broadcast-event": {
      "get": {
        "operationId": "Get",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Broadcast Event"
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "type",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "startDate",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "endDate",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "locationId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "enquiryType",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · GET /broadcast-event"
      },
      "post": {
        "operationId": "CreateBroadcastEvent",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Broadcast Event"
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BroadcastEvent"
              }
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /broadcast-event"
      }
    },
    "/team": {
      "post": {
        "operationId": "Create",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ITeamResponse"
                    },
                    {}
                  ]
                }
              }
            }
          }
        },
        "tags": [
          "Team"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TeamRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · POST /team"
      },
      "get": {
        "operationId": "GetTeams",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TeamPaginatedResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Team"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companyId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageNumber",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /team"
      }
    },
    "/team/get-all-teams": {
      "get": {
        "operationId": "GetAllTeams",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TeamResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Team"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "companyId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /team/get-all-teams"
      }
    },
    "/team/assign-team": {
      "post": {
        "operationId": "AssignTeam",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Team"
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssignTeamRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /team/assign-team"
      }
    },
    "/team/{id}": {
      "patch": {
        "operationId": "UpdateTeam",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Omit_ITeamResponse.token_"
                }
              }
            }
          }
        },
        "tags": [
          "Team"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TeamUpdateRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · PATCH /team/{id}"
      },
      "delete": {
        "operationId": "Delete",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Team"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · DELETE /team/{id}"
      }
    },
    "/team/remove-team-from-user": {
      "post": {
        "operationId": "RevokeTeam",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Team"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RevokeTeamType"
              }
            }
          }
        },
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · POST /team/remove-team-from-user"
      }
    },
    "/twilio-usage": {
      "post": {
        "operationId": "Create",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Twilio"
        ],
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "date": {
                    "type": "string"
                  }
                },
                "required": [
                  "date"
                ],
                "type": "object"
              }
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /twilio-usage"
      },
      "get": {
        "operationId": "GetAllTwilioUsage",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TwilioUsagePaginatedResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Twilio"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "billingAccountId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageNumber",
            "required": false,
            "schema": {}
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {}
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /twilio-usage"
      }
    },
    "/twilio-usage/sync-usage-by-location": {
      "post": {
        "operationId": "SyncTwillioUsageByLocation",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Twilio"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "date": {
                    "type": "string"
                  },
                  "locationId": {
                    "type": "string"
                  }
                },
                "required": [
                  "date",
                  "locationId"
                ],
                "type": "object"
              }
            }
          }
        },
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · POST /twilio-usage/sync-usage-by-location"
      }
    },
    "/twilio-usage/account-performance": {
      "get": {
        "operationId": "GetTwilioAccountPerformance",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Twilio"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "billingAccountId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "startDate",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "endDate",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /twilio-usage/account-performance"
      }
    },
    "/twilio-usage/csv-download": {
      "get": {
        "operationId": "CsvDownload",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Twilio"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "billingAccountId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "startDate",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "endDate",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "downloadCsv",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /twilio-usage/csv-download"
      }
    },
    "/markup": {
      "get": {
        "operationId": "GetMarkupValues",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Markup"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · GET /markup"
      },
      "patch": {
        "operationId": "UpdateMarkupValues",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Markup"
        ],
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarkUpdateRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · PATCH /markup"
      },
      "post": {
        "operationId": "Create",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Markup"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarkAddRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · POST /markup"
      },
      "put": {
        "summary": "[Super Admin] · PUT /markup",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Markup"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      }
    },
    "/markup/{type}": {
      "delete": {
        "operationId": "DeleteMarkup",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Markup"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "type",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · DELETE /markup/{type}"
      }
    },
    "/markup/{type}/history": {
      "get": {
        "operationId": "GetMarkupHistory",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Markup"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "type",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · GET /markup/{type}/history"
      }
    },
    "/ai-models": {
      "get": {
        "operationId": "List",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "Every model in display order, each with the tiers/purposes that run it.",
        "tags": [
          "AI Models"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · GET /ai-models"
      },
      "post": {
        "operationId": "Create",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "Add a model with its input/output price (USD per 1K tokens).",
        "tags": [
          "AI Models"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AiModelInput"
              }
            }
          }
        },
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · POST /ai-models"
      }
    },
    "/ai-models/{id}": {
      "patch": {
        "operationId": "Update",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "Update a model's prices, group, order or active flag. The name is immutable.",
        "tags": [
          "AI Models"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AiModelInput"
              }
            }
          }
        },
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · PATCH /ai-models/{id}"
      },
      "delete": {
        "operationId": "Remove",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "Delete a model no tier runs. Refused (400) while any live tier uses it.",
        "tags": [
          "AI Models"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · DELETE /ai-models/{id}"
      }
    },
    "/ai-models/{id}/history": {
      "get": {
        "operationId": "History",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "Field-level change history for one model.",
        "tags": [
          "AI Models"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · GET /ai-models/{id}/history"
      }
    },
    "/custom-roles/sections": {
      "get": {
        "operationId": "Sections",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "The sections a role can be granted, in sidebar order, and whether each can be granted at edit.",
        "tags": [
          "Custom Roles"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · GET /custom-roles/sections"
      }
    },
    "/custom-roles": {
      "get": {
        "operationId": "ListRoles",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "Every custom role with its sections and how many staff are on it.",
        "tags": [
          "Custom Roles"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · GET /custom-roles"
      },
      "post": {
        "operationId": "CreateRole",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "Create a role: `{ name, sections: [{ section, level: \"view\" | \"edit\" }] }`.",
        "tags": [
          "Custom Roles"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RoleInput"
              }
            }
          }
        },
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · POST /custom-roles"
      }
    },
    "/custom-roles/{id}": {
      "put": {
        "operationId": "UpdateRole",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "Rename a role and replace its sections. Applies to its staff within 30 seconds.",
        "tags": [
          "Custom Roles"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RoleInput"
              }
            }
          }
        },
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · PUT /custom-roles/{id}"
      },
      "delete": {
        "operationId": "DeleteRole",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "Delete a role nobody is on. Refused (400) while it has staff.",
        "tags": [
          "Custom Roles"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · DELETE /custom-roles/{id}"
      }
    },
    "/custom-roles/staff": {
      "get": {
        "operationId": "ListStaff",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "One page of Super Admins and staff on custom roles, Super Admins first:\n`{ rows, total, page, perPage, superAdmin: { roleId, count } }`. `perPage`\nis 10, 25 (default), 50 or 100; `search` matches name or email.",
        "tags": [
          "Custom Roles"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "perPage",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "roleId",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · GET /custom-roles/staff"
      },
      "post": {
        "operationId": "AddStaff",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "Add a staff member on a custom role: `{ name, email, roleId }`.",
        "tags": [
          "Custom Roles"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StaffInput"
              }
            }
          }
        },
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · POST /custom-roles/staff"
      }
    },
    "/custom-roles/staff/{userId}": {
      "patch": {
        "operationId": "ChangeStaffRole",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "Move a staff member to Super Admin or a custom role: `{ roleId }`. Refused (400) for your own role.",
        "tags": [
          "Custom Roles"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StaffInput"
              }
            }
          }
        },
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · PATCH /custom-roles/staff/{userId}"
      },
      "delete": {
        "operationId": "RemoveStaff",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "Remove a staff member, Super Admins included: signs them out everywhere and deletes the user. Refused (400) for yourself.",
        "tags": [
          "Custom Roles"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · DELETE /custom-roles/staff/{userId}"
      }
    },
    "/custom-roles/staff/{userId}/reset-two-step": {
      "post": {
        "operationId": "ResetStaffTwoStep",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "Reset a staff member's two-step sign-in (lost authenticator app): removes the app and signs them out. Refused (400) for yourself.",
        "tags": [
          "Custom Roles"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · POST /custom-roles/staff/{userId}/reset-two-step"
      }
    },
    "/srt": {
      "post": {
        "operationId": "Create",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SrtType"
                }
              }
            }
          }
        },
        "tags": [
          "SRT"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SrtAddRequest"
              }
            }
          }
        },
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · POST /srt"
      },
      "get": {
        "operationId": "GetSrt",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SrtsPaginatedResponse"
                }
              }
            }
          }
        },
        "tags": [
          "SRT"
        ],
        "security": [
          {
            "bearerFirebase": []
          },
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "markupType",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "aiType",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "billingAccountId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "locationId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageNumber",
            "required": false,
            "schema": {}
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {}
          },
          {
            "in": "query",
            "name": "enquiryType",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "SuperAdmin",
          "ExternalKey"
        ],
        "summary": "[Super Admin | External Key] · GET /srt"
      }
    },
    "/srt/ai": {
      "get": {
        "operationId": "GetAIProcessingSrtList",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SrtsPaginatedResponse"
                }
              }
            }
          }
        },
        "tags": [
          "SRT"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "billingAccountId",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · GET /srt/ai"
      }
    },
    "/srt/twilio": {
      "get": {
        "operationId": "GetTwilioProcessingSrtList",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SrtsPaginatedResponse"
                }
              }
            }
          }
        },
        "tags": [
          "SRT"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "billingAccountId",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · GET /srt/twilio"
      }
    },
    "/srt/negotiator": {
      "get": {
        "operationId": "GetNegotiatorSrtBreakdown",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "SRT"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "billingAccountId",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · GET /srt/negotiator"
      }
    },
    "/srt/company/{kind}": {
      "get": {
        "operationId": "GetCompanySrtUsage",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "SRT usage for the signed-in user's own company. `kind` is `ai`, `twilio` or\n`negotiator`; the response matches the staff endpoint of the same name.\nThere is no billing-account parameter: the company comes from the token.",
        "tags": [
          "SRT"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "kind",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "ai",
                "twilio",
                "negotiator"
              ]
            }
          },
          {
            "in": "header",
            "name": "timezone",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ],
        "summary": "[Admin / User] · GET /srt/company/{kind}"
      }
    },
    "/bills": {
      "post": {
        "operationId": "Create",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Bills"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "date": {
                    "type": "string"
                  }
                },
                "required": [
                  "date"
                ],
                "type": "object"
              }
            }
          }
        },
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · POST /bills"
      },
      "get": {
        "operationId": "Get",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "tags": [
          "Bills"
        ],
        "security": [],
        "parameters": [
          {
            "in": "query",
            "name": "locationId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "startDate",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "endDate",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "companyName",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "pageNumber",
            "required": false,
            "schema": {}
          },
          {
            "in": "query",
            "name": "pageSize",
            "required": false,
            "schema": {}
          },
          {
            "in": "query",
            "name": "sortBy",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "in": "query",
            "name": "downloadCsv",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · GET /bills"
      }
    },
    "/bills/generate": {
      "post": {
        "operationId": "GenerateForDate",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "Admin-triggered backfill for a specific past cycle. `endDate` must be\na legitimate cycle end for the account's billingDayOfMonth. Never\ntouches the live subscriptionDate cursor — the daily cron continues\non its own schedule.",
        "tags": [
          "Bills"
        ],
        "security": [],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "endDate": {
                    "type": "string"
                  },
                  "billingAccountId": {
                    "type": "string"
                  }
                },
                "required": [
                  "endDate",
                  "billingAccountId"
                ],
                "type": "object"
              }
            }
          }
        },
        "x-auth-modes": [
          "Public"
        ],
        "summary": "[Public] · POST /bills/generate"
      }
    },
    "/bills/{id}": {
      "patch": {
        "operationId": "UpdateBill",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "Admin edit for a single bill's payment state and/or free-text notes.\nBoth fields are optional; at least one must be supplied. Status is\nvalidated against the ENUM in the interactor.",
        "tags": [
          "Bills"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "reportUrl": {
                    "type": "string",
                    "nullable": true
                  },
                  "invoiceUrl": {
                    "type": "string",
                    "nullable": true
                  },
                  "notes": {
                    "type": "string",
                    "nullable": true
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "unpaid",
                      "in_progress",
                      "paid",
                      "overdue",
                      "void"
                    ]
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · PATCH /bills/{id}"
      },
      "delete": {
        "operationId": "Remove",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "Hard-deletes a Bill and its associated invoice + performance-report\nartifacts (Artifacts row + GCS file, best-effort). Cascade failures\non the artifact side don't block the Bill removal.",
        "tags": [
          "Bills"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · DELETE /bills/{id}"
      }
    },
    "/bills/{id}/generate-artifact": {
      "post": {
        "operationId": "GenerateArtifact",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "On-demand generator for a single artifact tied to a Bill. Used by the\nsuper-admin \"confirm and create\" flow when the invoice or report was\nnever generated (e.g. old bills that predate cron auto-generation).",
        "tags": [
          "Bills"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "invoice",
                      "report"
                    ]
                  }
                },
                "required": [
                  "kind"
                ],
                "type": "object"
              }
            }
          }
        },
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · POST /bills/{id}/generate-artifact"
      }
    },
    "/bills/{id}/approval": {
      "post": {
        "operationId": "SetApproval",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "description": "Record an approval decision on one side of a bill's artifacts\n(invoice or performance report). Writes to a dedicated set of\napproval columns — status, approver (Users.id), timestamp, source\n(\"slack\" | \"admin\"), and (when declined) a required reason. Called\nfrom the SuperAdmin UI and, in future, from the Slack-automation\nplatform.",
        "tags": [
          "Bills"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "reason": {
                    "type": "string",
                    "nullable": true
                  },
                  "via": {
                    "type": "string",
                    "enum": [
                      "slack",
                      "admin"
                    ]
                  },
                  "approvedByUserId": {
                    "type": "string"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "approve",
                      "decline"
                    ]
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "invoice",
                      "report"
                    ]
                  }
                },
                "required": [
                  "via",
                  "approvedByUserId",
                  "action",
                  "kind"
                ],
                "type": "object"
              }
            }
          }
        },
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · POST /bills/{id}/approval"
      }
    },
    "/api-key": {
      "post": {
        "operationId": "Create",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserApiType"
                }
              }
            }
          }
        },
        "tags": [
          "Api-key"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserApiType"
              }
            }
          }
        },
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · POST /api-key"
      },
      "get": {
        "operationId": "Get",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserApiType"
                }
              }
            }
          }
        },
        "tags": [
          "Api-key"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [],
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · GET /api-key"
      }
    },
    "/api-key/{id}": {
      "patch": {
        "operationId": "UpdateApiKey",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserApiType"
                }
              }
            }
          }
        },
        "tags": [
          "Api-key"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Pick_UserApiType.locationIds-or-expiresAt_"
              }
            }
          }
        },
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · PATCH /api-key/{id}"
      },
      "delete": {
        "operationId": "Delete",
        "responses": {
          "200": {
            "description": "Ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "tags": [
          "Api-key"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ],
        "summary": "[Super Admin] · DELETE /api-key/{id}"
      }
    },
    "/account-email/verify": {
      "post": {
        "summary": "[Admin / User] · POST /account-email/verify",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/account-email/verify/confirm": {
      "post": {
        "summary": "[Public] · POST /account-email/verify/confirm",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/account-email/two-step-reset": {
      "post": {
        "summary": "[Public] · POST /account-email/two-step-reset",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/account-email/two-step-reset/confirm": {
      "post": {
        "summary": "[Public] · POST /account-email/two-step-reset/confirm",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/account-email/password-reset": {
      "post": {
        "summary": "[Public] · POST /account-email/password-reset",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/admin/invited": {
      "post": {
        "summary": "[Admin / User] · POST /admin/invited",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Admin"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      },
      "get": {
        "summary": "[Admin / User] · GET /admin/invited",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Admin"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/agent/{id}/profile": {
      "patch": {
        "summary": "[Admin / User] · PATCH /agent/{id}/profile",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Agent"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/agent/{id}/account": {
      "patch": {
        "summary": "[Admin / User] · PATCH /agent/{id}/account",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Agent"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/company-token/{locationId}/ai-plan": {
      "get": {
        "summary": "[External Key] · GET /company-token/{locationId}/ai-plan",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Billing Account"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/company-token": {
      "get": {
        "summary": "[Super Admin] · GET /company-token",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Billing Account"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      },
      "post": {
        "summary": "[Super Admin] · POST /company-token",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Billing Account"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      }
    },
    "/company-token/summary": {
      "get": {
        "summary": "[Super Admin] · GET /company-token/summary",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Billing Account"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      }
    },
    "/company-token/price-models": {
      "get": {
        "summary": "[Super Admin | External Key] · GET /company-token/price-models",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Billing Account"
        ],
        "security": [
          {
            "bearerFirebase": []
          },
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin",
          "ExternalKey"
        ]
      }
    },
    "/company-token/detailed-list": {
      "get": {
        "summary": "[Super Admin | External Key] · GET /company-token/detailed-list",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Billing Account"
        ],
        "security": [
          {
            "bearerFirebase": []
          },
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin",
          "ExternalKey"
        ]
      }
    },
    "/company-token/pin-order": {
      "patch": {
        "summary": "[Super Admin] · PATCH /company-token/pin-order",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Billing Account"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      }
    },
    "/company-token/{id}/pin": {
      "patch": {
        "summary": "[Super Admin] · PATCH /company-token/{id}/pin",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Billing Account"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      }
    },
    "/company-token/{id}/price-model-history": {
      "get": {
        "summary": "[Super Admin] · GET /company-token/{id}/price-model-history",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Billing Account"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      }
    },
    "/company-token/{id}": {
      "delete": {
        "summary": "[Super Admin] · DELETE /company-token/{id}",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Billing Account"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      },
      "patch": {
        "summary": "[Super Admin] · PATCH /company-token/{id}",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Billing Account"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      }
    },
    "/company-token/clear-srt-token/{id}": {
      "delete": {
        "summary": "[Super Admin] · DELETE /company-token/clear-srt-token/{id}",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Billing Account"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      }
    },
    "/company-token/token-consumption-detail": {
      "get": {
        "summary": "[Admin / User] · GET /company-token/token-consumption-detail",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Billing Account"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/billing-accounts/{locationId}/ai-plan": {
      "get": {
        "summary": "[External Key] · GET /billing-accounts/{locationId}/ai-plan",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Billing Account"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/billing-accounts/pin-order": {
      "patch": {
        "summary": "[Super Admin] · PATCH /billing-accounts/pin-order",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Billing Account"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      }
    },
    "/billing-accounts/{id}/pin": {
      "patch": {
        "summary": "[Super Admin] · PATCH /billing-accounts/{id}/pin",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Billing Account"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      }
    },
    "/billing-accounts/clear-srt-token/{id}": {
      "delete": {
        "summary": "[Super Admin] · DELETE /billing-accounts/clear-srt-token/{id}",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Billing Account"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      }
    },
    "/broadcast-event/{type}": {
      "get": {
        "summary": "[Public] · GET /broadcast-event/{type}",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Broadcast Event"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/broadcast-event/{type}/export": {
      "get": {
        "summary": "[Public] · GET /broadcast-event/{type}/export",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Broadcast Event"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/core/oauth": {
      "get": {
        "summary": "[Public] · GET /core/oauth",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Core"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/core/oauth/callback": {
      "get": {
        "summary": "[Admin / User] · GET /core/oauth/callback",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Core"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/core/integration": {
      "delete": {
        "summary": "[Admin / User] · DELETE /core/integration",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Core"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      },
      "get": {
        "summary": "[Admin / User] · GET /core/integration",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Core"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/core/custom-values": {
      "put": {
        "summary": "[Admin / User] · PUT /core/custom-values",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Core"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      },
      "get": {
        "summary": "[Admin / User] · GET /core/custom-values",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Core"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/core/ghl-location": {
      "post": {
        "summary": "[Admin / User] · POST /core/ghl-location",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Core"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/core/location/{id}/offices-address/export": {
      "get": {
        "summary": "[Admin / User] · GET /core/location/{id}/offices-address/export",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Core"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/core/location/{id}/offices-address/{officeAddressId}/postal-code/{postalCodeId}": {
      "delete": {
        "summary": "[Admin / User] · DELETE /core/location/{id}/offices-address/{officeAddressId}/postal-code/{postalCodeId}",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Core"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/core/location/{id}/sync-contacts": {
      "post": {
        "summary": "[Admin / User] · POST /core/location/{id}/sync-contacts",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Core"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/core/sync-locations": {
      "get": {
        "summary": "[Admin / User] · GET /core/sync-locations",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Core"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/crm/admin/credential": {
      "post": {
        "summary": "[Super Admin] · POST /crm/admin/credential",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      },
      "get": {
        "summary": "[Admin / User] · GET /crm/admin/credential",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/crm/admin/branches": {
      "get": {
        "summary": "[Admin / User] · GET /crm/admin/branches",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/crm/admin/branches/link-team": {
      "post": {
        "summary": "[Super Admin] · POST /crm/admin/branches/link-team",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      }
    },
    "/crm/admin/branches/unlink-team": {
      "post": {
        "summary": "[Super Admin] · POST /crm/admin/branches/unlink-team",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      }
    },
    "/crm/admin/branches/sync": {
      "post": {
        "summary": "[Super Admin] · POST /crm/admin/branches/sync",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      }
    },
    "/crm/admin/street-sync/preview": {
      "get": {
        "summary": "[Admin / User] · GET /crm/admin/street-sync/preview",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/crm/admin/street-sync": {
      "post": {
        "summary": "[Super Admin] · POST /crm/admin/street-sync",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      }
    },
    "/crm/admin/crms": {
      "get": {
        "summary": "[Admin / User] · GET /crm/admin/crms",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/crm/admin/company": {
      "post": {
        "summary": "[Super Admin] · POST /crm/admin/company",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      }
    },
    "/crm/admin/company/crm": {
      "put": {
        "summary": "[Super Admin] · PUT /crm/admin/company/crm",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      }
    },
    "/crm/capabilities": {
      "get": {
        "summary": "[Admin / User] · GET /crm/capabilities",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/crm/branch": {
      "get": {
        "summary": "[Admin / User] · GET /crm/branch",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/crm/contacts": {
      "delete": {
        "summary": "[Admin / User] · DELETE /crm/contacts",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      },
      "put": {
        "summary": "[Admin / User] · PUT /crm/contacts",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "CRM"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/dashboard-session/code": {
      "post": {
        "summary": "[Admin / User] · POST /dashboard-session/code",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/dashboard-session/exchange": {
      "post": {
        "summary": "[Public] · POST /dashboard-session/exchange",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/enquiries/export": {
      "get": {
        "summary": "[Admin / User] · GET /enquiries/export",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/ext/report": {
      "get": {
        "summary": "[Admin / User] · GET /ext/report",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Extension"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      },
      "post": {
        "summary": "[Admin / User] · POST /ext/report",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Extension"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/ext/report/{referenceCode}": {
      "get": {
        "summary": "[Admin / User] · GET /ext/report/{referenceCode}",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Extension"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/ext/parser-heartbeat": {
      "get": {
        "summary": "[Admin / User] · GET /ext/parser-heartbeat",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Extension"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      },
      "post": {
        "summary": "[Admin / User] · POST /ext/parser-heartbeat",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Extension"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/ext/support-ticket": {
      "post": {
        "summary": "[Admin / User] · POST /ext/support-ticket",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Extension"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      },
      "get": {
        "summary": "[Admin / User] · GET /ext/support-ticket",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Extension"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/ext/support-ticket/signed-out": {
      "post": {
        "summary": "[Public] · POST /ext/support-ticket/signed-out",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Extension"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/ext/events": {
      "get": {
        "summary": "[Admin / User] · GET /ext/events",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Extension"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      },
      "post": {
        "summary": "[Admin / User] · POST /ext/events",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Extension"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/internal/fluent-money/process-connect-list": {
      "post": {
        "summary": "[Public] · POST /internal/fluent-money/process-connect-list",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Fluent Money"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/internal/fluent-money/fetch-old-files": {
      "post": {
        "summary": "[Public] · POST /internal/fluent-money/fetch-old-files",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Fluent Money"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/internal/fluent-money/upload-connect-list": {
      "post": {
        "summary": "[Public] · POST /internal/fluent-money/upload-connect-list",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Fluent Money"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/internal/fluent-money/status": {
      "get": {
        "summary": "[Public] · GET /internal/fluent-money/status",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Fluent Money"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/internal/fluent-money/files": {
      "get": {
        "summary": "[Public] · GET /internal/fluent-money/files",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Fluent Money"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/internal/fluent-money/reset-connection": {
      "post": {
        "summary": "[Public] · POST /internal/fluent-money/reset-connection",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Fluent Money"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/internal/fluent-money/system-info": {
      "get": {
        "summary": "[Public] · GET /internal/fluent-money/system-info",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Fluent Money"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/internal/fluent-money/health": {
      "get": {
        "summary": "[Public] · GET /internal/fluent-money/health",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Fluent Money"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/internal/sync-core-contacts": {
      "get": {
        "summary": "[Public] · GET /internal/sync-core-contacts",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Test"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/internal/sync-core-users": {
      "get": {
        "summary": "[Public] · GET /internal/sync-core-users",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Test"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/jobs": {
      "get": {
        "summary": "[Admin / User] · GET /jobs",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Jobs"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/jobs/stream": {
      "get": {
        "summary": "[Public] · GET /jobs/stream",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Jobs"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/jobs/{jobId}": {
      "get": {
        "summary": "[Admin / User] · GET /jobs/{jobId}",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Jobs"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/jobs/{jobId}/retry": {
      "post": {
        "summary": "[Admin / User] · POST /jobs/{jobId}/retry",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Jobs"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/jobs/{jobId}/cancel": {
      "post": {
        "summary": "[Admin / User] · POST /jobs/{jobId}/cancel",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Jobs"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/lead-event/{type}": {
      "get": {
        "summary": "[Public] · GET /lead-event/{type}",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "lead-event"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/lead-event/{type}/export": {
      "get": {
        "summary": "[Public] · GET /lead-event/{type}/export",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "lead-event"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/login/{crm}/redirect": {
      "get": {
        "summary": "[Public] · GET /login/{crm}/redirect",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Login"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/login/{crm}": {
      "get": {
        "summary": "[Public] · GET /login/{crm}",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Login"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/lookup": {
      "put": {
        "summary": "[Super Admin] · PUT /lookup",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Lookup"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      },
      "post": {
        "summary": "[Super Admin] · POST /lookup",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Lookup"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      },
      "get": {
        "summary": "[Public] · GET /lookup",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Lookup"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/lookup/{id}": {
      "delete": {
        "summary": "[Super Admin] · DELETE /lookup/{id}",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Lookup"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      }
    },
    "/login/method": {
      "get": {
        "summary": "[Public] · GET /login/method",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Login"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/login/magic-link": {
      "post": {
        "summary": "[Public] · POST /login/magic-link",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Login"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/login/magic/callback": {
      "get": {
        "summary": "[Public] · GET /login/magic/callback",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Login"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      },
      "post": {
        "summary": "[Public] · POST /login/magic/callback",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Login"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/login/magic/verify": {
      "post": {
        "summary": "[Public] · POST /login/magic/verify",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Login"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/login/magic/status": {
      "get": {
        "summary": "[Public] · GET /login/magic/status",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Login"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/mcp-session/code": {
      "post": {
        "summary": "[Admin / User] · POST /mcp-session/code",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/mcp-session/exchange": {
      "post": {
        "summary": "[Public] · POST /mcp-session/exchange",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/midas/createLead": {
      "post": {
        "summary": "[External Key] · POST /midas/createLead",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Midas"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/prompt": {
      "get": {
        "summary": "[Super Admin] · GET /prompt",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "PromptCenter"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      },
      "post": {
        "summary": "[Super Admin] · POST /prompt",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "PromptCenter"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      }
    },
    "/reapit/csv-download": {
      "get": {
        "summary": "[Super Admin] · GET /reapit/csv-download",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Reapit"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      }
    },
    "/retention/locations-due": {
      "get": {
        "summary": "[External Key] · GET /retention/locations-due",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/slack/interactions": {
      "post": {
        "summary": "[Public] · POST /slack/interactions",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/slack/payload": {
      "get": {
        "summary": "[Public] · GET /slack/payload",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/srt/csv-download": {
      "get": {
        "summary": "[Super Admin] · GET /srt/csv-download",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "SRT"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      }
    },
    "/team/assign-team-to-user": {
      "post": {
        "summary": "[Admin / User] · POST /team/assign-team-to-user",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Team"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/user/preferences/tables": {
      "get": {
        "summary": "[Admin / User] · GET /user/preferences/tables",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "User Preferences"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/user/preferences/tables/{tableName}": {
      "delete": {
        "summary": "[Admin / User] · DELETE /user/preferences/tables/{tableName}",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "User Preferences"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      },
      "put": {
        "summary": "[Admin / User] · PUT /user/preferences/tables/{tableName}",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "User Preferences"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      },
      "get": {
        "summary": "[Admin / User] · GET /user/preferences/tables/{tableName}",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "User Preferences"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/user/access": {
      "get": {
        "summary": "[Admin / User] · GET /user/access",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "User"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/user/logout": {
      "post": {
        "summary": "[Admin / User] · POST /user/logout",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "User"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/webhook/core-contacts": {
      "post": {
        "summary": "[Public] · POST /webhook/core-contacts",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      },
      "get": {
        "summary": "[Public] · GET /webhook/core-contacts",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/webhook/create": {
      "post": {
        "summary": "[External Key] · POST /webhook/create",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/create-whatsapp": {
      "post": {
        "summary": "[External Key] · POST /webhook/create-whatsapp",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/user-logout": {
      "get": {
        "summary": "[External Key] · GET /webhook/user-logout",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/whatsapp-usage-transaction": {
      "post": {
        "summary": "[External Key] · POST /webhook/whatsapp-usage-transaction",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/daily-report-numbers": {
      "get": {
        "summary": "[External Key] · GET /webhook/daily-report-numbers",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/reapit-usage-transaction": {
      "post": {
        "summary": "[External Key] · POST /webhook/reapit-usage-transaction",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/get-companies-locations": {
      "get": {
        "summary": "[External Key] · GET /webhook/get-companies-locations",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/sync-location": {
      "get": {
        "summary": "[External Key] · GET /webhook/sync-location",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/create-sub-account": {
      "post": {
        "summary": "[External Key] · POST /webhook/create-sub-account",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/create-sub-account-user": {
      "post": {
        "summary": "[External Key] · POST /webhook/create-sub-account-user",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/create-lead-event": {
      "post": {
        "summary": "[External Key] · POST /webhook/create-lead-event",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/create-boardcast-event": {
      "post": {
        "summary": "[External Key] · POST /webhook/create-boardcast-event",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/core-offices-address": {
      "post": {
        "summary": "[External Key] · POST /webhook/core-offices-address",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/core-metadata-integration/{locationId}": {
      "get": {
        "summary": "[External Key] · GET /webhook/core-metadata-integration/{locationId}",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/entry-zap/v3.2": {
      "post": {
        "summary": "[External Key] · POST /webhook/entry-zap/v3.2",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/entry-zap-sanitization": {
      "post": {
        "summary": "[External Key] · POST /webhook/entry-zap-sanitization",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/entry-zap-sanitization-v2": {
      "post": {
        "summary": "[External Key] · POST /webhook/entry-zap-sanitization-v2",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/entry-zap-core-contacts-upsert": {
      "post": {
        "summary": "[External Key] · POST /webhook/entry-zap-core-contacts-upsert",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/exit-zap-create-reapit-enquries": {
      "post": {
        "summary": "[External Key] · POST /webhook/exit-zap-create-reapit-enquries",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/exit-zap-create-leadpro-enquries": {
      "post": {
        "summary": "[External Key] · POST /webhook/exit-zap-create-leadpro-enquries",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/exit-zap-create-alto-enquries": {
      "post": {
        "summary": "[External Key] · POST /webhook/exit-zap-create-alto-enquries",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/exit-zap-create-acquaint-enquries": {
      "post": {
        "summary": "[External Key] · POST /webhook/exit-zap-create-acquaint-enquries",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/exit-zap-create-street-enquries": {
      "post": {
        "summary": "[External Key] · POST /webhook/exit-zap-create-street-enquries",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/exit-zap-create-agent-pro-enquries": {
      "post": {
        "summary": "[External Key] · POST /webhook/exit-zap-create-agent-pro-enquries",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/exit-zap-create-rex-enquiries": {
      "post": {
        "summary": "[External Key] · POST /webhook/exit-zap-create-rex-enquiries",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/exit-zap-create-loop-enquiries": {
      "post": {
        "summary": "[External Key] · POST /webhook/exit-zap-create-loop-enquiries",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/exit-zap-create-mab-enquiries": {
      "post": {
        "summary": "[External Key] · POST /webhook/exit-zap-create-mab-enquiries",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/exit-zap-create-enquiry": {
      "post": {
        "summary": "[External Key] · POST /webhook/exit-zap-create-enquiry",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/exit-zap-update-enquries": {
      "post": {
        "summary": "[External Key] · POST /webhook/exit-zap-update-enquries",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/zap-enquries-status": {
      "get": {
        "summary": "[External Key] · GET /webhook/zap-enquries-status",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/update-core-upsert-contact/{id}": {
      "put": {
        "summary": "[External Key] · PUT /webhook/update-core-upsert-contact/{id}",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/sync-contact": {
      "post": {
        "summary": "[External Key] · POST /webhook/sync-contact",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/update-ghl-custom-fields-and-tags": {
      "post": {
        "summary": "[External Key] · POST /webhook/update-ghl-custom-fields-and-tags",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/ghl-custom-fields": {
      "put": {
        "summary": "[External Key] · PUT /webhook/ghl-custom-fields",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/ghl-custom-values": {
      "put": {
        "summary": "[External Key] · PUT /webhook/ghl-custom-values",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/ghl-onboard-location": {
      "post": {
        "summary": "[External Key] · POST /webhook/ghl-onboard-location",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/ghl-contacts": {
      "get": {
        "summary": "[External Key] · GET /webhook/ghl-contacts",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/entry-client-leadpro-n8n": {
      "post": {
        "summary": "[Public] · POST /webhook/entry-client-leadpro-n8n",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/webhook/entry-client-leadpro": {
      "post": {
        "summary": "[Public] · POST /webhook/entry-client-leadpro",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/webhook/entry-client-default-payload": {
      "post": {
        "summary": "[Public] · POST /webhook/entry-client-default-payload",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/webhook/entry-clear-mortgage": {
      "post": {
        "summary": "[Public] · POST /webhook/entry-clear-mortgage",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/webhook/entry-client-fluent-money": {
      "post": {
        "summary": "[Public] · POST /webhook/entry-client-fluent-money",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/webhook/zoopla/leads": {
      "post": {
        "summary": "[External Key] · POST /webhook/zoopla/leads",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/find-location-by-robot-email": {
      "post": {
        "summary": "[External Key] · POST /webhook/find-location-by-robot-email",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [
          {
            "bearerUserApiKey": []
          },
          {
            "bearerWebhookJwt": []
          }
        ],
        "x-auth-modes": [
          "ExternalKey"
        ]
      }
    },
    "/webhook/generate-mortgage-report": {
      "post": {
        "summary": "[Public] · POST /webhook/generate-mortgage-report",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Webhooks"
        ],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/whatsapp": {
      "get": {
        "summary": "[Super Admin] · GET /whatsapp",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Whatsapp"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      }
    },
    "/whatsapp/{locationId}": {
      "delete": {
        "summary": "[Super Admin] · DELETE /whatsapp/{locationId}",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Whatsapp"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      }
    },
    "/whatsapp/csv-download": {
      "get": {
        "summary": "[Super Admin] · GET /whatsapp/csv-download",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [
          "Whatsapp"
        ],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      }
    },
    "/zazu-keys": {
      "get": {
        "summary": "[Public] · GET /zazu-keys",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      },
      "post": {
        "summary": "[Public] · POST /zazu-keys",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/zazu-keys/{id}": {
      "delete": {
        "summary": "[Public] · DELETE /zazu-keys/{id}",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      },
      "put": {
        "summary": "[Public] · PUT /zazu-keys/{id}",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/zazu-keys/{id}/regenerate": {
      "post": {
        "summary": "[Public] · POST /zazu-keys/{id}/regenerate",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [],
        "security": [],
        "x-auth-modes": [
          "Public"
        ]
      }
    },
    "/zazu/knowledge/location/{id}": {
      "delete": {
        "summary": "[Super Admin] · DELETE /zazu/knowledge/location/{id}",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      },
      "post": {
        "summary": "[Super Admin] · POST /zazu/knowledge/location/{id}",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      },
      "get": {
        "summary": "[Admin / User] · GET /zazu/knowledge/location/{id}",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/zazu/knowledge/location/{id}/export": {
      "get": {
        "summary": "[Admin / User] · GET /zazu/knowledge/location/{id}/export",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/zazu/knowledge/location/{id}/single": {
      "put": {
        "summary": "[Super Admin] · PUT /zazu/knowledge/location/{id}/single",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      },
      "post": {
        "summary": "[Super Admin] · POST /zazu/knowledge/location/{id}/single",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "SuperAdmin"
        ]
      }
    },
    "/zazu/ai/audit-trails": {
      "get": {
        "summary": "[Admin / User] · GET /zazu/ai/audit-trails",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    },
    "/zazu/ai/conversation": {
      "get": {
        "summary": "[Admin / User] · GET /zazu/ai/conversation",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "tags": [],
        "security": [
          {
            "bearerFirebase": []
          }
        ],
        "x-auth-modes": [
          "AdminUser"
        ]
      }
    }
  },
  "servers": [
    {
      "url": "/"
    }
  ],
  "tags": [
    {
      "name": "Admin",
      "x-audience": "Internal Portal"
    },
    {
      "name": "Agent",
      "x-audience": "Internal Portal"
    },
    {
      "name": "AI Models",
      "x-audience": "Internal Portal"
    },
    {
      "name": "Api-key",
      "x-audience": "Internal Portal"
    },
    {
      "name": "Artifacts",
      "x-audience": "Internal Portal"
    },
    {
      "name": "Billing Account",
      "x-audience": "Integration"
    },
    {
      "name": "Bills",
      "x-audience": "Internal Portal"
    },
    {
      "name": "Broadcast Event",
      "x-audience": "Internal Portal"
    },
    {
      "name": "Company",
      "x-audience": "Internal Portal"
    },
    {
      "name": "Core",
      "x-audience": "Internal Portal"
    },
    {
      "name": "CRM",
      "x-audience": "Internal Portal"
    },
    {
      "name": "Custom Roles",
      "x-audience": "Internal Portal"
    },
    {
      "name": "Export csv",
      "x-audience": "Internal Portal"
    },
    {
      "name": "Extension",
      "x-audience": "Internal Portal",
      "description": "Chrome-extension companion endpoints called by the SalesRook Negotiator extension running inside WhatsApp Web."
    },
    {
      "name": "Fluent Money",
      "x-audience": "Internal Portal"
    },
    {
      "name": "Jobs",
      "x-audience": "Internal Portal"
    },
    {
      "name": "lead-event",
      "x-audience": "Internal Portal"
    },
    {
      "name": "License",
      "x-audience": "Internal Portal"
    },
    {
      "name": "Login",
      "x-audience": "Internal Portal",
      "description": "Unauthenticated OAuth entry / redirect pair — used to start a Reapit or GHL sign-in flow."
    },
    {
      "name": "Lookup",
      "x-audience": "Internal Portal"
    },
    {
      "name": "Markup",
      "x-audience": "Internal Portal"
    },
    {
      "name": "Midas",
      "x-audience": "Integration"
    },
    {
      "name": "PromptCenter",
      "x-audience": "Internal Portal"
    },
    {
      "name": "Reapit",
      "x-audience": "Internal Portal"
    },
    {
      "name": "SRT",
      "x-audience": "Integration"
    },
    {
      "name": "Team",
      "x-audience": "Internal Portal"
    },
    {
      "name": "Test",
      "x-audience": "Internal Portal"
    },
    {
      "name": "Transaction",
      "x-audience": "Internal Portal"
    },
    {
      "name": "Twilio",
      "x-audience": "Internal Portal"
    },
    {
      "name": "User",
      "x-audience": "Internal Portal"
    },
    {
      "name": "User Preferences",
      "x-audience": "Internal Portal"
    },
    {
      "name": "User Roles",
      "x-audience": "Internal Portal"
    },
    {
      "name": "Webhooks",
      "x-audience": "Integration",
      "description": "Inbound webhook receivers — endpoints that third-party systems (n8n, Zap-family CRMs, Gmail Pub/Sub, etc.) call into SalesRook. Signed webhooks require the WH_SECRET JWT."
    },
    {
      "name": "Whatsapp",
      "x-audience": "Internal Portal"
    },
    {
      "name": "Zap",
      "x-audience": "Internal Portal",
      "description": "Zapier-style CRM-adapter endpoints. External integrations for creating/updating enquiries and contacts across supported CRMs."
    }
  ]
}